/* ============================================
   DBest Innovative Tech - Main Stylesheet
   ============================================ */

/* CSS Variables */
:root {
    --primary-dark: #0A2540;
    --primary: #1E3A5F;
    --secondary: #00D4FF;
    --accent: #FF6B35;
    --light: #F8FAFC;
    --text-dark: #1A1A2E;
    --text-light: #64748B;
    --white: #FFFFFF;
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --container: 1200px;
    --radius: 12px;
    --radius-lg: 20px;
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--light);
    overflow-x: hidden;
    width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

#dynamic-text {
    transition: opacity 0.5s ease-in-out, transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

#dynamic-text.slide-up-out {
    opacity: 0;
    transform: translateY(-20px);
}

#dynamic-text.slide-up-in {
    opacity: 0;
    transform: translateY(20px);
    transition: none;
}

.text-gradient {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-center {
    text-align: center;
}

.text-light {
    color: var(--text-light);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary) 0%, #00B8E6 100%);
    color: var(--primary-dark);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-dark);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent) 0%, #E55A2B 100%);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.4);
}

/* ============================================
   Header & Navigation
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(10, 37, 64, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.logo-img {
    width: 55px;
    height: 55px;
    object-fit: contain;
    border-radius: 4px;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-link {
    color: var(--white);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--secondary);
}

.nav-cta {
    margin-left: 20px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #0D3251 100%);
    position: relative;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 107, 53, 0.1) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 8px 20px;
    border-radius: 50px;
    color: var(--secondary);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 25px;
    animation: fadeInDown 0.8s ease forwards;
}

.hero h1 {
    color: var(--white);
    margin-bottom: 25px;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero h1 .highlight {
    color: var(--secondary);
}

.hero-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 35px;
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

.hero-stats {
    display: flex;
    gap: 50px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInUp 0.8s ease 0.8s forwards;
    opacity: 0;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
}

.hero-stat-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

/* Animated Background Elements */
#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: rgba(0, 212, 255, 0.05);
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: rgba(255, 107, 53, 0.05);
    bottom: 20%;
    right: 30%;
    animation-delay: 2s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: rgba(0, 212, 255, 0.08);
    top: 40%;
    right: 5%;
    animation-delay: 4s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Services Section
   ============================================ */
.services {
    padding: 100px 0;
    background: var(--light);
    position: relative;
    display: block;
    visibility: visible;
    opacity: 1;
    overflow: visible;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-subtitle {
    display: inline-block;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.875rem;
    margin-bottom: 15px;
}

.services-slider-container {
    position: relative;
    padding: 20px 0;
}

.services-grid {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
    padding: 20px 5px;
}

.services-grid::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

#services .home-services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    overflow: visible;
    scroll-snap-type: none;
    padding: 20px 5px;
}

.service-card {
    flex: 0 0 calc(33.333% - 20px);
    scroll-snap-align: start;
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

@media (max-width: 1024px) {
    #services .home-services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-card {
        flex: 0 0 calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    #services .home-services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        flex: 0 0 100%;
    }
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--white);
    border: none;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    color: var(--secondary);
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: var(--secondary);
    color: var(--white);
}

.prev-btn {
    left: -25px;
}

.next-btn {
    right: -25px;
}

@media (max-width: 1200px) {
    .prev-btn {
        left: 0;
    }

    .next-btn {
        right: 0;
    }
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(255, 107, 53, 0.1) 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--secondary);
    margin-bottom: 25px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    color: var(--white);
}

.service-card h3 {
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary);
    font-weight: 600;
}

.service-link:hover {
    gap: 12px;
    color: var(--accent);
}

/* Service Card SVG Hover Animation */
.circuit-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.1;
    transition: opacity 0.5s ease;
}

.circuit-svg path {
    fill: none;
    stroke: var(--secondary);
    stroke-width: 2;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: stroke-dashoffset 1.5s ease-in-out;
}

