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

@font-face {
    font-family: 'Jaapokki Enhance';
    src: url('../fonts/Jaapokkienchance-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* --- Modern CSS Custom Properties --- */
:root {
    --bg-primary: hsl(240, 16%, 6%);
    --bg-secondary: hsl(240, 16%, 10%);
    --bg-glass: rgba(70, 70, 80, 0.5);
    --bg-glass-modal: rgba(20, 20, 28, 0.5);

    --bg-card: rgba(255, 255, 255, 0.1);
    --bg-glow-1: rgba(139, 92, 246, 0.12);
    --bg-glow-2: rgba(6, 182, 212, 0.08);

    --accent-primary: hsl(263, 85%, 62%);

    /* Premium Violet */
    --accent-secondary: hsl(190, 90%, 50%);
    /* Electric Cyan */
    --accent-success: hsl(142, 72%, 45%);
    /* Success Green */

    --text-primary: hsl(0, 0%, 96%);
    --text-secondary: hsl(240, 8%, 70%);
    --text-muted: hsl(240, 5%, 50%);

    --border-glow: rgba(139, 92, 246, 0.2);
    --border-light: rgba(255, 255, 255, 0.18);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-logo: 'Jaapokki Enhance', sans-serif;

    --nav-height: 80px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Theme Toggle Buttons & Light Theme --- */
.btn-theme-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-bounce);
    outline: none;
}

.btn-theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.08) rotate(15deg);
    border-color: var(--accent-primary);
    box-shadow: 0 0 12px var(--border-glow);
}

.btn-theme-toggle:active {
    transform: scale(0.95);
}

.btn-theme-toggle .sun-icon {
    display: block;
}

.btn-theme-toggle .moon-icon {
    display: none;
}

/* Light Theme Variables Override */
body.light-theme {
    --bg-primary: hsl(240, 10%, 80%);
    --bg-secondary: hsl(240, 8%, 73%);
    /* --bg-glass: rgba(255, 255, 255, 0.1); */
    --bg-glass: rgba(15, 15, 15, 0.01);
    --bg-card: rgba(255, 255, 255, 0.1);
    --bg-glass-modal: rgba(255, 255, 255, 0.6);

    --bg-glow-1: rgba(139, 92, 246, 0.06);
    --bg-glow-2: rgba(6, 182, 212, 0.04);

    --accent-primary: hsl(263, 85%, 45%);
    --accent-secondary: hsl(190, 85%, 35%);

    --text-primary: hsl(240, 25%, 4%);
    --text-secondary: hsl(240, 15%, 15%);
    --text-muted: hsl(240, 10%, 28%);

    --border-glow: rgba(139, 92, 246, 0.22);
    --border-light: rgba(0, 0, 0, 0.18);
}

body.light-theme .btn-theme-toggle {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}

body.light-theme .btn-theme-toggle:hover {
    background: rgba(0, 0, 0, 0.08);
}

body.light-theme .btn-theme-toggle .sun-icon {
    display: none;
}

body.light-theme .btn-theme-toggle .moon-icon {
    display: block;
}

body.light-theme .btn-close-custom {
    background: rgba(0, 0, 0, 0.05);
}

body.light-theme .btn-close-custom:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* Close button filter inversion inside offcanvas for theme adaptation */
body.light-theme .offcanvas .btn-close {
    filter: none;
}

body:not(.light-theme) .offcanvas .btn-close {
    filter: invert(1);
}

/* Input control light mode overrides */
body.light-theme .form-floating>.form-control {
    background: rgba(0, 0, 0, 0.02) !important;
}

body.light-theme .form-floating>.form-control:focus {
    background: rgba(0, 0, 0, 0.04) !important;
}

