/* =============================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ============================================= */
:root {
    /* Colors */
    --primary-bg:    #F4F4F4;
    --dark-bg:       #0D0D0D;
    --accent-color:  #FFC107;
    --text-dark:     #0D0D0D;
    --text-light:    #F4F4F4;

    /* Typography */
    --font-heading: 'Anton', sans-serif;
    --font-body:    'Montserrat', sans-serif;
    --font-mono:    'Space Mono', monospace;

    /* Misc */
    --border-radius:      8px;
    --hard-shadow:        6px 6px 0px #000;
    --hard-shadow-hover:  2px 2px 0px #000;
}


/* =============================================
   GLOBAL RESET & BASE
   ============================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html,
body {
    background-color: var(--primary-bg);
    color: var(--text-dark);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}


/* =============================================
   UTILITY CLASSES
   ============================================= */
.highlight {
    color: var(--accent-color);
}

.dark-section {
    background-color: var(--dark-bg);
    color: var(--text-light);
}

.dark-section .section-title {
    color: var(--text-light);
}

.section-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 120px 5%;
}

.section-title {
    font-size: 4rem;
    margin-bottom: 50px;
}


/* =============================================
   SCROLL REVEAL ANIMATION
   ============================================= */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal.delay-1 {
    transition-delay: 0.2s;
}

.reveal.delay-2 {
    transition-delay: 0.4s;
}


/* =============================================
   NAVBAR
   ============================================= */
.navbar,
.navbar.dark-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 60px;
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
}

.logo {
    color: var(--text-light);
    font-family: var(--font-heading);
    font-size: 1.4rem;
    letter-spacing: 2px;
    cursor: pointer;
    text-decoration: none;
}

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

/* Nav links — desktop */
.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    position: relative;
    text-decoration: none;
    color: #aaa;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s;
}

/* Animated underline on nav links */
.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

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

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

/* Hamburger button — hidden on desktop, shown on mobile */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1100;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Hamburger to X animation */
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay — dark backdrop behind the drawer */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
}

.nav-overlay.open {
    display: block;
}


/* =============================================
   HERO SECTION
   ============================================= */
.hero,
.hero.dark-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    max-width: 100%;
    padding: 120px 5% 40px 5%;
    gap: 40px;
    background: #0D0D0D;
}

.hero-content {
    flex: 1;
}

.hero-title,
.hero.dark-section .hero-title {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: clamp(3.5rem, 8.5vh, 9rem);
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 0;
}

.hero-bottom-info {
    margin-top: 4vh;
}

.hero-name {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.hero-role {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: #888;
    margin-bottom: 30px;
}

.hero-actions-row {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.action-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Social icon circles */
.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.1rem;
    transition: background 0.3s, border-color 0.3s;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

/* Pill-style CTA buttons */
.btn-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: #fff;
    color: #000;
    border-radius: 30px;
    font-weight: 800;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.3s;
}

.btn-pill:hover {
    background: #e0e0e0;
}

/* Profile flip card — outer scene */
.flip-scene {
    flex: 1;
    display: flex;
    justify-content: center;
    width: clamp(300px, 25vw, 450px);
    height: clamp(400px, 55vh, 600px);
    perspective: 1000px;
    cursor: pointer;
    position: relative;
}


/* =============================================
   MARQUEE BANDS
   ============================================= */
.marquee-band {
    display: flex;
    overflow: hidden;
    white-space: nowrap;
    padding: 15px 0;
    background: var(--accent-color);
    color: #000;
    border-top: 3px solid #000;
    border-bottom: 3px solid #000;
}

.marquee-band.reverse {
    background: var(--dark-bg);
    color: var(--accent-color);
    border-top-color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.marquee-content {
    display: flex;
    font-family: var(--font-heading);
    font-size: 2rem;
    letter-spacing: 3px;
    animation: marquee-scroll 15s linear infinite;
}

.marquee-content span {
    padding-right: 20px;
}

.marquee-content.reverse-content {
    animation: marquee-scroll-reverse 15s linear infinite;
}

@keyframes marquee-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-33.33%); }
}