.service-card:hover .circuit-svg {
    opacity: 0.3;
}

.service-card:hover .circuit-svg path {
    stroke-dashoffset: 0;
    animation: pulse-glow 2s infinite alternate 1.5s;
}

@keyframes pulse-glow {
    0% {
        filter: drop-shadow(0 0 2px var(--secondary));
    }

    100% {
        filter: drop-shadow(0 0 8px var(--secondary));
        stroke: var(--accent);
    }
}

.service-card h3,
.service-card p,
.service-card .service-icon,
.service-card .service-link {
    position: relative;
    z-index: 1;
}

/* ============================================
   About Section
   ============================================ */
.about {
    padding: 100px 0;
    background: var(--white);
    display: block;
    visibility: visible;
    opacity: 1;
    overflow: visible;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    width: 100%;
    height: auto;
    display: block;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border: 3px solid var(--secondary);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.about-content h2 {
    margin-bottom: 20px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 12px;
}

.about-feature i {
    color: var(--secondary);
    font-size: 1.25rem;
}

/* ============================================
   About Section - Image Slider
   ============================================ */
.about-slider {
    position: relative;
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-slides-track {
    display: flex;
    transition: none;
    /* We use class-based opacity sliding */
    position: relative;
}

.about-slide {
    min-width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.7s ease, transform 0.7s ease;
    transform: translateX(60px);
    pointer-events: none;
}

.about-slide.active {
    position: relative;
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.about-slide.slide-out {
    position: absolute;
    opacity: 0;
    transform: translateX(-60px);
    pointer-events: none;
}

.about-slide img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-lg);
}

#about-slider .about-slide img {
    height: 460px;
}

/* Prev / Next buttons */
.about-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10, 37, 64, 0.65);
    border: 2px solid var(--secondary);
    color: var(--secondary);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s, color 0.3s, transform 0.3s;
    font-size: 1rem;
}

.about-slider-btn:hover {
    background: var(--secondary);
    color: var(--primary-dark);
    transform: translateY(-50%) scale(1.1);
}

.about-slider-prev {
    left: 12px;
}

.about-slider-next {
    right: 12px;
}

/* Dot indicators */
.about-slider-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.about-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid var(--secondary);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.about-dot.active {
    background: var(--secondary);
    transform: scale(1.3);
}

@media (max-width: 768px) {
    .about-slide img {
        height: 250px;
        width: 100%;
        object-fit: cover;
    }

    #about-slider .about-slide img {
        height: 320px;
    }

    .about-image::before {
        top: -15px;
        left: -15px;
        right: -15px;
        bottom: -15px;
    }
}

@media (max-width: 480px) {
    .about-slide img {
        height: 200px;
        width: 100%;
        object-fit: cover;
    }

    #about-slider .about-slide img {
        height: 260px;
    }

    .about-image {
        margin: 0 10px;
    }

    .about-image::before {
        top: -10px;
        left: -10px;
        right: -10px;
        bottom: -10px;
    }
}

/* ============================================
   Stats Section
   ============================================ */
.stats {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    position: relative;
    display: block;
    visibility: visible;
    opacity: 1;
    overflow: hidden;
}

#stats-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.15;
}

.stats .container {
    position: relative;
    z-index: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 30px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    color: var(--secondary);
}

.stat-number {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 10px;
}

/* ============================================
   Projects Section
   ============================================ */
.projects {
    padding: 100px 0;
    background: var(--light);
    display: block;
    visibility: visible;
    opacity: 1;
    overflow: visible;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--primary-dark);
    aspect-ratio: 4/3;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(10, 37, 64, 0.95), transparent);
    transform: translateY(20px);
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    transform: translateY(0);
}

.project-category {
    display: inline-block;
    background: var(--secondary);
    color: var(--primary-dark);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.project-card h3 {
    color: var(--white);
    margin-bottom: 10px;
}

.project-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin-bottom: 15px;
}