/* --- Base Resets & Global Styles --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

main {
    background: var(--bg-glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    overflow: hidden;
}

main {
    position: relative;
    z-index: 2;
}

/* --- Floating 3D Background Shapes --- */
.bg-shapes-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Above body background, below content panels */
    background-image:
        radial-gradient(circle at 80% 20%, var(--bg-glow-1), transparent 50%),
        radial-gradient(circle at 20% 50%, var(--bg-glow-2), transparent 50%),
        radial-gradient(circle at 80% 80%, var(--bg-glow-1), transparent 50%);
    background-size: cover;
    overflow: hidden !important;
    pointer-events: none;
}

/* 1. 3D Rotating Glass Cube */
.cube-3d {
    position: absolute;
    width: 140px;
    height: 140px;
    top: 25vh;
    left: 10%;
    transform-style: preserve-3d;
    animation: rotateCube3D 25s linear infinite;
    z-index: 2;
}

.cube-face {
    position: absolute;
    width: 140px;
    height: 140px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 25px rgba(139, 92, 246, 0.15);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

body.light-theme .cube-face {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: inset 0 0 25px rgba(139, 92, 246, 0.08);
}

.cube-face-front {
    transform: translateZ(70px);
}

.cube-face-back {
    transform: rotateY(180deg) translateZ(70px);
}

.cube-face-left {
    transform: rotateY(-90deg) translateZ(70px);
}

.cube-face-right {
    transform: rotateY(90deg) translateZ(70px);
}

.cube-face-top {
    transform: rotateX(90deg) translateZ(70px);
}

.cube-face-bottom {
    transform: rotateX(-90deg) translateZ(70px);
}

/* 2. 3D Glass Sphere with Specular Lighting */
.sphere-3d {
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    right: 12%;
    top: 22vh;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 50%),
        radial-gradient(circle at 65% 65%, rgba(6, 182, 212, 0.4) 0%, rgba(6, 182, 212, 0.05) 70%),
        radial-gradient(circle at 30% 30%, rgba(139, 92, 246, 0.5) 0%, rgba(139, 92, 246, 0.1) 80%);
    box-shadow: inset -10px -10px 25px rgba(0, 0, 0, 0.45),
        inset 10px 10px 25px rgba(255, 255, 255, 0.15),
        0 15px 35px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: floatSphere3D 14s ease-in-out infinite alternate;
    z-index: 2;
}

body.light-theme .sphere-3d {
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 50%),
        radial-gradient(circle at 65% 65%, rgba(6, 182, 212, 0.25) 0%, rgba(6, 182, 212, 0.02) 70%),
        radial-gradient(circle at 30% 30%, rgba(139, 92, 246, 0.3) 0%, rgba(139, 92, 246, 0.05) 80%);
    box-shadow: inset -10px -10px 25px rgba(0, 0, 0, 0.15),
        inset 10px 10px 25px rgba(255, 255, 255, 0.2),
        0 10px 25px rgba(0, 0, 0, 0.1);
}

/* 3. 3D Gyro Rings */
.gyro-3d {
    position: absolute;
    width: 200px;
    height: 200px;
    bottom: 12vh;
    left: 15%;
    transform-style: preserve-3d;
    animation: rotateGyro3D 18s linear infinite;
    z-index: 2;
}

.gyro-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.01);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.12), inset 0 0 15px rgba(139, 92, 246, 0.08);
}

body.light-theme .gyro-ring {
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.06), inset 0 0 15px rgba(139, 92, 246, 0.04);
}

.gyro-ring-1 {
    transform: rotateX(0deg);
}

.gyro-ring-2 {
    transform: rotateY(90deg);
    border-color: rgba(6, 182, 212, 0.25);
}

.gyro-ring-3 {
    transform: rotateX(90deg);
    border-color: rgba(139, 92, 246, 0.25);
}

/* --- 3D Small Variants --- */
.cube-small {
    width: 90px;
    height: 90px;
    top: 52vh;
    right: 8%;
    left: auto;
    animation: rotateCube3DSmall 22s linear infinite;
}

.cube-small .cube-face {
    width: 90px;
    height: 90px;
    box-shadow: inset 0 0 15px rgba(6, 182, 212, 0.2);
}

