/* ROOT VARIABLES & RESET */
:root {
    --bg-color: #050505;
    --surface-color: #111111;
    --surface-light: #1a1a1a;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --accent-gold: #e2b857;
    --accent-gold-hover: #ebd08d;
    --accent-gold-glow: rgba(226, 184, 87, 0.25);
    --primary: var(--accent-gold);
    --primary-hover: var(--accent-gold-hover);
    --secondary: #d97706;
    --cyber-skyline-bg: linear-gradient(180deg, #020204 0%, #090918 60%, #1c1109 100%);
    --accent-gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.2);
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Global stars canvas (behind everything) */
#globalStarsCanvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.85;
}

/* Keep content above stars */
body > * {
    position: relative;
    z-index: 1;
}

/* TYPOGRAPHY */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* LAYOUT & UTILITIES */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3.5rem;
    text-align: center;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.section-title span {
    color: var(--primary);
}

/* Ornate section heading (icon + dividers + underline) */
.section-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 3.5rem; /* keep same spacing as original .section-title */
}

.section-title.section-title--ornate {
    margin-bottom: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    position: relative;
}

.section-title-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(226, 184, 87, 0.08);
    border: 1px solid rgba(226, 184, 87, 0.14);
    box-shadow: 0 10px 24px rgba(226, 184, 87, 0.06);
    color: var(--primary);
    flex: 0 0 auto;
}

.section-title-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.section-heading-row {
    width: min(820px, 100%);
    height: 14px;
    position: relative;
    opacity: 0.9;
}

.section-heading-row::before,
.section-heading-row::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 38%;
    height: 1px;
    transform: translateY(-50%);
    background: linear-gradient(to right, transparent, rgba(226, 184, 87, 0.55), transparent);
}

.section-heading-row::before {
    left: 0;
}

.section-heading-row::after {
    right: 0;
}

/* Filigree motifs */
.section-heading-row {
    background-image:
        radial-gradient(circle at 50% 50%, rgba(226, 184, 87, 0.7) 0 1px, transparent 2px),
        radial-gradient(circle at 45% 50%, rgba(226, 184, 87, 0.35) 0 1px, transparent 2px),
        radial-gradient(circle at 55% 50%, rgba(226, 184, 87, 0.35) 0 1px, transparent 2px),
        radial-gradient(circle at 40% 50%, rgba(226, 184, 87, 0.2) 0 1px, transparent 2px),
        radial-gradient(circle at 60% 50%, rgba(226, 184, 87, 0.2) 0 1px, transparent 2px);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 220px 14px;
}

.section-heading-underline {
    width: 92px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(226, 184, 87, 0.95), transparent);
    box-shadow: 0 10px 24px rgba(226, 184, 87, 0.12);
}

@media (max-width: 768px) {
    .section-heading {
        gap: 0.75rem;
        margin-bottom: 2.5rem;
    }

    .section-title-icon {
        width: 32px;
        height: 32px;
        border-radius: 12px;
    }

    .section-heading-row {
        height: 10px;
        background-size: 180px 10px;
    }

    .section-heading-row::before,
    .section-heading-row::after {
        width: 30%;
    }

    .section-heading-underline {
        width: 78px;
    }
}

/* Mobile-specific: tighten and scale down ornate section headings */
@media (max-width: 480px) {
    .section-heading {
        gap: 0.5rem;
        margin-bottom: 1.8rem;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 1.6rem;
        text-align: center;
    }

    .section-title.section-title--ornate {
        font-size: 1.6rem;
        gap: 0.6rem;
    }

    .section-title-icon {
        width: 28px;
        height: 28px;
        border-radius: 10px;
    }

    .section-heading-row {
        height: 8px;
        background-size: 120px 8px;
    }

    .section-heading-row::before,
    .section-heading-row::after {
        width: 22%;
    }

    .section-heading-underline {
        width: 56px;
        height: 2px;
    }
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.mt-12 {
    margin-top: 3rem;
}

/* COMPONENTS */
.btn {
    display: inline-block;
    padding: 0.95rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: var(--accent-gold);
    color: #050505;
    box-shadow: 0 4px 20px var(--accent-gold-glow);
    border: 1px solid rgba(226, 184, 87, 0.3);
}

.btn-primary:hover {
    background: var(--accent-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(226, 184, 87, 0.45);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-main);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    font-weight: 600;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.05);
}

.card {
    background: var(--surface-color);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 2rem;
    transition: var(--transition);
}

.card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    transform: translateY(-4px);
}

