/* =====================================================
   SIDHARTH VAKKAN — PORTFOLIO STYLESHEET v3
   Theme: Fuchsia Background · Dark Grey Accent · Bold & Premium
   ===================================================== */

/* ---- 1. ROOT VARIABLES ---- */
:root {
    /* Fuchsia backgrounds */
    --color-bg:          #D8125B;
    --color-bg-alt:      #C40F52;
    --color-bg-deep:     #B00D49;

    /* Dark grey — accent / cards */
    --color-card:        #2C2E39;
    --color-card-hover:  #363847;
    --color-card-light:  #3E4154;

    /* Text */
    --color-text:        #FFFFFF;
    --color-text-muted:  rgba(255,255,255,0.75);
    --color-text-light:  rgba(255,255,255,0.45);

    /* Accent highlights */
    --color-grey:        #2C2E39;
    --color-grey-hover:  #1e1f28;
    --color-grey-glow:   rgba(44, 46, 57, 0.6);

    /* White tint for subtle elements */
    --color-white-tint:  rgba(255,255,255,0.12);
    --color-white-border:rgba(255,255,255,0.18);
    --color-white-hover: rgba(255,255,255,0.22);

    /* Fonts */
    --font-serif: 'Lora', Georgia, serif;
    --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Layout */
    --nav-height:     68px;
    --container-max:  1140px;
    --section-padding:96px;

    /* Shape */
    --radius-sm:  6px;
    --radius-md:  12px;
    --radius-lg:  20px;
    --radius-pill:100px;

    /* Shadows */
    --shadow-sm:   0 2px 8px rgba(0,0,0,0.2);
    --shadow-md:   0 8px 32px rgba(0,0,0,0.3);
    --shadow-lg:   0 16px 48px rgba(0,0,0,0.4);
    --shadow-grey: 0 0 24px rgba(44,46,57,0.4);

    /* Transitions */
    --t-fast:   0.18s ease;
    --t-normal: 0.28s ease;
    --t-slow:   0.5s cubic-bezier(0.22,1,0.36,1);
}

/* ---- 2. RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }

a {
    color: var(--color-text);
    text-decoration: none;
    transition: color var(--t-fast);
}
a:hover { color: rgba(255,255,255,0.75); }

ul { list-style: none; }

button { cursor: pointer; font-family: var(--font-sans); border: none; background: none; }

/* ---- 3. LAYOUT ---- */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 32px; }
.section   { padding: var(--section-padding) 0; }
.section-alt { background-color: var(--color-bg-alt); }

/* ---- 4. TYPOGRAPHY ---- */
.section-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    margin-bottom: 16px;
}

.section-heading {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.2;
    margin-bottom: 20px;
}

.section-subtext {
    font-size: 1.0625rem;
    color: var(--color-text-muted);
    max-width: 560px;
    margin-bottom: 56px;
}

/* ---- 5. BUTTONS ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 13px 30px;
    border-radius: var(--radius-pill);
    transition: all var(--t-normal);
    white-space: nowrap;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Shimmer sweep */
.btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.45s ease;
    pointer-events: none;
}
.btn:hover::before { left: 160%; }

.btn-primary {
    background-color: var(--color-grey);
    color: var(--color-text);
    border: 2px solid var(--color-grey);
    box-shadow: 0 4px 18px rgba(0,0,0,0.3);
}
.btn-primary:hover {
    background-color: var(--color-grey-hover);
    border-color: var(--color-grey-hover);
    color: #fff;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 32px rgba(0,0,0,0.4);
}
.btn-primary:active { transform: translateY(0) scale(0.98); }

.btn-outline {
    background-color: transparent;
    color: var(--color-text);
    border: 2px solid var(--color-white-border);
}
.btn-outline:hover {
    background-color: var(--color-white-tint);
    border-color: rgba(255,255,255,0.4);
    color: #fff;
    transform: translateY(-2px) scale(1.02);
}
.btn-outline:active { transform: translateY(0) scale(0.98); }

/* ---- 6. NAVIGATION ---- */
.nav-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--nav-height);
    background-color: rgba(190, 10, 75, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--t-normal), box-shadow var(--t-normal), background-color var(--t-normal);
}
.nav-header.scrolled {
    background-color: rgba(176, 8, 68, 0.96);
    border-bottom-color: rgba(255,255,255,0.12);
    box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto; padding: 0 32px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
}
.nav-logo:hover { color: rgba(255,255,255,0.75); }

