:root {
    --bg: #f7fafc;
    --bg-soft: #eef6ff;
    --surface: #ffffff;
    --text: #0f172a;
    --text-muted: #475569;
    --primary: #0ea5a4;
    --primary-dark: #0f766e;
    --accent: #f97316;
    --line: #dbe6f1;
    --shadow: 0 16px 38px rgba(15, 23, 42, 0.1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Poppins", sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 260px);
    min-height: 100vh;
}

.bg-orb,
#particles {
    display: none;
}

.section-space {
    padding: 4.2rem 0;
}

.glass-nav {
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.navbar-brand {
    color: var(--text);
    font-weight: 700;
    letter-spacing: 0.2px;
}

.brand-logo {
    height: 60px;
    width: auto;
    display: block;
}

.brand-text {
    margin-left: 0.55rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}

.nav-link {
    color: #334155;
    font-weight: 500;
}

.nav-link:hover,
.nav-link:focus,
.navbar-brand:hover,
.navbar-brand:focus {
    color: var(--primary-dark);
}

.nav-link.active {
    color: var(--primary-dark) !important;
    font-weight: 600;
}

.hero {
    padding-top: 3.8rem;
}

.hero-title {
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(92deg, var(--primary-dark), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.text-light-subtle {
    color: var(--text-muted) !important;
}

.hero-metrics h3 {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text);
}

.hero-metrics small {
    color: var(--text-muted);
}

.glass-pill {
    color: var(--primary-dark);
    background: #dff6f6;
    border: 1px solid #a7e8e4;
    font-weight: 600;
    padding: 0.5rem 0.95rem;
}

.glass-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 1rem;
    box-shadow: var(--shadow);
}

.hero-card {
    padding: 1.5rem;
}

.demo-shot {
    width: 100%;
    height: 210px;
    display: block;
    object-fit: contain;
    background: #ffffff;
    padding: 0.35rem;
    border-radius: 0.8rem;
    border: 1px solid #dbe6f1;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    cursor: zoom-in;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.demo-shot:hover {
    transform: scale(1.02);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.16);
}

.image-popup-modal .modal-content {
    background: #ffffff;
    border: 1px solid #dbe6f1;
    border-radius: 1rem;
}

.image-popup-modal .btn-close {
    filter: none;
}

.popup-demo-image {
    width: 100%;
    max-height: 82vh;
    object-fit: contain;
    background: #ffffff;
    border-radius: 0.65rem;
    border: 1px solid #dbe6f1;
}

.btn-primary-glow {
    color: #fff;
    border: none;
    background: linear-gradient(115deg, var(--primary), var(--accent));
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 22px rgba(14, 165, 164, 0.35);
}

.btn-primary-glow:hover,
.btn-primary-glow:focus {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(15, 118, 110, 0.35);
}

.btn-glass {
    color: var(--text);
    background: #ffffff;
    border: 1px solid #cbd5e1;
    font-weight: 600;
}

.btn-glass:hover,
.btn-glass:focus {
    color: var(--text);
    background: #f8fafc;
    border-color: #94a3b8;
}

.section-head h2,
h2 {
    font-weight: 700;
    margin-bottom: 0.55rem;
}

.section-head p {
    max-width: 680px;
    margin: 0 auto;
}

