/* Variable Definitions */
:root {
    --bg-dark: #2a2459;
    --mouse-sparkles-glow-rgb: 239 42 201;
    /* Lighter Deep Purple/Navy */
    --bg-medium: #4c4485;
    /* Much lighter, more vibrant purple */
    --bg-light: #3d3663;
    /* Lighter secondary */

    --primary-color: #ff00cc;
    /* Neon Pink */
    --primary-hover: #d600ad;
    --secondary-color: #333399;
    /* Deep Purple */

    --accent-cyan: #00f0ff;
    --accent-yellow: #ffde59;
    --accent-green: #00ff88;

    --text-white: #ffffff;
    --text-gray: #b3b3b3;

    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(12px);

    --font-heading: 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;

    --shadow-neon: 0 0 10px rgba(255, 0, 204, 0.5), 0 0 20px rgba(255, 0, 204, 0.3);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background: linear-gradient(135deg, var(--bg-dark), var(--bg-medium));
    color: var(--text-white);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.seo-hidden {
    position: absolute;
    left: -9999px;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 0, 204, 0.4);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 0, 204, 0.6);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--accent-cyan);
    color: var(--accent-cyan);
    margin-left: 15px;
}

.btn-secondary:hover {
    background: var(--accent-cyan);
    color: var(--bg-dark);
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Animated Border Gradient for Buttons */
.btn-gradient-wrapper {
    position: relative;
    display: inline-flex;
    padding: 1px;
    /* The border width */
    border-radius: 50px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.5s;
    cursor: pointer;
    z-index: 1;
}

.btn-gradient-wrapper:hover {
    transform: translateY(-3px) scale(1.02);
    background: rgba(255, 255, 255, 0.2);
}

.btn-moving-border {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent,
            transparent,
            transparent,
            rgba(255, 255, 255, 0.6),
            transparent);
    animation: rotate-border 4s linear infinite;
    z-index: 0;
    filter: blur(4px);
}

.btn-gradient-wrapper:hover .btn-moving-border {
    background: conic-gradient(transparent,
            transparent,
            transparent,
            var(--accent-cyan),
            var(--primary-color),
            transparent);
    animation-duration: 2s;
}

@keyframes rotate-border {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.btn-inner {
    position: relative;
    z-index: 2;
    background: #0f0c29;
    /* Matches var(--bg-dark) */
    color: white !important;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border: none;
    text-decoration: none;
}

.text-gradient {
    background: linear-gradient(to right, var(--accent-cyan), var(--primary-color), var(--accent-yellow));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Fixed Brand Logo */
.fixed-logo {
    position: fixed;
    top: 25px;
    left: 25px;
    z-index: 1000;
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: white;
    text-decoration: none;
    text-transform: none;
    /* Keep original casing */
    letter-spacing: 0.5px;
    transition: transform 0.3s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    background: rgba(255, 255, 255, 0.1);
}

.fixed-logo:hover {
    transform: scale(1.05);
}

/* Tubelight Navbar */
.tubelight-navbar {
    position: fixed;
    top: 20px;
    right: 20px;
    /* Top Right Positioning */
    z-index: 1000;
    display: flex;
    justify-content: flex-end;
    /* Align to right */
    width: auto;
}

.tubelight-container {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 8px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.tubelight-item {
    position: relative;
    padding: 10px 24px;
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    /* For glow effect containment */
}

.tubelight-item:hover {
    color: var(--primary-color);
}

.tubelight-item.active {
    color: var(--primary-color);
    background: rgba(255, 0, 204, 0.05);
    /* Slight pink tint */
}

.tubelight-item .icon {
    display: none;
    /* Text only on desktop ideally, or both? Original code hides text on mobile */
    font-size: 1.1rem;
}

.tubelight-item .label {
    display: block;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .tubelight-navbar {
        top: auto;
        bottom: 20px;
        right: 50%;
        transform: translateX(50%);
        /* Centered bottom on mobile */
        width: auto;
    }

    .tubelight-item {
        padding: 12px;
        /* Square/Circle icon button */
        justify-content: center;
    }

    .tubelight-item .label {
        display: none;
    }

    .tubelight-item .icon {
        display: block;
    }
}

/* Lamp Effect */
.lamp-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}

.tubelight-item.active .lamp-effect {
    opacity: 1;
}

/* The light line at top */
.lamp-line {
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--primary-color);
}

/* Glow layers */
.lamp-glow-1 {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    filter: blur(15px);
    opacity: 0.4;
}

.lamp-glow-2 {
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 25px;
    height: 15px;
    background: var(--primary-color);
    border-radius: 50%;
    filter: blur(8px);
    opacity: 0.6;
}

.lamp-glow-3 {
    position: absolute;
    top: 0px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 0, 204, 0.1), transparent);
    opacity: 0.2;
}

