/* Global CSS Variables & Design System - Matching Video_portfolio-main */
:root {
    --bg-black: #000000;
    --bg-dark: #0a0a0a;
    --bg-white: #ffffff;
    --bg-card: #111111;
    --glass-border: rgba(255, 255, 255, 0.12);
    --accent-red: #ff2a2a;
    --accent-red-hover: #e02020;
    --text-white: #ffffff;
    --text-black: #000000;
    --text-muted: rgba(255, 255, 255, 0.7);
    --text-gray: #64748b;
    --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --font-script: 'Caveat', cursive;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    text-decoration: none;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
    position: relative;
}

body {
    background-color: var(--bg-black);
    color: var(--text-white);
    font-family: var(--font-sans);
    line-height: 1.6;
}

section {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

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

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-red);
    border-radius: 4px;
}

/* Preloader Animation with Water-Fill */
.preloader-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    background-color: #ff2a2a;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 1.2s cubic-bezier(0.76, 0, 0.24, 1);
}

.preloader-overlay.hidden-preloader {
    transform: translateY(-100%);
}

.preloader-logo-wrap {
    position: relative;
    font-size: 5rem;
    font-weight: 900;
    letter-spacing: -3px;
    user-select: none;
}

@media (max-width: 768px) {
    .preloader-logo-wrap {
        font-size: 2.2rem;
        letter-spacing: -1.5px;
    }
}

.preloader-text-bg {
    color: rgba(153, 27, 27, 0.35);
}

.preloader-text-fill {
    position: absolute;
    top: 0;
    left: 0;
    color: #ffffff;
    overflow: hidden;
    white-space: nowrap;
    width: 0%;
    animation: waterFill 1.6s ease-in-out 0.2s forwards;
}

.dot-red {
    color: rgba(153, 27, 27, 0.5);
}

.dot-black {
    color: #000000;
}

@keyframes waterFill {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

/* Maintenance Overlay */
#maintenance-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 99999;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

#maintenance-overlay i {
    font-size: 80px;
    color: var(--accent-red);
    margin-bottom: 20px;
}

#maintenance-overlay h1 {
    font-size: 42px;
    margin-bottom: 10px;
    color: #fff;
}

#maintenance-overlay p {
    color: var(--text-muted);
    font-size: 18px;
    max-width: 600px;
}

/* Container Utility */
.max-width-container {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

/* Header & Navbar */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

.header.scrolled {
    padding: 12px 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-container {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.nav-logo {
    font-size: 26px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.accent-dot {
    color: var(--accent-red);
}

.navbar-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    font-size: 14px;
    position: relative;
    padding: 4px 0;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-red);
    transition: width 0.3s ease;
}

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

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 26px;
    cursor: pointer;
    padding: 4px;
}

/* Fullscreen Video Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 650px;
    overflow: hidden;
    background-color: #000000;
    display: flex;
    align-items: center;
}

.hero-video-bg,
.hero-img-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    z-index: 0;
}

.hero-dark-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.05) 50%, rgba(0, 0, 0, 0.15) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 10;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 120px 24px 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    box-sizing: border-box;
}

.hero-text-content {
    max-width: 680px;
}

.hero-title {
    font-size: 56px;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -2px;
    color: #ffffff;
    margin-bottom: 20px;
}

.hero-gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.85) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    max-width: 520px;
    line-height: 1.7;
}

.hero-cta-group {
    display: flex;
    gap: 14px;
    margin-bottom: 36px;
    align-items: center;
}

.btn-primary-pill,
.btn-secondary-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
}

.btn-primary-pill {
    background-color: #ffffff;
    color: #000000;
    border: 1px solid #ffffff;
}

.btn-primary-pill:hover {
    background-color: #f1f5f9;
    border-color: #f1f5f9;
    transform: translateY(-2px);
}

.btn-secondary-pill {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    backdrop-filter: blur(10px);
}

.btn-secondary-pill:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
    transform: translateY(-2px);
}

.hero-sound-controller {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    margin-top: 10px;
    transition: transform 0.3s ease;
}

.hero-sound-controller:hover {
    transform: scale(1.08);
}

.sound-icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.sound-icon-circle i {
    font-size: 22px;
    color: #ffffff;
    transition: color 0.3s ease;
}

.hero-sound-controller:hover .sound-icon-circle {
    background: #ffffff;
    border-color: #ffffff;
}

.hero-sound-controller:hover .sound-icon-circle i {
    color: #000000;
}

.sound-text-label {
    margin-top: 8px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: rgba(255, 255, 255, 0.7);
    font-size: 24px;
}

.bounce-arrow {
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-12px);
    }

    60% {
        transform: translateY(-6px);
    }
}

/* About Section with Red Background & Lanyard Badge */
.about-section {
    position: relative;
    background-color: var(--accent-red);
    padding: 100px 0 160px 0;
    overflow: hidden;
}

.about-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 60px;
    position: relative;
    z-index: 10;
    box-sizing: border-box;
}

