/* --- Variables & Reset --- */
:root {
    --primary-blue: #1e73be;
    --primary-hover: #155a96;
    --light-blue: #e8f0fe;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --bg-color: #f8fafc;
    --white: #ffffff;
    --card-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-dark);
    position: relative;
    overflow-x: hidden;
}

/* Background decorative waves */
.bg-shape {
    position: absolute;
    z-index: -1;
    background: radial-gradient(circle, rgba(232,240,254,1) 0%, rgba(248,250,252,0) 70%);
    width: 800px;
    height: 800px;
    border-radius: 50%;
}
.bg-shape-1 { top: -200px; left: -300px; }
.bg-shape-2 { bottom: 100px; right: -200px; }

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}

/* --- Typography & Buttons --- */
a { text-decoration: none; }

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
    border: 2px solid var(--primary-blue);
}

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

.btn-outline {
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-outline:hover {
    background-color: var(--light-blue);
}

.whatsapp-btn {
    margin-top: 10px;
    background-color: #25D366; /* WhatsApp Green */
    border: 2px solid #25D366;
    color: var(--white);
}

.whatsapp-btn:hover {
    background-color: #128C7E; /* Darker WhatsApp Green */
    border-color: #128C7E;
}

/* --- Header / Navigation --- */
header {
    background-color: var(--white);
    border-bottom: 1px solid #e2e8f0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
}

.nav-logo img { /* New style for the image logo */
    height: 100px; /* Adjust as needed */
    vertical-align: middle; /* Align image nicely */
}

.nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-menu a {
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-blue);
}

.hamburger { /* New style for the hamburger icon */
    display: none; /* Hidden by default on desktop */
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    width: 25px;
    height: 20px;
    z-index: 1000;
}

.hamburger .bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-dark); /* Or adjust color */
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

.nav-button { /* New style for the 'GET A QUOTE' button */
    display: block;
}

/* --- Hero Section --- */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 0 80px 0;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 46px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #1a202c;
}

.hero-content p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    position: relative; /* For overlay positioning */
    border-radius: 12px;
    overflow: hidden; /* To clip the overlay */
    box-shadow: var(--card-shadow);
}

.hero-image img {
    max-width: 100%;
    display: block; /* Removes bottom space under image */
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.85), transparent); /* Semi-transparent gradient */
    padding: 40px 20px 20px;
    text-align: center;
}

.image-overlay p {
    color: var(--white);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 0;
    max-width: 400px; /* Constrain text width for readability */
    margin-left: auto;
    margin-right: auto;
}

.typing-effect::after {
    content: '|';
    font-weight: 400;
    animation: blink-caret 1s step-end infinite;
}

@keyframes blink-caret {
    from, to { color: transparent }
    50% { color: var(--white); }
}

/* --- Page Header --- */
.page-header {
    padding: 60px 40px;
    text-align: center;
    background-color: var(--white);
    margin-bottom: 60px;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
}

