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

/* ===== SEO: Visually hidden but crawler-readable rich-text block ===== */
.seo-rich-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Color System & Variables */
:root {
    --bg-primary: #080b11;
    --bg-secondary: #0f131c;
    --bg-card: rgba(18, 24, 38, 0.65);
    --bg-card-hover: rgba(26, 34, 53, 0.85);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --accent-cyan: #06b6d4;
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-focus: rgba(99, 102, 241, 0.4);
    --gradient-primary: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    --gradient-cyan-blue: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 100%);
    --gradient-glow: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    --glow-shadow: 0 0 30px rgba(99, 102, 241, 0.15);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Global Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    /* NO overflow on body — setting overflow on body breaks position:fixed in Safari */
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100%;
}

/* This wrapper clips horizontal overflow without touching fixed children */
.page-wrap {
    overflow-x: hidden;
    position: relative;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-purple);
}

/* Container */
.container {
    width: min(90%, 1200px);
    margin: 0 auto;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
}

/* Reusable Background Blobs */
.bg-blob {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    z-index: 1;
    pointer-events: none;
    animation: floatBlob 8s infinite alternate ease-in-out;
}

.blob-purple {
    background: var(--accent-purple);
    top: 15%;
    left: -5%;
}

.blob-cyan {
    background: var(--accent-cyan);
    bottom: 20%;
    right: -5%;
    animation-delay: -4s;
}

@keyframes floatBlob {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-40px) scale(1.15); }
}

/* Section Header Styles */
.section {
    padding: 100px 0;
    position: relative;
    overflow-x: clip; /* belt-and-suspenders: clip any section child that dares overflow */
}

.section-title-container {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(to right, #ffffff, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    margin-bottom: 10px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Navigation Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(8, 11, 17, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: var(--transition-smooth);
    padding: 20px 0;
}

.navbar.shrunk {
    padding: 12px 0;
    background: rgba(8, 11, 17, 0.85);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid var(--border-glass);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.logo:hover {
    filter: brightness(1.2);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    position: relative;
    padding: 5px 0;
}

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

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

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

.nav-menu-toggle {
    display: none;
    background: rgba(255,255,255,0.06);
    border: 1.5px solid rgba(255,255,255,0.14);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    width: 44px;
    height: 44px;
    z-index: 1002;
    padding: 0;
    margin: 0;
    outline: none;
    flex-shrink: 0;
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.nav-menu-toggle:hover {
    background: rgba(139,92,246,0.18);
    border-color: rgba(139,92,246,0.45);
    box-shadow: 0 0 14px rgba(139,92,246,0.25);
}

.hamburger-bar {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 2.5px;
    background: #ffffff;
    border-radius: 3px;
    transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), opacity 0.25s ease, top 0.35s cubic-bezier(0.16,1,0.3,1), background 0.25s ease, width 0.25s ease;
}

.hamburger-bar:nth-child(1) { top: 13px; }
.hamburger-bar:nth-child(2) { top: 20.5px; }
.hamburger-bar:nth-child(3) { top: 28px; }

/* Active state: morph to X */
.nav-menu-toggle.active {
    background: rgba(139,92,246,0.15);
    border-color: rgba(139,92,246,0.5);
    box-shadow: 0 0 18px rgba(139,92,246,0.3);
}

.nav-menu-toggle.active .hamburger-bar {
    background: var(--accent-purple);
}

.nav-menu-toggle.active .hamburger-bar:nth-child(1) {
    top: 20.5px;
    transform: translateX(-50%) rotate(45deg);
}

.nav-menu-toggle.active .hamburger-bar:nth-child(2) {
    opacity: 0;
    width: 0;
}

.nav-menu-toggle.active .hamburger-bar:nth-child(3) {
    top: 20.5px;
    transform: translateX(-50%) rotate(-45deg);
}

/* Header/Hero Section */
#header {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 120px;
    padding-bottom: 80px;
    overflow: visible;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
}

.hero-badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-badge i {
    margin-right: 6px;
    color: var(--accent-cyan);
}

.hero-title {
    font-size: 3.8rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.hero-title span.highlight {
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 40%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 35px;
    max-width: 580px;
    font-weight: 300;
    line-height: 1.8;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.subtitle-roles {
    display: inline-block;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: 0.02em;
    margin-bottom: 6px;
}

.subtitle-desc {
    display: inline-block;
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #ffffff;
    box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.3);
    border: 1px solid transparent;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
}

.btn i {
    transition: var(--transition-smooth);
}

.btn:active {
    transform: scale(0.97);
}

@media (hover: hover) {
    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 15px 30px -5px rgba(99, 102, 241, 0.5);
        filter: brightness(1.1);
    }
    .btn-secondary:hover {
        background: rgba(139, 92, 246, 0.08);
        border-color: var(--accent-purple);
        box-shadow: 0 10px 20px -5px rgba(139, 92, 246, 0.2);
        transform: translateY(-2px);
    }
    .btn:hover .fa-arrow-right {
        transform: translateX(4px);
    }
    .btn:hover .fa-download {
        transform: scale(1.15);
    }
}

/* Hero Image Showcase */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-card-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 105%;
    height: 105%;
    background: var(--gradient-primary);
    filter: blur(40px);
    opacity: 0.2;
    z-index: 1;
    border-radius: 20px;
}

