:root {
  --color-white: rgba(255, 255, 255, 1);
  --color-black: rgba(0, 0, 0, 1);
  --color-cream-50: rgba(252, 252, 249, 1);
  --color-cream-100: rgba(255, 255, 253, 1);
  --color-gray-200: rgba(245, 245, 245, 1);
  --color-gray-300: rgba(167, 169, 169, 1);
  --color-gray-400: rgba(119, 124, 124, 1);
  --color-slate-500: rgba(98, 108, 113, 1);
  --color-brown-600: rgba(94, 82, 64, 1);
  --color-charcoal-700: rgba(31, 33, 33, 1);
  --color-charcoal-800: rgba(38, 40, 40, 1);
  --color-slate-900: rgba(19, 52, 59, 1);
  --color-teal-300: rgba(50, 184, 198, 1);
  --color-teal-400: rgba(45, 166, 178, 1);
  --color-teal-500: rgba(33, 128, 141, 1);
  --color-teal-600: rgba(29, 116, 128, 1);
  --color-teal-700: rgba(26, 104, 115, 1);
  --color-teal-800: rgba(41, 150, 161, 1);
  --color-red-400: rgba(255, 84, 89, 1);
  --color-red-500: rgba(192, 21, 47, 1);
  --color-orange-400: rgba(230, 129, 97, 1);
  --color-orange-500: rgba(168, 75, 47, 1);
  --color-brown-600-rgb: 94, 82, 64;
  --color-teal-500-rgb: 33, 128, 141;
  --color-slate-900-rgb: 19, 52, 59;
  --color-slate-500-rgb: 98, 108, 113;
  --color-red-500-rgb: 192, 21, 47;
  --color-red-400-rgb: 255, 84, 89;
  --color-orange-500-rgb: 168, 75, 47;
  --color-orange-400-rgb: 230, 129, 97;
  --color-bg-1: rgba(59, 130, 246, 0.08);
  --color-bg-2: rgba(245, 158, 11, 0.08);
  --color-bg-3: rgba(34, 197, 94, 0.08);
  --color-bg-4: rgba(239, 68, 68, 0.08);
  --color-bg-5: rgba(147, 51, 234, 0.08);
  --color-bg-6: rgba(249, 115, 22, 0.08);
  --color-bg-7: rgba(236, 72, 153, 0.08);
  --color-bg-8: rgba(6, 182, 212, 0.08);
  --color-background: var(--color-cream-50);
  --color-surface: var(--color-cream-100);
  --color-text: var(--color-slate-900);
  --color-text-secondary: var(--color-slate-500);
  --color-primary: var(--color-teal-500);
  --color-primary-hover: var(--color-teal-600);
  --color-primary-active: var(--color-teal-700);
  --color-secondary: rgba(var(--color-brown-600-rgb), 0.12);
  --color-secondary-hover: rgba(var(--color-brown-600-rgb), 0.2);
  --color-secondary-active: rgba(var(--color-brown-600-rgb), 0.25);
  --color-border: rgba(var(--color-brown-600-rgb), 0.2);
  --color-btn-primary-text: var(--color-cream-50);
  --color-card-border: rgba(var(--color-brown-600-rgb), 0.12);
  --color-card-border-inner: rgba(var(--color-brown-600-rgb), 0.12);
  --color-error: var(--color-red-500);
  --color-success: var(--color-teal-500);
  --color-warning: var(--color-orange-500);
  --color-info: var(--color-slate-500);
  --color-focus-ring: rgba(var(--color-teal-500-rgb), 0.4);
  --color-select-caret: rgba(var(--color-slate-900-rgb), 0.8);
  --focus-ring: 0 0 0 3px var(--color-focus-ring);
  --focus-outline: 2px solid var(--color-primary);
  --status-bg-opacity: 0.15;
  --status-border-opacity: 0.25;
  --font-family-base: "FKGroteskNeue", "Geist", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-family-mono: "Berkeley Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --font-size-xs: 11px;
  --font-size-sm: 12px;
  --font-size-base: 14px;
  --font-size-md: 14px;
  --font-size-lg: 16px;
  --font-size-xl: 18px;
  --font-size-2xl: 20px;
  --font-size-3xl: 24px;
  --font-size-4xl: 30px;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 550;
  --font-weight-bold: 600;
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --letter-spacing-tight: -0.01em;
  --space-0: 0;
  --space-1: 1px;
  --space-2: 2px;
  --space-4: 4px;
  --space-6: 6px;
  --space-8: 8px;
  --space-10: 10px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;
  --radius-sm: 6px;
  --radius-base: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-full: 9999px;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.15), inset 0 -1px 0 rgba(0, 0, 0, 0.03);
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --ease-standard: cubic-bezier(0.16, 1, 0.3, 1);
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-family-base);
}

