@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;600;700;800&display=swap');

:root {
    --bg-dark: #020617;
    --bg-card: rgba(15, 23, 42, 0.6);
    --bg-accent: rgba(30, 41, 59, 0.5);
    
    --primary: #0070f3;
    --primary-light: #00d2ff;
    --primary-glow: rgba(0, 112, 243, 0.4);
    
    --text-white: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    --gradient-dark: linear-gradient(180deg, #050a14 0%, #020617 100%);
    --border: rgba(255, 255, 255, 0.08);
    --glass: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.12);
    
    --container-width: 1200px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 0% 0%, rgba(0, 112, 243, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(0, 210, 255, 0.05) 0%, transparent 50%);
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 1rem 0;
    background: var(--glass);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    display: block;
}

.brand-text {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--text-white);
    font-family: 'Outfit', sans-serif;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

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

.nav-cta {
    background: var(--gradient-primary);
    color: white !important;
    padding: 0.5rem 1.25rem;
    border-radius: 10px;
    font-weight: 600 !important;
    font-size: 0.85rem;
    box-shadow: 0 4px 14px 0 var(--primary-glow);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 112, 243, 0.4);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: #03102c;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(90deg, rgba(2,10,32,0.92) 0%, rgba(2,10,32,0.75) 45%, rgba(2,10,32,0.5) 100%),
        radial-gradient(circle at 70% 30%, rgba(0,112,243,0.3), transparent 45%);
    backdrop-filter: blur(2px);
    z-index: 2;
}

.hero-container {
    position: relative;
    z-index: 3;
    width: 100%;
}

.hero-content {
    max-width: 760px;
    padding: 120px 0;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(0, 112, 243, 0.1);
    border: 1px solid rgba(0, 112, 243, 0.2);
    border-radius: 50px;
    color: var(--primary-light);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero h1 span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(0,112,243,0.3));
}

.hero p {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.85);
    max-width: 600px;
    margin-bottom: 3rem;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.btn-main {
    padding: 1.25rem 2.5rem;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 25px -5px var(--primary-glow);
}

.btn-main:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px -10px var(--primary-glow);
}

.btn-secondary {
    padding: 1.25rem 2.5rem;
    background: var(--bg-accent);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
}
/* Removed old hero visual styles */

/* --- Section Headers --- */
.section-head {
    text-align: center;
    margin-bottom: 5rem;
}

.section-head span {
    color: var(--primary-light);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 1rem;
}

.section-head h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.section-head p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* --- Industries Section --- */
.industries {
    padding: 100px 0;
    background: var(--gradient-dark);
}

.industries-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.industry-chip {
    padding: 0.75rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.industry-chip:hover {
    border-color: var(--primary);
    color: white;
    transform: translateY(-3px);
    background: rgba(0, 112, 243, 0.05);
}

/* --- Services Section --- */
.services {
    padding: 120px 0;
    background: #020617;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 30px;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 112, 243, 0.4);
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.5);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 112, 243, 0.1);
    color: var(--primary-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--gradient-primary);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* --- Showcase Section --- */
.showcase {
    padding: 120px 0;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    group;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 4/3;
    border: 1px solid var(--border);
    cursor: pointer;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.4) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem;
    opacity: 0.9;
    transition: var(--transition);
}

.project-card:hover .project-img {
    transform: scale(1.1);
}

.project-card:hover .project-overlay {
    background: linear-gradient(to top, rgba(0, 112, 243, 0.9) 0%, rgba(2, 6, 23, 0.6) 100%);
}

.project-cat {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-light);
    margin-bottom: 0.5rem;
}

.project-card:hover .project-cat {
    color: white;
}

.project-title {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1rem;
}

.project-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
}

.project-card:hover .project-btn {
    opacity: 1;
    transform: translateY(0);
}

/* --- Process Section --- */
.process {
    padding: 120px 0;
    background: var(--bg-accent);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 3rem;
    position: relative;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--bg-dark);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 2rem;
    color: var(--primary-light);
    box-shadow: 0 0 30px rgba(0, 112, 243, 0.2);
    position: relative;
    z-index: 2;
}

.step h3 {
    margin-bottom: 1rem;
}

.step p {
    color: var(--text-muted);
}

/* --- Why Haizen --- */
.why {
    padding: 120px 0;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.why-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border);
}

.why-icon {
    flex-shrink: 0;
    color: var(--primary-light);
}

.why-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.why-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- Final CTA --- */
.final-cta {
    padding: 120px 0;
}

.cta-box {
    background: var(--gradient-primary);
    padding: 6rem;
    border-radius: 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 40px 100px -20px var(--primary-glow);
}

.cta-box::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.2), transparent);
}

.cta-box h2 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    color: white;
}