.icon {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.icon-sm {
    width: 18px;
    height: 18px;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1rem 0;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-item {
    color:whitesmoke;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

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

.nav-social-icons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: 0.75rem;
}

.nav-icon-link {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color:whitesmoke;
    transition: var(--transition);
    text-decoration: none;
}

.nav-icon-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(226, 184, 87, 0.08);
    transform: translateY(-2px);
}

.nav-icon-svg {
    width: 18px;
    height: 18px;
    display: block;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    transition: var(--transition);
}

.menu-toggle.open .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.open .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* HERO SECTION */
.hero {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 4rem 2rem;
    overflow: visible;
    margin-top: 80px;
    background-color: #020204;
}

/* 3D PARALLAX BACKGROUND LAYERS */
.hero-bg-parallax {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
    perspective: 1000px;
}

.hero-bg-sky {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--cyber-skyline-bg);
    z-index: 1;
}

.hero-bg-stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    opacity: 0.85;
}

.hero-bg-layer {
    position: absolute;
    bottom: -20px;
    left: -5%;
    width: 110%;
    height: 65%;
    background-position: bottom center;
    background-repeat: no-repeat;
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-bg-skyline-back {
    z-index: 3;
    height: 50%;
    bottom: -1px;
    opacity: 0.6;
}

.hero-bg-skyline-front {
    z-index: 4;
    height: 45%;
    bottom: -5px;
}

.skyline-back-svg,
.skyline-front-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.hero-bg-glow {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(5, 5, 5, 0.95) 0%, rgba(5, 5, 5, 0) 100%);
    z-index: 5;
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    z-index: 10;
    margin: 0 auto;
    position: relative;
}

.hero-content {
    text-align: left;
    padding-top: 2rem;
}

.greeting {
    color: var(--accent-gold);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.2rem;
    line-height: 1.25;
}

.name-display {
    color: #ffffff;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3.2rem, 6.5vw, 4.8rem);
    font-weight: 600;
    letter-spacing: -0.5px;
    display: block;
    margin-bottom: 0.2rem;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.subtitle-role {
    color: var(--text-main);
    display: block;
    margin-bottom: 0;
    font-size: 2.8rem;
    font-weight: 600;
}

.hero-subtitle {
    color:rgb(246, 244, 242);
    font-size: 1.05rem;
    max-width: 550px;
    margin: 0 0 2rem 0;
    line-height: 1.7;
    text-align: justify;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

/* PROFILE CARD */
.hero-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 0;
    margin-top: -2rem;
}

/* 3D PROFILE DESIGN */
.profile-3d-container {
    position: relative;
    width: 450px;
    height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Glassmorphism frame with glow */
.profile-3d-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 360px;
    height: 450px;
    background: linear-gradient(135deg, rgba(245, 245, 245, 0.08) 0%, rgba(220, 220, 220, 0.06) 100%);
    border: 2px solid rgba(220, 220, 220, 0.25);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 
        0 0 40px rgba(200, 200, 200, 0.15),
        inset 0 0 30px rgba(255, 255, 255, 0.08),
        0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 1;
    pointer-events: none;
}

/* Glow effect around frame */
.profile-3d-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 370px;
    height: 460px;
    background: radial-gradient(ellipse at center, rgba(220, 220, 220, 0.12) 0%, transparent 70%);
    border-radius: 20px;
    filter: blur(25px);
    z-index: 0;
    pointer-events: none;
    animation: glowPulse 4s ease-in-out infinite;
}

/* Subtle glow pulse animation */
@keyframes glowPulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* Shared geometry layer base - Hidden for glassmorphism */
.profile-geo-emblem {
    display: none;
}

/* Back geometry — behind portrait */
.profile-geo-back {
    z-index: 1;
}

/* Front geometry — overlaps portrait edges */
.profile-geo-front {
    z-index: 3;
}

.geo-emblem-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.profile-image-container {
    position: relative;
    width: 400px;
    height: 540px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 15px 35px rgba(200, 200, 200, 0.15));
    transition: filter 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    margin-bottom: 90px;
}

.profile-image-3d {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(200, 200, 200, 0.1));
    transition: var(--transition);
    position: relative;
    z-index: 2;
}



.glass-status-card {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%) translateZ(80px);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1.5rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    z-index: 80;
}

.status-indicator {
    width: 10px;
    height: 10px;
    background-color: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 10px #22c55e;
    animation: status-pulse 2s ease-in-out infinite;
}

.status-text {
    font-size: 0.9rem;
    color: var(--text-main);
    font-weight: 500;
}