@keyframes marquee-scroll-reverse {
    0%   { transform: translateX(-33.33%); }
    100% { transform: translateX(0); }
}


/* =============================================
   ABOUT SECTION
   ============================================= */
.about-flex {
    display: flex;
    justify-content: space-between;
    gap: 80px;
}

.about-left {
    flex: 1.5;
    max-width: 850px;
}

.about-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 700px;
}

.about-label {
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.about-heading {
    font-family: var(--font-heading);
    font-size: clamp(4rem, 8vw, 8.5rem);
    line-height: 0.85;
    letter-spacing: -3px;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.about-desc {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 50px;
}

.about-desc p {
    margin-bottom: 15px;
}

.about-desc strong {
    font-weight: 800;
    color: #000;
}

/* Stats row (3+ years, 5+ projects) */
.about-stats {
    display: flex;
    gap: 60px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--accent-color);
    line-height: 1;
}

.stat-text {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #888;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
}

/* Tech stack & soft skills cards */
.stack-card {
    background: #fff;
    border: 4px solid #000;
    box-shadow: 12px 12px 0px #000;
    padding: 30px 40px;
}

.stack-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-transform: uppercase;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.stack-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.stack-tags span {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 10px 15px;
    border: 3px solid #000;
    background: #fff;
    color: #000;
    box-shadow: 3px 3px 0px #000;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

.stack-tags span:hover {
    transform: translate(3px, 3px);
    box-shadow: 0 0 0 #000;
    background: #000;
    color: #fff;
}

.stack-tags.soft-skills span {
    background: var(--accent-color);
}

.stack-tags.soft-skills span:hover {
    background: #000;
    color: var(--accent-color);
}


/* =============================================
   PROJECTS SECTION
   ============================================= */
.projects {
    background: #0a0a0a;
}

.projects-header {
    margin-bottom: 60px;
}

.projects-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: #7a7a7a;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.projects-heading {
    font-family: 'General Sans', sans-serif;
    font-size: clamp(4rem, 8vw, 8rem);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -2px;
    color: #eaeaea;
    margin: 0;
    text-transform: uppercase;
}

/* 2-column grid on desktop */
.project-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.project-card {
    position: relative;
    padding: 32px 28px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.35s ease;
}

/* Animated yellow top-line on hover */
.project-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: var(--accent-color);
    transition: width 0.4s ease;
}

.project-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.18);
}

.project-card:hover::before {
    width: 100%;
}

/* Large faint number watermark */
.project-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-family: var(--font-heading);
    font-size: 6.5rem;
    color: rgba(255, 255, 255, 0.025);
    z-index: 0;
    line-height: 0.8;
}

.project-category {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    padding: 4px 8px;
    letter-spacing: 1px;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.project-title {
    font-family: 'General Sans', sans-serif;
    font-size: 1.85rem;
    font-weight: 600;
    color: #eaeaea;
    margin: 14px 0;
    position: relative;
    z-index: 1;
    letter-spacing: -1px;
}

.project-desc {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: #7a7a7a;
    line-height: 1.6;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.project-tags span {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    padding: 5px 9px;
    text-transform: uppercase;
    font-weight: 800;
}

.project-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.project-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.project-links a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: #eaeaea;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 14px;
    transition: all 0.3s;
    text-transform: uppercase;
}

.project-links a:hover {
    background: var(--accent-color);
    color: #000;
    border-color: var(--accent-color);
}


/* =============================================
   TIMELINE — SHARED (EXPERIENCE + EDUCATION)
   ============================================= */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

/* Vertical centre line */
.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: #000;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

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

/* Dot on the centre line */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -17px;
    background-color: var(--primary-bg);
    border: 4px solid var(--accent-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 0 4px #000;
}

/* Left-side items */
.left {
    left: 0;
}

.left::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    right: 30px;
    border: medium solid #000;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent #000;
}

/* Right-side items */
.right {
    left: 50%;
}

.right::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    left: 30px;
    border: medium solid #000;
    border-width: 10px 10px 10px 0;
    border-color: transparent #000 transparent transparent;
}

.right::after {
    left: -16px;
}