.cube-small .cube-face-front {
    transform: translateZ(45px);
}

.cube-small .cube-face-back {
    transform: rotateY(180deg) translateZ(45px);
}

.cube-small .cube-face-left {
    transform: rotateY(-90deg) translateZ(45px);
}

.cube-small .cube-face-right {
    transform: rotateY(90deg) translateZ(45px);
}

.cube-small .cube-face-top {
    transform: rotateX(90deg) translateZ(45px);
}

.cube-small .cube-face-bottom {
    transform: rotateX(-90deg) translateZ(45px);
}

.sphere-small {
    width: 100px;
    height: 100px;
    top: 80vh;
    right: 15%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 50%),
        radial-gradient(circle at 65% 65%, rgba(139, 92, 246, 0.3) 0%, rgba(139, 92, 246, 0.05) 70%),
        radial-gradient(circle at 30% 30%, rgba(244, 63, 94, 0.4) 0%, rgba(244, 63, 94, 0.1) 80%);
    box-shadow: inset -5px -5px 15px rgba(0, 0, 0, 0.4),
        inset 5px 5px 15px rgba(255, 255, 255, 0.15),
        0 10px 20px rgba(0, 0, 0, 0.25);
    animation: floatSphere3D 10s ease-in-out infinite alternate-reverse;
}

body.light-theme .sphere-small {
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 50%),
        radial-gradient(circle at 65% 65%, rgba(139, 92, 246, 0.2) 0%, rgba(139, 92, 246, 0.02) 70%),
        radial-gradient(circle at 30% 30%, rgba(244, 63, 94, 0.25) 0%, rgba(244, 63, 94, 0.05) 80%);
    box-shadow: inset -5px -5px 15px rgba(0, 0, 0, 0.15),
        inset 5px 5px 15px rgba(255, 255, 255, 0.2),
        0 8px 18px rgba(0, 0, 0, 0.08);
}

.gyro-small {
    width: 120px;
    height: 120px;
    top: 60vh;
    bottom: auto;
    left: 8%;
    animation: rotateGyro3D 22s linear infinite reverse;
}

@keyframes rotateCube3DSmall {
    0% {
        transform: rotateX(0deg) rotateY(360deg) rotateZ(0deg) translateY(0);
    }

    50% {
        transform: rotateX(180deg) rotateY(180deg) rotateZ(90deg) translateY(10px);
    }

    100% {
        transform: rotateX(360deg) rotateY(0deg) rotateZ(180deg) translateY(0);
    }
}

/* Atmospheric glows behind 3D objects */
.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(95px);
    opacity: 0.4;
    z-index: 1;
}

body.light-theme .hero-shape {
    opacity: 0.15;
}

.hero-shape-1 {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, var(--accent-secondary) 0%, transparent 70%);
    top: 5%;
    left: -5%;
    animation: floatShape1 20s ease-in-out infinite alternate;
}

.hero-shape-2 {
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
    bottom: 5%;
    right: -10%;
    animation: floatShape2 26s ease-in-out infinite alternate;
}

.hero-shape-3 {
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, hsl(325, 90%, 55%) 0%, transparent 70%);
    top: 35%;
    right: 25%;
    animation: floatShape3 16s ease-in-out infinite alternate;
}

/* Animations */
@keyframes rotateCube3D {
    0% {
        transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg) translateY(0);
    }

    50% {
        transform: rotateX(180deg) rotateY(180deg) rotateZ(90deg) translateY(-15px);
    }

    100% {
        transform: rotateX(360deg) rotateY(360deg) rotateZ(180deg) translateY(0);
    }
}

@keyframes floatSphere3D {
    0% {
        transform: translateY(0) scale(1) rotate(0deg);
    }

    100% {
        transform: translateY(25px) scale(1.05) rotate(15deg);
    }
}