.service-card,
.project-card,
.pricing-card,
.testimonial-card {
    padding: 1.35rem;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.service-card:hover,
.project-card:hover,
.pricing-card:hover,
.testimonial-card:hover {
    transform: translateY(-4px);
    border-color: #a5b4fc;
    box-shadow: 0 20px 34px rgba(15, 23, 42, 0.13);
}

.service-card h3,
.project-card h3 {
    font-size: 1.2rem;
    margin-top: 0.95rem;
}

.service-icon {
    font-size: 1.45rem;
    width: 2.9rem;
    height: 2.9rem;
    display: grid;
    place-items: center;
    border-radius: 0.8rem;
    background: #dff6f6;
    color: var(--primary-dark);
}

.text-accent {
    color: #16a34a;
}

.mini-feature {
    min-height: 84px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
}

.mini-feature i {
    font-size: 1.15rem;
    color: var(--primary);
}

.project-preview {
    width: 100%;
    height: 220px;
    display: block;
    border-radius: 0.85rem;
    border: 1px solid #e2e8f0;
}

img.project-preview {
    object-fit: contain;
    background: #ffffff;
    padding: 0.35rem;
    image-rendering: -webkit-optimize-contrast;
}

.gradient-a {
    background: linear-gradient(145deg, #06b6d4, #0ea5a4, #14b8a6);
}

.gradient-b {
    background: linear-gradient(145deg, #38bdf8, #0284c7, #0369a1);
}

.gradient-c {
    background: linear-gradient(145deg, #fb923c, #f97316, #ea580c);
}

.pricing-card {
    position: relative;
}

.pricing-card .price {
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.2rem;
}

.pricing-card li {
    margin-bottom: 0.65rem;
    color: var(--text-muted);
    position: relative;
    padding-left: 1.3rem;
}

.pricing-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #16a34a;
    font-weight: 600;
}

.pricing-card.popular {
    border-color: #67e8f9;
    transform: translateY(-4px);
}

.popular-badge {
    position: absolute;
    top: -12px;
    right: 18px;
    padding: 0.35rem 0.7rem;
    background: linear-gradient(120deg, var(--primary), var(--primary-dark));
    border-radius: 999px;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
}

.testimonial-card p {
    color: var(--text-muted);
    min-height: 108px;
}

.testimonial-card h4 {
    font-size: 1rem;
    margin-bottom: 0.15rem;
}

.contact-form .form-label {
    color: #334155;
    font-weight: 500;
}

.form-control {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: var(--text);
    padding: 0.72rem 0.95rem;
}

.form-control::placeholder {
    color: #94a3b8;
}

.form-control:focus {
    border-color: #22d3ee;
    box-shadow: 0 0 0 0.2rem rgba(34, 211, 238, 0.2);
    background: #fff;
    color: var(--text);
}

.footer {
    border-top: 1px solid var(--line);
    background: #ffffff;
}

.social-links {
    display: flex;
    gap: 0.5rem;
}

.social-link {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #0f766e;
    border: 1px solid #cbd5e1;
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-link:hover,
.social-link:focus {
    color: #ffffff;
    background: linear-gradient(120deg, var(--primary), var(--accent));
    border-color: transparent;
}

.reveal-up {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

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

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

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

.delay-3 {
    transition-delay: 0.3s;
}

@media (max-width: 991px) {
    .section-space {
        padding: 3.5rem 0;
    }

    .hero {
        padding-top: 3.2rem;
    }

    .pricing-card.popular {
        transform: none;
    }
}

@media (max-width: 575px) {
    .brand-logo {
        height: 44px;
    }

    .demo-shot {
        height: 165px;
    }

    .project-preview {
        height: 180px;
    }

    .brand-text {
        font-size: 0.9rem;
    }

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

    .hero-metrics {
        gap: 1rem !important;
    }

    .testimonial-card p {
        min-height: auto;
    }
}

/* Carousel Styling */
.carousel-fade .carousel-item {
    transition: opacity 0.8s ease-in-out;
}

#servicesSlider .carousel-inner {
    overflow: visible;
}

#servicesSlider .carousel-item {
    padding: 0 0.35rem;
}

#servicesSlider .carousel-item .glass-card {
    min-height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#servicesSlider .carousel-item h2 {
    margin-bottom: 1rem;
}

.carousel-indicators {
    bottom: -50px;
    margin-top: 2rem;
}

.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(15, 23, 42, 0.3);
    border: none;
    transition: all 0.3s ease;
}

.carousel-indicators [data-bs-target].active {
    background-color: var(--primary);
    width: 12px;
    height: 12px;
}

.carousel-control-prev,
.carousel-control-next {
    opacity: 1;
    width: 54px;
    height: 54px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12);
    transition: all 0.25s ease;
}

#servicesSlider .carousel-control-prev {
    left: -24px;
}