body {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    color: #e2e8f0;
    overflow-x: hidden;
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
}

/* Custom Portfolio Styles */

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: #e2e8f0;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
    color: #06b6d4;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #e2e8f0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 2rem;
}

.circuit-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.05;
    background-image: url('https://pplx-res.cloudinary.com/image/upload/v1762883916/pplx_project_search_images/a5dce885f29457be3e8e303a27819d72cac152e1.png');
    background-size: cover;
    background-position: center;
    pointer-events: none;
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(59, 130, 246, 0.5);
    border-radius: 50%;
    animation: float 6s infinite ease-in-out;
}

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

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    background: linear-gradient(135deg, #3b82f6, #06b6d4, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: #94a3b8;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    cursor: pointer;
}

.scroll-indicator svg {
    width: 30px;
    height: 30px;
    color: #06b6d4;
}

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

/* Section Styles */
section {
    min-height: 100vh;
    padding: 5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.section-title.visible {
    opacity: 1;
    transform: translateY(0);
}

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

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease 0.2s;
}

.about-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-image {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 4px solid #3b82f6;
    background: linear-gradient(135deg, #1e293b, #334155);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.3);
    justify-self: center;
}

.about-text h3 {
    color: #06b6d4;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.about-text p {
    color: #cbd5e1;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.highlight-card {
    background: rgba(30, 41, 59, 0.5);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    text-align: center;
    transition: all 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-5px);
    border-color: #3b82f6;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.2);
}

.highlight-card h4 {
    color: #06b6d4;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.highlight-card p {
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Experience Section */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #3b82f6, #06b6d4);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(odd) .experience-card {
    margin-left: auto;
    margin-right: 2rem;
}

.timeline-item:nth-child(even) .experience-card {
    margin-right: auto;
    margin-left: 2rem;
}

.experience-card {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    width: calc(50% - 2rem);
    transition: all 0.3s ease;
    position: relative;
}

.experience-card::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    background: #3b82f6;
    border-radius: 50%;
    border: 3px solid #0f172a;
    transform: translateY(-50%);
}

.timeline-item:nth-child(odd) .experience-card::before {
    left: -2.6rem;
}

.timeline-item:nth-child(even) .experience-card::before {
    right: -2.6rem;
}

.experience-card:hover {
    transform: translateY(-5px);
    border-color: #3b82f6;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.2);
}

.experience-card h3 {
    color: #06b6d4;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.experience-card .company {
    color: #3b82f6;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.experience-card .duration {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.experience-card p {
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.experience-card ul {
    list-style: none;
    padding-left: 0;
}

.experience-card ul li {
    color: #94a3b8;
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.experience-card ul li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: #06b6d4;
}

/* Education Section */
.education-card {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    max-width: 700px;
    margin: 0 auto;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.education-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.education-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.2);
}

.education-card h3 {
    color: #06b6d4;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.education-card .university {
    color: #3b82f6;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.education-card .duration {
    color: #64748b;
    margin-bottom: 1.5rem;
}

.coursework-toggle {
    background: none;
    border: 1px solid #3b82f6;
    color: #06b6d4;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.coursework-toggle:hover {
    background: rgba(59, 130, 246, 0.1);
}

.coursework {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.5rem;
    margin-top: 1rem;
}

.coursework.show {
    display: grid;
}

