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

/* --- DESIGN SYSTEM & CSS VARIABLES (ARUP / AECOM INSPIRED) --- */
:root {
    --primary: #0f172a;       /* Deep Midnight Slate */
    --primary-light: #2563eb; /* AECOM Engineering Blue */
    --primary-dark: #020617;  /* Deepest Slate */
    --accent: #0d9488;        /* Bentley Teal Accent */
    --bg-light: #f8fafc;      /* Ice/Slate White */
    --bg-card-light: rgba(255, 255, 255, 0.75);
    --text-light: #0f172a;
    --text-muted-light: #475569;
    --border-light: rgba(226, 232, 240, 0.8);
    --glass-shadow: 0 10px 40px -10px rgba(15, 23, 42, 0.08);
    --glow-shadow: 0 0 20px rgba(13, 148, 136, 0.15);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    /* Active variables defaulting to light mode */
    --bg-body: var(--bg-light);
    --bg-card: var(--bg-card-light);
    --text-color: var(--text-light);
    --text-muted: var(--text-muted-light);
    --border-color: var(--border-light);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --hero-overlay: rgba(15, 23, 42, 0.55);
}

/* --- DARK MODE PALETTE --- */
[data-theme="dark"] {
    --bg-body: #050505;       /* Pitch Dark */
    --bg-card: rgba(18, 18, 22, 0.65);
    --text-color: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(15, 15, 20, 0.55);
    --glass-border: rgba(255, 255, 255, 0.07);
    --glass-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.8);
    --primary: #3b82f6;
    --primary-light: #60a5fa;
    --primary-dark: #020617;
    --accent: #00f2fe;        /* Neon Cyan */
    --glow-shadow: 0 0 30px rgba(0, 242, 254, 0.3);
    --hero-overlay: rgba(5, 5, 5, 0.85);
}

/* --- BASE STYLING --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-color);
    transition: var(--transition);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
}

button, .btn {
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-body);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* --- SECURITY: PREVENT TEXT SELECTION --- */
body.secure-mode {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
body.secure-mode img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

/* --- GLASSMORPHISM --- */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 20px;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.glass:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.9), 0 0 25px rgba(0, 242, 254, 0.05);
}

/* --- CONTAINER & SECTIONS --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 7rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 3rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.85rem;
    margin-bottom: 1rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 650px;
    margin: 0 auto;
    font-weight: 500;
}

/* --- NAVIGATION BAR --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    transition: var(--transition);
}

header.scrolled .container {
    height: 75px;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo .name {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: var(--primary-light);
    letter-spacing: -0.5px;
}

.logo .sub {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.75rem;
    align-items: center;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color);
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-light);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.theme-toggle:hover {
    background: var(--border-color);
    color: var(--accent);
}

.theme-toggle .fa-sun { display: none; }
[data-theme="dark"] .theme-toggle .fa-sun { display: block; }
[data-theme="dark"] .theme-toggle .fa-moon { display: none; }

.menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--text-color);
}

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    min-height: 750px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 90px;
    background-size: cover;
    background-position: center;
    /* Corporate Blueprint image */
    background-image: linear-gradient(var(--hero-overlay), var(--hero-overlay)), url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?q=80&w=1600&auto=format&fit=crop');
}

