/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #0891b2;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #06b6d4;
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 10000;
}

.scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #06b6d4, #22d3ee);
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.5);
    transition: width 0.1s ease;
}

/* Glassmorphism Utilities */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Animation Classes */
.scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-load {
    opacity: 1 !important;
    transform: none !important;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating Bubbles Animation */
.floating-bubble {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) translateX(0px);
    }

    25% {
        transform: translateY(-20px) translateX(10px);
    }

    50% {
        transform: translateY(-10px) translateX(-10px);
    }

    75% {
        transform: translateY(-30px) translateX(5px);
    }
}

/* Smooth Parallax Background */
.parallax-layer {
    will-change: transform;
    transform: translateZ(0);
}

/* Button Glow Effects */
.glow-hover {
    position: relative;
    overflow: hidden;
}

.glow-hover::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(6, 182, 212, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.glow-hover:hover::before {
    width: 300px;
    height: 300px;
}

/* Text Selection */
::selection {
    background: rgba(6, 182, 212, 0.3);
    color: white;
}

/* Custom Focus States */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
}

/* Timeline Connector Animation */
.timeline-connector {
    background: linear-gradient(to bottom, #06b6d4, #3b82f6, #06b6d4);
    background-size: 100% 200%;
    animation: gradientFlow 3s ease infinite;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 0%;
    }

    50% {
        background-position: 0% 100%;
    }

    100% {
        background-position: 0% 0%;
    }
}

/* Blur Reveal Effect */
.blur-reveal {
    filter: blur(10px);
    opacity: 0;
    transition: all 1s ease-out;
}

.blur-reveal.visible {
    filter: blur(0);
    opacity: 1;
}

/* Toast Notification Styling */
#success-toast {
    box-shadow: 0 10px 40px -10px rgba(6, 182, 212, 0.4);
}

#success-toast.show {
    transform: translateX(0);
}

.toast-exit {
    transform: translateX(150%) !important;
}

/* Navbar Transition */
.navbar-glass {
    background: transparent !important;
    backdrop-filter: none;
    border-bottom: none;
}

.navbar-transparent {
    background: transparent;
    backdrop-filter: none;
    border-bottom: 1px solid transparent;
}

/* Mobile Menu Animation */
.mobile-menu-enter {
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
}

.mobile-menu-enter.active {
    transform: translateX(0);
}

/* Image Hover Zoom */
.img-zoom-container {
    overflow: hidden;
}

.img-zoom-container img {
    transition: transform 0.5s ease;
}

.img-zoom-container:hover img {
    transform: scale(1.05);
}

/* Gradient Text Animation */
.gradient-text-animated {
    background: linear-gradient(90deg, #22d3ee, #3b82f6, #22d3ee);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: gradientText 3s linear infinite;
}

@keyframes gradientText {
    to {
        background-position: 200% center;
    }
}

/* Premium Hamburger Button */
#mobile-menu-btn {
    width: 48px;
    height: 48px;
    padding: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(6, 182, 212, 0.4);
}

.hamburger-box {
    width: 24px;
    height: 18px;
    display: inline-block;
    position: relative;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 24px;
    height: 1.5px;
    background-color: white;
    position: absolute;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 4px;
}

.hamburger-inner {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-inner::before {
    content: "";
    top: -8px;
}

.hamburger-inner::after {
    content: "";
    top: 8px;
}

/* Active State - Morphing to X */
#mobile-menu-btn.active .hamburger-inner {
    background-color: transparent;
}

#mobile-menu-btn.active .hamburger-inner::before {
    transform: translateY(8px) rotate(45deg);
}

#mobile-menu-btn.active .hamburger-inner::after {
    transform: translateY(-8px) rotate(-45deg);
}

/* Premium Mobile Menu Enhancement */
#mobile-menu {
    border-left: 1px solid rgba(6, 182, 212, 0.1);
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.98)) !important;
}

.mobile-link {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 2.2rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.05em !important;
    transition: all 0.3s ease !important;
}

.mobile-link:hover {
    color: #22d3ee !important;
    transform: translateX(10px) !important;
}



/* Responsive Typography */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
}