/* Card inside each timeline item */
.timeline-content {
    padding: 20px 30px;
    background-color: white;
    position: relative;
    border-radius: var(--border-radius);
    border: 2px solid #000;
    box-shadow: 4px 4px 0px #000;
}

.timeline-content h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.timeline-content .date {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

/* Experience-specific modern card variant */
.modern-card {
    background: #f9f9f9;
    border: 2px solid var(--accent-color);
    padding: 25px 30px;
    transition: all 0.3s ease;
}

.modern-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.exp-badge {
    display: inline-block;
    background: var(--accent-color);
    color: #000;
    font-size: 0.7rem;
    padding: 5px 10px;
    margin-bottom: 10px;
    font-weight: 700;
}

.modern-card h4 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.exp-role {
    font-weight: 600;
    margin-bottom: 10px;
}

.exp-desc {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 15px;
}

.exp-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.exp-tags span {
    border: 1px solid #000;
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: 600;
}

.view-btn {
    display: inline-block;
    text-decoration: none;
    border: 2px solid #000;
    padding: 8px 18px;
    font-size: 0.75rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.view-btn:hover {
    background: var(--accent-color);
    color: #000;
    border-color: var(--accent-color);
    transform: translateY(-2px);
}


/* =============================================
   ACHIEVEMENTS SECTION
   ============================================= */
.achievements-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.achievement-card {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    padding: 32px 28px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.35s ease;
    position: relative;
}

.achievement-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: var(--accent-color);
    transition: width 0.4s ease;
}

.achievement-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.18);
}

.achievement-card:hover::before {
    width: 100%;
}

.achievement-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    height: 60px;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.achievement-info {
    flex: 1;
}

.achievement-title {
    font-family: 'General Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #eaeaea;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

.achievement-desc {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: #7a7a7a;
    line-height: 1.6;
    margin-bottom: 16px;
}

.achievement-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.achievement-tags span {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    padding: 5px 9px;
    text-transform: uppercase;
    font-weight: 800;
}

.achievement-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: #eaeaea;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 14px;
    transition: all 0.3s;
    text-transform: uppercase;
}

.achievement-link:hover {
    background: var(--accent-color);
    color: #000;
    border-color: var(--accent-color);
}


/* =============================================
   CERTIFICATES SECTION
   ============================================= */
.cert-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.cert-card-new {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cert-card-new:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.cert-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.cert-date {
    font-family: var(--font-mono);
    color: var(--accent-color);
    font-size: 0.65rem;
    font-weight: 700;
    margin-top: 8px;
}

/* Faint large number watermark */
.cert-number {
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 0.8;
    color: rgba(255, 255, 255, 0.05);
}

.cert-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 400;
    text-transform: uppercase;
    color: #eaeaea;
    margin-bottom: 8px;
    line-height: 1.1;
    letter-spacing: 0.5px;
    flex-grow: 1;
}

.cert-platform {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: #7a7a7a;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 30px;
}

.view-cert-btn {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: #7a7a7a;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
    font-weight: 600;
}

.view-cert-btn:hover {
    color: #fff;
}


/* =============================================
   EXTRA CURRICULAR / ACTIVITIES SECTION
   ============================================= */
.activity-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.activity-card {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 30px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
}

/* Animated yellow top-line on hover */
.activity-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: var(--accent-color);
    transition: width 0.4s ease;
}

.activity-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 40px rgba(250, 204, 21, 0.15);
}

.activity-card:hover::before {
    width: 100%;
}

.activity-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    text-transform: uppercase;
    color: #eaeaea;
    margin-bottom: 15px;
    line-height: 1.3;
}

.activity-desc {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #aaa;
    line-height: 1.8;
    margin-bottom: 30px;
    flex-grow: 1;
}

.activity-links {
    margin-top: auto;
}

.verify-btn {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 10px 18px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #eaeaea;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.verify-btn:hover {
    background: var(--accent-color);
    color: #000;
    border-color: var(--accent-color);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(250, 204, 21, 0.4);
}


/* =============================================
   CONTACT SECTION
   ============================================= */
.contact-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 40px;
    padding-bottom: 60px;
}

.contact-header {
    margin-bottom: 40px;
}

