:root {
  --bg-dark: #111827;
  --card-dark: #1f2937;
  --text-light: #f9fafb;
  --text-muted: #9ca3af;
  --accent-blue: #3b82f6;
  --border-dark: rgba(255, 255, 255, 0.1);

  --bg-light: #f9fafb;
  --card-light: #ffffff;
  --text-dark: #111827;
  --text-muted-light: #4b5563;
  --border-light: rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    transition: background-color 0.3s, color 0.3s;
    min-height: 100vh;
    scroll-behavior: smooth;
}

body.dark-mode {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

body.light-mode {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

main.container {
    padding-top: 100px;
}

section {
    padding: 60px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

section.show {
    opacity: 1;
    transform: translateY(0);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.accent {
    color: var(--accent-blue);
}

.nav-wrap {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 20px 0;
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(10px);
}

body.light-mode .nav-wrap {
    background: rgba(249, 250, 251, 0.8);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: inherit;
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--text-light);
}

body.light-mode .nav-links a:hover {
    color: var(--text-dark);
}

.theme-toggle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--text-muted);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
}
body.light-mode .theme-toggle {
    background: var(--bg-dark);
}

.hero {
    display: flex;
    gap: 40px;
    align-items: center;
    min-height: calc(80vh - 100px);
}

.hero-left { flex: 1.5; }
.hero-right { flex: 1; }

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin: 0;
}

.hero-subtitle {
    font-weight: 400;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin: 20px 0 30px;
}

.button {
    background: var(--accent-blue);
    border: none;
    color: white;
    padding: 12px 24px;
    cursor: pointer;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    transition: transform 0.3s;
    text-decoration: none;
    display: inline-block;
}

.button:hover {
    transform: translateY(-3px);
}

.skills-card {
    padding: 30px;
    border-radius: 12px;
}
body.dark-mode .skills-card { background-color: var(--card-dark); }
body.light-mode .skills-card { background-color: var(--card-light); border: 1px solid var(--border-light); }


.skill-item h3 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
}
.skill-item p {
    margin: 0;
    color: var(--text-muted);
}
.skill-item:not(:last-child) {
    margin-bottom: 20px;
}

.card {
    padding: 25px;
    border-radius: 12px;
    transition: transform 0.3s;
}
.card:hover {
    transform: translateY(-5px);
}

body.dark-mode .card {
    background-color: var(--card-dark);
}
body.light-mode .card {
    background-color: var(--card-light);
    border: 1px solid var(--border-light);
}

.card h3 {
    margin-top: 0;
}
.card p {
    color: var(--text-muted);
}

.accent-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
}



.ai-assistant-card {
    max-width: 500px;
    margin: 0 auto;
    border-radius: 12px;
    padding: 30px;
}

body.dark-mode .ai-assistant-card { background-color: var(--card-dark); }
body.light-mode .ai-assistant-card { background-color: var(--card-light); border: 1px solid var(--border-light); }

.ai-assistant-card h2 {
    margin-top: 0;
}

.chat-container {
    margin-bottom: 20px;
}

.ai-message-static, .ai-response {
    padding: 12px 16px;
    border-radius: 8px;
    margin: 8px 0;
}

.ai-message-static {
    background: rgba(0,0,0,0.1);
    display: inline-block;
}

body.dark-mode .ai-message-static { background: var(--bg-dark); }
body.light-mode .ai-message-static { background: #e5e7eb; }

#ai-response-area .ai-response {
    background: var(--accent-blue);
    color: white;
    text-align: right;
    margin-left: auto;
    max-width: 80%;
}

.ask-button {
    width: 100%;
    padding: 12px;
    background: transparent;
    color: inherit;
    border: 1px solid;
    border-radius: 8px;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
}

body.dark-mode .ask-button { border-color: var(--border-dark); }
body.light-mode .ask-button { border-color: var(--border-light); }

.ask-button span {
    font-size: 1.5rem;
}

#contact form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
input, textarea {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid;
    color: inherit;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}
body.dark-mode input, body.dark-mode textarea { border-color: var(--border-dark); }
body.light-mode input, body.light-mode textarea { border-color: var(--border-light); }
textarea { resize: vertical; min-height: 100px; }


@media(max-width: 768px) {
    h2 { font-size: 2rem; }
    .nav-links { display: none; }
    .hero { flex-direction: column; text-align: center; }
    .hero-title { font-size: 2.5rem; }
    .hero-right { width: 100%; }
}