.nav-links { display: flex; align-items: center; gap: 36px; }

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    position: relative;
    padding-bottom: 2px;
    transition: color var(--t-fast);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0; height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: width var(--t-normal);
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }
.nav-link.active { color: #fff; }

/* ---- 7. HERO ---- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(var(--nav-height) + 40px) 32px 80px;
    position: relative;
    overflow: hidden;
}

/* Floating ambient orbs — white/translucent on fuchsia */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    will-change: transform;
}
.hero-orb-1 {
    width: 540px; height: 540px;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
    top: -120px; left: -160px;
    animation: orbFloat1 12s ease-in-out infinite;
}
.hero-orb-2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(44,46,57,0.5) 0%, transparent 70%);
    bottom: 60px; right: -80px;
    animation: orbFloat2 16s ease-in-out infinite;
}
.hero-orb-3 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.07) 0%, transparent 70%);
    top: 55%; left: 62%;
    animation: orbFloat3 20s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%,100%{ transform: translate(0,0) scale(1); }
    33%    { transform: translate(40px, 30px) scale(1.08); }
    66%    { transform: translate(-20px, 50px) scale(0.95); }
}
@keyframes orbFloat2 {
    0%,100%{ transform: translate(0,0) scale(1); }
    50%    { transform: translate(-30px,-40px) scale(1.1); }
}
@keyframes orbFloat3 {
    0%,100%{ transform: translate(0,0); }
    40%    { transform: translate(-50px, 30px); }
    80%    { transform: translate(20px,-20px); }
}

.hero-content { max-width: 740px; position: relative; z-index: 1; }

.hero-eyebrow {
    font-size: 0.8125rem; font-weight: 500;
    letter-spacing: 0.22em; text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    margin-bottom: 28px;
}

.hero-name {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.hero-tagline {
    font-family: var(--font-serif);
    font-size: clamp(1.25rem, 3vw, 1.625rem);
    margin-bottom: 48px;
}

.tagline-word {
    display: inline-block;
    background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,0.7) 50%, #fff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerText 3.5s linear infinite;
    font-weight: 600;
}

@keyframes shimmerText {
    0%   { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-scroll-indicator {
    position: absolute;
    bottom: 28px; left: 50%;
    transform: translateX(-50%);
}
.hero-scroll-indicator span {
    display: block;
    width: 1.5px; height: 44px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.8), transparent);
    animation: scrollPulse 2.5s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%,100%{ opacity: 0.3; transform: scaleY(1); }
    50%    { opacity: 1;   transform: scaleY(1.25); }
}

/* ---- 8. ABOUT ---- */
.about-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 72px;
    align-items: start;
    margin-top: 48px;
}

.photo-frame {
    width: 100%; aspect-ratio: 3/4;
    background-color: var(--color-white-tint);
    border: 1.5px solid var(--color-white-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow var(--t-normal), border-color var(--t-normal);
}
.photo-frame:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    border-color: rgba(255,255,255,0.35);
}