.project-link {
    color: var(--secondary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ============================================
   Work Gallery Section
   ============================================ */
.work-gallery {
    padding: 100px 0;
    background:
        linear-gradient(180deg, #ffffff 0%, #f4f8fc 100%);
}

.work-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
}

.work-gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    min-height: 280px;
    background: var(--primary-dark);
    box-shadow: var(--shadow);
    isolation: isolate;
}

.work-gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease, filter 0.6s ease;
    will-change: transform;
}

.work-gallery-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(10, 37, 64, 0.18)),
        linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(255, 107, 53, 0.06));
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.work-gallery-card:hover img {
    transform: scale(1.04);
    filter: saturate(1.06);
}

.work-gallery-card:hover::after {
    opacity: 0.6;
}

.project-link:hover {
    gap: 12px;
}

/* ============================================
   CTA Section
   ============================================ */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, #0D3251 100%);
    position: relative;
    overflow: hidden;
    display: block;
    visibility: visible;
    opacity: 1;
}

#cta-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.cta .container {
    position: relative;
    z-index: 1;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.cta h2 {
    color: var(--white);
    margin-bottom: 20px;
}

.cta p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 35px;
}

/* ============================================
   Contact Section
   ============================================ */
.contact {
    padding: 100px 0;
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-info h2 {
    margin-bottom: 20px;
}

.contact-details {
    margin-top: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(255, 107, 53, 0.1) 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-item h4 {
    margin-bottom: 5px;
}

.contact-item p {
    color: var(--text-light);
    margin: 0;
}

.contact-form {
    background: var(--light);
    padding: 40px;
    border-radius: var(--radius-lg);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    background: #f8fafc;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    color: var(--secondary);
    font-size: 1rem;
    pointer-events: none;
    transition: var(--transition);
}

.input-with-icon input,
.input-with-icon select {
    padding-left: 45px !important;
}

.input-with-icon input:focus+i,
.input-with-icon select:focus+i {
    color: var(--accent);
    transform: scale(1.1);
}

/* ============================================
   Quote Page Specific
   ============================================ */
.quote-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.quote-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    align-items: flex-start;
}

.quote-form-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.form-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #edf2f7;
}

.form-header i {
    font-size: 1.5rem;
    color: var(--secondary);
}

.form-header h3 {
    font-size: 1.5rem;
    color: var(--primary-dark);
}

/* Info Column Styling */
.info-card,
.contact-card {
    background: var(--primary-dark);
    color: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.info-card h3,
.contact-card h3 {
    color: var(--secondary);
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.process-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-icon {
    width: 40px;
    height: 40px;
    background: var(--secondary);
    color: var(--primary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    transition: var(--transition);
}

.process-step:hover .step-icon {
    transform: rotate(360deg);
    background: var(--accent);
    color: var(--white);
}

.process-step h4 {
    color: var(--white);
    margin-bottom: 5px;
}

.process-step p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.contact-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--secondary);
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--accent);
    transform: translateX(5px);
}

/* Benefits Section */
.benefits-section {
    padding: 100px 0;
    background: var(--white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.benefit-card {
    padding: 40px;
    text-align: center;
    background: #f8fafc;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    border: 1px solid transparent;
}

.benefit-card:hover {
    transform: translateY(-10px);
    background: var(--white);
    border-color: var(--secondary);
    box-shadow: var(--shadow-lg);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    background: rgba(0, 212, 255, 0.1);
    color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 25px;
    transition: var(--transition);
}

.benefit-card:hover .benefit-icon {
    background: var(--secondary);
    color: var(--white);
}

@media (max-width: 1024px) {
    .quote-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--primary-dark);
    padding: 60px 0 30px;
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--secondary);
    color: var(--primary-dark);
}