@keyframes rotateGyro3D {
    0% {
        transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg) translateY(0);
    }

    100% {
        transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg) translateY(12px);
    }
}

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

    100% {
        transform: translate(80px, 90px) scale(1.12);
    }
}

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

    100% {
        transform: translate(-90px, -80px) scale(0.88);
    }
}

@keyframes floatShape3 {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    100% {
        transform: translate(-40px, 50px) scale(1.2) rotate(90deg);
    }
}

/* --- Header & Navigation Bar --- */
.header-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(-20px);
    animation: slideDownFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: background 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        padding 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Brand Logo Styling */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-logo);
    font-weight: 300;
    font-size: 2.5rem;
    letter-spacing: 1.5px;
    text-decoration: none;
    color: var(--text-primary);
    opacity: 0;
    transform: scale(0.9);
    animation: scaleFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
    margin-top: 10px !important;
}

.offcanvas-header .nav-logo {
    margin-top: 10px !important;
    font-size: 1.9rem;
}

.logo-dot {
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px var(--accent-primary);
}

/* Navigation Links */
.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2.5rem;
    margin-top: 10px !important;
}

.nav-item {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Loop animations for nav items (staggered delay) */
.nav-item:nth-child(1) {
    animation-delay: 0.4s;
}

.nav-item:nth-child(2) {
    animation-delay: 0.5s;
}

.nav-item:nth-child(3) {
    animation-delay: 0.6s;
}

.nav-item:nth-child(4) {
    animation-delay: 0.7s;
}

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

.nav-link:hover {
    color: var(--text-primary);
}

/* Slide underline hover effect */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transition: var(--transition-smooth);
    transform: translateX(-50%);
}

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

/* CTA Contact Button */
.nav-cta {
    opacity: 0;
    transform: scale(0.9);
    animation: scaleFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

.btn-contact-trigger {
    background: linear-gradient(135deg, var(--accent-primary), hsl(263, 75%, 55%));
    color: white;
    border: none;
    padding: 0.5rem 1.75rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.btn-contact-trigger::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-contact-trigger:hover::before {
    left: 100%;
}

.btn-contact-trigger:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
    background: linear-gradient(135deg, hsl(263, 90%, 65%), var(--accent-primary));
}

.btn-contact-trigger:active {
    transform: translateY(-1px);
}

/* --- Mobile Menu Toggle Icon --- */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 4px;
    z-index: 1010;
}

.mobile-toggle span {
    width: 28px;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-smooth);
}



