/* === Google Font Import === */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700&family=Inter:wght@400;500&display=swap');

/* === Root Variables for Colors & Fonts === */
:root {
    --primary-dark: #1A202C; /* Charcoal Blue */
    --accent-color: #00BFFF; /* Deep Sky Blue */
    --text-light: #FFFFFF;
    --text-muted: rgba(255, 255, 255, 0.7);
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* === Global Body & Resets === */
body {
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    background-image: url('../images/Background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* This keeps the background still while scrolling */
    color: var(--text-light);
    box-sizing: border-box;
    scroll-behavior: smooth;
}

    /* Global Dark Overlay for Readability */
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.7);
        z-index: -1; /* Place it behind all content */
    }


h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

p {
    line-height: 1.6;
    color: var(--text-muted);
}

/* === Navigation Bar (Header) - Now Permanently Styled === */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    transition: all 0.3s ease-in-out;
    background: rgba(26, 32, 44, 0.8); /* Permanent frosted glass effect */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.logo a {
    color: var(--text-light);
    font-size: 1.8em;
    font-weight: 700;
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    margin-right: 4em;
}

    .nav-links li a {
        color: var(--text-light);
        text-decoration: none;
        font-size: 1.1em;
        font-weight: 500;
        position: relative;
        padding-bottom: 5px;
        transition: color 0.3s ease;
    }

        .nav-links li a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background-color: var(--accent-color);
            transition: width 0.3s ease-in-out;
        }

        .nav-links li a:hover {
            color: var(--accent-color);
        }

            .nav-links li a:hover::after {
                width: 100%;
            }

.menu-toggle {
    display: none;
    font-size: 2em;
    color: var(--text-light);
    background: none;
    border: none;
    cursor: pointer;
}

/* === UNIFIED SECTION STYLING === */
section {
    text-align: center;
    padding: 5rem 2rem;
    margin: 0 auto 4rem auto; /* Spacing between sections */
    max-width: 1200px;
    background: rgba(26, 32, 44, 0.75); /* Glass effect for all sections */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

#landing {
    min-height: 100vh; /* Make it take the full viewport height */
    max-width: 100%; /* Allow landing to be full-width */
    border-radius: 0; /* Remove rounded corners for seamless look */
    border: none;
    margin-bottom: 4rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.landing-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.landing-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.cta-button {
    background-color: var(--accent-color);
    color: var(--primary-dark);
    font-family: var(--font-heading);
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.4);
}

    .cta-button:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(0, 191, 255, 0.6);
    }

/* === Services Section (Updated with Flexbox for Button Alignment) === */
.services-section h2, .clients-section h2, .team-section h2, .mission-section h2, .contact-section h2 {
    font-size: 2.5em;
    margin-bottom: 1rem;
}

.section-intro {
    font-size: 1.1em;
    max-width: 700px;
    margin: 0 auto 3rem auto;
    color: var(--text-muted);
}

/* 1. Make the service widget container a Flex container */
.service-widget {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem; /* Spacing between the service items */
}

.service-item {
    /* Key for button alignment: Set as a flex container in column direction */
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.05); /* Subtle background for cards */
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    flex: 1 1 300px;
    max-width: 350px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center; /* Ensure contents are centered */
}

    .service-item:hover {
        transform: translateY(-10px);
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.2);
    }

    .service-item i {
        color: var(--accent-color);
        margin-bottom: 1.5rem;
    }

    .service-item h4 {
        font-size: 1.5em;
        margin-bottom: 1rem;
        color: var(--text-light);
    }

    .service-item p {
        font-size: 1em;
        color: var(--text-muted);
    }

    /* 2. Style for the "See Our Projects" button and alignment */
    .service-item .details-button {
        /* Push the button to the bottom by taking up all available space */
        margin-top: auto;
        padding: 10px 20px;
        background-color: var(--accent-color); /* Using Accent Color for prominence */
        color: var(--primary-dark);
        font-family: var(--font-heading);
        border: none;
        border-radius: 50px; /* Pill shape for modern look */
        cursor: pointer;
        font-size: 1.05em;
        font-weight: 600;
        transition: all 0.3s ease;
        box-shadow: 0 4px 10px rgba(0, 191, 255, 0.3);
    }

        .service-item .details-button:hover {
            background-color: #008cba; /* Slightly darker shade on hover */
            transform: scale(1.05);
        }

    /* Make Web Development card visually interactive */
    /* The entire card is now clickable, so we remove the general .service-item:hover and apply specific styling */
    .service-item[data-service="webdev"] {
        cursor: pointer;
    }

        .service-item[data-service="webdev"]:hover {
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
            transform: translateY(-10px); /* Keep consistent with other service items */
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(255, 255, 255, 0.2);
        }

    /* Style for the Web Development external link icon */
    .service-item h4 .fa-external-link-alt {
        color: inherit;
        font-size: 0.8em;
    }


/* === Clients Section === */
.clients-logos {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 2rem;
    flex-wrap: wrap;
}

.client-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 180px;
}

    .client-logo img {
        max-width: 120px;
        height: auto;
        margin-bottom: 1rem;
        filter: grayscale(100%) brightness(1.5);
        opacity: 0.7;
        transition: all 0.3s ease;
    }

        .client-logo img:hover {
            filter: grayscale(0%) brightness(1);
            opacity: 1;
            transform: scale(1.1);
        }

.client-label {
    font-size: 0.9em;
    font-weight: 500;
    color: var(--text-muted);
    text-align: center;
}