.footer h4 {
    color: var(--white);
    margin-bottom: 25px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* ============================================
   Floating Widgets
   ============================================ */
.floating-widgets {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.whatsapp-btn {
    background: #25D366;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
}

/* ============================================
   Built-in Chat Widget
   ============================================ */
.db-chat-widget {
    position: fixed;
    right: 16px;
    bottom: 14px;
    z-index: 1005;
}

.db-chat-toggle {
    width: 58px;
    height: 58px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary) 0%, #00B8E6 100%);
    color: var(--primary-dark);
    font-size: 1.35rem;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.35);
}

.db-chat-panel {
    position: absolute;
    right: 0;
    bottom: 72px;
    width: 340px;
    max-width: calc(100vw - 24px);
    height: 460px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: none;
    flex-direction: column;
}

.db-chat-panel.open {
    display: flex;
}

.db-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
    padding: 12px 14px;
}

.db-chat-title-wrap h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--white);
}

.db-chat-title-wrap p {
    margin: 0;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.75);
}

.db-chat-close {
    border: none;
    background: transparent;
    color: var(--white);
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
}

.db-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    background: #f3f7fb;
}

.db-chat-msg {
    display: flex;
    margin-bottom: 10px;
}

.db-chat-msg.user {
    justify-content: flex-end;
}

.db-chat-msg.bot {
    justify-content: flex-start;
}

.db-chat-bubble {
    max-width: 85%;
    padding: 10px 12px;
    border-radius: 12px;
    line-height: 1.45;
    font-size: 0.92rem;
    white-space: pre-line;
}

.db-chat-msg.user .db-chat-bubble {
    background: var(--secondary);
    color: var(--primary-dark);
    border-top-right-radius: 4px;
}

.db-chat-msg.bot .db-chat-bubble {
    background: #ffffff;
    color: var(--text-dark);
    border: 1px solid #d8e3ef;
    border-top-left-radius: 4px;
}

.db-chat-form {
    display: flex;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid #e5edf5;
    background: #ffffff;
}

.db-chat-input {
    flex: 1;
    border: 1px solid #ced8e4;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.9rem;
}

.db-chat-input:focus {
    outline: none;
    border-color: var(--secondary);
}

.db-chat-send {
    border: none;
    border-radius: 10px;
    padding: 10px 14px;
    background: var(--primary-dark);
    color: var(--white);
    cursor: pointer;
}

