/* --- Google Font Import --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* --- Modern Color Palette & Variables --- */
:root {
    --bg-dark: #111827;      /* A deep, modern blue-gray */
    --primary-color: #1F2937; /* Slightly lighter for cards/sections */
    --border-color: #374151;
    --accent-blue: #38BDF8;   /* A brighter, more vibrant blue */
    --text-primary: #F9FAFB;  /* Off-white for better readability */
    --text-secondary: #9CA3AF;/* Light gray for supporting text */
    --font-family: 'Poppins', sans-serif;
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

/* --- Global Resets & Body --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
}

/* --- Navigation Bar --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: rgba(17, 24, 39, 0.8);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.site-title {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
}

.partner-logos {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-left: 1.5rem;
    border-left: 1px solid var(--border-color);
}

.partner-logo-icon {
    height: 32px;
    width: 32px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #fff;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-blue);
    transition: width 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-primary);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger .line {
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
}

/* --- Hero Section (Homepage) --- */
.hero {
    height: 100vh;
    background-image: linear-gradient(rgba(17, 24, 39, 0.7), rgba(17, 24, 39, 0.9)), url('../images/picture1.png');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5%;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -1px;
}

.hero .slogan {
    font-size: 1.75rem;
    color: var(--accent-blue);
    margin-bottom: 1.5rem;
    font-weight: 500;
    height: 2.5rem; /* Fixed height to prevent layout shift */
}

.hero .slogan .cursor {
    display: inline-block;
    background-color: var(--accent-blue);
    width: 4px;
    animation: blink 1s infinite;
    margin-left: 2px;
}

.hero p.description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Buttons --- */
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    padding: 0.8rem 2.2rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--accent-blue);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background-color: transparent;
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    transform: translateY(-4px);
}

.btn-secondary {
    border: 2px solid var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    transform: translateY(-4px);
}

/* --- Generic Page Container --- */
.page-container {
    padding: 8rem 5% 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.page-container h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    border-bottom: 4px solid var(--accent-blue);
    display: inline-block;
    padding-bottom: 0.5rem;
}

.page-container > p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 800px;
}

/* --- Services Page --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background-color: var(--primary-color);
    border: 1px solid var(--border-color);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: var(--shadow-md);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-blue);
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--accent-blue);
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card p {
    color: var(--text-secondary);
}

/* --- Contact Page --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    margin-top: 4rem;
    align-items: flex-start;
}

.contact-info h2, .contact-form h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.contact-info ul {
    list-style: none;
}

.contact-info li {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.contact-info a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--accent-blue);
}

.contact-info .icon {
    font-size: 1.5rem;
    color: var(--accent-blue);
    margin-right: 1.5rem;
    width: 30px;
    text-align: center;
}

/* --- Modern Form Styling --- */
.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1.5rem;
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.3);
}

.contact-form .btn {
    width: 100%;
    font-size: 1.1rem;
    border: 2px solid var(--accent-blue);
}

/* --- Fade-in Animation on Scroll --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Keyframe Animations --- */
@keyframes blink {
    50% { opacity: 0; }
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .partner-logos {
        display: none;
    }
    
    .nav-links {
        position: fixed;
        right: -100%; /* Start off-screen */
        top: 0;
        height: 100vh;
        width: 60%;
        background-color: var(--primary-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3rem;
        transition: right 0.4s ease-in-out;
        box-shadow: var(--shadow-lg);
    }

    .nav-links.nav-active {
        right: 0; /* Slide in */
    }
    
    .nav-links a {
        font-size: 1.2rem;
    }

    .hamburger {
        display: flex;
        z-index: 1001; /* Ensure it's above the nav */
    }

    .hamburger.toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .hamburger.toggle .line2 {
        opacity: 0;
    }
    .hamburger.toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    .hero .slogan {
        font-size: 1.3rem;
    }
    .hero p.description {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }
}