.lanyard-wrapper {
    position: relative;
    width: 320px;
    max-width: 100%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lanyard-string {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 120px;
    background: #111111;
    border-radius: 4px;
    z-index: 1;
}

.lanyard-clip {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 36px;
    background: #cbd5e1;
    border: 1px solid #94a3b8;
    border-radius: 6px;
    z-index: 2;
}

.id-badge-card {
    position: relative;
    margin-top: 36px;
    width: 100%;
    max-width: 280px;
    background: #0f172a;
    border-radius: 24px;
    padding: 16px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    transform: rotate(-3deg);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 3;
    box-sizing: border-box;
}

.id-badge-card:hover {
    transform: rotate(0deg) scale(1.03);
}

.badge-cutout {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 20px;
    background: #0f172a;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.badge-hole {
    width: 28px;
    height: 8px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 9999px;
}

.badge-img-frame {
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 16px;
    overflow: hidden;
    background: #1e293b;
    margin-top: 10px;
}

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

.badge-card-info {
    text-align: center;
    margin-top: 14px;
    color: #ffffff;
}

.badge-card-info h4 {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.badge-card-info p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

.about-info-wrapper {
    flex: 1;
    color: #ffffff;
    width: 100%;
}

.about-greeting {
    font-size: 52px;
    font-weight: 900;
    color: #000000;
    line-height: 1;
    margin-bottom: 16px;
}

.about-bio-text p {
    font-size: 18px;
    font-weight: 600;
    color: #fff5f5;
    line-height: 1.7;
    margin-bottom: 20px;
}

.highlight-name {
    color: #000000;
    font-weight: 900;
    text-transform: uppercase;
}

.about-tech-stack-row {
    display: flex;
    gap: 24px;
    margin: 32px 0;
}

.tech-icon-item {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #ffffff;
    transition: all 0.3s ease;
}

.tech-icon-item:hover {
    transform: translateY(-6px) scale(1.1);
    background: #000000;
    color: var(--accent-red);
}

.about-action {
    display: flex;
    gap: 16px;
}

/* Torn Paper Bottom SVG - WHITE FILL pointing into white Expertise section */
.torn-paper-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 20;
}

.torn-paper-svg {
    position: relative;
    display: block;
    width: 100%;
    height: 60px;
    fill: #ffffff;
}

/* Expertise Section - WHITE Theme with faint grid background */
.expertise-section {
    position: relative;
    padding: 100px 0 140px 0;
    background-color: #ffffff;
    background-image:
        linear-gradient(to right, rgba(128, 128, 128, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(128, 128, 128, 0.05) 1px, transparent 1px);
    background-size: 80px 80px;
    min-height: 1350px;
    width: 100%;
    box-sizing: border-box;
}

.expertise-header-box {
    margin-bottom: 60px;
    max-width: 450px;
}

.pill-badge-white {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 700;
    color: #4b5563;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
}

.section-main-heading-dark {
    font-size: 44px;
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1.1;
    color: #111827;
    margin-bottom: 16px;
}

.section-lead-p-dark {
    font-size: 16px;
    color: #6b7280;
    font-weight: 500;
    line-height: 1.6;
}

/* Curved Path SVG */
.curved-path-svg {
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    max-width: 100%;
    height: 1350px;
    pointer-events: none;
    z-index: 1;
}

/* Staggered Tag Cards Layout */
.expertise-cards-staggered {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

@media (min-width: 768px) {
    .expertise-cards-staggered {
        display: block;
        min-height: 1200px;
    }

    .tag-card {
        position: absolute;
        width: 340px;
    }

    .tag-card.card-1 {
        top: 20px;
        right: 6%;
        transform: rotate(6deg);
    }

    .tag-card.card-2 {
        top: 450px;
        left: 6%;
        transform: rotate(-6deg);
    }

    .tag-card.card-3 {
        top: 700px;
        right: 8%;
        transform: rotate(3deg);
    }

    .tag-card.card-4 {
        top: 1050px;
        left: 18%;
        transform: rotate(-3deg);
    }

    .cursive-handnote {
        position: absolute;
        top: 1250px;
        left: 58%;
        font-family: var(--font-script);
        font-size: 32px;
        color: #4b5563;
        transform: rotate(6deg);
    }
}

/* TagCard Default White State vs Active Red State */
.tag-card {
    border-radius: 32px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 8px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
}

.tag-card:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    transform: scale(1.02);
}

.tag-card.active-card {
    background: #ff2a2a;
    border-color: #f87171;
    box-shadow: 0 20px 50px rgba(255, 42, 42, 0.4);
}

.card-hole {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d1d5db, #f3f4f6);
    border: 1px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.card-hole-inner {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #1f2937;
    opacity: 0.2;
}

.tag-card-inner {
    background: #f4f4f4;
    border-radius: 24px;
    padding: 32px 24px;
    margin-top: 24px;
    min-height: 220px;
    transition: background-color 0.6s ease;
}

.tag-card.active-card .tag-card-inner {
    background: rgba(185, 28, 28, 0.5);
}

.card-number {
    font-size: 20px;
    font-weight: 700;
    color: #9ca3af;
    font-style: italic;
    font-family: serif;
    display: block;
    margin-bottom: 8px;
    transition: color 0.6s ease;
}

.tag-card.active-card .card-number {
    color: #fecaca;
}

.tag-card-inner h3 {
    font-size: 24px;
    font-weight: 900;
    color: #111827;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    transition: color 0.6s ease;
}

.tag-card.active-card .tag-card-inner h3 {
    color: #ffffff;
}

.tag-card-inner p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    font-weight: 500;
    transition: color 0.6s ease;
}

.tag-card.active-card .tag-card-inner p {
    color: #fee2e2;
}

.cursive-handnote {
    font-family: var(--font-script);
    font-size: 28px;
    color: #4b5563;
    margin-top: 20px;
}

/* Skills Section - WHITE Theme */
.skills-section-white {
    position: relative;
    padding: 80px 0 100px 0;
    background-color: #ffffff;
    overflow: hidden;
    width: 100%;
}

.skills-grid-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(90deg, transparent 24%, rgba(0, 0, 0, 0.04) 25%, rgba(0, 0, 0, 0.04) 26%, transparent 27%, transparent 74%, rgba(0, 0, 0, 0.04) 75%, rgba(0, 0, 0, 0.04) 76%, transparent 77%, transparent),
        linear-gradient(0deg, transparent 24%, rgba(0, 0, 0, 0.04) 25%, rgba(0, 0, 0, 0.04) 26%, transparent 27%, transparent 74%, rgba(0, 0, 0, 0.04) 75%, rgba(0, 0, 0, 0.04) 76%, transparent 77%, transparent);
    background-size: 50px 50px;
}

.pill-badge-stack-white {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 12px;
}

.skills-heading-dark {
    font-size: 36px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.skills-lead-dark {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.6);
    margin-bottom: 48px;
}

.skills-category-grid-2col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    position: relative;
    z-index: 10;
}