/* Hero Section */
#hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
    background: transparent;
    /* Changed from variable to transparent for canvas */
}

/* Liquid Gradient Canvas */
#liquid-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Lighter gradient overlay to let the liquid shine through */
    background: radial-gradient(circle at 70% 30%, rgba(15, 12, 41, 0.2) 0%, rgba(15, 12, 41, 0.8) 90%);
    z-index: -1;
}

.hero-content {
    z-index: 2;
    position: relative;
    width: 100%;
}

.hero-text {
    max-width: 650px;
}

.hero-text h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 30px;
    max-width: 500px;
}


/* Hero Content Centering */
.centered-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1rem;
    width: 100%;
    max-width: 100%;
    /* Override restriction */
    margin: 0 auto;
}

.static-block {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 3rem;
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    color: var(--text-white);
    /* Adapted from slate-800 for dark mode */
}

/* Dynamic Line Wrapper */
.dynamic-line-wrapper {
    position: relative;
    height: 1.5em;
    /* Specific height to contain the absolute words */
    width: 100%;
    display: flex;
    justify-content: center;
    overflow: hidden;
    /* Hide words flying out */
    font-size: 3.5rem;
    font-family: 'Schoolbell', cursive;
    color: white;
    /* Changed to white as requested */
}

@media (min-width: 768px) {
    .static-block {
        font-size: 4.5rem;
    }

    .dynamic-line-wrapper {
        font-size: 5rem;
    }
}

.dynamic-word {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(150px);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s ease;
    text-align: center;
}

.dynamic-word.active {
    opacity: 1;
    transform: translateY(0);
}

.dynamic-word.passed {
    opacity: 0;
    transform: translateY(-150px);
}

.hero-subtitle {
    margin: 2rem auto 0;
    /* Center horizontally */
    font-size: 1.25rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    /* muted-foreground approximation */
    max-width: 42rem;
    /* max-w-2xl */
    font-family: var(--font-body);
    /* sans */
}

/* Floating Shapes Animation */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.shape {
    position: absolute;
    opacity: 0.6;
    animation: float 20s infinite linear;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary-color), transparent 70%);
    top: -50px;
    right: -50px;
    filter: blur(60px);
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--accent-cyan), transparent 70%);
    bottom: 10%;
    left: 5%;
    filter: blur(50px);
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--accent-yellow), transparent 70%);
    top: 40%;
    right: 20%;
    filter: blur(40px);
    animation-duration: 15s;
}

.shape-4 {
    width: 80px;
    height: 80px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: 20%;
    left: 40%;
    animation: floatShape 10s infinite ease-in-out;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(10deg);
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }
}

@keyframes floatShape {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(20px, -40px);
    }
}

/* Sections Common */
section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    color: var(--accent-cyan);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: inline-block;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image .image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 400px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-img {
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.2);
}

.features-list {
    margin-top: 30px;
}

.feature-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 0, 204, 0.1);
    color: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.feature-detail h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.feature-detail p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px 30px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.3);
}

.service-card .card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.1), transparent 40%);
    opacity: 0;
    transition: opacity 0.4s;
}

.service-card:hover .card-glow {
    opacity: 1;
}

.icon-box {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 25px;
    transition: transform 0.4s;
}

.service-card:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
}

.icon-purple {
    background: rgba(255, 0, 204, 0.15);
    color: var(--primary-color);
}

.icon-blue {
    background: rgba(0, 240, 255, 0.15);
    color: var(--accent-cyan);
}