.hero-bg-blueprint {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 50px 50px;
    background-image: 
        linear-gradient(to right, rgba(6, 182, 212, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(6, 182, 212, 0.05) 1px, transparent 1px);
    z-index: 1;
    pointer-events: none;
}

.hero-container {
    width: 100%;
    z-index: 5;
}

.hero-grid-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-text-col {
    color: #ffffff;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(13, 148, 136, 0.2);
    border: 1px solid var(--accent);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 2rem;
    box-shadow: 0 0 15px rgba(13, 148, 136, 0.1);
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    font-weight: 800;
    letter-spacing: -2px;
    background: linear-gradient(to right, #ffffff, #e2e8f0, var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--accent);
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.5px;
}

.hero-desc {
    font-size: 1.15rem;
    margin-bottom: 3rem;
    color: #e2e8f0;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.05rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid transparent;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #ffffff;
    box-shadow: 0 10px 20px -5px rgba(0, 242, 254, 0.3);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 25px -5px rgba(0, 242, 254, 0.5);
    background: linear-gradient(135deg, var(--accent), var(--primary));
}

.btn-secondary {
    background: transparent;
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(0, 242, 254, 0.05);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.15);
    transform: translateY(-3px) scale(1.02);
}

/* Statistics row in Hero */
.hero-stats-row {
    display: flex;
    gap: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 2rem;
}

.hero-stat-box {
    display: flex;
    flex-direction: column;
}

.hero-stat-box .num-counter {
    font-size: 3rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: var(--accent);
    line-height: 1;
    text-shadow: 0 0 20px rgba(13, 148, 136, 0.2);
}

.hero-stat-box .suffix {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
}

.hero-stat-box .label-tech {
    font-size: 2.25rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: #ffffff;
    line-height: 1.3;
}

.hero-stat-box .label {
    font-size: 0.85rem;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
    font-weight: 600;
}

/* Hero profile image with frame */
.hero-image-col {
    display: flex;
    justify-content: center;
    position: relative;
}

.profile-frame {
    position: relative;
    width: 380px;
    height: 480px;
    border-radius: 24px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 5;
    animation: float 6s ease-in-out infinite;
}

.blueprint-tech-lines {
    position: absolute;
    inset: -30px;
    border: 1px dashed rgba(6, 182, 212, 0.25);
    border-radius: 36px;
    pointer-events: none;
    z-index: -1;
}

.blueprint-tech-lines::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    border-top: 3px solid var(--accent);
    border-left: 3px solid var(--accent);
    top: -2px;
    left: -2px;
}

.blueprint-tech-lines::before {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    border-bottom: 3px solid var(--accent);
    border-right: 3px solid var(--accent);
    bottom: -2px;
    right: -2px;
}

.hero-profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

/* --- SPOTLIGHT SECTION --- */
.spotlight-section {
    position: relative;
    z-index: 10;
}

.spotlight-card {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--glass-shadow);
}

.spotlight-img {
    position: relative;
    height: 100%;
    min-height: 350px;
    background-color: var(--primary-dark);
}

.spotlight-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spotlight-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: var(--accent);
    color: #ffffff;
    padding: 0.5rem 1.25rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--glow-shadow);
}

.spotlight-content {
    padding: 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.spotlight-meta {
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1.5px;
    margin-bottom: 0.75rem;
}

.spotlight-content h3 {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.spotlight-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 1.5rem;
}

.spotlight-description {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.spotlight-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.feat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-color);
    font-weight: 500;
}

.feat-item i {
    color: var(--accent);
}

/* --- FEATURED PROJECTS --- */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

/* --- ABOUT SECTION --- */
.about-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 5rem;
    align-items: flex-start;
}

.about-profile-col {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-image-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--border-color);
}

.about-profile-pic {
    width: 100%;
    height: auto;
    display: block;
}

.about-meta-tag {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    white-space: nowrap;
}

.about-cards-sub {
    width: 100%;
}