/* --- Contact Modal Section (Bootstrap Overrides) --- */
.modal-backdrop {
    background-color: rgba(5, 5, 8, 0.6) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-backdrop.show {
    opacity: 1 !important;
}

.modal-content {
    background: var(--bg-glass-modal);
    border: 1px solid var(--border-light);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 3rem;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.btn-close-custom {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.25rem;
    transition: var(--transition-smooth);
    z-index: 10;
}

.btn-close-custom:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    transform: rotate(90deg);
}

/* Modal Headers */
.modal-header-desc {
    margin-bottom: 2.5rem;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Contact Form Input Fields via Bootstrap floating labels */
.contact-form {
    display: flex;
    flex-direction: column;
}

/* Floating labels custom override */
.form-floating>.form-control {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    color: var(--text-primary) !important;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    padding-top: 1.625rem;
    padding-bottom: 0.625rem;
}

.form-floating>.form-control:focus {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: var(--accent-primary) !important;
    box-shadow: 0 0 15px var(--border-glow) !important;
    color: var(--text-primary) !important;
}

/* Override placeholder/label colors */
.form-floating>label {
    color: var(--text-muted);
    font-size: 0.95rem;
    padding: 1.1rem 1rem;
    transition: var(--transition-smooth);
}

.form-floating>.form-control:focus~label,
.form-floating>.form-control:not(:placeholder-shown)~label {
    color: var(--accent-primary) !important;
    font-weight: 600;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

/* Validation styling */
.form-floating.has-error>.form-control {
    border-color: #ef4444 !important;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.2) !important;
}

.form-floating.has-error>label {
    color: #ef4444 !important;
}

.form-floating>.error-message {
    font-size: 0.75rem;
    color: #ef4444;
    margin-top: 0.25rem;
    display: none;
}

.form-floating.has-error>.error-message {
    display: block;
}


/* Form Submit Button */
.btn-submit-form {
    background: linear-gradient(135deg, var(--accent-primary), hsl(263, 75%, 55%));
    color: white;
    border: none;
    padding: 1.1rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-submit-form:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.btn-submit-form:active {
    transform: translateY(0);
}

/* Form Success State styling */
.btn-submit-form.success {
    background: var(--accent-success);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

/* Form Loading Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    display: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Form Global Error Alert */
.form-global-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    text-align: center;
}

/* Animated Modal Success View */
.form-success-container {
    text-align: center;
    padding: 2.5rem 1rem 1.5rem;
    animation: successFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes successFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.success-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, rgba(6, 182, 212, 0.15) 100%);
    box-shadow: 0 0 35px rgba(139, 92, 246, 0.4), 0 0 60px rgba(6, 182, 212, 0.25);
    animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 30px rgba(139, 92, 246, 0.4), 0 0 60px rgba(6, 182, 212, 0.25);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 50px rgba(139, 92, 246, 0.7), 0 0 85px rgba(6, 182, 212, 0.45);
        transform: scale(1.05);
    }
}

.checkmark-svg {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: block;
    stroke-width: 3.5;
    stroke: #06b6d4;
    stroke-miterlimit: 10;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3.5;
    stroke-miterlimit: 10;
    stroke: #8b5cf6;
    fill: none;
    animation: strokeCircle 0.8s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke: #06b6d4;
    animation: strokeCheck 0.45s cubic-bezier(0.65, 0, 0.45, 1) 0.65s forwards;
}

@keyframes strokeCircle {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes strokeCheck {
    100% {
        stroke-dashoffset: 0;
    }
}

.success-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, #a78bfa, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.75rem;
}

.success-message {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto 1.5rem auto;
}

.success-message strong {
    color: var(--text-primary);
    background: linear-gradient(135deg, #c084fc, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-success-close {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    border: none;
    font-weight: 600;
    font-size: 1rem;
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
    transition: all 0.3s ease;
}

.btn-success-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(139, 92, 246, 0.6);
    color: #ffffff;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20%,
    60% {
        transform: translateX(-6px);
    }

    40%,
    80% {
        transform: translateX(6px);
    }
}


/* --- Page Load Animations Keyframes --- */
@keyframes slideDownFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleFadeIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* --- Sticky Navbar Scroll State --- */
.header-navbar.nav-scrolled {
    background: rgba(10, 10, 15, 0.75) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
    height: 80px;
}

body.light-theme .header-navbar.nav-scrolled {
    background: rgba(225, 225, 230, 0.85) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
}

/* --- Responsive Media Queries --- */
@media (max-width: 991px) {
    .header-navbar {
        padding: 0 2rem;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 70px;
    }

    .header-navbar {
        padding: 0 1.5rem;
    }

    .header-navbar.nav-scrolled {
        height: 60px;
    }

    .nav-logo {
        font-size: 1.9rem;
        margin-top: 6px !important;
    }
}

@media (max-width: 576px) {
    :root {
        --nav-height: 60px;
    }

    .header-navbar {
        padding: 0 1rem;
        overflow-x: hidden;
    }

    .header-navbar.nav-scrolled {
        height: 54px;
    }

    .nav-logo {
        font-size: 1.6rem;
        margin-top: 4px !important;
    }

    .offcanvas-header .nav-logo {
        font-size: 1.6rem;
        margin-top: 4px !important;
    }

    .btn-theme-toggle {
        width: 36px;
        height: 36px;
    }

    .btn-theme-toggle svg {
        width: 16px;
        height: 16px;
    }

    .hero-ctas {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .btn-contact-trigger {
        width: 100%;
    }
}

/* --- Offcanvas Mobile Menu Styling --- */
.offcanvas {
    background-color: rgba(10, 10, 15, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    width: 300px !important;
    border-left: 1px solid var(--border-light) !important;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.offcanvas-header {
    padding: 2rem;
    border-bottom: 1px solid var(--border-light);
}

.offcanvas-body {
    padding: 3rem 2rem;
}

.offcanvas-nav-list {
    width: 100%;
}

.offcanvas-nav-link {
    font-family: var(--font-body);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
    display: inline-block;
}

.offcanvas-nav-link:hover {
    color: var(--text-primary);
    transform: translateX(8px);
}

@media (max-width: 768px) {
    .modal-content {
        padding: 2.5rem 1.5rem;
    }
}

/* --- Hero Section --- */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: var(--nav-height) 2rem 2rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    z-index: 10;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Staggered Smooth Text Reveal */
#typewriter {
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
}

#typewriter .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(12px) translateZ(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;

    /* Apply gradient directly to chars to prevent clipping container breakages */
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

#typewriter.active .char {
    opacity: 1;
    transform: translateY(0) translateZ(0);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    /* max-width: 600px; */
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    opacity: 0;
    transform: translateY(25px);
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
}

/* Hero CTA Button with Rotating Gradient Border */
.btn-hero-wrapper {
    position: relative;
    display: inline-block;
    padding: 2px;
    /* The border width */
    border-radius: 50px;
    overflow: hidden;
    z-index: 10;
    box-shadow: 0 6px 22px var(--border-glow);
    transition: var(--transition-bounce);
}

/* Modern Glowing Tagline/Pills */
.hero-tag-pills {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.tag-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    padding: 0.45rem 1.1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-bounce);
}

body.light-theme .tag-pill {
    background: rgba(0, 0, 0, 0.04);
}

.tag-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: var(--accent-primary);
    color: var(--text-primary);
    box-shadow: 0 0 15px var(--border-glow);
}

body.light-theme .tag-pill:hover {
    background: rgba(0, 0, 0, 0.06);
}

.tag-dot {
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 50%;
    display: inline-block;
}

/* Dual CTA container style */
.hero-ctas {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.9s forwards;
}

.btn-secondary-hero {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--accent-secondary);
    padding: 0.95rem 2.45rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-bounce);
    display: inline-block;
}