.cta-box p {
    font-size: 1.4rem;
    margin-bottom: 3.5rem;
    color: rgba(255,255,255,0.9);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: white;
    color: var(--primary);
    padding: 1.5rem 3.5rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.25rem;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.btn-whatsapp:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* --- Modal --- */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    width: 100%;
    max-width: 1000px;
    border-radius: 32px;
    border: 1px solid var(--glass-border);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.modal-img-container {
    padding: 2rem;
}

.modal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.modal-info {
    padding: 4rem 3rem;
}

.modal-info h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.modal-tag {
    color: var(--primary-light);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    display: block;
}

.modal-info p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.modal-features {
    list-style: none;
    margin-bottom: 3rem;
}

.modal-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.modal-features i {
    color: var(--primary-light);
    width: 20px;
}

/* --- Quote Section --- */
.quote-section {
    padding: 120px 0;
    background: radial-gradient(circle at 50% 0%, rgba(0, 112, 243, 0.08), transparent 70%);
}

.quote-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    padding: 4rem;
    box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.5);
}

.quote-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-white);
    padding-left: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 20px rgba(0, 112, 243, 0.15);
}

.form-group select option {
    background: #0f172a;
    color: white;
}

.w-full {
    width: 100%;
}

.quote-alternative {
    margin-top: 3rem;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.quote-alternative p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.btn-whatsapp-small {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 2rem;
    background: #25D366;
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
}

.btn-whatsapp-small:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

@media (max-width: 768px) {
    .quote-container {
        padding: 2rem 1.5rem;
        border-radius: 30px;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Success Message --- */
.success-message {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Footer --- */
footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--border);
    background: #010409;
}

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

.footer-about p {
    color: var(--text-muted);
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1rem;
}

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

.footer-social li {
    margin-bottom: 1.25rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-muted);
    transition: var(--transition);
}

.social-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    opacity: 0.8;
    transition: transform 0.3s ease, opacity 0.3s ease, filter 0.3s ease;
    filter: brightness(0) invert(1); /* Ensure they are white/light */
}

.footer-social a:hover {
    color: var(--primary-light);
    transform: translateX(5px);
}

.footer-social a:hover .social-icon {
    transform: translateY(-2px);
    opacity: 1;
    filter: brightness(1) invert(0); /* Optional: could keep them white or show original color */
}

.footer-social a:hover .social-icon[alt="WhatsApp"] { filter: none; }
.footer-social a:hover .social-icon[alt="Facebook"] { filter: none; }
.footer-social a:hover .social-icon[alt="Email"] { filter: none; }

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* --- Reveal on Scroll --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero h1 { font-size: 3.2rem; }
    .hero p { margin: 0 auto 3rem; }
    .hero-btns { justify-content: center; }
    .modal-content { grid-template-columns: 1fr; }
    .modal-img-container { display: none; }
}

@media (max-width: 768px) {
    /* General Spacing */
    section { padding: 60px 0 !important; }
    .container { padding: 0 1.25rem; }
    
    /* Navigation */
    .navbar { padding: 1rem 0; }
    .nav-links { display: none; }
    .brand-text { font-size: 1.4rem; }
    .brand-logo { width: 32px; height: 32px; }

    /* Hero Section - Compact for Mobile */
    .hero { min-height: 85vh; padding-top: 80px; }
    .hero-content { padding: 60px 0; text-align: center; }
    .hero-tag { margin-bottom: 1.5rem; font-size: 0.75rem; }
    .hero h1 { font-size: 2.4rem; margin-bottom: 1.25rem; }
    .hero p { font-size: 1rem; margin-bottom: 2.5rem; }
    
    .hero-btns { 
        flex-direction: column; 
        gap: 1rem; 
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .btn-main, .btn-secondary { 
        width: 100%; 
        padding: 1rem; 
        font-size: 1rem; 
        text-align: center; 
    }

    /* Sections Headers */
    .section-head { margin-bottom: 3rem; }
    .section-head h2 { font-size: 1.8rem; }
    .section-head p { font-size: 0.95rem; }

    /* Industries */
    .industry-chip { padding: 0.5rem 1rem; font-size: 0.85rem; }

    /* Services */
    .services-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .service-card { padding: 2rem; border-radius: 20px; }
    
    /* Showcase */
    .showcase-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .project-card { aspect-ratio: 16/10; }
    .project-overlay { padding: 1.5rem; }
    .project-title { font-size: 1.25rem; }

    /* Process */
    .process-steps { gap: 2rem; }
    .step-number { width: 60px; height: 60px; font-size: 1.25rem; }

    /* CTA Box */
    .cta-box { padding: 3rem 1.5rem; border-radius: 30px; }
    .cta-box h2 { font-size: 1.8rem; margin-bottom: 1rem; }
    .cta-box p { font-size: 1.1rem; margin-bottom: 2rem; }
    .btn-whatsapp { padding: 1.2rem 2rem; font-size: 1.1rem; width: 100%; justify-content: center; }

    /* Form */
    .quote-container { padding: 2rem 1.5rem; border-radius: 24px; }
    .form-grid { grid-template-columns: 1fr; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
    .footer-about { margin: 0 auto; }
    .footer-social a { justify-content: center; }
    .footer-links ul { padding: 0; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; }
    .section-head h2 { font-size: 1.6rem; }
}