.photo-placeholder {
    display: flex; flex-direction: column;
    align-items: center; gap: 12px;
    color: rgba(255,255,255,0.5);
}
.photo-placeholder svg { width: 56px; height: 56px; opacity: 0.4; }
.photo-placeholder p {
    font-size: 0.8125rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.about-text .section-heading { margin-bottom: 24px; }

.about-bio {
    color: var(--color-text-muted);
    font-size: 1rem; line-height: 1.85;
    margin-bottom: 20px;
}

.about-details {
    margin-top: 36px;
    border-top: 1px solid var(--color-white-border);
    padding-top: 32px;
    display: flex; flex-direction: column; gap: 16px;
}

.about-detail-item { display: flex; gap: 24px; align-items: baseline; }

.detail-label {
    font-size: 0.75rem; font-weight: 600;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    min-width: 120px;
}

.detail-value { font-size: 0.9375rem; color: #fff; }

/* ---- 9. PROJECTS ---- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.project-card {
    background-color: var(--color-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--t-normal), box-shadow var(--t-normal), border-color var(--t-normal);
    position: relative;
}
.project-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 12px 40px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.15);
}

.project-card-inner {
    padding: 36px 32px;
    display: flex; flex-direction: column;
    height: 100%;
    position: relative; z-index: 1;
}

.project-card-glow {
    position: absolute;
    width: 220px; height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    top: -50px; right: -50px;
    opacity: 0;
    transition: opacity var(--t-normal);
    pointer-events: none;
}
.project-card:hover .project-card-glow { opacity: 1; }

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.project-category {
    font-size: 0.725rem; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: rgba(216,18,91,0.9);
    background: rgba(216,18,91,0.12);
    border: 1px solid rgba(216,18,91,0.2);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
}

.project-year { font-size: 0.8125rem; color: rgba(255,255,255,0.35); }

.project-title {
    font-family: var(--font-serif);
    font-size: 1.25rem; font-weight: 600;
    color: #fff;
    margin-bottom: 12px; line-height: 1.3;
}

.project-desc {
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.75; flex: 1;
    margin-bottom: 28px;
}

.project-cta {
    font-size: 0.875rem; font-weight: 600;
    color: rgba(216,18,91,0.9);
    background: none; border: none;
    padding: 0; cursor: pointer;
    text-align: left;
    transition: color var(--t-fast), transform var(--t-fast), letter-spacing var(--t-fast);
    align-self: flex-start;
}
.project-cta:hover {
    color: #D8125B;
    transform: translateX(4px);
}

/* ---- 10. MODAL ---- */
.modal-overlay {
    position: fixed; inset: 0;
    background-color: rgba(160, 5, 55, 0.6);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center; justify-content: center;
    padding: 24px;
    opacity: 0; pointer-events: none;
    transition: opacity var(--t-normal);
}
.modal-overlay.active { opacity: 1; pointer-events: all; }

.modal-box {
    background-color: var(--color-card);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    max-width: 640px; width: 100%;
    max-height: 85vh; overflow-y: auto;
    padding: 52px 48px;
    position: relative;
    transform: translateY(24px) scale(0.97);
    transition: transform var(--t-slow);
    box-shadow: var(--shadow-lg);
}
.modal-overlay.active .modal-box { transform: translateY(0) scale(1); }

.modal-close {
    position: absolute;
    top: 20px; right: 20px;
    color: rgba(255,255,255,0.5);
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.12);
    transition: background-color var(--t-fast), color var(--t-fast);
}
.modal-close:hover {
    background-color: rgba(255,255,255,0.08);
    color: #fff;
    border-color: rgba(255,255,255,0.25);
}

.modal-content .modal-label {
    font-size: 11px; font-weight: 600;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: rgba(216,18,91,0.9);
    margin-bottom: 12px;
}
.modal-content h2 {
    font-family: var(--font-serif);
    font-size: 1.875rem; font-weight: 600;
    color: #fff; margin-bottom: 20px; line-height: 1.2;
}
.modal-content p {
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.8; margin-bottom: 16px;
}
.modal-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.modal-tag {
    font-size: 0.75rem; font-weight: 600;
    letter-spacing: 0.06em;
    color: rgba(216,18,91,0.9);
    background-color: rgba(216,18,91,0.12);
    border: 1px solid rgba(216,18,91,0.2);
    border-radius: var(--radius-pill);
    padding: 5px 14px;
}

.modal-github-link {
    display: inline-flex;
    align-items: center; gap: 8px;
    margin-top: 24px;
    font-size: 0.875rem; font-weight: 600;
    color: rgba(255,255,255,0.75);
    border: 1.5px solid rgba(255,255,255,0.15);
    padding: 9px 20px;
    border-radius: var(--radius-pill);
    transition: all var(--t-normal);
}
.modal-github-link:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* ---- 11. SKILLS (Redesigned — Clean & Compact) ---- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 48px;
}

.skill-category {
    background-color: var(--color-card);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--radius-md);
    padding: 28px 26px;
    transition: border-color var(--t-normal), box-shadow var(--t-normal);
}
.skill-category:hover {
    border-color: rgba(255,255,255,0.16);
    box-shadow: 0 6px 24px rgba(0,0,0,0.25);
}

.skill-category-title {
    font-family: var(--font-serif);
    font-size: 0.9375rem; font-weight: 600;
    color: rgba(255,255,255,0.5);
    margin-bottom: 18px;
    font-style: italic;
    letter-spacing: 0.01em;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
    background-color: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-pill);
    padding: 5px 14px;
    transition: background-color var(--t-fast), border-color var(--t-fast);
}
.skill-tag:hover {
    background-color: rgba(255,255,255,0.16);
    border-color: rgba(255,255,255,0.22);
}