.btn-secondary-hero:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.15);
}

body.light-theme .btn-secondary-hero:hover {
    background: rgba(0, 0, 0, 0.03);
}

.btn-secondary-hero:active {
    transform: translateY(-1px);
}

/* Trust Indicators / Social Proof */
.hero-trust {
    margin-top: 5rem;
    opacity: 0;
    transform: translateY(15px);
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 1.2s forwards;
}

.trust-title {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: var(--text-secondary);
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.trust-brands {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.trust-brands span {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-secondary);
    opacity: 0.8;
    transition: var(--transition-smooth);
}

.trust-brands span:hover {
    color: var(--text-primary);
    opacity: 1;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

body.light-theme .trust-brands span:hover {
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

.btn-hero-wrapper::before {
    content: '';
    position: absolute;
    top: -150%;
    left: -150%;
    width: 400%;
    height: 400%;
    background: conic-gradient(var(--accent-primary),
            var(--accent-secondary),
            hsl(325, 90%, 60%),
            /* Hot Magenta */
            var(--accent-primary));
    animation: rotateGradient 4s linear infinite;
    z-index: -2;
}

.btn-hero-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px var(--border-glow);
}

.btn-hero-wrapper:active {
    transform: translateY(-1px);
}

.btn-hero-cta {
    background: var(--bg-primary) !important;
    color: var(--text-primary);
    border: none !important;
    padding: 0.95rem 2.45rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: block;
    position: relative;
    z-index: 2;
}

.btn-hero-cta:hover {
    background: var(--bg-secondary) !important;
}

@keyframes rotateGradient {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* --- Global Section Utilities --- */
.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary) 40%, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

/* --- Services Section Styling --- */


.service-card {
    position: relative;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: var(--transition-smooth);
    overflow: hidden;
    z-index: 1;
    background: none !important;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -150%;
    left: -150%;
    width: 400%;
    height: 400%;
    background: conic-gradient(var(--accent-primary),
            var(--accent-secondary),
            hsl(325, 90%, 60%),
            var(--accent-primary));
    animation: rotateGradient 6s linear infinite;
    z-index: -2;
    transition: var(--transition-smooth);
}

.service-card::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: rgba(18, 18, 24, 0.92);
    border-radius: 18px;
    z-index: -1;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: var(--transition-smooth);
}

body.light-theme .service-card::after {
    background: rgba(230, 230, 235, 0.94);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px var(--border-glow);
}

.service-card:hover::before {
    animation-duration: 3s;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(6, 182, 212, 0.05));
    border: 1px solid var(--border-light);
    color: var(--accent-primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.75rem;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    box-shadow: 0 5px 15px var(--border-glow);
    transform: scale(1.05);
}

.service-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.service-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* --- About Section Styling --- */


.about-lead {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.7;
}

.about-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.btn-secondary-link {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition-smooth);
    display: inline-block;
}

