/* ==========================================================================
   Base resets and Light Theme variables
   ========================================================================== */
:root {
    --bg-color: #f8fafc;
    /* Very soft slate white */
    --bg-surface: #ffffff;
    --bg-surface-elevated: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    --border-color: #e2e8f0;
    --border-hover: #cbd5e1;

    --accent: #4f46e5;
    --accent-glow: rgba(79, 70, 229, 0.15);
    /* Vibrant colorful gradient for text and accents */
    --gradient-primary: linear-gradient(135deg, #4f46e5 0%, #ec4899 100%);

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

/* ==========================================================================
   Ambient Background Shapes (Light Theme)
   ========================================================================== */
.ambient-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.6;
    animation: float 20s infinite alternate ease-in-out;
}

.shape-1 {
    width: 600px;
    max-width: 80vw;
    height: 600px;
    max-height: 80vw;
    background: #e0e7ff;
    /* soft indigo */
    top: -100px;
    left: -100px;
}

.shape-2 {
    width: 500px;
    max-width: 70vw;
    height: 500px;
    max-height: 70vw;
    background: #fce7f3;
    /* soft pink */
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 50px) scale(1.05);
    }
}

/* Typography Base */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

p {
    color: var(--text-secondary);
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.mt-4 {
    margin-top: 2rem;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.5);
    /* translucent white */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    /* controlled by JS on scroll */
    transition: all 0.3s ease;
}

.nav-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.25rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    color: var(--text-primary);
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-btn {
    padding: 0.6rem 1.6rem;
    background: var(--gradient-primary);
    color: #ffffff !important;
    border-radius: 999px;
    /* Pill shape */
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
    filter: brightness(1.1);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-surface);
    border: 1px solid transparent;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: #334155;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--bg-surface-elevated);
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn i {
    margin-right: 8px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    padding: 12rem 0 6rem;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 10px #10b981;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.hero-title {
    font-size: 4.5rem;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 90%;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.hero-actions {
    display: flex;
    gap: 1.2rem;
}

.profile-card {
    position: relative;
    border-radius: 20px;
    padding: 0.8rem;
    background: var(--bg-surface);
    box-shadow: var(--shadow-lg);
    /* Larger shadow to lift the profile in white theme */
}

.profile-img {
    width: 100%;
    height: auto;
    border-radius: 14px;
    aspect-ratio: 1/1;
    object-fit: cover;
    /* Soft filter rather than dark contrast filter */
    filter: contrast(1.05);
}

/* ==========================================================================
   Sections Utilities
   ========================================================================== */
section {
    padding: 6rem 0;
}

.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   Shiny Edge / Soft Shadow Card Effect
   ========================================================================== */
.shiny-edge {
    position: relative;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow-sm);
    /* default drop shadow */
}

.shiny-edge:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    /* lifts up on hover */
}

