/* ========================================
   CSS Variables & Reset
   ======================================== */
:root {
    --primary: #1B3A5C;
    --primary-light: #2A5F8F;
    --accent: #0D8ABC;
    --accent-hover: #0A7BAA;
    --accent-glow: rgba(13, 138, 188, 0.15);
    --dark: #1A1A2E;
    --muted: #555B6E;
    --light-bg: #F7F9FC;
    --white: #FFFFFF;
    --border: #E0E4EA;
    --star: #F4A940;
    --success: #27AE60;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --max-width: 1200px;
    --radius: 10px;
    --radius-lg: 16px;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.12);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font);
    color: var(--dark);
    line-height: 1.6;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ========================================
   Scroll Reveal Animation
   ======================================== */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Utilities
   ======================================== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 110px 0;
    position: relative;
}

.section-alt {
    background: var(--light-bg);
}

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

.section-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    background: var(--accent-glow);
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    color: var(--dark);
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--muted);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: all 0.25s ease;
    border: 2px solid transparent;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 138, 188, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border-color: var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 138, 188, 0.35);
}

.btn-full {
    width: 100%;
}

/* ========================================
   Navbar
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(224, 228, 234, 0.6);
    transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 21px;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

.logo-icon {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--muted);
    transition: color 0.2s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 10px 22px;
    font-size: 14px;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark);
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   Hero
   ======================================== */
.hero {
    padding: 140px 0 100px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f6fc 0%, #e8f0fe 30%, #f7f9fc 70%, #fff 100%);
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: rgba(13, 138, 188, 0.08);
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: rgba(42, 95, 143, 0.06);
    bottom: -80px;
    left: -80px;
    animation: float 10s ease-in-out infinite reverse;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: rgba(13, 138, 188, 0.05);
    top: 40%;
    left: 50%;
    animation: float 12s ease-in-out infinite;
}

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

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    background: rgba(13, 138, 188, 0.1);
    border: 1px solid rgba(13, 138, 188, 0.2);
    padding: 8px 16px;
    border-radius: 24px;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--dark);
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-sub {
    font-size: 18px;
    line-height: 1.7;
    color: var(--muted);
    margin-bottom: 36px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 28px;
}

.stat strong {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
}

.stat span {
    font-size: 13px;
    color: var(--muted);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* Code Window */
.hero-visual {
    position: relative;
}

.code-window {
    background: #1e293b;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255,255,255,0.05);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-2deg) rotateX(1deg);
    transition: transform 0.5s ease;
}

.code-window:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.code-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    background: #0f172a;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #22c55e; }

.code-title {
    margin-left: 8px;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.code-body {
    padding: 20px 22px;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 14px;
    line-height: 1.8;
}

.code-line {
    white-space: nowrap;
}

.code-line.indent {
    padding-left: 24px;
}

.code-keyword { color: #c084fc; }
.code-var { color: #60a5fa; }
.code-prop { color: #67e8f9; }
.code-string { color: #86efac; }
.code-func { color: #fbbf24; }
.code-comment { color: #64748b; }

/* Floating Cards */
.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    padding: 10px 18px;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    animation: bounce 3s ease-in-out infinite;
}

.card-1 {
    top: -10px;
    right: -20px;
    animation-delay: 0s;
}

.card-2 {
    bottom: 30px;
    left: -20px;
    animation-delay: 1.5s;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ========================================
   About
   ======================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--muted);
    margin-bottom: 20px;
}

.about-text p:last-of-type {
    margin-bottom: 24px;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
    background: var(--accent-glow);
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid rgba(13, 138, 188, 0.15);
}

.about-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.value-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--primary-light));
    opacity: 0;
    transition: opacity 0.3s;
}

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

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

.value-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-glow);
    border-radius: 10px;
    color: var(--accent);
    margin-bottom: 14px;
}

.value-card h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
}

.value-card p {
    font-size: 13px;
    line-height: 1.6;
    color: var(--muted);
}