.coursework li {
    color: #94a3b8;
    padding: 0.5rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 4px;
    list-style: none;
    font-size: 0.9rem;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease 0.2s;
}

.skills-grid.visible {
    opacity: 1;
    transform: translateY(0);
}

.skill-category {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
}

.skill-category:hover {
    border-color: #3b82f6;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.2);
}

.skill-category h3 {
    color: #06b6d4;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-tag {
    background: rgba(59, 130, 246, 0.2);
    color: #e2e8f0;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
    cursor: default;
}

.skill-tag:hover {
    transform: scale(1.05);
    background: rgba(59, 130, 246, 0.3);
    border-color: #3b82f6;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.project-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: #3b82f6;
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.3);
}

    /* Project photos gallery inside project cards */
    .project-photos {
        margin-top: 0.9rem;
        display: flex;
        gap: 0.75rem;
        align-items: center;
    }

    .project-photos a {
        display: inline-block;
        border-radius: 8px;
        overflow: hidden;
        border: 1px solid rgba(255,255,255,0.04);
    }

    .project-photos img {
        display: block;
        width: 220px;
        max-width: 38vw;
        height: auto;
        object-fit: cover;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .project-photos a:hover img {
        transform: scale(1.03);
        box-shadow: 0 8px 24px rgba(2,6,23,0.4);
    }

    @media (max-width: 700px) {
        .project-photos img {
            width: 140px;
            max-width: 48vw;
        }
    }

.project-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #1e293b, #334155);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #3b82f6;
    position: relative;
    overflow: hidden;
}

