/* ===== Custom Properties ===== */
:root {
    --navy: #0f172a;
    --navy-light: #1e293b;
    --slate: #334155;
    --slate-light: #64748b;
    --cyan: #08b4da;
    --cyan-dark: #0891b2;
    --cyan-glow: rgba(8, 180, 218, 0.15);
    --white: #ffffff;
    --off-white: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-600: #475569;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1), 0 4px 10px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.15);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Base ===== */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    color: var(--slate);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--navy);
}

/* ===== Navbar ===== */
#mainNav {
    background-color: transparent;
    transition: all var(--transition);
    padding: 15px 0;
}

#mainNav.navbar-scrolled {
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
}

#mainNav .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

#mainNav .navbar-nav .nav-link:hover,
#mainNav .navbar-nav .nav-link.active {
    color: var(--white);
    background-color: rgba(8, 180, 218, 0.15);
}

/* ===== Hero Section ===== */
.hero-section {
    background: url('images/blur.png') no-repeat center center;
    background-size: cover;
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.75) 50%, rgba(8, 180, 218, 0.3) 100%);
    z-index: 1;
}

.hero-subtitle {
    color: var(--cyan);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.hero-title {
    color: var(--white);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero-title .text-accent {
    color: var(--cyan);
}

.hero-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 32px;
    max-width: 520px;
}

.hero-cta .btn {
    border-radius: var(--radius-md);
    padding: 14px 32px;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.3px;
}

/* ===== Banner Quote Form ===== */
.banner-form {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.banner-form .form-title {
    background: rgba(255, 255, 255, 0.05);
    padding: 24px 30px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.banner-form .form-title h2 {
    color: var(--white);
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}

.banner-form .form-body {
    padding: 24px 30px 30px;
}

.banner-form .form-floating > .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    color: var(--white);
}

.banner-form .form-floating > label {
    color: rgba(255, 255, 255, 0.6);
}

.banner-form .form-floating > .form-control:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px var(--cyan-glow);
    background: rgba(255, 255, 255, 0.12);
}

.banner-form .form-floating > .form-control:focus ~ label {
    color: var(--cyan);
}

/* ===== Accent Button ===== */
.btn-accent {
    background: linear-gradient(135deg, var(--cyan) 0%, var(--cyan-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition);
    box-shadow: 0 4px 15px rgba(8, 180, 218, 0.3);
}

.btn-accent:hover {
    background: linear-gradient(135deg, var(--cyan-dark) 0%, #067a96 100%);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(8, 180, 218, 0.4);
}

/* ===== Sections ===== */
.section {
    padding: 100px 0;
}

.section-subtitle {
    color: var(--cyan);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.headline {
    text-align: center;
    margin-bottom: 60px;
}

.headline h2 {
    font-size: 2.5rem;
    font-weight: 800;
    position: relative;
    padding-bottom: 20px;
    display: inline-block;
    color: var(--navy);
}

.headline h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--cyan), var(--cyan-dark));
    border-radius: 2px;
}

/* ===== About Section ===== */
#about {
    background-color: var(--white);
}

.about-image-wrapper {
    position: relative;
}

.about-image-wrapper::before {
    content: '';
    position: absolute;
    top: -12px;
    left: -12px;
    right: 12px;
    bottom: 12px;
    border: 3px solid var(--cyan);
    border-radius: var(--radius-lg);
    z-index: 0;
    opacity: 0.3;
}

.about-image-wrapper img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
}

#about .features p {
    color: var(--gray-600);
    font-size: 15px;
    line-height: 1.9;
    margin-bottom: 18px;
}

/* ===== Services Section ===== */
.bg-services {
    background: linear-gradient(180deg, var(--off-white) 0%, var(--gray-100) 100%);
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    height: 100%;
    border: 1px solid var(--gray-200);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--cyan), var(--cyan-dark));
    opacity: 0;
    transition: opacity var(--transition);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 64px;
    height: 64px;
    background: var(--cyan-glow);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-icon i {
    font-size: 28px;
    color: var(--cyan);
}

.service-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
}

.service-card-excerpt {
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.service-read-more {
    color: var(--cyan);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap var(--transition);
}

.service-read-more:hover {
    color: var(--cyan-dark);
    gap: 10px;
}

.service-detail {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
    font-size: 14px;
    line-height: 1.8;
    color: var(--gray-600);
}

.service-detail p {
    margin-bottom: 8px;
}

/* ===== Technologies Section ===== */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.tech-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 30px 20px;
    text-align: center;
    border: 1px solid var(--gray-200);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.tech-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--cyan);
}