@keyframes status-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
        transform: scale(1.1);
    }
}





/* TYPING ANIMATION */
.type-wrap {
    display: inline-block;
    min-height: 1.2em;
}

.cursor {
    display: inline-block;
    width: 3px;
    background-color: var(--accent-gold);
    animation: blink 1s infinite;
    margin-left: 5px;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}



/* ABOUT SECTION */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    text-align: justify;
}

.stat-card {
    background: var(--surface-light);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-subtle);
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.05);
    transform: translateY(-2px);
}

.stat-card h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* EDUCATION SECTION */
.edu-qualifications {
    background: transparent;
}

.edu-qualifications .eq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
    align-items: stretch;
}

.edu-qualifications .eq-card {
    /* Inherits base look from .card for consistency */
    padding: 1.75rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

/* Reduce excessive pill rounding in the education section */
.edu-qualifications .eq-card {
    border-radius: 2px; /* slightly softer than .card */
}

.edu-qualifications .eq-line {
    border-radius: 2px; /* reduce from 14px to subtler rounding */
}

.edu-qualifications .eq-icon-wrap {
    border-radius: 2px; /* reduce icon container rounding */
}

.edu-qualifications .eq-value {
    border-radius: 2px; /* make value badges less pill-like */
}

.edu-qualifications .eq-badge {
    border-radius: 2px; /* reduce badge pill rounding */
}

.edu-qualifications .eq-card-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.9rem;
    margin-bottom: 0.15rem;
}

.edu-qualifications .eq-card-title {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
    letter-spacing: -0.2px;
}

.edu-qualifications .eq-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(226, 184, 87, 0.12);
    border: 1px solid rgba(226, 184, 87, 0.18);
    box-shadow: 0 10px 24px rgba(226, 184, 87, 0.08);
    font-size: 1.05rem;
    line-height: 1;
}

.edu-qualifications .eq-subtitle {
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.98rem;
    margin: 0;
    line-height: 1.65;
}

.edu-qualifications .eq-subtitle--tight {
    margin-top: -0.35rem;
}

.edu-qualifications .eq-subtitle--mb0 {
    margin-bottom: 0;
}

.edu-qualifications .eq-lines {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.65rem;
}

.edu-qualifications .eq-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0.85rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.edu-qualifications .eq-line strong {
    color: var(--text-main);
    font-weight: 600;
    font-family: var(--font-body);
}

.edu-qualifications .eq-value {
    color: var(--text-main);
    font-family: var(--font-body);
    white-space: normal;
    font-weight: 700;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: rgba(226, 184, 87, 0.12);
    border: 1px solid rgba(226, 184, 87, 0.18);
    max-width: 62%;
    text-align: right;
}

.edu-qualifications .eq-value--blue {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.25);
}

.edu-qualifications .eq-value--green {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.25);
}

.edu-qualifications .eq-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.edu-qualifications .eq-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    font-family: var(--font-body);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.04);
}

.edu-qualifications .eq-badge--gpa {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.25);
}

.edu-qualifications .eq-badge--status {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.25);
}

/* Enforce reduced rounding for education items (overrides earlier rules) */
.edu-qualifications .eq-line,
.edu-qualifications .eq-icon-wrap,
.edu-qualifications .eq-value,
.edu-qualifications .eq-badge {
    border-radius: 8px !important;
}


/* SKILLS SECTION */
.skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.skill-header h3 {
    font-size: 1.2rem;
}

.skill-list {
    list-style: none;
}

.skill-list li {
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
}

.skill-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary);
}

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

.project-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-img {
    height: 200px;
    width: 100%;
    overflow: hidden;
}

.img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    transition: var(--transition);
}

.project-card:hover .img-placeholder {
    transform: scale(1.05);
}

.project-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    background: rgba(226, 184, 87, 0.1);
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-details {
    flex: 1;
}

.project-details p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.project-details strong {
    color: var(--text-main);
}

.features {
    padding-left: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
}

.link-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

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

.link-btn.primary {
    color: var(--accent-gold);
}

/* EXPERIENCE SECTION */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: var(--border-subtle);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-dot {
    position: absolute;
    left: -2.4rem;
    top: 1.5rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--bg-color);
}

.timeline-content h3 {
    font-size: 1.3rem;
    color: var(--text-main);
}