/* Loading State */
.loading-shimmer {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 25%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.03) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.nav-menu a {
    position: relative;
    text-decoration: none;
    color: inherit;
}

.nav-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: #ffffff;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.logo-font {
    font-family: 'Bodoni Moda', serif;
}

#hero {
    position: relative;
    min-height: 100vh;
    padding-top: 120px;
    /* space for fixed header */
    padding-bottom: 60px;
    overflow: hidden;
}

.video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

#hero::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

.global-video-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero {
    min-height: 100vh;
    background-image: url("assets/background.PNG");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.sub-heading {
    font-family: 'Manrope', sans-serif;
    /* or Inter */
    font-weight: 700;
    letter-spacing: 0.5px;
}


.process-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.section-header h3 {
    font-size: 1.2rem;
    color: #00d4ff;
    margin-bottom: 24px;
    letter-spacing: 2px;
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    color: #cbd5e1;
}

.timeline {
    position: relative;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    top: 0;
    bottom: 80px;
    background: #00d4ff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
}

.process-step {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 100px;
    position: relative;
    gap: 5%;
}

.step-number {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #00d4ff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: #0f172a;
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.7);
    z-index: 10;
}

.step-content {
    width: 40%;
    padding: 20px;
}

.step-content.left {
    text-align: right;
}

.step-content.right {
    text-align: left;
}

.step-content h3 {
    color: #00d4ff;
    margin-bottom: 15px;
}

.step-content ul {
    list-style: none;
    padding: 0;
}

.step-content ul li {
    margin-bottom: 8px;
    color: #cbd5e1;
}

.step-image {
    width: 40%;
}

.step-image img {
    width: 100%;
    border-radius: 20px;
    aspect-ratio: 16/9;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.step-image img:hover {
    transform: scale(1.05);
}

.tagline {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 2.8rem;
    color: #ffffff !important;
    letter-spacing: 2px;
    text-align: center;

    text-shadow:
        0 0 5px #ffffff,
        0 0 15px #ffffff,
        0 0 30px #06b6d4,
        0 0 60px #06b6d4;
}

html {
    scroll-behavior: auto !important;
}

/* Water Texture Background */
.water-texture {
    background-color: #020617;
    background-image:
        radial-gradient(at 0% 0%, rgba(6, 182, 212, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(34, 211, 238, 0.1) 0px, transparent 50%),
        radial-gradient(at 50% 50%, rgba(15, 23, 42, 0.8) 0px, transparent 100%);
}

/* Reveal Animation */
.reveal {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.custom-bullet {
    position: relative;
    padding-left: 1.5rem;
}

.custom-bullet::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #06b6d4, #22d3ee);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

/* Premium Cyan Bullet */
.premium-bullet {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 1.5rem;
}

.premium-bullet::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #06b6d4;
    box-shadow: 0 0 10px #06b6d4, 0 0 20px rgba(6, 182, 212, 0.6);
}

.glow-tick {
    filter: drop-shadow(0 0 6px rgba(6, 182, 212, 0.7));
}

/* Enhanced Glass Card Hover */
.glass-card {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-8px);
    border-color: rgba(6, 182, 212, 0.4) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(6, 182, 212, 0.1);
}

/* Commitment Block Premium Styling */
#quality div.bg-slate-900\/60 {
    background: radial-gradient(circle at top right, rgba(6, 182, 212, 0.1), transparent),
        rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

#quality div.bg-slate-900\/60::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(6, 182, 212, 0.1), transparent 30%);
    animation: rotateGlow 10s linear infinite;
    pointer-events: none;
}

@keyframes rotateGlow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

#about {
    scroll-margin-top: 1px;
}

#quality {
    scroll-margin-top: 1px;
}

#process {
    scroll-margin-top: 1px;
}

#contact-showcase {
    scroll-margin-top: 1px;
}

/* FAQ Premium Styling */
#faq details {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 1rem;
    padding: 0.5rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

#faq details:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(6, 182, 212, 0.2);
}

#faq details[open] {
    background: rgba(6, 182, 212, 0.05);
    border-color: rgba(6, 182, 212, 0.3);
    padding-bottom: 1.5rem;
}

#faq summary {
    padding: 1rem 0;
    font-weight: 500;
}