.terminal-mockup {
    width: 100%;
    max-width: 440px;
    background: rgba(10, 15, 26, 0.85);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    box-shadow: var(--glow-shadow);
    padding: 0;
    overflow: hidden;
    font-family: 'Courier New', Courier, monospace;
    z-index: 2;
    position: relative;
    transform: perspective(1000px) rotateY(-8deg) rotateX(4deg);
    transition: var(--transition-smooth);
}

.terminal-mockup:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.03);
}

.terminal-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
    display: inline-block;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #eab308; }
.dot-green { background: #22c55e; }

.terminal-title {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-left: auto;
    margin-right: auto;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.terminal-body {
    padding: 20px;
    font-size: 0.85rem;
    color: #e2e8f0;
    line-height: 1.5;
    text-align: left;
    overflow-x: auto;
}

.terminal-body::-webkit-scrollbar {
    height: 4px;
}

.terminal-body::-webkit-scrollbar-track {
    background: transparent;
}

.terminal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.terminal-body::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}

.terminal-line {
    margin-bottom: 4px;
    white-space: pre-wrap;
    word-break: break-all;
    overflow-wrap: anywhere;
}

.t-keyword { color: #f43f5e; font-weight: 600; }
.t-class { color: #60a5fa; }
.t-func { color: #34d399; }
.t-str { color: #fbbf24; }
.t-comment { color: var(--text-muted); font-style: italic; }

/* Mobile Tech Card in Hero */
.mobile-tech-card {
    display: none;
    width: 100%;
    max-width: 380px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--glow-shadow);
    text-align: left;
    margin: 20px auto 0 auto;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.tech-card-header {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--accent-cyan);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mobile-tech-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.mobile-tech-item {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 12px;
    border-radius: 10px;
}

.tech-item-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.tech-item-value {
    font-size: 0.8rem;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.3;
}

/* Glass Card Component */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--glow-shadow);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(99, 102, 241, 0.1);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: stretch;
}

.about-summary {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-summary p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.about-skills-focus {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.focus-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.focus-icon {
    background: var(--gradient-glow);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--accent-purple);
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.focus-card:nth-child(2) .focus-icon {
    color: var(--accent-cyan);
    border-color: rgba(6, 182, 212, 0.2);
}

.focus-details h3 {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.focus-details p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Work Experience Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 8px;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-purple) 0%, var(--accent-cyan) 50%, rgba(255, 255, 255, 0.05) 100%);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -30px;
    top: 8px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 3px solid var(--accent-purple);
    box-shadow: 0 0 10px var(--accent-purple);
    transition: var(--transition-smooth);
}

.timeline-item:nth-child(2) .timeline-dot {
    border-color: var(--accent-blue);
    box-shadow: 0 0 10px var(--accent-blue);
}

.timeline-item:nth-child(3) .timeline-dot {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.3);
    background: var(--text-primary);
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    padding: 25px;
    transition: var(--transition-smooth);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.timeline-role {
    font-size: 1.25rem;
    color: var(--text-primary);
}

.timeline-company {
    display: block;
    font-size: 0.95rem;
    color: var(--accent-cyan);
    font-weight: 500;
    margin-top: 2px;
}

.timeline-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid var(--border-glass);
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.timeline-bullets {
    margin-top: 15px;
    padding-left: 18px;
    list-style-type: disc;
}

.timeline-bullets li {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 8px;
}

.timeline-bullets li:last-child {
    margin-bottom: 0;
}

.education-details {
    margin-top: 8px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Projects Section */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
    gap: 30px;
}

.project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-icon {
    font-size: 1.8rem;
    color: var(--accent-cyan);
    margin-bottom: 15px;
}

.project-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.project-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    flex-grow: 1;
    margin-bottom: 20px;
}

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

.project-tag {
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    padding: 3px 8px;
    border-radius: 6px;
}

/* Skills Cloud Section */
.skills-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.skills-category {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 25px;
}

.skills-category h3 {
    font-size: 1.1rem;
    color: var(--accent-cyan);
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-badge {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    padding: 8px 18px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.skill-badge i {
    font-size: 1rem;
    color: var(--accent-blue);
}

.skill-badge:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-purple);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
}

/* Certifications Section */
.certification-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: 25px;
}

.certification-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.cert-icon {
    font-size: 1.8rem;
    color: var(--accent-purple);
    margin-top: 3px;
}

.cert-details h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.cert-details p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Extracurricular Section */
.extracurricular-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
    gap: 25px;
}

