/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Color Palette - Dark Theme (Default) */
    --bg-primary: hsl(222, 25%, 6%);
    --bg-secondary: hsl(222, 24%, 10%);
    --bg-card: rgba(18, 22, 32, 0.65);
    --border-color: rgba(255, 255, 255, 0.08);
    
    --text-primary: hsl(210, 17%, 95%);
    --text-secondary: hsl(210, 12%, 70%);
    --text-muted: hsl(210, 8%, 50%);
    
    --accent: hsl(255, 85%, 65%);
    --accent-gradient: linear-gradient(135deg, hsl(255, 85%, 65%) 0%, hsl(285, 80%, 58%) 100%);
    --accent-glow: rgba(138, 92, 246, 0.15);
    --accent-hover: hsl(255, 85%, 72%);
    
    --success: hsl(150, 80%, 38%);
    --error: hsl(0, 85%, 60%);
    
    --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --nav-height: 80px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
}

/* Light Theme overrides */
body.light-theme {
    --bg-primary: hsl(210, 20%, 98%);
    --bg-secondary: hsl(210, 20%, 94%);
    --bg-card: rgba(255, 255, 255, 0.75);
    --border-color: rgba(0, 0, 0, 0.06);
    
    --text-primary: hsl(222, 25%, 12%);
    --text-secondary: hsl(222, 15%, 35%);
    --text-muted: hsl(222, 10%, 55%);
    
    --accent: hsl(255, 75%, 55%);
    --accent-gradient: linear-gradient(135deg, hsl(255, 75%, 55%) 0%, hsl(285, 70%, 50%) 100%);
    --accent-glow: rgba(124, 58, 237, 0.1);
    --accent-hover: hsl(255, 75%, 48%);
    
    --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.06);
}

/* ==========================================================================
   BASE STYLES & RESET
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 100px 0;
    position: relative;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

button, input, textarea {
    font-family: inherit;
    color: inherit;
    background: none;
    border: none;
}

button {
    cursor: pointer;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 5px;
    border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ==========================================================================
   AMBIENT GLOW EFFECTS
   ========================================================================== */
.ambient-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.15;
    mix-blend-mode: screen;
    animation: floatGlow 20s infinite alternate ease-in-out;
}

body.light-theme .ambient-glow {
    opacity: 0.08;
    mix-blend-mode: multiply;
}

.bg-glow-1 {
    background: radial-gradient(circle, hsl(255, 85%, 65%) 0%, transparent 70%);
    top: -100px;
    left: -100px;
}

.bg-glow-2 {
    background: radial-gradient(circle, hsl(285, 80%, 58%) 0%, transparent 70%);
    bottom: 10%;
    right: -100px;
    animation-delay: -10s;
}

@keyframes floatGlow {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(100px, 80px) scale(1.15);
    }
}

/* ==========================================================================
   TYPOGRAPHY & UTILITIES
   ========================================================================== */
.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-accent {
    color: var(--accent);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* ==========================================================================
   COMPONENTS
   ========================================================================== */
/* Glassmorphic Card */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: rgba(138, 92, 246, 0.25);
    box-shadow: 0 15px 35px -5px var(--accent-glow);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.2px;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(138, 92, 246, 0.4);
}