#faq summary::-webkit-details-marker {
    display: none;
}

/* ========================= */
/* FINAL MOBILE FIX */
/* ========================= */

@media (max-width: 768px) {

    /* Remove About center glowing line */
    #about .absolute {
        display: none !important;
    }

    /* Make process vertical clean */
    .timeline::before {
        display: none;
    }

    .process-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
        margin-bottom: 60px;
    }

    .step-content,
    .step-image {
        width: 100%;
    }

    .step-content.left,
    .step-content.right {
        text-align: center;
    }

    .step-number {
        position: relative;
        left: auto;
        transform: none;
        margin-bottom: 15px;
        width: 50px;
        height: 50px;
    }

    /* Fix large headings */
    h1 {
        font-size: 2.4rem !important;
        line-height: 1.2;
    }

    h2 {
        font-size: 2.2rem !important;
    }

    h3 {
        font-size: 1.6rem !important;
    }

    /* Better spacing */
    section {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }

    /* Hero mobile: increase padding and ensure top-alignment to prevent header collision */
    #hero {
        padding-top: 180px !important;
        padding-bottom: 40px !important;
        min-height: auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-start !important;
    }

    /* Tighter heading on mobile */
    #hero h1 {
        font-size: 2.2rem !important;
        line-height: 1.2 !important;
        margin-bottom: 1rem;
    }

    /* Process Section Mobile Enhancements */
    .process-step {
        background: rgba(255, 255, 255, 0.02);
        padding: 2rem 1.5rem;
        border-radius: 2rem;
        border: 1px solid rgba(6, 182, 212, 0.1);
        margin-bottom: 2rem;
    }

    .step-image img {
        border-radius: 1.5rem;
        margin-top: 1rem;
    }

    /* About Section Mobile Enhancements */
    #about .container>.grid {
        gap: 2rem !important;
    }

    #about p.text-lg {
        font-size: 1rem !important;
        line-height: 1.6;
    }

    .sub-heading {
        font-size: 1.25rem !important;
        margin-top: 2rem !important;
        margin-bottom: 1rem !important;
        color: #22d3ee !important;
        border-left: 3px solid #06b6d4;
        padding-left: 1rem;
    }

    /* Mobile Menu Enhancement */
    #mobile-menu {
        background: rgba(10, 25, 47, 0.95) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
    }

    .mobile-link {
        font-size: 1.8rem !important;
        margin: 1.2rem 0 !important;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1) !important;
    }

    #mobile-menu.active .mobile-link {
        opacity: 1;
        transform: translateY(0);
    }

    /* Staggered link animation */
    .mobile-link:nth-child(1) {
        transition-delay: 0.1s;
    }

    .mobile-link:nth-child(2) {
        transition-delay: 0.15s;
    }

    .mobile-link:nth-child(3) {
        transition-delay: 0.2s;
    }

    .mobile-link:nth-child(4) {
        transition-delay: 0.25s;
    }

    .mobile-link:nth-child(5) {
        transition-delay: 0.3s;
    }

    .mobile-link:nth-child(6) {
        transition-delay: 0.35s;
    }

    /* Quality Cards Mobile Glow */
    .glass-card {
        margin-bottom: 1.5rem !important;
        padding: 1.5rem !important;
    }

    /* Premium mobile touch: subtle gradient border for cards */
    .glass-card {
        border: 1px solid rgba(6, 182, 212, 0.1) !important;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%) !important;
    }

    /* Enhanced Contact Form on Mobile */
    #contact .glass-card {
        padding: 1.5rem !important;
        border-radius: 1.5rem !important;
    }

    /* Premium Bullet Mobile Alignment */
    .premium-bullet {
        padding-left: 2rem !important;
        font-size: 1rem !important;
    }

    .premium-bullet::before {
        top: 0.5rem !important;
        width: 6px !important;
        height: 6px !important;
    }
}

/* Base premium additions */
.mobile-link:hover {
    color: #22d3ee !important;
    letter-spacing: 0.15em !important;
}

#mobile-menu-btn {
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
    #mobile-menu-btn {
        display: flex;
    }
}

.hamburger {
    color: antiquewhite;
}