/* === Team Section === */
.team-members {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.member {
    text-align: center;
    max-width: 280px;
}

    .member img {
        border-radius: 50%;
        width: 180px;
        height: 180px;
        object-fit: cover;
        margin-bottom: 1.5rem;
        border: 4px solid rgba(255, 255, 255, 0.2);
    }

    .member h3 {
        font-size: 1.5em;
        color: var(--text-light);
    }

    .member p {
        color: var(--accent-color);
        font-weight: 500;
    }

/* === Mission Section === */
.mission-content {
    max-width: 800px;
    margin: 2rem auto 0 auto;
    text-align: left;
}

    .mission-content h3 {
        color: var(--accent-color);
        border-bottom: 2px solid var(--accent-color);
        padding-bottom: 0.5rem;
        display: inline-block;
        margin-top: 2rem;
    }

/* === Contact Section === */
.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.2em;
}

    .contact-item a {
        color: var(--text-light);
        text-decoration: none;
        transition: color 0.3s ease;
    }

        .contact-item a:hover {
            color: var(--accent-color);
        }

.contact-icon {
    filter: brightness(0) invert(1);
    width: 30px;
    height: 30px;
}

/* === Footer === */
footer {
    background-color: #11151C; /* Slightly darker than sections */
    color: #aaa;
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid #333;
}

.social-links a {
    color: #aaa;
    margin: 0 1rem;
    font-size: 1.5rem;
    transition: color 0.3s ease;
    text-decoration: none;
}

    .social-links a:hover {
        color: var(--accent-color);
    }

/* === Modal Styling (No changes) === */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

    .modal.show {
        display: flex;
        opacity: 1;
    }

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

    .modal-content img {
        width: auto;
        height: auto;
        max-width: 100%;
        max-height: 90vh;
        border-radius: 8px;
    }

.close {
    position: absolute;
    top: -15px;
    right: -15px;
    background: white;
    color: var(--primary-dark);
    font-size: 24px;
    font-weight: bold;
    width: 35px;
    height: 35px;
    text-align: center;
    line-height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

    .close:hover {
        transform: scale(1.1);
        background: var(--accent-color);
    }

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: white;
    cursor: pointer;
    user-select: none;
    background: rgba(0, 0, 0, 0.4);
    padding: 1rem;
    border-radius: 8px;
    transition: background 0.3s;
}

    .prev:hover, .next:hover {
        background: rgba(0, 0, 0, 0.7);
    }

.prev {
    left: -70px;
}

.next {
    right: -70px;
}

/* === Mobile Responsiveness === */
@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }

    section {
        padding: 4rem 1rem;
        margin: 0 auto 2rem auto;
    }

    .landing-content h1 {
        font-size: 2.5rem;
    }

    .landing-content p {
        font-size: 1.2rem;
    }

    /* Hide the main nav links on mobile */
    .navbar .nav-links {
        display: none;
    }

    /* Styling for the mobile menu when it's toggled */
    .nav-links.show {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%; /* Position below the header */
        left: 0;
        background: var(--primary-dark);
        width: 100%;
        padding: 1rem 0;
        gap: 0;
    }

        .nav-links.show li {
            text-align: center;
            padding: 1rem 0;
            width: 100%;
        }

    .prev, .next {
        font-size: 2rem;
        padding: 0.5rem;
    }

    .prev {
        left: 10px;
    }

    .next {
        right: 10px;
    }

    /* LANDING SECTION FIXES */
    #landing {
        /* Reset padding for the landing section on small screens */
        padding-top: 6rem; /* Give space for the fixed navbar */
        min-height: auto; /* Allow height to adjust based on content */
        display: block; /* Change from flex to block for simple stacking */
    }

    .landing-content {
        /* Ensure all content inside the landing section stacks vertically */
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

        .landing-content h1 {
            font-size: 2.5rem; /* Reduced for better fit */
            word-break: break-word; /* Prevents long words from overflowing */
        }

        /* BANNER IMAGE FIXES */
        .landing-content .banner-image {
            /* Ensure the container itself doesn't take up excessive space */
            width: 90%;
            margin: 0 auto 1.5rem auto; /* Center the image container and add space below */
        }

            .landing-content .banner-image img {
                /* Make the image responsive and ensure it fits its container */
                max-width: 100%;
                height: auto;
                display: block;
                border-radius: 8px; /* Optional: adds subtle rounding to the banner */
            }

    /* NAV BAR FIXES */
    .navbar {
        /* Reduce horizontal padding even further for maximum screen space */
        padding: 0.75rem 0.5rem;
    }

        /* Ensure Logo and Toggle Button are well-aligned */
        .navbar .logo {
            /* Give logo equal space for centering */
            flex-grow: 1;
            text-align: left; /* Keep logo on the left */
        }

    /* Fix for the Burger Icon */
    .menu-toggle {
        /* Use content-box to ensure padding doesn't push the button out */
        box-sizing: content-box;
        /* Push the toggle button to the far right */
        margin-left: auto;
        /* Adjust size for easy tapping on mobile */
        font-size: 1.8em;
        /* Minimize padding to prevent overflow */
        padding: 0.2rem 0.4rem;
        display: block; /* Show the hamburger menu */
        margin-right: 0.5em;
    }

    /* Remove the unnecessary right margin from the links container */
    .nav-links.show {
        margin-right: 0;
    }
}

.navbar .logo a img {
    /* Set a max height for the logo image */
    max-height: 50px; /* Adjust this value as needed for your design */
    width: auto; /* Maintain the image's aspect ratio */
    display: block; /* Helps with layout consistency */
    border-radius: 8px;
}