.btn-secondary-link:hover {
    color: var(--accent-primary);
    transform: translateX(5px);
}

.stat-card {
    position: relative;
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
    overflow: hidden;
    z-index: 1;
    background: none !important;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -150%;
    left: -150%;
    width: 400%;
    height: 450%;
    background: conic-gradient(var(--accent-primary),
            var(--accent-secondary),
            hsl(325, 90%, 60%),
            var(--accent-primary));
    animation: rotateGradient 6s linear infinite;
    z-index: -2;
    transition: var(--transition-smooth);
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: rgba(18, 18, 24, 0.92);
    border-radius: 18px;
    z-index: -1;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
}

body.light-theme .stat-card::after {
    background: rgba(230, 230, 235, 0.94);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(6, 182, 212, 0.25);
}

.stat-card:hover::before {
    animation-duration: 3s;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin: 0;
}

/* --- Portfolio Section Styling --- */


.portfolio-card {
    position: relative;
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: var(--transition-smooth);
    overflow: hidden;
    z-index: 1;
    background: none !important;
    border: none !important;
    height: 100%;
}

.portfolio-card::before {
    content: '';
    position: absolute;
    top: -150%;
    left: -150%;
    width: 400%;
    height: 400%;
    background: conic-gradient(var(--accent-primary),
            var(--accent-secondary),
            hsl(325, 90%, 60%),
            var(--accent-primary));
    animation: rotateGradient 6s linear infinite;
    z-index: -2;
    transition: var(--transition-smooth);
}

.portfolio-card::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: rgba(18, 18, 24, 0.92);
    border-radius: 18px;
    z-index: -1;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: var(--transition-smooth);
}

body.light-theme .portfolio-card::after {
    background: rgba(230, 230, 235, 0.94);
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px var(--border-glow);
}

.portfolio-card:hover::before {
    animation-duration: 3s;
}

.portfolio-img-container {
    position: relative;
    width: 100%;
    min-height: 360px;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.portfolio-placeholder-img {
    display: none;
}

.portfolio-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    background: transparent !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2.25rem 1.75rem;
    transition: var(--transition-smooth);
}

.portfolio-tag {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-secondary);
    margin-bottom: 0.35rem;
}

.portfolio-project-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.portfolio-project-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.45;
    margin: 0;
    opacity: 0.9;
}

/* Hover effects for Portfolio */
.portfolio-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-primary);
    box-shadow: 0 15px 35px var(--border-glow);
}

.portfolio-card:hover .portfolio-placeholder-img {
    transform: scale(1.08);
}