.tech-card img {
    max-height: 80px;
    max-width: 100%;
    object-fit: contain;
    transition: transform var(--transition);
}

.tech-card:hover img {
    transform: scale(1.05);
}

.tech-card span {
    font-size: 13px;
    font-weight: 600;
    color: var(--slate);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== Contact Section ===== */
.bg-contact {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, var(--slate) 100%);
}

.bg-contact .headline h2 {
    color: var(--white);
}

.bg-contact .headline h2::after {
    background: linear-gradient(90deg, var(--cyan), var(--white));
}

.bg-contact .section-subtitle {
    color: rgba(255, 255, 255, 0.5);
}

.contact-form-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
}

.contact-form-card .form-floating > .form-control {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    color: var(--white);
}

.contact-form-card .form-floating > label {
    color: rgba(255, 255, 255, 0.5);
}

.contact-form-card .form-floating > .form-control:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px var(--cyan-glow);
    background: rgba(255, 255, 255, 0.1);
}

.contact-form-card .form-floating > .form-control:focus ~ label {
    color: var(--cyan);
}

/* ===== Footer ===== */
.footer-top {
    background-color: var(--navy);
    padding: 64px 0 40px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-top h3 {
    color: var(--white);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    line-height: 1.7;
    margin-top: 16px;
}

.footer-top .contact-list li {
    margin-bottom: 12px;
    font-size: 14px;
}

.footer-top .contact-list li i {
    margin-right: 10px;
    color: var(--cyan);
    width: 16px;
    text-align: center;
}

.footer-top .contact-list a,
.footer-top .quick-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    transition: color var(--transition);
}

.footer-top .contact-list a:hover,
.footer-top .quick-links a:hover {
    color: var(--cyan);
}

.footer-top .quick-links li {
    margin-bottom: 10px;
}

.footer-top .quick-links li::before {
    content: '\203A';
    margin-right: 8px;
    color: var(--cyan);
}

.footer-bottom {
    background-color: #0a1120;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    margin: 0;
}

/* ===== Toast Notification ===== */
#successToast {
    background: linear-gradient(135deg, var(--cyan) 0%, var(--cyan-dark) 100%);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    font-size: 15px;
}

/* ===== Back to Top ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--navy);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    box-shadow: var(--shadow-lg);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--cyan);
    transform: translateY(-3px);
}

/* ===== Scroll Animations ===== */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-section .service-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.fade-in-section.is-visible .service-card {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-section.is-visible .col-lg-4:nth-child(1) .service-card { transition-delay: 0s; }
.fade-in-section.is-visible .col-lg-4:nth-child(2) .service-card { transition-delay: 0.1s; }
.fade-in-section.is-visible .col-lg-4:nth-child(3) .service-card { transition-delay: 0.1s; }
.fade-in-section.is-visible .col-lg-4:nth-child(4) .service-card { transition-delay: 0.2s; }
.fade-in-section.is-visible .col-lg-4:nth-child(5) .service-card { transition-delay: 0.2s; }
.fade-in-section.is-visible .col-lg-4:nth-child(6) .service-card { transition-delay: 0.3s; }
.fade-in-section.is-visible .col-lg-4:nth-child(7) .service-card { transition-delay: 0.3s; }
.fade-in-section.is-visible .col-lg-4:nth-child(8) .service-card { transition-delay: 0.4s; }
.fade-in-section.is-visible .col-lg-4:nth-child(9) .service-card { transition-delay: 0.4s; }
.fade-in-section.is-visible .col-lg-4:nth-child(10) .service-card { transition-delay: 0.5s; }
.fade-in-section.is-visible .col-lg-4:nth-child(11) .service-card { transition-delay: 0.5s; }

/* ===== Modals ===== */
.modal-content {
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: var(--shadow-xl);
}

.modal-header {
    border-bottom: 1px solid var(--gray-200);
    padding: 20px 24px;
}

.modal-title {
    font-weight: 700;
    color: var(--navy);
}

.modal-body {
    padding: 24px;
}

.modal-body p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--gray-600);
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact-form-card {
        padding: 32px 24px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 120px 0 60px;
    }

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

    .hero-cta .btn {
        display: block;
        width: 100%;
        margin-bottom: 12px;
    }

    .hero-cta .btn.me-3 {
        margin-right: 0 !important;
    }

    .banner-form {
        margin-top: 40px;
    }

    .section {
        padding: 60px 0;
    }

    .headline h2 {
        font-size: 1.8rem;
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-image-wrapper::before {
        display: none;
    }

    #about img {
        width: 100%;
        height: auto;
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}