.skill-tag.primary {
    background-color: rgba(44,46,57,0.7);
    border-color: rgba(255,255,255,0.2);
    color: #fff;
}

/* ---- 12. RESUME ---- */
.resume-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 60px;
    align-items: start;
    margin-top: 48px;
}

/* Resume sheet — mimic an actual white paper document */
.resume-sheet {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 40px 40px;
    box-shadow: 0 12px 48px rgba(0,0,0,0.35);
    color: #1A1A1A;
    font-family: var(--font-sans);
    font-size: 8.5pt;
    line-height: 1.45;
}

.resume-sheet-header {
    text-align: center;
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 2px solid #D8125B;
}
.rs-name {
    font-family: var(--font-serif);
    font-size: 16pt;
    font-weight: 700;
    color: #1A1A1A;
    letter-spacing: 0.03em;
    margin-bottom: 4px;
}
.rs-contact {
    font-size: 8pt;
    color: #555;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 16px;
}
.rs-contact a { color: #1a1aff; text-decoration: underline; font-size: 8pt; }

.rs-section { margin-bottom: 12px; }

.rs-section-title {
    font-size: 9pt;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1A1A1A;
    border-bottom: 1px solid #1A1A1A;
    padding-bottom: 2px;
    margin-bottom: 6px;
}

.rs-about-text {
    font-size: 8pt;
    color: #333;
    line-height: 1.5;
}

/* Education table */
.rs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 8pt;
}
.rs-table th {
    text-align: left;
    font-weight: 600;
    color: #333;
    padding: 3px 6px;
    border: 1px solid #ccc;
    background: #f5f5f5;
    font-size: 7.5pt;
}
.rs-table td {
    padding: 3px 6px;
    border: 1px solid #ddd;
    color: #1A1A1A;
    vertical-align: top;
}

/* Academic work entries */
.rs-work-entry { margin-bottom: 10px; }
.rs-work-header {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    font-size: 8.5pt;
    color: #1A1A1A;
    margin-bottom: 2px;
}
.rs-work-header span { font-weight: 400; color: #555; white-space: nowrap; }
.rs-work-desc { font-size: 7.5pt; color: #444; line-height: 1.5; }

/* Certifications inline list */
.rs-cert-list { list-style: none; }
.rs-cert-list li {
    font-size: 7.5pt;
    color: #333;
    line-height: 1.5;
    padding-left: 10px;
    position: relative;
    margin-bottom: 2px;
}
.rs-cert-list li::before {
    content: '–';
    position: absolute;
    left: 0;
    color: #D8125B;
}

/* Skills table */
.rs-skills-table {
    width: 100%;
    font-size: 7.5pt;
}
.rs-skills-table td {
    vertical-align: top;
    padding: 2px 0;
    color: #333;
}
.rs-skills-table td:first-child {
    font-weight: 600;
    color: #1A1A1A;
    width: 160px;
    padding-right: 8px;
    white-space: nowrap;
}

/* Community / Experience inline items */
.rs-exp-entry { margin-bottom: 8px; }
.rs-exp-header {
    font-weight: 600;
    font-size: 8.5pt;
    color: #1A1A1A;
    display: flex;
    justify-content: space-between;
    margin-bottom: 2px;
}
.rs-exp-header span { font-weight: 400; color: #555; }
.rs-exp-desc { font-size: 7.5pt; color: #444; line-height: 1.5; }

.resume-actions {
    position: sticky;
    top: calc(var(--nav-height) + 24px);
}
.resume-note {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.75;
    margin-bottom: 28px;
}
.resume-update {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.4);
    margin-top: 16px;
}

/* ---- 13. CERTIFICATIONS ---- */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 14px;
    margin-top: 48px;
}

.cert-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 20px;
    background-color: var(--color-card);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: inherit;
    transition: transform var(--t-normal), box-shadow var(--t-normal), border-color var(--t-normal);
    position: relative;
}
.cert-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.3);
    border-color: rgba(255,255,255,0.18);
    color: inherit;
}

.cert-icon {
    font-size: 1.1rem;
    color: rgba(216,18,91,0.8);
    flex-shrink: 0;
}