.icon-pink {
    background: rgba(255, 110, 199, 0.15);
    color: #ff6ec7;
}

.icon-yellow {
    background: rgba(255, 222, 89, 0.15);
    color: var(--accent-yellow);
}

.icon-green {
    background: rgba(0, 255, 136, 0.15);
    color: var(--accent-green);
}

.icon-orange {
    background: rgba(255, 165, 0, 0.15);
    color: orange;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.service-link {
    font-weight: 600;
    color: var(--text-white);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.service-link i {
    transition: transform 0.3s;
}

.service-link:hover {
    color: var(--primary-color);
}

.service-link:hover i {
    transform: translateX(5px);
}

/* Bento Gallery Section */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 150px;
    gap: 1.5rem;
    padding: 2rem 0;
}

.bento-item {
    position: relative;
    border-radius: 2rem;
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-light);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.bento-item:hover {
    transform: scale(1.02);
}

.bento-item img,
.bento-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.bento-item:hover img,
.bento-item:hover video {
    transform: scale(1.1);
}

.bento-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
    pointer-events: none;
}

.bento-item:hover .bento-overlay {
    background: rgba(0, 0, 0, 0.1);
}

/* Span Classes for Bento */
.span-2x2 {
    grid-column: span 2;
    grid-row: span 2;
}

.span-1x2 {
    grid-column: span 1;
    grid-row: span 2;
}

.span-2x1 {
    grid-column: span 2;
    grid-row: span 1;
}

/* Modal Styling */
.gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    /* Initially hidden */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-modal.active {
    display: flex;
    opacity: 1;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.modal-content-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: 80vh;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2001;
}

.modal-media-container {
    width: 100%;
    height: 100%;
    border-radius: 2rem;
    overflow: hidden;
    background: #000;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-media-container img,
.modal-media-container video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.modal-close-btn {
    position: absolute;
    top: 3rem;
    right: 3rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2002;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Dock Navigation */
.modal-dock {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.5rem;
    z-index: 2003;
}

.dock-item {
    width: 50px;
    height: 50px;
    border-radius: 0.75rem;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.dock-item:hover {
    opacity: 1;
    transform: scale(1.1);
}

.dock-item.active {
    opacity: 1;
    transform: scale(1.15);
    border-color: white;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.dock-item img,
.dock-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive Bento */
@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 140px;
    }
}

@media (max-width: 640px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 200px;
    }

    .span-2x2,
    .span-1x2,
    .span-2x1 {
        grid-column: span 1;
        grid-row: span 1;
    }

    .modal-content-wrapper {
        height: 60vh;
        padding: 1rem;
    }

    .modal-close-btn {
        top: 1.5rem;
        right: 1.5rem;
    }

    .modal-dock {
        bottom: 1rem;
        padding: 0.5rem;
        max-width: 90vw;
        overflow-x: auto;
    }
}

/* About Photo fix */
.about-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    display: block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.video-overlay i {
    font-size: 3rem;
    color: white;
}

.video-item:hover .video-overlay {
    opacity: 1;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-overlay i {
    font-size: 2rem;
    color: white;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 0;
    /* Handled by glass panel padding */
    padding: 0;
    overflow: hidden;
}

.contact-info {
    padding: 50px;
    background: rgba(15, 12, 41, 0.6);
}

.contact-form-wrapper {
    padding: 50px;
    background: rgba(255, 255, 255, 0.02);
}

.info-list {
    margin: 40px 0;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.icon-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
}

.info-text {
    display: flex;
    flex-direction: column;
}

.info-text .label {
    font-size: 0.8rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-text .value {
    font-weight: 500;
    font-size: 1.1rem;
}

.social-links-footer {
    display: flex;
    gap: 15px;
}

.social-links-footer a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-links-footer a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-gray);
}

input,
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
}

select option {
    background: white;
    color: black;
}