.contact-heading {
    font-family: var(--font-heading);
    font-size: clamp(4rem, 8vw, 9rem);
    line-height: 0.9;
    letter-spacing: -2px;
    margin: 0;
    text-transform: uppercase;
    color: #0d0d0d;
}

/* Socials + resume button row */
.contact-socials-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.contact-socials {
    display: flex;
    gap: 15px;
}

.contact-socials a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d0d0d;
    background: transparent;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1.1rem;
}

.contact-socials a:hover {
    background: #0d0d0d;
    color: #fff;
    border-color: #0d0d0d;
}

.view-resume-btn {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: #0d0d0d;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 13px 22px;
    border: 1px solid #ddd;
    background: transparent;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.view-resume-btn:hover {
    background: #0d0d0d;
    color: #fff;
    border-color: #0d0d0d;
}

/* Contact form */
.contact-wrapper {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form .input-group input,
.contact-form .input-group textarea {
    width: 100%;
    background: #eaeaea;
    border: 1px solid #dfdfdf;
    padding: 16px 20px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    color: #333;
    border-radius: 0;
    resize: none;
    transition: all 0.3s ease;
}

.contact-form .input-group input:focus,
.contact-form .input-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: inset 0 -2px 0 var(--accent-color);
    background: #fff;
}

.contact-form .input-group input::placeholder,
.contact-form .input-group textarea::placeholder {
    color: #999;
}

.contact-submit-btn {
    background: #111;
    color: #fff;
    border: none;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 18px 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.contact-submit-btn:hover {
    background: var(--accent-color);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}


/* =============================================
   PROFILE FLIP CARD (HERO IMAGE)
   ============================================= */

/* Inner wrapper that actually rotates */
.flip-card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Flip on hover */
.flip-scene:hover .flip-card-inner {
    transform: rotateY(180deg);
}

/* Both faces share this base */
.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Front keeps overflow hidden so photo doesn't spill */
.flip-card-front {
    overflow: hidden;
    background: #111;
}

/* Back needs overflow visible so ::before bar + translateX hover work */
.flip-card-back {
    overflow: visible;
}

.flip-card-front .profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    position: relative;
    z-index: 1;
}

/* Subtle dark gradient at bottom so text/shadow reads well */
.flip-front-overlay {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, transparent 55%);
    z-index: 2;
    pointer-events: none;
}

/* Yellow shadow block behind the card (same as before) */
.flip-scene::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    border-radius: 20px;
    z-index: -1;
}

/* ---- BACK FACE ---- */
.flip-card-back {
    background: #0A0A0A;
    border: 1px solid rgba(255, 193, 7, 0.2);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 28px;
    gap: 0;
    box-shadow: inset 0 0 60px rgba(255, 193, 7, 0.04);
    border-radius: 20px;
}

/* Yellow top accent bar */
.flip-card-back::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-color);
    border-radius: 20px 20px 0 0;
}

.flip-back-tag {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--accent-color);
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 16px;
    opacity: 0.75;
}

.flip-back-name {
    font-family: var(--font-heading);
    font-size: 5.5rem;
    color: #fff;
    letter-spacing: 4px;
    line-height: 0.9;
    margin-bottom: 10px;
    text-transform: uppercase;
    text-align: center;
}

/* Accent dot on the name */
.flip-back-name span {
    color: var(--accent-color);
}

.flip-back-role {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: #666;
    text-align: center;
    margin-bottom: 22px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.flip-back-divider {
    width: 60px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--accent-color), transparent);
    margin-bottom: 24px;
}

/* Each fun fact row */
.flip-fact {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
    width: 100%;
    padding: 11px 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    position: relative;
    overflow: hidden;
    cursor: default;
    transition:
        background   0.3s ease,
        border-color 0.3s ease,
        transform    0.25s ease,
        box-shadow   0.3s ease;
}