.cert-info { flex: 1; }
.cert-name { font-size: 0.8875rem; font-weight: 600; color: #fff; margin-bottom: 3px; line-height: 1.4; }
.cert-issuer { font-size: 0.8rem; color: rgba(255,255,255,0.55); margin-bottom: 3px; }
.cert-date { font-size: 0.75rem; color: rgba(255,255,255,0.35); }

.cert-arrow {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.4);
    opacity: 0;
    transition: opacity var(--t-fast), transform var(--t-fast);
    flex-shrink: 0;
}
.cert-card:hover .cert-arrow { opacity: 1; transform: translate(2px,-2px); }

/* ---- 14. CONTACT ---- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    margin-top: 48px;
}

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

.contact-item {
    display: flex; flex-direction: column; gap: 4px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-white-border);
}
.contact-item:last-child { border-bottom: none; }

.contact-label {
    font-size: 0.75rem; font-weight: 600;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: rgba(255,255,255,0.4);
}
.contact-value { font-size: 0.9375rem; color: #fff; word-break: break-word; }
a.contact-value:hover { color: rgba(255,255,255,0.7); }

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 22px; }

.form-group { display: flex; flex-direction: column; gap: 8px; }

.form-label {
    font-size: 0.8125rem; font-weight: 500;
    color: rgba(255,255,255,0.75);
}

.form-input {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: #fff;
    background-color: rgba(255,255,255,0.1);
    border: 1.5px solid rgba(255,255,255,0.18);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    outline: none;
    transition: border-color var(--t-fast), box-shadow var(--t-fast), background-color var(--t-fast);
    width: 100%;
    -webkit-appearance: none;
}
.form-input::placeholder { color: rgba(255,255,255,0.35); }
.form-input:focus {
    border-color: rgba(255,255,255,0.5);
    background-color: rgba(255,255,255,0.13);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.08);
}
.form-textarea { resize: vertical; min-height: 140px; }

/* ---- 15. FOOTER ---- */
.footer {
    background-color: var(--color-bg-deep);
    color: rgba(255,255,255,0.5);
    padding: 36px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

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

.footer-left { display: flex; flex-direction: column; gap: 4px; }
.footer-name { font-family: var(--font-serif); font-size: 1rem; font-weight: 600; color: rgba(255,255,255,0.85); }
.footer-copy { font-size: 0.8125rem; }

.footer-socials { display: flex; gap: 20px; align-items: center; }
.footer-social-link {
    color: rgba(255,255,255,0.4);
    transition: color var(--t-fast), transform var(--t-fast);
    display: flex; align-items: center;
}
.footer-social-link:hover { color: #fff; transform: translateY(-3px); }

/* ---- 16. REVEAL ANIMATIONS ---- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s cubic-bezier(0.22,1,0.36,1),
                transform 0.65s cubic-bezier(0.22,1,0.36,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-delay-1 { transition-delay: 0.10s; }
.reveal-delay-2 { transition-delay: 0.20s; }
.reveal-delay-3 { transition-delay: 0.32s; }

/* ---- 17. RESPONSIVE ---- */
@media (max-width: 1024px) {
    :root { --section-padding: 72px; }
    .about-grid { grid-template-columns: 200px 1fr; gap: 44px; }
    .resume-layout { grid-template-columns: 1fr; gap: 40px; }
    .resume-actions { position: static; }
}

@media (max-width: 768px) {
    :root { --section-padding: 56px; }
    .container { padding: 0 20px; }
    .nav-links { gap: 20px; }
    .nav-link { font-size: 0.8125rem; }
    .about-grid { grid-template-columns: 1fr; gap: 36px; }
    .about-photo { max-width: 180px; margin: 0 auto; }
    .photo-frame { aspect-ratio: 1/1; }
    .contact-layout { grid-template-columns: 1fr; gap: 44px; }
    .hero-actions { flex-direction: column; align-items: center; }
    .modal-box { padding: 36px 28px; }
}

@media (max-width: 540px) {
    .nav-links { display: none; }
    .hero-name { font-size: clamp(2.5rem, 10vw, 4rem); }
    .projects-grid, .skills-grid, .certs-grid { grid-template-columns: 1fr; }
    .footer-container { flex-direction: column; text-align: center; align-items: center; }
    .modal-box { padding: 28px 20px; }
}

/* ---- 18. SCROLLBAR ---- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--color-bg-deep); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.35); }

/* ---- 19. FOCUS STATES ---- */
:focus-visible { outline: 2px solid rgba(255,255,255,0.6); outline-offset: 3px; }