/* --- Footer Section Styling --- */
.footer-section {
    position: relative;
    z-index: 2;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-light);
    color: var(--text-secondary);
}

.footer-desc {
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-social-links a {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

body.light-theme .footer-social-links a {
    background: rgba(0, 0, 0, 0.03);
}

.footer-social-links a:hover {
    color: white;
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px var(--border-glow);
    transform: translateY(-3px);
}

body.light-theme .footer-social-links a:hover {
    color: white;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--accent-primary);
    padding-left: 5px;
}

.footer-cta-text {
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-bottom {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --- Auto-height & Auto-positioning Mosaic Image Tiles --- */
.mosaic-tiles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: auto;
    align-items: start;
    gap: 1rem;
    position: relative;
    padding: 0.5rem 0;
}

.mosaic-tile {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-bounce);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-light);
    background: var(--bg-glass);
    height: auto;
}

/* Unordered / Staggered offsets for organic masonry look */
.tile-stagger-1 {
    transform: translateY(-8px) rotate(-1.5deg);
}

.tile-stagger-2 {
    transform: translateY(18px) rotate(1.8deg);
}

.tile-stagger-3 {
    transform: translateY(-12px) rotate(1deg);
}

.tile-stagger-4 {
    transform: translateY(-8px) rotate(1.5deg);
}

.tile-stagger-5 {
    transform: translateY(18px) rotate(-1.4deg);
}

.tile-stagger-6 {
    transform: translateY(-12px) rotate(-1.5deg);
}

.tile-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    /* Matches UI/UX design tile height & ratio */
    overflow: hidden;
}

.tile-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.mosaic-tile:hover .tile-img {
    transform: scale(1.1);
}

.tile-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 18, 0.85) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 0.75rem;
    opacity: 0.9;
    transition: var(--transition-smooth);
}

.mosaic-tile:hover .tile-image-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(139, 92, 246, 0.75) 0%, transparent 70%);
}

.tile-badge-floating {
    background: rgba(15, 15, 25, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.4px;
    padding: 0.3rem 0.65rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: var(--transition-smooth);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.mosaic-tile:hover .tile-badge-floating {
    background: #ffffff;
    color: var(--bg-primary);
    border-color: #ffffff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}

body.light-theme .mosaic-tile {
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

body.light-theme .tile-badge-floating {
    background: rgba(255, 255, 255, 0.85);
    color: var(--text-primary);
    border-color: rgba(0, 0, 0, 0.15);
}

@media (max-width: 576px) {
    .mosaic-tiles-grid {
        grid-template-columns: 1fr;
    }

    .tile-stagger-1,
    .tile-stagger-2,
    .tile-stagger-3,
    .tile-stagger-4 {
        transform: none !important;
    }
}

/* --- Portfolio Features Tags --- */
.portfolio-features-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
}

.portfolio-features-list li {
    font-size: 0.75rem;
    color: var(--text-primary);
    background: rgba(139, 92, 246, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-glow);
    padding: 0.25rem 0.6rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    font-weight: 500;
}

.portfolio-features-list li::before {
    content: "•";
    color: var(--accent-secondary);
    margin-right: 0.35rem;
    font-weight: bold;
}

/* --- Floating Ongoing Project Badge --- */
.badge-ongoing-floating {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    /* background: linear-gradient(135deg, hsl(142, 75%, 42%), hsl(160, 80%, 38%)); */
    background: linear-gradient(135deg, var(--accent-primary), hsl(263, 75%, 55%));
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 0.35rem 0.8rem;
    border-radius: 50px;
    /* box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3); */
    /* animation: pulseGlow 2.5s infinite ease-in-out; */
}

.form-floating>textarea:focus~label::after,
.form-floating>textarea:not(:placeholder-shown)~label::after {
    background-color: transparent !important;
}

/* @keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 1px 15px rgba(16, 185, 129, 0.4);
    }
    50% {
        box-shadow: 0 1px 22px rgba(16, 185, 129, 0.8);
    }
} */