/* Yellow left-edge bar that grows in on hover */
.flip-fact::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent-color);
    border-radius: 10px 0 0 10px;
    transform: scaleY(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.flip-fact:hover {
    background: rgba(255, 193, 7, 0.09);
    border-color: rgba(255, 193, 7, 0.4);
    transform: translateX(5px);
    box-shadow: 0 2px 20px rgba(255, 193, 7, 0.1);
}

.flip-fact:hover::before {
    transform: scaleY(1);
}

.flip-fact-icon {
    width: 38px;
    height: 38px;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.25s ease;
}

.flip-fact:hover .flip-fact-icon {
    background: rgba(255, 193, 7, 0.22);
    border-color: rgba(255, 193, 7, 0.6);
    transform: scale(1.12) rotate(-5deg);
}

.flip-fact span {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #aaa;
    line-height: 1.4;
    letter-spacing: 0.3px;
    transition: color 0.25s ease;
}

.flip-fact:hover span {
    color: #fff;
}

.flip-back-footer {
    margin-top: 18px;
    font-family: var(--font-mono);
    font-size: 0.5rem;
    color: rgba(255, 255, 255, 0.15);
    letter-spacing: 3px;
    text-transform: uppercase;
    text-align: center;
}


/* =============================================
   FOOTER
   ============================================= */
.footer {
    text-align: center;
    padding: 30px;
    font-family: var(--font-mono);
    border-top: 2px solid #333;
}


/* =============================================
   RESPONSIVE — LARGE DESKTOP (>= 1200px)
   Certificates: force 5 columns on wide screens
   ============================================= */
@media (min-width: 1200px) {
    .cert-grid-new {
        grid-template-columns: repeat(5, 1fr);
    }
}


/* =============================================
   RESPONSIVE — TABLET (<=1200px)
   Projects drop to single column
   ============================================= */
@media (max-width: 1200px) {
    .project-grid {
        grid-template-columns: 1fr;
    }
}


/* =============================================
   RESPONSIVE — TABLET (<=992px)
   Timeline collapses to left-aligned,
   activities go 2-col, hamburger visible
   ============================================= */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        margin-top: 50px;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::before {
        left: 60px;
        border: medium solid #000;
        border-width: 10px 10px 10px 0;
        border-color: transparent #000 transparent transparent;
    }

    .left::after,
    .right::after {
        left: 15px;
    }

    .right {
        left: 0%;
    }

    .nav-links {
        display: none;
    }

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


/* =============================================
   RESPONSIVE — MOBILE (<=768px)
   Full mobile: hamburger drawer, stacked
   hero, single-column grids, compact padding
   ============================================= */
@media (max-width: 768px) {

    /* ---- NAVBAR ---- */
    .navbar,
    .navbar.dark-navbar {
        padding: 12px 20px;
    }

    .hamburger {
        display: flex;
    }

    /* Slide-in drawer from the right */
    .nav-links {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 75vw;
        max-width: 300px;
        height: 100vh;
        background: rgba(13, 13, 13, 0.98);
        backdrop-filter: blur(16px);
        padding: 90px 30px 40px;
        gap: 0;
        z-index: 1050;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        border-left: 1px solid rgba(255, 255, 255, 0.08);
        list-style: none;
    }

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

    .nav-links li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .nav-links a {
        display: block;
        padding: 16px 0;
        font-size: 0.85rem;
        letter-spacing: 2px;
    }

    /* ---- HERO ---- */
    .hero,
    .hero.dark-section {
        flex-direction: column !important;
        text-align: center;
        padding: 100px 20px 50px !important;
        min-height: auto !important;
        gap: 30px;
    }

    .hero-content,
    .hero-image {
        width: 100%;
        flex: unset;
    }

    .hero-title,
    .hero.dark-section .hero-title {
        font-size: clamp(2rem, 8vw, 3rem) !important;
        line-height: 1.25 !important;
        letter-spacing: 0 !important;
    }

    .hero-role {
        font-size: 0.8rem;
    }

    .hero-actions-row {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    /* Move photo above text on mobile */
    .hero-image {
        order: -1;
    }

    /* ---- FLIP CARD MOBILE ---- */

    /* On phones, tap toggles the flip instead of hover */
    .flip-scene {
        width: clamp(220px, 72vw, 300px) !important;
        height: clamp(320px, 96vw, 420px) !important;
        margin: 0 auto;
    }

    /* Disable hover-flip on touch — JS toggles .flipped instead */
    .flip-scene:hover .flip-card-inner {
        transform: none;
    }

    .flip-scene.flipped .flip-card-inner {
        transform: rotateY(180deg);
    }

    .flip-back-name {
        font-size: 3.8rem;
        letter-spacing: 2px;
    }

    .flip-back-tag {
        font-size: 0.5rem;
        letter-spacing: 3px;
    }

    .flip-back-role {
        font-size: 0.6rem;
        margin-bottom: 16px;
    }

    .flip-back-divider {
        margin-bottom: 16px;
    }

    .flip-fact {
        padding: 9px 12px;
        margin-bottom: 8px;
        gap: 10px;
    }

    .flip-fact-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .flip-fact span {
        font-size: 0.7rem;
    }

    .flip-back-footer {
        font-size: 0.45rem;
        margin-top: 12px;
    }

    /* Yellow offset shadow scales down too */
    .flip-scene::after {
        top: 12px;
        left: 12px;
    }

    /* ---- SECTIONS ---- */
    .section-container {
        padding: 60px 20px;
    }

    .section-title {
        font-size: clamp(2rem, 9vw, 3.5rem) !important;
        margin-bottom: 30px;
        line-height: 1.1;
    }

    /* ---- ABOUT ---- */
    .about-flex {
        flex-direction: column !important;
        gap: 40px;
    }

    .about-left,
    .about-right {
        width: 100%;
        max-width: 100%;
    }

    .about-heading {
        font-size: clamp(2.5rem, 12vw, 4rem) !important;
        letter-spacing: -1px !important;
        line-height: 1 !important;
        margin-bottom: 24px !important;
    }

    .about-desc {
        font-size: 0.82rem;
        text-align: left;
    }

    .about-stats {
        gap: 30px;
        justify-content: center;
    }

    .stat-num {
        font-size: 2.8rem;
    }

    .stack-card {
        padding: 20px;
        box-shadow: 4px 4px 0 #000;
    }

    .stack-title {
        font-size: 1.6rem;
    }

    /* ---- PROJECTS ---- */
    .projects-heading {
        font-size: clamp(2.5rem, 10vw, 4rem) !important;
        letter-spacing: -1px !important;
    }

    .projects-header {
        margin-bottom: 30px;
    }

    .project-grid {
        grid-template-columns: 1fr !important;
    }

    .project-card {
        padding: 24px 20px;
    }

    .project-title {
        font-size: 1.5rem;
    }

    /* ---- TIMELINE (EXPERIENCE + EDUCATION) ---- */
    .timeline::after {
        left: 16px !important;
        width: 3px;
    }

    .timeline-item {
        width: 100% !important;
        left: 0 !important;
        padding-left: 50px !important;
        padding-right: 12px !important;
        margin-bottom: 24px;
    }

    /* Arrow pointers break layout on mobile */
    .timeline-item::before {
        display: none;
    }

    .left::after,
    .right::after {
        left: 4px !important;
        right: auto !important;
        width: 18px;
        height: 18px;
    }

    .timeline-content {
        padding: 16px 18px;
    }

    .timeline-content h4 {
        font-size: 1.1rem;
    }

    /* ---- CERTIFICATES ---- */
    .cert-grid-new {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }

    .cert-card-new {
        padding: 20px;
    }

    .cert-title {
        font-size: 1rem;
    }

    /* ---- ACTIVITIES ---- */
    .activity-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .activity-card {
        padding: 22px 20px;
    }

    .activity-title {
        font-size: 1.1rem;
    }

    /* ---- CONTACT ---- */
    .contact-heading {
        font-size: clamp(3rem, 12vw, 5rem) !important;
        letter-spacing: -2px !important;
    }

    .contact-socials-row {
        flex-direction: column;
        gap: 16px;
    }

    .contact-wrapper {
        padding: 0;
    }

    /* ---- MARQUEE ---- */
    .marquee-content {
        font-size: 1.2rem;
    }

    /* ---- TYPOGRAPHY SAFETY ---- */
    h1, h2, h3, h4, p {
        word-break: break-word;
    }
}