.db-chat-send:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ============================================
   Responsive Styles
   ============================================ */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        order: -1;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: var(--primary-dark);
        flex-direction: column;
        justify-content: center;
        padding: 40px;
        transform: translateX(100%);
        transition: var(--transition);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        order: -1;
        margin: 0 15px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        justify-content: center;
        text-align: left;
    }

    .footer-links {
        margin-bottom: 30px;
        text-align: left;
        width: auto;
    }

    .footer-grid>.footer-links:nth-child(2) {
        justify-self: end;
    }

    .footer-grid>.footer-links:nth-child(3) {
        justify-self: start;
    }

    .footer-links:last-child {
        display: none;
        margin-bottom: 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 30px;
    }

    .hero {
        min-height: auto;
        padding-top: 96px;
        padding-bottom: 70px;
    }

    .hero-description {
        font-size: 1.05rem;
    }

    .hero-badge span {
        font-size: 0.75rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-stat {
        flex: 1;
        min-width: 120px;
    }

    .stat-item {
        padding: 18px;
    }

    .stat-icon {
        width: 46px;
        height: 46px;
        margin-bottom: 12px;
        font-size: 1.1rem;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .stat-label {
        margin-top: 6px;
        font-size: 0.85rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .navbar-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .navbar-nav .nav-link {
        font-size: 1.2rem;
    }

    .navbar-nav .btn {
        width: 100%;
        text-align: center;
    }

    .about-page-detailed .about-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .work-gallery-grid {
        grid-template-columns: 1fr;
    }

    .work-gallery-card {
        min-height: 260px;
    }

    .page-hero {
        padding: 120px 0 64px;
    }

    .page-hero p {
        font-size: 1rem;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .service-card,
    .contact-form,
    .quote-form-card,
    .info-card,
    .contact-card,
    .benefit-card {
        padding: 24px;
    }

    .db-chat-widget {
        right: 12px;
        bottom: 12px;
    }
}

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

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.65rem;
    }

    .hero-buttons .btn {
        min-width: 0;
        padding: 12px 18px;
        font-size: 0.9rem;
    }

    .hero-badge span {
        font-size: 0.68rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .stat-item {
        padding: 14px 10px;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .stat-label {
        font-size: 0.78rem;
    }

    .contact-form {
        padding: 25px;
    }

    .page-hero {
        padding: 108px 0 52px;
    }

    .page-hero h1 {
        margin-bottom: 12px;
    }

    .page-hero p {
        font-size: 0.95rem;
    }

    .floating-widgets {
        right: 15px;
        bottom: 20px;
    }

    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .db-chat-widget {
        right: 10px;
        bottom: 10px;
    }

    .db-chat-toggle {
        width: 52px;
        height: 52px;
        font-size: 1.2rem;
    }

    .db-chat-panel {
        width: min(320px, calc(100vw - 20px));
        height: 420px;
        bottom: 64px;
    }
}

/* ============================================
   Animations - Visible by default, GSAP handles animation
   ============================================ */
[data-aos] {
    /* Elements visible by default - GSAP handles animation */
    visibility: visible;
}

/* ============================================
   Page Specific Styles
   ============================================ */
.page-hero {
    padding: 150px 0 80px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #0D3251 100%);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 107, 53, 0.1) 0%, transparent 50%);
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    color: var(--white);
    margin-bottom: 15px;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.25rem;
    max-width: 600px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
}

.breadcrumb a {
    color: var(--secondary);
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.5);
}

/* Quote Form Page */
.quote-section {
    padding: 80px 0;
    background: var(--light);
    min-height: calc(100vh - 200px);
}

/* ============================================
   Utility Classes
   ============================================ */
.mt-1 {
    margin-top: 10px;
}

.mt-2 {
    margin-top: 20px;
}

.mt-3 {
    margin-top: 30px;
}

.mt-4 {
    margin-top: 40px;
}

.mb-1 {
    margin-bottom: 10px;
}

.mb-2 {
    margin-bottom: 20px;
}

.mb-3 {
    margin-bottom: 30px;
}

.mb-4 {
    margin-bottom: 40px;
}

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

/* Loading Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Form Messages */
.form-message {
    padding: 15px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    display: none;
}

.form-message.success {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--secondary);
    color: var(--secondary);
    display: block;
}

.form-message.error {
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid var(--accent);
    color: var(--accent);
    display: block;
}

.recaptcha-container {
    margin: 0 0 20px;
}

/* ============================================
   Detailed Services Sections
   ============================================ */
.services-detailed {
    background: var(--light);
}

.service-detail-item {
    padding: 100px 0;
    overflow: hidden;
}

.service-detail-item.alt-bg {
    background: var(--white);
}

.service-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.service-detail-grid.reverse .service-detail-image {
    order: -1;
}

.service-detail-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(255, 107, 53, 0.1) 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 25px;
}

.service-detail-content h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    color: var(--primary);
}

.service-detail-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 30px;
}

.service-checklist {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
}

.service-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: var(--primary);
}

.service-checklist li i {
    color: var(--secondary);
    margin-top: 5px;
}

.image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 3 / 2;
}

.image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(255, 107, 53, 0.1) 100%);
    pointer-events: none;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s ease;
}

.service-detail-item:hover .image-wrapper img {
    transform: scale(1.05);
}

@media (max-width: 992px) {
    .service-detail-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .service-detail-grid.reverse .service-detail-image {
        order: 0;
    }

    .service-detail-content h2 {
        font-size: 2rem;
    }
}
