/* =========================
   RESET + THEME VARIABLES
========================= */
:root {
    --primary: #0A192F;
    --secondary: #112240;
    --accent: #00BFFF;
    --accent-dark: #009ACD;
    --text-heading: #0A192F;
    --text-main: #334155;
    --text-light: #CCD6F6;
    --text-muted: #64748B;
    --bg-main: #F5F7FA;
    --bg-white: #FFFFFF;
    --bg-card: rgba(255, 255, 255, 0.78);
    --bg-dark-card: #112240;
    --border: rgba(10, 25, 47, 0.08);

    --gradient-primary: linear-gradient(135deg, #0A192F 0%, #112240 100%);
    --gradient-accent: linear-gradient(135deg, #00BFFF 0%, #38BDF8 100%);
    --gradient-hero: linear-gradient(135deg, rgba(10, 25, 47, 0.96) 0%, rgba(17, 34, 64, 0.92) 100%);

    --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.12);
    --shadow-lg: 0 20px 45px rgba(15, 23, 42, 0.18);
    --shadow-glow: 0 0 0 4px rgba(0, 191, 255, 0.12), 0 15px 35px rgba(0, 191, 255, 0.18);

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;

    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background: var(--bg-main);
    line-height: 1.7;
    overflow-x: hidden;
}

/* =========================
   GLOBAL
========================= */
img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 6rem 0;
    position: relative;
}

.bg-light,
.bg-gray {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-heading);
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 3.8rem; letter-spacing: -1.5px; }
h2 { font-size: 2.7rem; letter-spacing: -0.8px; margin-bottom: 1rem; }
h3 { font-size: 1.45rem; margin-bottom: 0.8rem; }
p { margin-bottom: 1rem; }

/* =========================
   LOADER
========================= */
.loader-wrapper {
    position: fixed;
    inset: 0;
    background: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader {
    width: 54px;
    height: 54px;
    border: 5px solid rgba(255, 255, 255, 0.15);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* =========================
   SECTION TITLE
========================= */
.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    display: inline-block;
    position: relative;
    padding-bottom: 0.75rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 72px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 999px;
}

.section-title p {
    max-width: 700px;
    margin: 1rem auto 0;
    color: var(--text-muted);
    font-size: 1.08rem;
}

/* =========================
   BUTTONS
========================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.95rem 1.8rem;
    border-radius: 999px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.2px;
}

.btn-primary {
    background: var(--gradient-accent);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(0, 191, 255, 0.22);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-glow);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 2px solid rgba(0, 191, 255, 0.35);
    backdrop-filter: blur(8px);
}

.btn-outline:hover {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

/* =========================
   HEADER / NAVBAR
========================= */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(245, 247, 250, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(10, 25, 47, 0.06);
    transition: var(--transition);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-sm);
}

.navbar {
    height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
}

header.scrolled .navbar {
    height: 74px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    font-size: 2rem;
    color: var(--accent);
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-links li a {
    position: relative;
    color: var(--primary);
    font-weight: 600;
    padding-bottom: 5px;
    transition: var(--transition);
}

.nav-links li a:not(.btn):hover,
.nav-links li a.active:not(.btn) {
    color: var(--accent);
}

.nav-links li a:not(.btn)::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 3px;
    border-radius: 999px;
    background: var(--gradient-accent);
    transition: var(--transition);
}

.nav-links li a:not(.btn):hover::after,
.nav-links li a.active:not(.btn)::after {
    width: 100%;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

/* =========================
   HERO
========================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 90px;
    background: var(--gradient-hero);
    overflow: hidden;
    position: relative;
}

.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.35;
    pointer-events: none;
}

.hero::before {
    width: 320px;
    height: 320px;
    background: var(--accent);
    top: 10%;
    right: 8%;
}

.hero::after {
    width: 260px;
    height: 260px;
    background: #1D4ED8;
    bottom: 10%;
    left: 5%;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 780px;
}

.hero h1 {
    color: #ffffff;
    margin-bottom: 1.25rem;
    text-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-light);
    max-width: 640px;
    margin-bottom: 2.3rem;
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* =========================
   GRID + CARDS
========================= */
.grid {
    display: grid;
    gap: 2rem;
}

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

.card {
    background: var(--bg-card);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 191, 255, 0.22);
}

.card-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    color: var(--accent);
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.12), rgba(56, 189, 248, 0.18));
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.card:hover .card-icon {
    transform: scale(1.08) rotate(4deg);
    background: var(--gradient-accent);
    color: #ffffff;
    box-shadow: var(--shadow-glow);
}

.card a {
    color: var(--accent);
    font-weight: 600;
}

.card a:hover {
    text-decoration: underline;
}