/* Form Success State */
.form-success-message {
    text-align: center;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.success-icon {
    font-size: 4rem;
    color: var(--accent-green);
    margin-bottom: 10px;
}

.form-success-message h3 {
    font-family: 'Fredoka', sans-serif;
    font-size: 2rem;
    color: white;
}

.form-success-message p {
    color: var(--text-gray);
    font-size: 1.1rem;
}

/* Footer */
footer {
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 50px;
    text-align: center;
    color: var(--text-gray);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.footer-logo span {
    color: var(--primary-color);
}

/* Animations */
.fade-in-up,
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left {
    transform: translateX(-30px);
}

.reveal-right {
    transform: translateX(30px);
}

.opacity-1 {
    opacity: 1;
    transform: translate(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

/* Responsive */
@media (max-width: 992px) {

    .about-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .about-image {
        margin-bottom: 30px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .gallery-item.item-1,
    .gallery-item.item-2,
    .gallery-item.item-3,
    .gallery-item.item-4 {
        grid-column: span 1;
        grid-row: span 1;
        height: auto;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* In real implementation, this would be a slide-out menu */
    }

    .mobile-toggle {
        display: block;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* CTA Grid Layout */
.cta-grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.cta-text-content {
    text-align: left;
}

.cta-text-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.cta-text-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Testimonial Carousel in CTA */
.testimonial-wrapper {
    width: 100%;
    /* max-width: 400px; */
    height: 450px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.testimonial-heading {
    text-align: center;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.testimonial-carousel {
    position: relative;
    width: 100%;
    height: 350px;
    /* Adjust based on content */
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.testimonial-card {
    position: absolute;
    width: 320px;
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    pointer-events: none;
    transform-origin: center bottom;
}

/* Card States */
.testimonial-card.active {
    opacity: 1;
    transform: scale(1) translateY(0) rotate(0deg);
    z-index: 3;
    pointer-events: auto;
    cursor: grab;
}

.testimonial-card.next {
    opacity: 0.6;
    transform: scale(0.95) translateY(20px) rotate(-3deg);
    z-index: 2;
    filter: blur(1px);
}

.testimonial-card.prev {
    opacity: 0.3;
    transform: scale(0.9) translateY(40px) rotate(-6deg);
    z-index: 1;
    filter: blur(2px);
}

/* Card Content */
.user-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 0, 204, 0.2);
    /* Primary color low opacity */
}

.testimonial-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.user-name {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    /* slate-800 */
    margin: 0;
}

.user-review {
    text-align: center;
    font-family: var(--font-body);
    /* sans */
    font-size: 0.95rem;
    line-height: 1.6;
    color: #475569;
    /* slate-600 */
    font-style: italic;
    margin: 0;
}

/* Carousel Dots */
.testimonial-dots {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.dot-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.dot-indicator.active {
    width: 24px;
    border-radius: 12px;
    background: var(--primary-color);
}

/* Responsive CTA Updates */
@media (max-width: 992px) {
    .cta-grid-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .cta-text-content {
        text-align: center;
    }

    .testimonial-heading {
        font-size: 1.5rem;
    }
}

/* Hero Images Gallery (Adapted from Aceternity UI) */
.hero-images-gallery {
    position: relative;
    width: 100%;
    height: 480px;
    margin-top: 4rem;
    perspective: 1000px;
    z-index: 5;
}

@media (min-width: 992px) {
    #hero .hero-content {
        display: grid;
        grid-template-columns: 1.1fr 0.9fr;
        gap: 2rem;
        align-items: center;
        text-align: center;
    }

    .centered-hero-content {
        align-items: center;
        text-align: center;
        margin: 0 auto;
    }

    .hero-images-gallery {
        margin-top: 0;
        height: 550px;
    }

    .dynamic-line-wrapper {
        justify-content: center;
    }

    .dynamic-word {
        text-align: center;
    }
}

.gallery-container-inner {
    position: relative;
    width: 100%;
    height: 100%;
    animation: floatingGroup 4s ease-in-out infinite;
}

.hero-img-card {
    position: absolute;
    background: white;
    padding: 10px;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    transition: transform 0.5s ease;
}

.hero-img-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

/* Specific Positions */
.hero-img-card.card-1 {
    width: 300px;
    height: 300px;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
}

.hero-img-card.card-2 {
    width: 250px;
    height: 250px;
    top: 35%;
    right: -5%;
    z-index: 10;
}

.hero-img-card.card-3 {
    width: 220px;
    height: 220px;
    bottom: 5%;
    left: -5%;
    z-index: 10;
}

/* Decorative background shape */
.decorative-blob-hero {
    position: absolute;
    top: 10%;
    left: 25%;
    width: 80px;
    height: 80px;
    background: rgba(0, 240, 255, 0.3);
    border-radius: 50%;
    filter: blur(25px);
    z-index: 0;
    animation: floatingShape 5s ease-in-out infinite;
}

/* Entry Animations */
.reveal-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.8s ease;
}

.reveal-scale.opacity-1 {
    opacity: 1;
    transform: scale(1);
}

@keyframes floatingGroup {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@media (max-width: 991px) {
    .hero-img-card.card-1 {
        width: 220px;
        height: 220px;
    }

    .hero-img-card.card-2 {
        width: 180px;
        height: 180px;
        right: 0;
    }

    .hero-img-card.card-3 {
        width: 150px;
        height: 150px;
        left: 0;
    }

    .hero-images-gallery {
        height: 400px;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .hero-images-gallery {
        display: none;
    }

    /* Focus on text on small mobile */
}



/* Magic Sparkle Cursor Styles */
.mouse-sparkles-star {
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    line-height: 1;
    display: block;
    mix-blend-mode: screen;
    will-change: transform, opacity;
}

/* Smooth Mouse Follower Orb */
.mouse-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    pointer-events: none;
    z-index: 9999;
    will-change: transform;
    display: flex;
    align-items: center;
    justify-content: center;
}

.follower-glow {
    width: 100%;
    height: 100%;
    background: rgba(244, 114, 182, 0.4);
    /* Pink-400 equivalent */
    border-radius: 50%;
    filter: blur(4px);
}

.follower-core {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #ec4899;
    /* Pink-500 equivalent */
    border-radius: 50%;
}

@keyframes fall-1 {
    0% {
        transform: translate(0px, 0px) rotateX(45deg) rotateY(30deg) rotateZ(0deg) scale(0.25);
        opacity: 0;
    }

    5% {
        transform: translate(10px, -10px) rotateX(45deg) rotateY(30deg) rotateZ(0deg) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(25px, 200px) rotateX(180deg) rotateY(270deg) rotateZ(90deg) scale(1);
        opacity: 0;
    }
}

@keyframes fall-2 {
    0% {
        transform: translate(0px, 0px) rotateX(-20deg) rotateY(10deg) scale(0.25);
        opacity: 0;
    }

    10% {
        transform: translate(-10px, -5px) rotateX(-20deg) rotateY(10deg) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(-10px, 160px) rotateX(-90deg) rotateY(45deg) scale(0.25);
        opacity: 0;
    }
}

@keyframes fall-3 {
    0% {
        transform: translate(0px, 0px) rotateX(0deg) rotateY(45deg) scale(0.5);
        opacity: 0;
    }

    15% {
        transform: translate(7px, 5px) rotateX(0deg) rotateY(45deg) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(20px, 120px) rotateX(-180deg) rotateY(-90deg) scale(0.5);
        opacity: 0;
    }
}

/* Hide old custom cursor as new system is more dynamic */
.custom-cursor {
    display: none !important;
}

body {
    cursor: auto;
    /* Reverting to default cursor to allow the sparkles trail more easily */
}

a,
button,
input,
select,
textarea {
    cursor: pointer;
}

/* Horizontal Bento Gallery V2 */
.horizontal-bento-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 6rem 0;
    background: var(--bg-dark);
}

.horizontal-bento-container {
    position: relative;
    width: 100%;
    cursor: grab;
    padding: 0 4rem;
}

.horizontal-bento-container:active {
    cursor: grabbing;
}

.horizontal-bento-grid {
    display: grid;
    grid-auto-flow: column;
    /* Two rows of 220px */
    grid-template-rows: repeat(2, 220px);
    grid-auto-columns: 280px;
    gap: 1.5rem;
    width: max-content;
    will-change: transform;
    transition: transform 0.1s ease-out;
}

/* Bento Span Utilities */
.h-span-2 {
    grid-column: span 2;
}

.v-span-2 {
    grid-row: span 2;
}

.hbar-item {
    position: relative;
    height: 100%;
    width: 100%;
    border-radius: 1.5rem;
    overflow: hidden;
    background: var(--bg-light);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    cursor: pointer;
}

.hbar-item img,
.hbar-item video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hbar-item:hover img,
.hbar-item:hover video {
    transform: scale(1.05);
}

.hbar-overlay {
    position: absolute;
    inset: 0;
    /* Stronger gradient matching the React design */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

.hbar-item:hover .hbar-overlay {
    opacity: 1;
}

.hbar-content {
    position: relative;
    z-index: 10;
    /* Text slides up from 16px */
    transform: translateY(16px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.hbar-item:hover .hbar-content {
    transform: translateY(0);
    opacity: 1;
}

.hbar-content h3 {
    color: white;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Fredoka', sans-serif;
}

.hbar-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin: 0.25rem 0 0 0;
}

/* Scroll-driven Header Animation Base */
.scroll-header {
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Entrance Animations */
@keyframes itemEntrance {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hbar-item {
    animation: itemEntrance 0.8s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

/* Staggered Delays (mimicking staggerChildren: 0.1) */
.hbar-item:nth-child(1) {
    animation-delay: 0.1s;
}

.hbar-item:nth-child(2) {
    animation-delay: 0.2s;
}

.hbar-item:nth-child(3) {
    animation-delay: 0.3s;
}

.hbar-item:nth-child(4) {
    animation-delay: 0.4s;
}

.hbar-item:nth-child(5) {
    animation-delay: 0.5s;
}

.hbar-item:nth-child(6) {
    animation-delay: 0.6s;
}

/* Service Page Header */
.service-header {
    padding: 10rem 0 4rem;
    text-align: center;
}

.service-header h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1.5rem;
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(to bottom, #fff, #999);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-description {
    max-width: 640px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-dim);
}

@media (max-width: 768px) {
    .horizontal-bento-container {
        padding: 0 1.5rem;
    }

    .horizontal-bento-grid {
        grid-template-rows: repeat(2, 180px);
        grid-auto-columns: 220px;
        gap: 1rem;
    }
}

/* Colorful Button (Shadcn-like Interface) */
.btn-colorful {
    position: relative;
    height: 2.75rem;
    /* Marginally taller */
    padding: 0 1.5rem;
    margin: 0 auto;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50px;
    /* Made it pill-shaped to match site style better */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-colorful .btn-colorful-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, #00f0ff, #ff00cc, #ffde59);
    opacity: 0.5;
    filter: blur(15px);
    transition: all 0.5s ease;
    pointer-events: none;
}

.btn-colorful:hover .btn-colorful-bg {
    opacity: 0.8;
}

.btn-colorful .btn-colorful-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: white;
}

.btn-colorful-content span {
    font-size: 0.95rem;
    font-weight: 500;
}

.btn-colorful-content i {
    font-size: 0.8rem;
    opacity: 0.9;
    transition: transform 0.2s;
}

.btn-colorful:hover .btn-colorful-content i {
    transform: translate(2px, -2px);
}

/* Modern Gallery Slider */
.gallery-slider-container {
    max-width: 400px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.slider-track-wrapper {
    position: relative;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.slider-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(to right, #00f0ff, #ff00cc);
    border-radius: 10px;
    width: 0%;
    z-index: 1;
    pointer-events: none;
}

.gallery-slider {
    -webkit-appearance: none;
    appearance: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    background: transparent;
    z-index: 2;
    border: none;
    cursor: pointer;
    margin: 0;
}

.gallery-slider:focus {
    outline: none;
}

/* Thumb Styles */
.gallery-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: white;
    border: none !important;
    outline: none !important;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.8);
    transition: all 0.2s;
}

.gallery-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: white;
    border: none !important;
    outline: none !important;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.8);
    transition: all 0.2s;
}

.gallery-slider:hover::-webkit-slider-thumb {
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.8);
}

.slider-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}