.extra-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.extra-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.extra-icon {
    font-size: 1.6rem;
    color: var(--accent-cyan);
}

.extra-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.extra-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Footer / Contact Section */
.footer-section {
    padding: 80px 0 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.contact-card {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
    padding: 50px 30px;
    background: linear-gradient(135deg, rgba(18, 24, 38, 0.8) 0%, rgba(8, 11, 17, 0.9) 100%);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.contact-title {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.contact-text {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.contact-details-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 25px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.contact-details-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-details-meta i {
    color: var(--accent-cyan);
}

.email-box {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    padding: 8px 8px 8px 16px;
    border-radius: 12px;
    margin-bottom: 25px;
    max-width: 100%;
}

.email-text {
    font-family: monospace;
    font-size: 1rem;
    color: var(--text-primary);
    margin-right: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-copy {
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-copy:hover {
    background: var(--accent-purple);
    color: #ffffff;
}

.contact-socials {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.social-link:hover {
    color: var(--text-primary);
    border-color: var(--accent-cyan);
    transform: translateY(-3px);
    background: rgba(6, 182, 212, 0.1);
}

.bottom-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
}

.bottom-footer a {
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.bottom-footer a:hover {
    color: var(--text-primary);
}

/* CSS Viewport Reveal Animation Styles */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-badge {
        align-self: center;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        margin: 0 auto 30px auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        /* Remove order: -1 so mockup flows below content on mobile */
    }

    .terminal-mockup {
        max-width: 340px;
        transform: none;
        margin: 20px auto 0 auto;
    }
    
    .terminal-mockup:hover {
        transform: scale(1.03);
    }

    .about-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .terminal-mockup {
        display: none !important;
    }

    .mobile-tech-card {
        display: block;
    }

    .section {
        padding: 70px 0;
    }

    .navbar.nav-active {
        height: 100vh !important;
        background: rgba(8, 11, 17, 0.97) !important;
        backdrop-filter: blur(28px) !important;
        -webkit-backdrop-filter: blur(28px) !important;
    }

    .nav-menu {
        position: fixed;
        inset: 0; /* top/right/bottom/left: 0 — no 100vw, no overflow */
        background: rgba(8, 11, 17, 0.97);
        backdrop-filter: blur(28px);
        -webkit-backdrop-filter: blur(28px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
        padding: 40px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease, visibility 0.6s;
        z-index: 1000;
        overflow-y: auto;
        overflow-x: hidden;
        border: none;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu li {
        width: auto;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .nav-menu.active li {
        opacity: 1;
        transform: translateY(0);
    }

    /* Staggered Transitions */
    .nav-menu.active li:nth-child(1) { transition-delay: 50ms; }
    .nav-menu.active li:nth-child(2) { transition-delay: 100ms; }
    .nav-menu.active li:nth-child(3) { transition-delay: 150ms; }
    .nav-menu.active li:nth-child(4) { transition-delay: 200ms; }
    .nav-menu.active li:nth-child(5) { transition-delay: 250ms; }
    .nav-menu.active li:nth-child(6) { transition-delay: 300ms; }
    .nav-menu.active li:nth-child(7) { transition-delay: 350ms; }
    .nav-menu.active li:nth-child(8) { transition-delay: 400ms; }

    .nav-menu a {
        display: inline-block;
        padding: 10px 0;
        width: auto;
        text-align: center;
        background: none;
        border: none;
        font-size: 1.3rem;
        font-weight: 400;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--text-secondary);
    }

    .nav-menu a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 2px;
        background: var(--gradient-primary);
        transition: var(--transition-smooth);
    }

    .nav-menu a:active,
    .nav-menu a.active {
        background: none;
        border-color: transparent;
        color: var(--text-primary);
        font-weight: 600;
    }
    
    .nav-menu a:active::after,
    .nav-menu a.active::after {
        width: 20px;
    }

    .nav-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1002;
    }

    .timeline {
        padding-left: 20px;
    }

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

    .timeline-dot {
        left: -22px;
        width: 14px;
        height: 14px;
        top: 6px;
    }

    .timeline-content {
        padding: 20px;
    }
    
    .timeline-role {
        font-size: 1.1rem;
    }

    .bottom-footer {
        flex-direction: column;
        text-align: center;
    }
}

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

    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }

    .btn {
        width: 100%;
    }

    .terminal-body {
        font-size: 0.72rem;
        padding: 14px;
    }
}