.about-mini-card {
    padding: 1.5rem;
    border-radius: 16px;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.about-mini-card i {
    font-size: 1.8rem;
    color: var(--primary-light);
    background: rgba(37, 99, 235, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.about-mini-card h5 {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.about-mini-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.about-info-col h3 {
    font-size: 2.25rem;
    color: var(--primary-light);
    margin-bottom: 1.5rem;
}

.about-info-col p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.philosophy-box {
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2.5rem;
    border-left: 4px solid var(--accent);
}

.philosophy-box h4 {
    font-size: 1.15rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.philosophy-box p {
    font-size: 1rem;
    color: var(--text-color);
    font-style: italic;
    margin-bottom: 0;
}

/* --- EDUCATION TIMELINE --- */
.education-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.education-card {
    padding: 2.5rem;
    border-radius: 16px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3rem;
    transition: var(--transition);
    position: relative;
}

.education-card:hover {
    transform: scale(1.02);
    border-color: var(--primary-light);
    box-shadow: var(--glass-shadow);
}

.edu-year {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--accent);
    font-family: 'Outfit', sans-serif;
    min-width: 120px;
}

.edu-details h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.edu-details .inst {
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.edu-details .desc {
    color: var(--text-muted);
    font-size: 1rem;
}

/* --- EXPERIENCE PATH --- */
.timeline {
    max-width: 950px;
    margin: 0 auto;
    position: relative;
}

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

.timeline-item {
    position: relative;
    padding-left: 90px;
    margin-bottom: 5rem;
}

.timeline-dot {
    position: absolute;
    left: 26px;
    top: 5px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-body);
    border: 4px solid var(--primary-light);
    z-index: 2;
    transition: var(--transition);
}

.timeline-item.current .timeline-dot {
    border-color: var(--accent);
    background: var(--accent);
    box-shadow: var(--glow-shadow);
}

.timeline-item:hover .timeline-dot {
    background: var(--accent);
    border-color: var(--accent);
}

.timeline-card {
    padding: 2.5rem;
    border-radius: 20px;
    transition: var(--transition);
}

.timeline-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-light);
    box-shadow: var(--glass-shadow);
}

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

.timeline-header h3 {
    font-size: 1.6rem;
    color: var(--primary-light);
}

.timeline-header .org {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-top: 0.25rem;
}

.timeline-header .badge-current {
    background: rgba(13, 148, 136, 0.1);
    color: var(--accent);
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    border: 1px solid var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-header .duration {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--accent);
}

.timeline-body h4 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.timeline-body ul {
    list-style: none;
}

.timeline-body ul li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.timeline-body ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 800;
}

.timeline-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
}

.tag {
    background: var(--border-color);
    color: var(--text-muted);
    padding: 0.35rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* --- PROJECTS SECTION --- */
.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 0.65rem 1.75rem;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 2.5rem;
}

.project-card {
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--glass-shadow);
    border-color: var(--primary-light);
}

.project-img {
    height: 240px;
    position: relative;
    overflow: hidden;
    background-color: var(--primary-dark);
}

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

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

.project-badge {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.project-details h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.project-details p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 1.25rem;
    margin-top: auto;
}

.project-tech {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 700;
}

.project-link {
    font-size: 0.9rem;
    color: var(--primary-light);
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* --- SKILLS SECTION --- */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
}

.skill-category h3 {
    font-size: 1.75rem;
    color: var(--primary-light);
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.skill-item {
    width: 100%;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
}

.skill-bar {
    height: 10px;
    background: var(--border-color);
    border-radius: 5px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-light), var(--accent));
    border-radius: 5px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- RESEARCH & PUBLICATIONS --- */
.pubs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    max-width: 950px;
    margin: 0 auto;
}

.pub-card {
    padding: 2.5rem;
    border-radius: 20px;
    transition: var(--transition);
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
}

.pub-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-light);
    box-shadow: var(--glass-shadow);
}