/* ========================================
   Services
   ======================================== */
.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-6px);
    border-color: rgba(13, 138, 188, 0.2);
}

.service-card:hover::after {
    transform: scaleX(1);
}

.service-icon-wrap {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-glow), rgba(42, 95, 143, 0.08));
    border-radius: 14px;
    color: var(--accent);
    margin-bottom: 24px;
}

.service-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--dark);
}

.service-card > p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--muted);
    margin-bottom: 20px;
}

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

.service-list li {
    font-size: 14px;
    color: var(--muted);
    padding: 7px 0;
    padding-left: 24px;
    position: relative;
}

.service-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.4;
}

/* ========================================
   Process
   ======================================== */
.process-grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}

.process-step {
    text-align: center;
    flex: 1;
    max-width: 250px;
    padding: 0 20px;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--primary-light));
    color: var(--white);
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 16px rgba(13, 138, 188, 0.3);
}

.process-step h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark);
}

.process-step p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--muted);
}

.process-connector {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--border));
    margin-top: 30px;
    flex-shrink: 0;
    border-radius: 1px;
}

/* ========================================
   Testimonials
   ======================================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: all 0.3s ease;
    position: relative;
}

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

.testimonial-quote {
    font-size: 56px;
    font-weight: 700;
    color: var(--accent);
    opacity: 0.2;
    line-height: 1;
    margin-bottom: -10px;
    font-family: Georgia, serif;
}

.testimonial-text {
    font-size: 15px;
    line-height: 1.8;
    color: var(--muted);
    margin-bottom: 28px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.testimonial-author strong {
    display: block;
    font-size: 15px;
    color: var(--dark);
}

.testimonial-author span {
    font-size: 13px;
    color: var(--muted);
}

/* ========================================
   Contact
   ======================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 60px;
    align-items: start;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
}

.contact-icon-wrap {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-glow);
    border-radius: 10px;
    color: var(--accent);
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 15px;
    color: var(--muted);
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    font-family: var(--font);
    color: var(--dark);
    background: var(--light-bg);
    transition: all 0.25s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
    background: var(--white);
}

.form-group textarea {
    resize: vertical;
}

.form-note {
    font-size: 13px;
    color: var(--muted);
    text-align: center;
    margin-top: 12px;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: linear-gradient(180deg, var(--primary) 0%, #142d47 100%);
    color: rgba(255, 255, 255, 0.85);
    padding: 70px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 14px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.7;
    max-width: 280px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-links h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 18px;
}

.footer-links a {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 12px;
    transition: all 0.2s;
}

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

.footer-bottom {
    padding: 24px 0;
    text-align: center;
}

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

/* ========================================
   Responsive Design
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 42px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        max-width: 500px;
        margin: 0 auto;
    }

    .about-grid {
        gap: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .section {
        padding: 80px 0;
    }

    .section-title {
        font-size: 30px;
    }

    .section-subtitle {
        font-size: 16px;
    }

    /* Navbar mobile */
    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 20px 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a::after {
        display: none;
    }

    .nav-cta {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    /* Hero mobile */
    .hero {
        padding: 120px 0 60px;
    }

    .hero-text h1 {
        font-size: 32px;
    }

    .hero-sub {
        font-size: 16px;
    }

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

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

    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }

    .stat-divider {
        display: none;
    }

    .hero-visual {
        display: none;
    }

    /* About mobile */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-values {
        grid-template-columns: 1fr 1fr;
    }

    /* Services mobile */
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 28px;
    }

    /* Process mobile */
    .process-grid {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .process-connector {
        width: 2px;
        height: 30px;
        margin: 0;
        background: linear-gradient(180deg, var(--accent), var(--border));
    }

    .process-step {
        max-width: 100%;
    }

    /* Testimonials mobile */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    /* Contact mobile */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 24px;
    }

    /* Footer mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 28px;
    }

    .about-values {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        flex-direction: column;
        align-items: center;
    }
}
