﻿/* --- CSS VARIABLES & RESET --- */
:root {
    --primary: #2563eb;
    --secondary: #1e293b;
    --accent: #3b82f6;
    --text-light: #f8fafc;
    --text-dark: #334155;
    --bg-light: #ffffff;
    --bg-off: #f1f5f9;
    --error: #ef4444;
    --success: #22c55e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    color: var(--text-dark);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* --- HEADER --- */
header {
    background: var(--bg-light);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -1px;
}

    .logo span {
        color: var(--secondary);
    }

/* Navigation Links (Desktop) */
.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

    .nav-links a {
        font-weight: 500;
        transition: color 0.3s;
    }

        .nav-links a:hover {
            color: var(--primary);
        }

/* The "Get a Quote" Button style */
.btn {
    background: var(--primary);
    color: white !important; /* Force white text */
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
    display: inline-block;
}

    .btn:hover {
        background: #1d4ed8;
    }

/* Hamburger Menu (Hidden by default) */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--secondary);
}

/* --- HERO SECTION --- */
.hero {
    padding: 140px 0 100px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: var(--text-light);
    text-align: center;
}

    .hero h1 {
        font-size: 3rem;
        margin-bottom: 20px;
        line-height: 1.2;
    }

    .hero p {
        font-size: 1.2rem;
        max-width: 600px;
        margin: 0 auto 40px;
        opacity: 0.9;
    }

/* --- SERVICES --- */
.services {
    padding: 80px 0;
    background: var(--bg-off);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

    .section-header h2 {
        font-size: 2.2rem;
        color: var(--secondary);
        margin-bottom: 10px;
    }

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    text-align: center;
}

    .card:hover {
        transform: translateY(-5px);
    }

.card-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
    display: inline-block;
}

/* --- PORTFOLIO (HORIZONTAL) --- */
.portfolio {
    padding: 80px 0;
    background: var(--bg-light);
    text-align: center;
}

.carousel-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 40px;
    padding: 20px 0 40px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

    .carousel-wrapper::-webkit-scrollbar {
        height: 8px;
    }

    .carousel-wrapper::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }

    .carousel-wrapper::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 10px;
    }

.carousel-card {
    flex: 0 0 85%;
    scroll-snap-align: center;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

    .carousel-card:hover {
        transform: translateY(-5px);
    }

.browser-frame {
    height: 220px;
    background: #e2e8f0;
    overflow: hidden;
    position: relative;
    border-top: 24px solid #f1f5f9;
    border-bottom: 1px solid #cbd5e1;
}

    .browser-frame::before {
        content: '...';
        position: absolute;
        top: -28px;
        left: 12px;
        font-size: 2.5rem;
        line-height: 1;
        color: #cbd5e1;
        letter-spacing: -2px;
        z-index: 2;
    }

    .browser-frame img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

.carousel-card:hover .browser-frame img {
    transform: scale(1.05);
}

/* Media Query for Carousel */
@media (min-width: 768px) {
    .carousel-card {
        flex: 0 0 45%;
    }
}

@media (min-width: 1024px) {
    .carousel-card {
        flex: 0 0 32%;
    }
}

/* --- ABOUT --- */
.about {
    padding: 80px 0;
    background: var(--bg-off);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-img img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* --- CONTACT --- */
.contact {
    padding: 80px 0;
    background: var(--secondary);
    color: var(--text-light);
}

    .contact h2 {
        text-align: center;
        margin-bottom: 50px;
    }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-info-box {
    background: #334155;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #475569;
    height: fit-content;
}

    .contact-info-box h3 {
        color: white;
        margin-bottom: 25px;
        font-size: 1.4rem;
        border-bottom: 2px solid var(--accent);
        padding-bottom: 10px;
        display: inline-block;
    }

.info-item {
    margin-bottom: 20px;
}

.info-label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 5px;
    font-weight: 700;
}

.info-value {
    font-size: 1.1rem;
    color: white;
    font-weight: 500;
}

.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-size: 0.9rem;
    }

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #475569;
    border-radius: 5px;
    background: #1e293b;
    color: white;
    font-size: 1rem;
}

    .form-control:focus {
        outline: none;
        border-color: var(--accent);
    }

.text-danger {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}

.alert-success {
    background: var(--success);
    color: white;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

.alert-error {
    background: var(--error);
    color: white;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* --- MOBILE RESPONSIVENESS (UPDATED) --- */
@media (max-width: 768px) {
    /* 1. Hero Text */
    .hero h1 {
        font-size: 2.2rem;
    }

    /* 2. Stack Grids */
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* 3. Hamburger Menu Visible */
    .hamburger {
        display: block;
    }

        /* 4. Hide Hamburger animation when active */
        .hamburger.active .bar:nth-child(2) {
            opacity: 0;
        }

        .hamburger.active .bar:nth-child(1) {
            transform: translateY(8px) rotate(45deg);
        }

        .hamburger.active .bar:nth-child(3) {
            transform: translateY(-8px) rotate(-45deg);
        }

    /* 5. Mobile Nav Drawer */
    .nav-links {
        position: fixed;
        left: -100%; /* Hidden off-screen to the left */
        top: 70px; /* Below header */
        gap: 0;
        flex-direction: column;
        background-color: var(--bg-light);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        padding: 20px 0;
    }

        /* 6. Active State (Slide in) */
        .nav-links.active {
            left: 0;
        }

        /* 7. Spacing for list items on mobile */
        .nav-links li {
            margin: 15px 0;
            width: 100%;
        }

        /* 8. Make button full width on mobile menu */
        .nav-links .btn {
            width: 80%;
            text-align: center;
        }
}