.project-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(6, 182, 212, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-image::after {
    opacity: 1;
}

.project-content {
    padding: 1.5rem;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.project-card h3 {
    color: #06b6d4;
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.project-date {
    color: #64748b;
    font-size: 0.85rem;
}

.project-card p {
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: rgba(6, 182, 212, 0.2);
    color: #06b6d4;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

/* Extra Curricular Section */
.extracurricular-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.activity-card {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

.activity-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.activity-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #06b6d4, #3b82f6);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.activity-card:hover {
    transform: translateY(-8px);
    border-color: #3b82f6;
    box-shadow: 0 12px 24px rgba(59, 130, 246, 0.2);
}

.activity-card:hover::before {
    transform: translateX(0);
}

.activity-card h3 {
    color: #06b6d4;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.activity-card .organization {
    color: #3b82f6;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.activity-card .duration {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.activity-card p {
    color: #cbd5e1;
    margin-bottom: 1rem;
    font-weight: 500;
}

.activity-card ul {
    list-style: none;
    padding-left: 0;
}

.activity-card ul li {
    color: #94a3b8;
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.activity-card ul li:hover {
    color: #cbd5e1;
    padding-left: 2rem;
}

.activity-card ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #06b6d4;
}

/* Awards (Education) */
.awards {
    margin-top: 1rem;
}

.awards h4 {
    color: var(--color-text);
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
}

.awards-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.award-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(15,23,42,0.45);
    color: var(--color-teal-300);
    padding: 0.35rem 0.7rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid rgba(var(--color-teal-500-rgb), 0.08);
}

.award-badge::before {
    content: '🏅';
    display: inline-block;
    transform: translateY(-1px);
    opacity: 0.95;
}

.award-badge small {
    opacity: 0.85;
    font-weight: 500;
    font-size: 0.8rem;
    color: var(--color-text);
}

.award-badge:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(2,6,23,0.45);
}

/* Contact Section */
.contact-content {
    max-width: 700px;
    margin: 0 auto;
    width: 100%;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease 0.2s;
}

.contact-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.contact-form {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #06b6d4;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 6px;
    color: #e2e8f0;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input.error,
.form-group textarea.error {
    border-color: #ef4444;
}

.error-message {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 0.3rem;
    display: none;
}

.error-message.show {
    display: block;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.contact-info {
    margin-top: 2rem;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #06b6d4;
    text-decoration: none;
    border: 1px solid rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-link:hover {
    background: rgba(59, 130, 246, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

/* Contact Page */
body.contact-page {
    font-family: "Space Grotesk", var(--font-family-base);
    background: radial-gradient(circle at 12% 12%, rgba(14, 116, 144, 0.35), transparent 50%),
        radial-gradient(circle at 88% 20%, rgba(234, 179, 8, 0.2), transparent 55%),
        linear-gradient(135deg, #0b1b2b 0%, #0f2d2a 45%, #3b1d1b 100%);
}

body.contact-page::before,
body.contact-page::after {
    content: "";
    position: fixed;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    z-index: 0;
    pointer-events: none;
}

body.contact-page::before {
    top: -160px;
    left: -140px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.5), rgba(14, 116, 144, 0.1));
}

body.contact-page::after {
    bottom: -220px;
    right: -120px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.4), rgba(239, 68, 68, 0.1));
}

.contact-shell {
    min-height: 100vh;
    padding: 8rem 2rem 4rem;
    position: relative;
    z-index: 1;
}

.contact-hero {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    align-items: center;
}

body.contact-page .contact-hero {
    min-height: auto;
    padding: 0;
}

.contact-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.28em;
    font-size: 0.75rem;
    color: rgba(226, 232, 240, 0.7);
    margin-bottom: 1rem;
}

.contact-hero h1 {
    font-size: clamp(2.6rem, 6vw, 4.2rem);
    line-height: 1.05;
    margin-bottom: 1.2rem;
    color: #f8fafc;
}

.contact-lead {
    font-size: 1.05rem;
    color: rgba(226, 232, 240, 0.75);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.primary-link,
.ghost-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.primary-link {
    background: linear-gradient(135deg, #38bdf8, #22d3ee);
    color: #0f172a;
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.25);
}

.primary-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(56, 189, 248, 0.35);
}

.ghost-link {
    border: 1px solid rgba(226, 232, 240, 0.3);
    color: #e2e8f0;
}

.ghost-link:hover {
    border-color: rgba(56, 189, 248, 0.6);
    color: #38bdf8;
    transform: translateY(-2px);
}

.contact-card-grid {
    display: grid;
    gap: 1.5rem;
}

.contact-card {
    display: flex;
    gap: 1.2rem;
    padding: 1.6rem;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    text-decoration: none;
    color: #e2e8f0;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.35);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-6px);
    border-color: rgba(56, 189, 248, 0.6);
    box-shadow: 0 24px 50px rgba(2, 6, 23, 0.45);
}

.contact-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.35), rgba(16, 185, 129, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #38bdf8;
    flex-shrink: 0;
}

.contact-card-body h3 {
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
    color: #f8fafc;
}

.contact-card-body p {
    color: rgba(226, 232, 240, 0.75);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.contact-card-body span {
    color: #38bdf8;
    font-weight: 600;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .contact-shell {
        padding-top: 7rem;
    }

    .contact-hero {
        gap: 2rem;
    }
}

/* Success Message */
.success-message {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.5);
    color: #4ade80;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    display: none;
}

.success-message.show {
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        flex-direction: column;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(10px);
        padding: 5rem 2rem;
        transition: right 0.3s ease;
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image {
        width: 200px;
        height: 200px;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item:nth-child(odd) .experience-card,
    .timeline-item:nth-child(even) .experience-card {
        width: calc(100% - 3rem);
        margin-left: 3rem;
        margin-right: 0;
    }

    .timeline-item:nth-child(odd) .experience-card::before,
    .timeline-item:nth-child(even) .experience-card::before {
        left: -2.6rem;
        right: auto;
    }

    .skills-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: 3rem 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .navbar {
        padding: 1rem;
    }

    .contact-form {
        padding: 1.5rem;
    }
}

/* Project link badge */
.project-link a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(99, 102, 241, 0.12);
    color: var(--color-primary);
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border: 1px solid rgba(var(--color-teal-500-rgb), 0.12);
    transition: all 0.18s ease;
}

.project-link a::before {
    content: '🔗';
    display: inline-block;
    transform: translateY(-1px);
}

.project-link a:hover {
    transform: translateY(-4px);
    background: rgba(59,130,246,0.14);
    box-shadow: 0 8px 20px rgba(59,130,246,0.12);
}