.pub-icon {
    font-size: 2.4rem;
    color: var(--accent);
    background: rgba(13, 148, 136, 0.1);
    width: 72px;
    height: 72px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pub-details h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.pub-details .meta {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pub-details p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* --- PHOTO GALLERY --- */
.gallery-grid {
    columns: 4 270px;
    column-gap: 1.5rem;
    width: 100%;
}

.gallery-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 1.5rem;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.gallery-item:hover {
    transform: scale(1.04);
    box-shadow: var(--glass-shadow);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.gallery-item:hover img {
    filter: brightness(0.8);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    background: linear-gradient(transparent, rgba(15, 23, 42, 0.95));
    color: #ffffff;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.gallery-overlay span {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
}

/* --- TESTIMONIALS & REFERENCES --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.testimonial-card {
    padding: 3rem;
    border-radius: 24px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card .quote-icon {
    font-size: 2.5rem;
    color: var(--accent);
    opacity: 0.15;
    position: absolute;
    top: 2rem;
    left: 2rem;
}

.testimonial-card .quote-text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.testimonial-card .ref-profile {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.testimonial-card .ref-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(13, 148, 136, 0.15);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.testimonial-card .ref-details h4 {
    font-size: 1.15rem;
    margin-bottom: 0.1rem;
}

.testimonial-card .ref-details .ref-title {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-light);
}

.testimonial-card .ref-details .ref-org {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.testimonial-card .ref-details .ref-contact {
    display: block;
    font-size: 0.75rem;
    color: var(--accent);
    margin-top: 0.25rem;
    font-weight: 600;
}

/* --- NEWS & EVENTS --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 2.5rem;
}

.news-card {
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-light);
    box-shadow: var(--glass-shadow);
}

.news-img {
    height: 220px;
    overflow: hidden;
    background-color: var(--primary-dark);
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.news-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 800;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-content h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.news-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Author Avatar layout inside blog cards */
.news-author-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: auto;
}

.news-author-pic {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-color);
}

.news-author-name {
    font-size: 0.85rem;
    font-weight: 700;
}

/* --- CONTACT SECTION --- */
.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 5rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--accent);
    background: rgba(13, 148, 136, 0.1);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-text h4 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.contact-text p {
    color: var(--text-muted);
    font-size: 1rem;
}

.social-links {
    display: flex;
    gap: 1.25rem;
    margin-top: 2rem;
}

.social-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-color);
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--primary-light);
    color: #ffffff;
    transform: translateY(-5px);
}

.contact-form {
    padding: 3rem;
    border-radius: 24px;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.95rem 1.2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-body);
    color: var(--text-color);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

/* --- FOOTER --- */
footer {
    background: var(--primary-dark);
    color: #94a3b8;
    padding: 5rem 0 2.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 5rem;
    margin-bottom: 4rem;
}

.footer-brand h3 {
    color: #ffffff;
    margin-bottom: 1.25rem;
    font-size: 1.6rem;
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-links h4 {
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 6px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2.5rem;
    text-align: center;
    font-size: 0.9rem;
}

/* --- WATERMARK DYNAMIC OVERLAYS --- */
.watermark-container {
    position: relative;
}
.watermark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    background: transparent;
}

/* --- LIGHTBOX VIEWER --- */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 7, 13, 0.97);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox-content {
    max-width: 80%;
    max-height: 80%;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
}

.lightbox-close {
    position: absolute;
    top: -45px;
    right: 0;
    color: #ffffff;
    font-size: 2.5rem;
    cursor: pointer;
}

.lightbox-caption {
    color: #ffffff;
    text-align: center;
    margin-top: 1.25rem;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 1200px) {
    .hero-grid-wrapper {
        grid-template-columns: 1fr;
        gap: 3.5rem;
        text-align: center;
    }
    .hero-actions, .hero-stats-row {
        justify-content: center;
    }
    .hero {
        height: auto;
        padding-top: 140px;
        padding-bottom: 80px;
    }
    .profile-frame {
        width: 320px;
        height: 400px;
    }
}

@media (max-width: 1024px) {
    .about-grid, .skills-grid, .contact-grid, .spotlight-card, .featured-grid, .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    .spotlight-img {
        min-height: 250px;
        height: 250px;
    }
    .spotlight-content {
        padding: 2.5rem;
    }
    .hero h1 {
        font-size: 3.25rem;
    }
}

@media (max-width: 768px) {
    .menu-btn {
        display: block;
    }
    .nav-links {
        position: fixed;
        top: 90px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 90px);
        background: var(--bg-card);
        flex-direction: column;
        justify-content: center;
        transition: var(--transition);
        z-index: 999;
        backdrop-filter: blur(25px);
        gap: 3rem;
    }
    .nav-links.active {
        left: 0;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .education-card {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .edu-year {
        min-width: auto;
    }
    .timeline::before {
        left: 20px;
    }
    .timeline-item {
        padding-left: 55px;
    }
    .timeline-dot {
        left: 8px;
        width: 28px;
        height: 28px;
    }
    .hero h1 {
        font-size: 2.75rem;
    }
}