.btn-secondary {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--border-color);
    transform: translateY(-2px);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: 20px;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.btn-icon:hover {
    background: var(--border-color);
    color: var(--accent);
    transform: scale(1.05);
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(18, 22, 32, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: background-color 0.5s ease;
}

body.light-theme .glass-nav {
    background: rgba(255, 255, 255, 0.5);
}

.nav-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-accent {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover::after, .nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

#mobile-menu-btn {
    display: none;
}

/* Sun/Moon Theme Icons */
.sun-icon {
    display: block;
}
.moon-icon {
    display: none;
}

body.light-theme .sun-icon {
    display: none;
}
body.light-theme .moon-icon {
    display: block;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: calc(var(--nav-height) + 20px);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.badge-container {
    margin-bottom: 20px;
}

.hero-badge {
    background: var(--accent-glow);
    border: 1px solid rgba(138, 92, 246, 0.2);
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -2px;
    margin-bottom: 16px;
}

.typing-container {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.typing-dynamic {
    color: var(--accent);
    font-weight: 600;
    border-right: 2px solid var(--accent);
    padding-right: 4px;
    animation: blinkCursor 0.75s step-end infinite;
}

@keyframes blinkCursor {
    from, to { border-color: transparent }
    50% { border-color: var(--accent); }
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin-bottom: 36px;
}

.hero-cta {
    display: flex;
    gap: 16px;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.visual-card {
    width: 100%;
    max-width: 420px;
    padding: 24px;
    font-family: monospace;
    font-size: 0.85rem;
    overflow: hidden;
}

.card-dots {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.code-editor {
    line-height: 1.7;
    white-space: pre-wrap;
    color: var(--text-primary);
}

.code-editor .comment { color: var(--text-muted); }
.code-editor .keyword { color: #f472b6; }
.code-editor .class-name { color: #60a5fa; }
.code-editor .string { color: #34d399; }
.code-editor .number { color: #fbbf24; }
.code-editor .method-name { color: #a78bfa; }

/* Floating Badges */
.floating-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    padding: 12px 18px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    animation: floatBadge 6s infinite ease-in-out;
}

.floating-badge h4 {
    font-size: 0.85rem;
    font-weight: 600;
}

.floating-badge p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.floating-badge .fb-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.java-color { background: rgba(230, 28, 36, 0.1); }
.ai-color { background: rgba(34, 197, 94, 0.1); }

.fb-1 {
    top: -20px;
    right: -20px;
}

.fb-2 {
    bottom: -20px;
    left: -20px;
    animation-delay: -3s;
}

@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0% { transform: translate(-50%, 0); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translate(-50%, 10px); opacity: 0; }
}

/* ==========================================================================
   ABOUT ME SECTION
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: start;
}

.about-text h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 36px;
}

.stat-card {
    padding: 20px 16px;
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.about-education {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 10px;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent);
    border-radius: 4px 16px 16px 4px;
    box-shadow: var(--card-shadow);
}

.about-education .edu-icon {
    font-size: 2.2rem;
    line-height: 1;
}

.about-education h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--text-primary);
}

.about-education p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-item {
    display: flex;
    gap: 20px;
    padding: 24px;
}

.feature-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.feature-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Brand Showcase */
.brand-showcase {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.brand-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.brand-section-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.brand-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.brand-badge {
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    border-radius: 12px;
    min-width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.brand-badge:hover {
    color: var(--text-primary);
    transform: translateY(-3px);
}

/* ==========================================================================
   SKILLS SECTION
   ========================================================================== */
.skills-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.skill-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skill-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.skill-icon {
    font-size: 1.5rem;
}

.skill-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.skill-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    flex-grow: 1;
}

.skill-meter {
    height: 6px;
    width: 100%;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 8px;
}

.skill-meter span {
    display: block;
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 3px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Class to trigger meter animation */
.skill-card.animated .skill-meter span {
    transform: scaleX(1);
}

/* ==========================================================================
   EXPERIENCE TIMELINE
   ========================================================================== */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--border-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background: transparent;
    width: 50%;
}

.timeline-dot {
    width: 16px;
    height: 16px;
    position: absolute;
    right: -8px;
    top: 25px;
    background: var(--bg-primary);
    border: 4px solid var(--accent);
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 10px var(--accent);
    transition: var(--transition-fast);
}

.timeline-item:hover .timeline-dot {
    background: var(--accent);
    transform: scale(1.2);
}

.timeline-item.left {
    left: 0;
}

.timeline-item.right {
    left: 50%;
}

.timeline-item.right .timeline-dot {
    left: -8px;
}

.timeline-content {
    padding: 28px;
    position: relative;
}

.timeline-date {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.timeline-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.timeline-role {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.service-icon {
    font-size: 2.2rem;
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-info .section-title {
    text-align: left;
    margin-bottom: 0;
}

.contact-intro {
    font-size: 1.05rem;
    color: var(--text-secondary);
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.info-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--accent-glow);
    border: 1px solid rgba(138, 92, 246, 0.15);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-item h4 {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-link {
    font-size: 1rem;
    font-weight: 600;
}

.contact-link:hover {
    color: var(--accent);
}

.contact-form-container {
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.error-msg {
    display: block;
    font-size: 0.75rem;
    color: var(--error);
    margin-top: 4px;
    opacity: 0;
    transform: translateY(-5px);
    transition: var(--transition-fast);
    height: 0;
    overflow: hidden;
}

.form-group.invalid .error-msg {
    opacity: 1;
    transform: translateY(0);
    height: auto;
    margin-top: 6px;
}

.form-group.invalid input, .form-group.invalid textarea {
    border-color: var(--error);
}

/* Success Overlay */
.success-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    z-index: 10;
}

.success-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.success-content {
    text-align: center;
    padding: 30px;
    transform: translateY(20px);
    transition: var(--transition-smooth);
    transition-delay: 0.1s;
}

.success-overlay.active .success-content {
    transform: translateY(0);
}

.success-check {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid var(--success);
    color: var(--success);
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.success-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.success-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    max-width: 260px;
    margin: 0 auto 24px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.copyright {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ==========================================================================
   SCROLL REVEAL UTILITIES
   ========================================================================== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVENESS)
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    section {
        padding: 70px 0;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .typing-container {
        justify-content: center;
    }
    
    .hero-visual {
        order: -1;
    }
    
    #mobile-menu-btn {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background: var(--bg-primary);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 32px;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.4s ease, opacity 0.4s ease;
        border-top: 1px solid var(--border-color);
    }
    
    .nav-links.mobile-active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    
    .timeline::after {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 45px;
        padding-right: 0;
    }
    
    .timeline-item.right {
        left: 0;
    }
    
    .timeline-dot {
        left: 12px !important;
        right: auto !important;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================================
   LANGUAGE SELECTOR & BILINGUAL SUPPORT
   ========================================================================== */
.lang-selector {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2px;
    border-radius: 20px;
    margin-right: 8px;
}

.lang-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 18px;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.lang-btn.active {
    background: var(--accent-gradient);
    color: white;
}

.lang-btn:hover:not(.active) {
    color: var(--text-primary);
}

/* Telugu font fallback class */
body.lang-te {
    font-family: 'NTR', 'Outfit', sans-serif;
}

/* Adjustments for Telugu styling readability */
body.lang-te .timeline-content h3, 
body.lang-te .service-card h3,
body.lang-te .skill-card h3,
body.lang-te .hero-title,
body.lang-te .section-title {
    font-family: 'Ramabhadra', 'Outfit', sans-serif;
    font-weight: 500;
    line-height: 1.4;
}

body.lang-te .about-text p,
body.lang-te .timeline-content p,
body.lang-te .service-card p,
body.lang-te .skill-card p,
body.lang-te .hero-description {
    font-size: 1.05rem;
    line-height: 1.7;
}