.page-header h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* --- Services Page --- */
.services-page-section {
    padding-bottom: 80px;
}
.services-page-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* --- Services Section --- */
.services-section {
    padding-bottom: 80px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.service-card {
    background-color: var(--white);
    padding: 25px;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    border: 1px solid #f1f5f9;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative; /* For positioning child elements */
    overflow: hidden; /* To clip the ribbon */
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.service-icon {
    background-color: var(--light-blue);
    color: var(--primary-blue);
    min-width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
}

.service-info h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.service-info p {
    font-size: 13px;
    color: var(--text-muted);
}

.coming-soon-label {
    position: absolute;
    top: 15px;
    right: -30px;
    background-color: #ff9800; /* A bright color for visibility */
    color: var(--white);
    padding: 5px 30px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    transform: rotate(45deg);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 1;
}

.service-info .tech-stack {
    margin-top: 10px;
    font-size: 12px;
}

.tech-stack strong {
    font-style: normal;
    font-weight: 600;
    color: var(--text-dark);
}

.tech-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 8px;
    font-size: 22px;
    color: var(--text-muted);
}

.tech-icons i {
    transition: color 0.3s ease;
    cursor: help;
}

.tech-icons i:hover {
    color: var(--primary-blue);
}

/* --- Stats Section --- */
.stats-section {
    padding: 60px 0;
    background-color: var(--white);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    margin-bottom: 80px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item i {
    font-size: 36px;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.stat-number {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-dark);
}

.stat-item p {
    font-size: 16px;
    color: var(--text-muted);
    margin-top: 5px;
}

/* --- Footer --- */
footer {
    background-color: var(--white);
    padding: 50px 0 20px;
    border-top: 1px solid #e2e8f0;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    padding-bottom: 40px;
    margin-bottom: 30px;
    border-bottom: 1px solid #e2e8f0;
}

.footer-col {
    flex: 1;
}

.footer-col.logo-col {
    flex: 1.5;
}

.footer-logo {
    height: 100px;
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

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

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a {
    color: var(--text-muted);
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-col ul a:hover {
    color: var(--primary-blue);
}

/* --- Portfolio Section --- */
.portfolio-section {
    padding-bottom: 80px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.portfolio-card {
    background-color: var(--white);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.portfolio-image {
    height: 220px;
    overflow: hidden;
    background-color: var(--light-blue);
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.portfolio-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.portfolio-tags span {
    background-color: var(--light-blue);
    color: var(--primary-blue);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.portfolio-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.portfolio-link {
    margin-top: auto;
    padding-top: 10px;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s ease;
}

.portfolio-link:hover {
    color: var(--primary-hover);
}

.portfolio-link i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.portfolio-link:hover i {
    transform: translateX(4px);
}

/* --- Map Section --- */
.map-section {
    padding-bottom: 80px;
}

.map-section iframe {
    width: 100%;
    height: 450px;
    border: 0;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
}

/* --- Contact Page --- */
.contact-section {
    padding-bottom: 80px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    background-color: var(--white);
    padding: 50px;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
}

.contact-info-col h3,
.contact-form-col h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.contact-info-col > p {
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.7;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-detail-item i {
    font-size: 22px;
    color: var(--primary-blue);
    margin-top: 5px;
}

.contact-detail-item h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-detail-item p,
.contact-detail-item a {
    color: var(--text-muted);
    font-size: 14px;
}

.contact-detail-item a:hover {
    color: var(--primary-blue);
}

/* Form Styles */
.contact-form-col form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-group {
    width: 100%;
}

.footer-contact-details {
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px var(--light-blue);
}

.form-group textarea {
    resize: vertical;
}

.form-group input.invalid,
.form-group textarea.invalid {
    border-color: #dc3545; /* Red for error */
}

.form-group input.invalid:focus,
.form-group textarea.invalid:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.25);
}

.error-message {
    color: #dc3545;
    font-size: 13px;
    margin-top: 6px;
}

.footer-contact-details p {
    margin-bottom: 10px;
}

.footer-contact-details a {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.footer-contact-details a:hover {
    color: var(--primary-blue);
}

.footer-contact-details i {
    margin-right: 8px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--text-muted);
    font-size: 18px;
    transition: color 0.3s;
}

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

.footer-bottom {
    text-align: center;
}

.copyright {
    font-size: 13px;
    color: var(--text-muted);
}

/* --- About Page --- */
.about-section {
    padding-bottom: 80px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 50px;
}

.about-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
}

.about-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
}

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

.values-list {
    list-style: none;
    margin-top: 20px;
}

.values-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-weight: 500;
}

.values-list i {
    color: var(--primary-blue);
    font-size: 18px;
}

/* --- Team Section --- */
.team-section {
    padding-bottom: 80px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

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

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.team-card {
    background-color: var(--white);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    text-align: center;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.team-card-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 4px solid var(--light-blue);
}

.team-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
}

.team-card-content p {
    color: var(--text-muted);
    margin-bottom: 15px;
}

.team-socials {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.team-socials a {
    color: var(--text-muted);
    font-size: 18px;
    transition: color 0.3s ease;
}

.team-socials a:hover {
    color: var(--primary-blue);
}

/* --- Cookie Banner --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(15, 23, 42, 0.95); /* Dark background */
    color: var(--white);
    padding: 20px 40px;
    display: none; /* Hidden by default, JS will manage visibility */
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    gap: 20px;
}

.cookie-banner p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.cookie-banner .btn {
    flex-shrink: 0; /* Prevent button from shrinking */
}

/* --- Back to Top Button --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--primary-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 998;
    visibility: hidden;
    opacity: 0;
    transition: all 0.4s ease;
}

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

.back-to-top:hover {
    background-color: var(--primary-hover);
    color: var(--white);
}

/* --- Toast Notification --- */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--text-dark);
    color: var(--white);
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 1002;
    opacity: 0;
    transform: translateY(20px);
    visibility: hidden;
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
}

.toast-notification.show {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.toast-notification.success {
    background-color: #28a745; /* Green for success */
}

.toast-notification.error {
    background-color: #dc3545; /* Red for error */
}

/* --- Page Loader --- */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading-dots span {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin: 0 5px;
    background-color: var(--primary-blue);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1.0); }
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .container {
        padding: 0 20px;
    }

    .hero { flex-direction: column; text-align: center; }
    .hero-image { justify-content: center; margin-top: 40px; }
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-grid {
        grid-template-columns: 1fr;
        padding: 40px;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .about-image { order: -1; }
    .hero-buttons { justify-content: center; }

    /* Responsive Navbar */
    .nav-menu {
        position: fixed;
        right: -100%; /* Hidden off-screen */
        top: 100px; /* Based on navbar height (padding + logo) */
        flex-direction: column;
        background-color: var(--white); /* Background for mobile menu */
        width: 70%; /* Width of the mobile menu */
        height: calc(100vh - 100px); /* Full height minus header */
        text-align: left;
        padding: 20px 40px;
        box-shadow: -2px 0 5px rgba(0,0,0,0.1);
        transition: right 0.3s ease-in-out;
        z-index: 999;
        gap: 0; /* Reset gap for vertical layout */
    }

    .nav-menu.active { /* Class added by JS to show menu */
        right: 0;
    }

    .nav-menu a {
        margin: 15px 0;
        font-size: 16px;
        color: var(--text-dark);
        display: block; /* Make the whole area clickable */
    }

    .hamburger {
        display: flex; /* Show hamburger on mobile */
    }

    /* Hamburger animation */
    .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);
    }

    .nav-button { /* Hide 'GET A QUOTE' button on mobile */
        display: none;
    }

    .cookie-banner {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    .cookie-banner p {
        margin-bottom: 15px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    .back-to-top {
        bottom: 20px;
        left: 20px;
    }

    .toast-notification {
        left: 50%;
        right: auto; /* Override desktop 'right' */
        bottom: 20px;
        width: calc(100% - 40px); /* Full width with padding */
        max-width: 400px; /* Max width for larger small screens */
        text-align: center;
        transform: translateX(-50%) translateY(20px); /* Center and initial position */
    }

    .toast-notification.show {
        transform: translateX(-50%) translateY(0); /* Center and final position */
    }

    .services-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 36px; }
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    .contact-grid {
        padding: 30px 20px;
    }
    .about-content h2 {
        font-size: 28px;
    }
    .section-title h2 {
        font-size: 32px;
    }
    .team-grid {
        grid-template-columns: 1fr;
    }

    .cookie-banner {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    .cookie-banner p {
        margin-bottom: 15px;
    }

    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
        border-bottom: none;
        margin-bottom: 20px;
        padding-bottom: 10px;
    }
    .footer-col {
        margin-bottom: 30px;
    }
    .social-links {
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
    .services-page-grid {
        grid-template-columns: 1fr;
    }
    .stat-item:not(:last-child) {
        margin-bottom: 40px;
    }

    .loading-dots span {
        width: 12px;
        height: 12px;
    }
}