.skill-card-white {
    position: relative;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    box-sizing: border-box;
}

.skill-card-white:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.skill-card-white h3 {
    font-size: 14px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 16px;
    letter-spacing: -0.2px;
}

.skills-pills-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-pill-white {
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: #000000;
    transition: all 0.3s ease;
    cursor: default;
    user-select: none;
}

.skill-pill-white:hover {
    background: rgba(255, 42, 42, 0.1);
    border-color: rgba(255, 42, 42, 0.2);
    color: #ff2a2a;
    transform: scale(1.08);
}

/* Projects Section - BLACK Theme */
.projects-section {
    position: relative;
    padding: 100px 0;
    background-color: var(--bg-black);
    overflow: hidden;
    width: 100%;
}

.section-center-header {
    text-align: left;
    margin-bottom: 48px;
}

.projects-heading {
    font-size: 40px;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.projects-lead {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.project-glass-card {
    background: #111111;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.project-glass-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 42, 42, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.project-img-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-img-wrapper.unistore-bg {
    background-color: #ffffff;
}

.project-img-wrapper.pharmacy-bg {
    background-color: #00807B;
}

.project-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 24px;
    transition: transform 0.4s ease;
    box-sizing: border-box;
}

.project-glass-card:hover .project-img-wrapper img {
    transform: scale(1.06);
}

.project-body {
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-body h3 {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
}

.project-body p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    line-height: 1.6;
    flex: 1;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.tech-tags span {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--accent-red);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-actions {
    display: flex;
    gap: 12px;
}

/* Curved Edge Rectangle Buttons for Code & Live */
.btn-card-code,
.btn-card-live {
    flex: 1;
    padding: 11px 0;
    text-align: center;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-card-code {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-card-code:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-card-live {
    background: var(--accent-red);
    color: #ffffff;
    border: 1px solid transparent;
}

.btn-card-live:hover {
    background: var(--accent-red-hover);
    transform: translateY(-1px);
}

/* Certificates Section - Curved Edge Rectangle Buttons & Uniform Card Frame Sizes */
.certificates-section-white {
    position: relative;
    padding: 80px 0 100px 0;
    background-color: #ffffff;
    background-image:
        linear-gradient(to right, rgba(128, 128, 128, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(128, 128, 128, 0.05) 1px, transparent 1px);
    background-size: 80px 80px;
    overflow: hidden;
    width: 100%;
}

.certificates-header-center {
    text-align: center;
    margin-bottom: 24px;
}

.certificates-title-bold {
    font-size: 40px;
    font-weight: 900;
    color: #111827;
    letter-spacing: -1px;
}

.cert-filter-pills-centered {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 44px;
    position: relative;
    z-index: 10;
    flex-wrap: wrap;
}

/* Filter Buttons - Curved Edge Rectangle Shape */
.filter-btn-white {
    padding: 10px 22px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.filter-btn-white.active,
.filter-btn-white:hover {
    background: var(--accent-red);
    color: #ffffff;
    border-color: var(--accent-red);
    box-shadow: 0 4px 14px rgba(255, 42, 42, 0.25);
}

/* Certificates Grid - Strict Uniform Grid Cards for Identical Frame Sizes */
.cert-grid-white {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 360px));
    justify-content: center;
    gap: 28px;
    position: relative;
    z-index: 10;
}

/* Certificate Card with Exact Identical Frame Dimensions */
.cert-card-white {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 360px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    text-decoration: none;
    box-sizing: border-box;
    margin: 0 auto;
}

.cert-card-white:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.12);
}

.cert-img-box-white {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    height: 220px;
    overflow: hidden;
    background: #f8fafc;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.cert-img-box-white img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.cert-card-white:hover .cert-img-box-white img {
    transform: scale(1.03);
}

.cert-card-content-white {
    padding: 20px 22px 24px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cert-card-content-white h4 {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
    line-height: 1.4;
}

.cert-card-content-white p {
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    line-height: 1.4;
}

/* Compact Contact Section with Left-Aligned Header & Subtitle matching Photo 3 */
.contact-section {
    padding: 80px 0;
    background-color: var(--bg-black);
    width: 100%;
    opacity: 1 !important;
    visibility: visible !important;
}

.contact-card-box {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    padding: 44px 36px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
    max-width: 680px;
    margin: 0 auto;
    opacity: 1 !important;
    visibility: visible !important;
}

.contact-title.text-left {
    font-size: 32px;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 12px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
}

.heart-icon-red {
    color: #ff2a2a;
    font-size: 26px;
    vertical-align: middle;
}

.contact-subtitle.text-left {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 28px;
    max-width: 100%;
    text-align: left;
    line-height: 1.6;
}

.contact-form-single-col {
    width: 100%;
    margin-bottom: 28px;
}

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

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 13px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 13px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--accent-red);
    background: rgba(255, 255, 255, 0.08);
}

.submit-btn-glow {
    padding: 13px;
    border-radius: 12px;
    background: var(--accent-red);
    color: #ffffff;
    font-weight: 800;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 8px 20px rgba(255, 42, 42, 0.3);
}

.submit-btn-glow:hover {
    background: var(--accent-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(255, 42, 42, 0.5);
}

/* Social Links Below Form (Compact) */
.contact-social-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contact-social-bottom h3 {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.social-icon-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.social-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #ffffff;
    transition: all 0.3s ease;
}

.social-circle:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
    transform: translateY(-3px);
}

/* Footer Bar Centered */
.footer-bar {
    background: #000000;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
}

.footer-content p {
    margin: 0;
    text-align: center;
    width: 100%;
}

.back-to-top {
    position: absolute;
    right: 24px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background: var(--accent-red);
}

/* Comprehensive Mobile & Responsive Rules */
@media (max-width: 992px) {
    .hero-title {
        font-size: 42px;
    }

    .about-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about-tech-stack-row {
        justify-content: center;
    }

    .about-action {
        justify-content: center;
    }
}

@media (max-width: 768px) {

    /* Fixed Mobile Header & Hamburger Menu */
    .mobile-toggle {
        display: block;
    }

    .navbar-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.96);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
        box-sizing: border-box;
    }

    .header.mobile-open .navbar-links,
    .navbar-links.open {
        display: flex !important;
    }

    .nav-link {
        font-size: 16px;
        padding: 8px 0;
    }

    /* Hero Section Responsive */
    .hero-section {
        height: 100vh;
        min-height: 620px;
    }

    .hero-video-bg,
    .hero-img-bg {
        object-fit: cover;
        object-position: 81% center;
    }

    .hero-dark-overlay {
        background: linear-gradient(to bottom,
                rgba(0, 0, 0, 0.1) 0%,
                rgba(0, 0, 0, 0.3) 45%,
                rgba(0, 0, 0, 0.85) 100%);
    }

    .hero-container {
        height: 100%;
        flex-direction: column;
        justify-content: flex-end;
        align-items: flex-start;
        padding-top: 0;
        padding-bottom: 35px;
        padding-left: 20px;
        padding-right: 20px;
        box-sizing: border-box;
    }

    .hero-text-content {
        max-width: 100%;
        text-shadow: none !important;
        filter: none !important;
    }

    .hero-title {
        font-size: 30px;
        letter-spacing: -1px;
        text-shadow: none !important;
        color: #ffffff;
        margin-bottom: 8px;
    }

    .hero-subtitle {
        font-size: 13.5px;
        margin-bottom: 16px;
        text-shadow: none !important;
        color: rgba(255, 255, 255, 0.9);
        line-height: 1.5;
    }

    .hero-cta-group {
        flex-wrap: wrap;
        gap: 10px;
        text-shadow: none !important;
    }

    .hero-cta-group .btn-primary-pill,
    .hero-cta-group .btn-secondary-pill {
        height: 40px;
        padding: 0 20px;
        font-size: 13px;
        border-radius: 10px;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    .hero-scroll-indicator {
        bottom: 10px;
    }

    /* About Section Responsive */
    .about-section {
        padding: 60px 0 120px 0;
    }

    .about-container {
        padding: 0 16px;
        gap: 24px;
    }

    .lanyard-wrapper {
        width: 100%;
        max-width: 250px;
    }

    .id-badge-card {
        transform: rotate(0deg);
        max-width: 240px;
    }

    .about-greeting {
        font-size: 36px;
    }

    .about-bio-text p {
        font-size: 15px;
    }

    .about-tech-stack-row {
        gap: 12px;
        flex-wrap: wrap;
    }

    .tech-icon-item {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .about-action {
        flex-wrap: wrap;
    }

    /* Expertise Section Mobile Stack */
    .expertise-section {
        padding: 60px 0 80px 0;
        min-height: auto;
    }

    .curved-path-svg {
        display: none;
    }

    .section-main-heading-dark {
        font-size: 28px;
    }

    .expertise-cards-staggered {
        display: flex;
        flex-direction: column;
        gap: 20px;
        min-height: auto;
    }

    .tag-card {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        width: 100% !important;
        transform: none !important;
        box-sizing: border-box;
    }

    .cursive-handnote {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        font-size: 24px;
        margin-top: 16px;
        text-align: center;
    }

    /* Project Cards Mobile Sizing */
    .project-img-wrapper {
        height: 200px;
    }

    .project-img-wrapper img {
        padding: 20px;
    }

    /* Skills & Section Headings */
    .skills-heading-dark,
    .projects-heading,
    .certificates-title-bold,
    .contact-title {
        font-size: 24px;
    }

    .contact-card-box {
        padding: 28px 20px;
        border-radius: 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .back-to-top {
        position: static;
        margin-top: 8px;
    }
}