/* Soft white-theme tracking glow inside .shiny-edge */
.card-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.08) 0%, transparent 60%);
    /* soft colored glow */
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.shiny-edge:hover .card-glow {
    opacity: 1;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-text {
    padding: 3rem;
}

.about-text h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.about-text p {
    margin-bottom: 1.5rem;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.skill-tag {
    padding: 0.4rem 1rem;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 500;
    transition: background 0.2s ease;
}

.skill-tag:hover {
    background: var(--border-color);
}

/* ==========================================================================
   Tech Stack Section
   ========================================================================== */
.tech-stack {
    padding: 2rem 0 6rem;
}

.header-line {
    width: 60px;
    height: 4px;
    background: #0284c7;
    /* Match user image's blue underline */
    margin: 1rem auto 1.5rem;
    border-radius: 4px;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.tech-card {
    padding: 2rem;
}

.tech-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.badge-blue {
    background: #38bdf8;
}

.badge-green {
    background: #22c55e;
}

.badge-purple {
    background: #d946ef;
}

.badge-orange {
    background: #f97316;
}

.badge-grey {
    background: #64748b;
}

.tech-list {
    list-style: none;
    padding: 0;
}

.tech-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.tech-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.list-blue li::before {
    background: #38bdf8;
}

.list-green li::before {
    background: #22c55e;
}

.list-purple li::before {
    background: #d946ef;
}

.list-orange li::before {
    background: #f97316;
}

.list-grey li::before {
    background: #64748b;
}


/* ==========================================================================
   Projects Section
   ========================================================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

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

.project-image-wrapper {
    width: 100%;
    height: 220px;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
    z-index: 2;
    background: var(--bg-surface-elevated);
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* ensures images fit nicely */
    transition: transform 0.5s ease;
}

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

.project-content {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
    z-index: 2;
}

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

.project-meta h3 {
    font-size: 1.35rem;
}

.project-link {
    color: var(--text-secondary);
    display: inline-flex;
    padding: 0.5rem;
    border-radius: 8px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.project-link:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
    background: var(--bg-surface);
}

.project-content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tags span {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 600;
    background: var(--accent-glow);
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-box {
    text-align: center;
    padding: 5rem 2rem;
}

.contact-box h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.contact-box p {
    max-width: 550px;
    margin: 0 auto;
    font-size: 1.15rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    margin-top: 4rem;
    background: var(--bg-surface);
}

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

.footer-left p {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    color: var(--text-secondary);
}

.footer-socials {
    display: flex;
    gap: 1.5rem;
}

.footer-socials a {
    color: var(--text-secondary);
    font-size: 1.35rem;
}

.footer-socials a:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

/* ==========================================================================
   Animations & Reveal
   ========================================================================== */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

/* ==========================================================================
   Availability Badge
   ========================================================================== */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1.4rem;
    background: linear-gradient(90deg, #eff6ff 0%, #faf5ff 100%);
    border: 1px solid #e0f2fe;
    border-radius: 999px;
    color: #0284c7;
    font-weight: 500;
    font-size: 1.05rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(224, 242, 254, 0.4);
    letter-spacing: -0.01em;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background-color: #0ea5e9;
    border-radius: 50%;
    position: relative;
    display: inline-block;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background-color: #0ea5e9;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    animation: pulsing 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulsing {
    0% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(3);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* ==========================================================================
   Updated Navbar Nav-Active and Nav-Resume Styles
   ========================================================================== */
.nav-links a {
    position: relative;
    padding-bottom: 4px;
}

.nav-links a.nav-active {
    color: #0284c7;
    font-weight: 600;
}

.nav-links a.nav-active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #0284c7;
    border-radius: 2px;
}

.nav-links a.nav-resume {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border: 1px solid #0284c7;
    border-radius: 6px;
    color: #0284c7;
    font-weight: 500;
    transition: all 0.3s ease;
    background: transparent;
}

.nav-links a.nav-resume:hover {
    background: #f0f9ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.15);
}

.nav-links a.nav-resume::after {
    display: none;
    /* Prevent underline block */
}

/* ==========================================================================
   Details Skills Page Section (About Page)
   ========================================================================== */
.technical-skills {
    padding: 2rem 0;
}

.skills-layout {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

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

.skill-category h3::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
}

/* Custom bullet dots matching the design */
.category-red::before {
    background-color: #ef4444;
}

.category-blue::before {
    background-color: #3b82f6;
}

.category-green::before {
    background-color: #22c55e;
}

.category-purple::before {
    background-color: #a855f7;
}

.category-orange::before {
    background-color: #f97316;
}

.category-grey::before {
    background-color: #64748b;
}

.category-teal::before {
    background-color: #06b6d4;
}

.skills-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-pill {
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.skill-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Specific background and text color assignments mirroring the image exactly */
.cat-blue .skill-pill,
.cat-teal .skill-pill {
    background-color: #eff6ff;
    color: #0284c7;
}

.cat-green .skill-pill {
    background-color: #f0fdf4;
    color: #16a34a;
}

.cat-purple .skill-pill {
    background-color: #faf5ff;
    color: #9333ea;
}

.cat-orange .skill-pill {
    background-color: #fff7ed;
    color: #c2410c;
}

.cat-grey .skill-pill {
    background-color: #f8fafc;
    color: #334155;
    border: 1px solid #e2e8f0;
}

/* ==========================================================================
   Skill Proficiency Section
   ========================================================================== */
.proficiency-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(226, 232, 240, 0.8);
    max-width: 800px;
    margin: 0 auto;
}

.proficiency-card .card-title {
    font-size: 1.8rem;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.proficiency-card .card-subtitle {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
}

.skill-bar-container {
    margin-bottom: 1.8rem;
}

.skill-bar-container:last-child {
    margin-bottom: 0;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.skill-name {
    font-weight: 500;
    color: #1e293b;
    font-size: 1.05rem;
}

.skill-pct {
    color: #64748b;
    font-size: 0.95rem;
}

.skill-track {
    width: 100%;
    height: 12px;
    background-color: #f1f5f9;
    border-radius: 999px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    border-radius: 999px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.bar-color-0 {
    background-color: #0ea5e9;
}

.bar-color-1 {
    background-color: #10b981;
}

.bar-color-2 {
    background-color: #f59e0b;
}

.bar-color-3 {
    background-color: #d946ef;
}

.bar-color-4 {
    background-color: #3b82f6;
}

.bar-color-5 {
    background-color: #f97316;
}

.bar-color-default {
    background-color: #64748b;
}

/* ==========================================================================
   Detailed Contact Section & Sub-footer Layout
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.info-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background-color: white;
}

.icon-box {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f9ff;
    color: #0284c7;
    border-radius: 8px;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.info-details {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.info-label {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 0.2rem;
}

.info-value {
    font-size: 0.9rem;
    color: #0f172a;
    font-weight: 500;
    word-break: break-word;
    overflow-wrap: break-word;
}

.availability-alert {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 1.5rem;
    border-radius: 8px;
}

.alert-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #16a34a;
    margin-bottom: 0.5rem;
}

.status-pulse-green {
    width: 10px;
    height: 10px;
    background-color: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
}

.availability-alert p {
    color: #15803d;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.contact-form-panel {
    background-color: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: #0f172a;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.2s;
    background-color: #f8fafc;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0284c7;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
}

.btn-submit {
    width: 100%;
    padding: 0.85rem;
    background-color: #0284c7;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.btn-submit:hover {
    background-color: #0369a1;
}

.btn-outline-dark {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #334155;
    font-weight: 600;
    background: white;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-outline-dark:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
}

.btn-solid-blue {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    background-color: #0284c7;
    color: white;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2);
    text-decoration: none;
}

.btn-solid-blue:hover {
    background-color: #0369a1;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(2, 132, 199, 0.3);
}

/* ==========================================================================
   Gradient CTA Section (Home Page)
   ========================================================================== */
.cta-gradient-section {
    background: linear-gradient(135deg, #2563eb, #8b5cf6, #d946ef);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    position: relative;
    padding: 6rem 1rem;
    text-align: center;
    color: white;
    overflow: hidden;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.cta-gradient-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.5;
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
}

.cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-title {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.cta-desc {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons-wrapper {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-cta-white {
    background-color: white;
    color: #2563eb;
    padding: 0.85rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
    text-decoration: none;
    border: 2px solid white;
}

.btn-cta-white:hover {
    background-color: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-cta-outline {
    background-color: transparent;
    color: white;
    padding: 0.85rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.btn-cta-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .cta-title {
        font-size: 2rem;
    }
}

/* ==========================================================================
   Highlight Stats Section
   ========================================================================== */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .highlights-grid {
        grid-template-columns: 1fr;
    }
}

.highlight-card {
    background-color: white;
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.highlight-number-wrapper {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: baseline;
}

.highlight-num,
.highlight-plus {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    margin: 0;
}

.highlight-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.highlight-desc {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0;
}

/* Gradients */
.text-gradient-blue {
    background: linear-gradient(135deg, #0ea5e9, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.text-gradient-pink {
    background: linear-gradient(135deg, #d946ef, #db2777);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.text-gradient-green {
    background: linear-gradient(135deg, #22c55e, #10b981);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ==========================================================================
   Premium Stats Section
   ========================================================================== */
.dark-stats-section {
    padding: 7rem 0;
    text-align: center;
}

.dark-stats-header {
    margin-bottom: 4.5rem;
}

.dark-stats-header .section-title {
    color: #1e293b;
    margin-bottom: 0.75rem;
    font-size: 2.25rem;
}

.dark-stats-header .section-desc {
    color: #64748b;
    margin-bottom: 0;
    font-size: 1rem;
}

.dark-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .dark-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    .dark-stat-card {
        padding: 2.5rem 1rem;
    }
    .dark-stat-icon-wrapper {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    .dark-stat-num {
        font-size: 2rem;
    }
    .dark-stat-title {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .dark-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0 1rem;
    }
    .dark-stat-card {
        padding: 1.5rem 0.5rem;
        border-radius: 12px;
    }
    .dark-stat-icon-wrapper {
        width: 45px;
        height: 45px;
        font-size: 1.15rem;
        margin-bottom: 0.75rem;
        border-radius: 8px;
    }
    .dark-stat-num {
        font-size: 1.6rem;
        margin-bottom: 0.2rem;
    }
    .dark-stat-title {
        font-size: 0.8rem;
        line-height: 1.2;
    }
}

.dark-stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    padding: 3rem 1.5rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.dark-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.65);
}

.dark-stat-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.bg-blue-light { background-color: #e0f2fe; color: #0284c7; }
.bg-green-light { background-color: #dcfce7; color: #16a34a; }
.bg-purple-light { background-color: #f3e8ff; color: #a855f7; }
.bg-orange-light { background-color: #ffedd5; color: #ea580c; }

.dark-stat-num {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.dark-stat-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: #64748b;
    margin: 0;
}

/* Structural Overrides */
.no-top-margin {
    margin-top: 0 !important;
}

/* ==========================================================================
   Global Responsive Adjustments (The Mobile Fix)
   ========================================================================== */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

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

    .hero-subtitle {
        margin: 0 auto 2.5rem;
        max-width: 100%;
    }

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

    .profile-card {
        max-width: 400px;
        margin: 0 auto;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        justify-content: center;
        padding: 2rem;
        gap: 2rem;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.05);
        z-index: 10000;
    }

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

    .mobile-menu-btn {
        display: block;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--text-primary);
        cursor: pointer;
        z-index: 10001;
    }

    .nav-links a {
        font-size: 1.1rem;
        width: 100%;
        text-align: center;
    }

    .nav-resume {
        justify-content: center;
    }

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

@media (max-width: 768px) {
    .section-title {
        font-size: 2.25rem;
    }

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

    .hero {
        padding-top: 8rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    .btn {
        width: 100%;
    }

    .projects-grid,
    .tech-grid,
    .highlights-grid {
        grid-template-columns: 1fr;
    }

    .about-text {
        padding: 2rem;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    /* Contact page */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form-panel {
        padding: 1.5rem;
    }

    .contact-section {
        padding: 3rem 0 !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.5rem;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

    .dark-stat-num {
        font-size: 1.8rem;
    }

    .dark-stat-card {
        padding: 2rem 1rem;
    }

    /* Contact page small */
    .contact-title {
        font-size: 2rem !important;
    }

    .contact-form-panel {
        padding: 1.25rem;
    }

    .info-card {
        padding: 1rem;
    }
}