#servicesSlider .carousel-control-next {
    right: -24px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 12px 28px rgba(14, 165, 164, 0.32);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(14%) sepia(13%) saturate(1014%) hue-rotate(180deg) brightness(95%) contrast(92%);
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    filter: brightness(0) invert(1);
}

#servicesSlider {
    margin-bottom: 60px;
}

@media (max-width: 991px) {
    #servicesSlider .carousel-item .glass-card {
        min-height: 430px;
    }

    #servicesSlider .carousel-control-prev {
        left: 6px;
    }

    #servicesSlider .carousel-control-next {
        right: 6px;
    }
}

@media (max-width: 767px) {
    #servicesSlider .carousel-item .glass-card {
        min-height: 520px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }
}

/* Contact Form Styling */
.contact-info-card {
    background: linear-gradient(135deg, var(--primary) 0%, #0d9488 100%);
    border-radius: 16px;
    padding: 2.5rem;
    color: white;
    box-shadow: 0 16px 38px rgba(14, 165, 164, 0.25);
    overflow: hidden;
    position: relative;
}

.contact-info-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(20px) translateX(-20px); }
}

.contact-info-header {
    position: relative;
    z-index: 1;
    margin-bottom: 2rem;
}

.contact-info-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.contact-info-header p {
    font-size: 0.95rem;
    opacity: 0.9;
}

.contact-method {
    display: flex;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.contact-method-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.contact-method:hover .contact-method-icon {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

.contact-method h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: white;
}

.contact-method p {
    margin: 0;
    opacity: 0.9;
    line-height: 1.5;
}

.contact-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
}

.contact-link:hover {
    opacity: 0.8;
    border-bottom-color: white;
}

.text-light {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Modern Form Styling */
.form-control-modern {
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(14, 165, 164, 0.2);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    color: var(--text);
}

.form-control-modern:focus {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 164, 0.1);
    color: var(--text);
}

.form-control-modern::placeholder {
    color: rgba(15, 23, 42, 0.5);
}

.form-label {
    color: var(--text);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.fw-500 {
    font-weight: 500;
}

.fw-600 {
    font-weight: 600;
}

/* Responsive Contact Form */
@media (max-width: 768px) {
    .contact-info-card {
        padding: 2rem;
        margin-bottom: 1.5rem;
    }

    .contact-info-header h2 {
        font-size: 1.5rem;
    }

    .contact-method {
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .contact-method-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .contact-method h3 {
        font-size: 0.9rem;
    }

    .glass-card {
        padding: 1.5rem !important;
    }
}

/* Modern Footer Styling */
.footer-modern {
    background: linear-gradient(135deg, #1a2332 0%, #0f1e2e 100%);
    color: white;
    border-top: 2px solid rgba(14, 165, 164, 0.2);
    position: relative;
    overflow: hidden;
}

.footer-modern::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(14, 165, 164, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.footer-column {
    position: relative;
    z-index: 1;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    position: relative;
    display: inline-block;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, #0d9488 100%);
    border-radius: 2px;
}

.footer-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.footer-text strong {
    color: white;
    font-weight: 600;
}

.footer-text-small {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.footer-links li::before {
    content: '▸';
    color: var(--primary);
    margin-right: 0.5rem;
    font-size: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

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

.social-badge {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(14, 165, 164, 0.2) 0%, rgba(13, 148, 136, 0.2) 100%);
    border: 2px solid rgba(14, 165, 164, 0.4);
    border-radius: 8px;
    color: var(--primary);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.social-badge:hover {
    background: linear-gradient(135deg, var(--primary) 0%, #0d9488 100%);
    color: white;
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(14, 165, 164, 0.3);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

.footer-copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Footer Responsive */
@media (max-width: 768px) {
    .footer-modern {
        padding: 2rem 0;
    }

    .footer-title {
        margin-bottom: 1rem;
    }

    .footer-column {
        margin-bottom: 1.5rem;
    }

    .footer-socials {
        gap: 0.75rem;
    }

    .social-badge {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .footer-bottom {
        text-align: center;
    }

    .col-md-6:last-child {
        margin-top: 1rem;
    }
}