/* =========================
   FEATURE ITEMS
========================= */
.feature-item {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    padding: 1.4rem;
    background: var(--bg-white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateX(8px);
    border-left: 4px solid var(--accent);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    background: rgba(0, 191, 255, 0.12);
    font-size: 1.4rem;
}

/* =========================
   TESTIMONIALS
========================= */
.testimonial-card {
    position: relative;
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 2.2rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.testimonial-card::before {
    content: "“";
    position: absolute;
    top: 18px;
    right: 24px;
    font-size: 4rem;
    line-height: 1;
    color: rgba(0, 191, 255, 0.15);
    font-family: serif;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 1.8rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-img {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(0, 191, 255, 0.35);
}

.author-info h4 {
    font-size: 1.02rem;
    margin-bottom: 0.2rem;
}

.author-info p {
    margin: 0;
    color: var(--accent);
    font-size: 0.92rem;
    font-weight: 600;
}

/* =========================
   TEAM
========================= */
.team-card {
    text-align: center;
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.team-img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    transition: var(--transition);
}

.team-card:hover .team-img { transform: scale(1.04); }

.team-info {
    padding: 1.8rem 1.2rem;
}

.team-info p {
    color: var(--accent);
    font-weight: 600;
}

/* =========================
   CONTACT
========================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

.contact-info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-info-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(0, 191, 255, 0.12);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.contact-form {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.4rem;
}

.form-control {
    width: 100%;
    padding: 1rem 1.1rem;
    border-radius: 14px;
    border: 1px solid rgba(10, 25, 47, 0.1);
    background: #ffffff;
    color: var(--primary);
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
}

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

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(0, 191, 255, 0.14);
}

textarea.form-control { resize: vertical; min-height: 150px; }

/* =========================
   PAGE HEADER
========================= */
.page-header {
    padding: 160px 0 90px;
    text-align: center;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(0, 191, 255, 0.12);
    border-radius: 50%;
    top: -80px;
    right: -60px;
    filter: blur(10px);
}

.page-header h1, .page-header p {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    color: #ffffff;
    margin-bottom: 0.8rem;
}

.page-header p { color: var(--text-light); }

/* =========================
   SERVICE DETAILS
========================= */
.service-detail-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.service-main img {
    width: 100%;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.benefits-list {
    list-style: none;
    margin: 2rem 0;
}

.benefits-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding: 1rem 1.2rem;
    background: var(--bg-white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.benefits-list li i {
    color: var(--accent);
    margin-top: 3px;
    font-size: 1.1rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.tech-item {
    background: #ffffff;
    padding: 0.8rem 1.15rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-weight: 600;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.service-sidebar .widget {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.service-list { list-style: none; }

.service-list li a {
    display: block;
    padding: 0.95rem 1rem;
    margin-bottom: 0.8rem;
    border-radius: 12px;
    background: #F8FAFC;
    color: var(--primary);
    font-weight: 600;
    transition: var(--transition);
}

.service-list li a:hover,
.service-list li a.active {
    background: var(--gradient-accent);
    color: #ffffff;
    transform: translateX(5px);
}

/* =========================
   FOOTER
========================= */
footer {
    background: var(--primary);
    color: var(--text-light);
    padding-top: 5rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-about p {
    color: rgba(204, 214, 246, 0.78);
    margin-top: 1rem;
}

.footer-title {
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 1.6rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 42px;
    height: 3px;
    border-radius: 999px;
    background: var(--accent);
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.9rem; }
.footer-links a {
    color: rgba(204, 214, 246, 0.78);
    transition: var(--transition);
}
.footer-links a:hover {
    color: var(--accent);
    padding-left: 6px;
}

.social-links {
    display: flex;
    gap: 0.9rem;
    margin-top: 1.5rem;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--accent);
    color: #ffffff;
    transform: translateY(-4px);
}

.footer-bottom {
    text-align: center;
    padding: 1.8rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(204, 214, 246, 0.72);
    font-size: 0.92rem;
}

/* =========================
   WHATSAPP FLOAT
========================= */
.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: var(--gradient-accent);
    color: #ffffff;
    font-size: 1.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 30px rgba(0, 191, 255, 0.28);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.08) translateY(-3px);
    box-shadow: var(--shadow-glow);
}

/* =========================
   ANIMATION
========================= */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 992px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.2rem; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .contact-grid, .service-detail-content { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    section { padding: 4.5rem 0; }
    .grid-2, .grid-3, .footer-top { grid-template-columns: 1fr; }
    .navbar { height: 78px; }
    
    .nav-links {
        position: fixed;
        top: 78px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 78px);
        background: rgba(245, 247, 250, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transition: var(--transition);
        border-top: 1px solid rgba(10, 25, 47, 0.08);
    }

    .nav-links.active { left: 0; }
    .hamburger { display: block; }
    
    .hero {
        min-height: auto;
        padding: 7rem 0 5rem;
    }
    .hero h1 { font-size: 2.45rem; }
    .hero-subtitle { font-size: 1.02rem; }
    .hero-btns { flex-direction: column; align-items: flex-start; }
    .contact-form { padding: 1.6rem; }
    .page-header { padding: 140px 0 70px; }
    .page-header h1 { font-size: 2.5rem; }
}

@media (max-width: 576px) {
    .container { padding: 0 1rem; }
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.85rem; }
    .card, .testimonial-card, .service-sidebar .widget { padding: 1.5rem; }
    .team-img { height: 280px; }
    .whatsapp-float {
        width: 56px; height: 56px; font-size: 1.6rem;
        right: 16px; bottom: 16px;
    }
}