.timeline-date {
    display: inline-block;
    color: var(--primary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.timeline-achievements {
    padding-left: 1.2rem;
    color: var(--text-muted);
}

.timeline-achievements li {
    margin-bottom: 0.5rem;
}

.building-card {
    border-left: 4px solid var(--secondary);
}

.flex-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.flex-header h3 {
    font-size: 1.3rem;
}

.pulse-ring {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--secondary);
    box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(217, 119, 6, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(217, 119, 6, 0);
    }
}

.building-card p {
    color: var(--text-muted);
}

/* MESSAGE BOX SECTION */
.message-box-section {
    background: transparent;
    border-top: none;
    border-bottom: none;
}

.message-box-card {
    max-width: 700px;
    margin: 0 auto;
    background: var(--surface-color);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.message-box-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.message-box-header h2 {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.message-box-header h2 span {
    color: var(--primary);
}

.message-box-header p {
    color: whitesmoke;
    font-size: 0.95rem;
    font-weight: 500;
    text-align:center;
}

.message-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group input,
.form-group textarea {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 1rem 1.2rem;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    background: rgba(226, 184, 87, 0.08);
    box-shadow: 0 0 0 4px rgba(226, 184, 87, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: var(--font-body);
}

.form-error {
    color: #ef4444;
    font-size: 0.85rem;
    display: none;
}

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

.form-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.submit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    position: relative;
    font-size: 1rem;
    padding: 1.1rem 2rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.btn-loader {
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-loader.hidden {
    display: none;
}

.spinner {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.form-status {
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-status.hidden {
    display: none;
}

.form-status.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.form-status.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-message {
    color: var(--text-main);
    font-weight: 500;
}

.form-status.success .status-message {
    color: #22c55e;
}

.form-status.error .status-message {
    color: #ef4444;
}

/* CONTACT SECTION */
.contact {
    background: transparent;
}

.contact-box {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    background: var(--surface-color);
    border: 1px solid var(--border-subtle);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.contact-box .section-title {
    margin-bottom: 1.5rem;
}

.contact-text {
    color:whitesmoke;
    margin-bottom: 2.5rem;
    font-size: 1rem;
    line-height: 1.7;
    text-align:center;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1.1rem 1.5rem;
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
    word-break: break-word;
    white-space: normal;
    overflow-wrap: break-word;
}

.contact-item span {
    max-width: 100%;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.contact-item:hover {
    background: rgba(59, 130, 246, 0.12);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

/* FOOTER */
footer {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-subtle);
    background: var(--surface-color);
}

/* FADE-IN & REVEAL ANIMATIONS */
.fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal {
    opacity: 0;
    animation: revealUp 0.8s ease forwards;
}

.reveal-delay-1 {
    opacity: 0;
    animation: revealUp 0.8s ease 0.2s forwards;
}

.reveal-delay-2 {
    opacity: 0;
    animation: revealUp 0.8s ease 0.4s forwards;
}

.reveal-delay-3 {
    opacity: 0;
    animation: revealUp 0.8s ease 0.6s forwards;
}

@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CERTIFICATIONS SECTION */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.cert-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition);
}

.cert-card:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: 0 16px 50px rgba(59, 130, 246, 0.25);
}

.cert-image-wrapper {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: var(--surface-light);
}

.cert-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.cert-card:hover .cert-image {
    transform: scale(1.08);
}

.cert-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(59, 130, 246, 0.15);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.cert-card:hover .cert-overlay {
    opacity: 1;
}

.verify-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--primary);
    color: #fff;
    padding: 0.8rem 1.4rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.verify-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(59, 130, 246, 0.5);
}

.cert-content {
    padding: 1.8rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cert-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
    color: var(--text-main);
}

.cert-institute {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.cert-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: auto;
    flex: 1;
    text-align: justify;
}

.cert-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.2rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--border-subtle);
}

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

.cert-badge {
    color: var(--secondary);
    transition: var(--transition);
}

.cert-card:hover .cert-badge {
    color: var(--primary);
    transform: scale(1.2) rotate(10deg);
}

/* RESPONSIVE DESIGN */
/* Extra small devices (mobile phones) -320px to 480px */
@media (max-width: 480px) {
    .container {
        padding: 0 1.2rem;
    }

    .hero {
        min-height: auto;
        padding: 2rem 1.2rem;
        margin-top: 80px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-content {
        text-align:center;
        padding-top: 0;
    }

    .hero-title {
        font-size: 1.6rem;
        line-height: 1.3;
        margin-bottom: 0.8rem;
    }

    .name-display {
        font-size: 3.1rem;
        margin-bottom: 0.1rem;
    }

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

    .hero-subtitle {
        margin: 0 auto 1.5rem auto;
        font-size: 0.95rem;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
        max-width: none;
        margin: 0 auto;
        gap: 0.8rem;
    }

    .btn {
        width: 100%;
        padding: 0.85rem 1.5rem;
        font-size: 0.9rem;
    }

    .hero-image-wrapper {
        padding-top: 0;
        margin-top: 0;
    }

    /* Profile Card - Optimized for Mobile */
    .profile-3d-container {
        width: calc(100vw - 2.4rem);
        max-width: 300px;
        height: auto;
        min-height: 340px;
        margin: 0 auto;
    }

    .profile-3d-container::before {
        width: 260px;
        height: 310px;
    }

    .profile-3d-container::after {
        width: 270px;
        height: 320px;
    }

    .profile-image-container {
        width: 300px;
        height: 440px;
    }

    .glass-status-card {
        position: absolute;
        bottom: -50px;
        left: 50%;
        transform: translateX(-50%);
        margin-top: 0;
        padding: 0.5rem 1.2rem;
        font-size: 0.75rem;
        gap: 0.6rem;
        z-index: 90;
    }

    .status-indicator {
        width: 8px;
        height: 8px;
    }

    .status-text {
        font-size: 0.75rem;
    }

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

    .project-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1.2rem;
    }

    .project-card {
        max-width: 100%;
    }

    .project-img {
        height: 160px;
    }

    .project-content {
        padding: 1.2rem;
    }

    .certifications-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1.2rem;
    }

    .cert-image-wrapper {
        height: 200px;
    }

    .contact-item {
        flex-wrap: wrap;
        padding: 0.8rem;
        font-size: 0.85rem;
    }

    .contact-item svg {
        flex-shrink: 0;
        width: 18px;
        height: 18px;
    }
}

/* Small to medium tablets - 481px to 768px */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .grid {
        gap: 1.5rem;
    }

    .navbar {
        padding: 0.8rem 0;
    }

    .nav-container {
        padding: 0 1.25rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--surface-color);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        text-align: left;
        border-bottom: 1px solid var(--border-subtle);
        z-index: 99;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-social-icons {
        margin-left: 0;
        width: 100%;
        justify-content: flex-start;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }

    .edu-qualifications .eq-grid {
        grid-template-columns: 1fr;
    }

    .edu-qualifications .eq-card {
        padding: 1.05rem;
    }

    .edu-qualifications .eq-card-title {
        font-size: 1rem;
    }

    .edu-qualifications .eq-subtitle {
        font-size: 0.92rem;
    }

    .edu-qualifications .eq-line {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .edu-qualifications .eq-value {
        max-width: 100%;
        text-align: left;
    }

    .edu-qualifications .eq-badge {
        font-size: 0.82rem;
    }

    .stat-card {
        padding: 1.2rem 1rem;
    }

    .stat-card h3 {
        font-size: 1.5rem;
    }

    .hero {
        min-height: auto;
        padding: 2.5rem 1.5rem;
        margin-top: 80px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-content {
        text-align: center;
        padding-top: 0;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.4;
    }

    .name-display {
        font-size: 3.1rem;
    }

    .subtitle-role {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        margin: 0 auto 2rem auto;
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .hero-image-wrapper {
        padding-top: 1rem;
        margin-top: 0;
    }

    /* Profile Card - Tablet Optimized */
    .profile-3d-container {
        width: 100%;
        max-width: 410px;
        height: auto;
        min-height: 460px;
        margin: 0 auto;
        padding-bottom: 50px;
    }

    .profile-3d-container::before {
        width: 340px;
        height: 400px;
    }

    .profile-3d-container::after {
        width: 350px;
        height: 410px;
    }

    .profile-image-container {
        width: 300px;
        height:500px;
        margin-bottom: 50px;
    }

    .glass-status-card {
        position: absolute;
        bottom: 40px;
        left: 50%;
        transform: translateX(-50%);
        margin-top:0px;
        padding: 0.6rem 1.3rem;
        font-size: 0.85rem;
        gap: 0.7rem;
        z-index: 90;
    }

    .message-box-card {
        margin: 0 1.5rem;
    }

    .section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 2.2rem;
        margin-bottom: 2.5rem;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .timeline {
        padding-left: 1.5rem;
    }

    .timeline-dot {
        left: -1.9rem;
    }

    .project-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    .certifications-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    .cert-card:hover {
        transform: translateY(-4px);
    }

    .contact-methods {
        gap: 1rem;
    }

    .contact-item {
        padding: 1rem;
        font-size: 0.95rem;
    }
}