/* --- GLOBAL RESET & BASE STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background: #060a12;
    color: #e5e7eb;
    line-height: 1.6;
}

/* --- HEADER --- */
header {
    padding: 1.5rem 3rem;
    background: #020305;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .brand {
    display: flex;
    align-items: center;
    gap: 6px;
}

header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

header .logo {
    height: 1.8rem;
    width: auto;
    filter: brightness(0) invert(1);
    margin-top: 4px;
}

nav a {
    margin-left: 1.5rem;
    color: #e5e7eb;
    text-decoration: none;
    font-size: 1.2rem;
    opacity: 0.9;
}

nav a:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    header {
        display: flex;
        flex-direction: column; /* stack brand and nav vertically */
        align-items: center;
        gap: 0.5rem; /* space between brand and nav */
        padding: 0.5rem;
    }

    .brand {
        display: flex;
        flex-direction: row; /* logo and company name side by side */
        align-items: center;
        gap: 0.5rem; /* space between logo and name */
    }

    nav {
        display: flex;
        flex-direction: row; /* keep links horizontal */
        gap: 0.5rem; /* smaller gap between links */
        justify-content: center;
        flex-wrap: wrap; /* wrap if very narrow */
        width: 100%;
    }

    nav a {
        text-align: center;
        padding: 0.25rem 0;
    }
}


/* --- HERO SECTION --- */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('images/background1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #f7f3f3;
    padding: 0 2rem;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #eeeff1;
}

.cta {
    display: inline-block;
    padding: 0.9rem 2rem;
    background: #f8f6f6;
    color: #050505;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.cta:hover {
    background: #c4c1c1;
}

/* --- SERVICES SECTION --- */
.services {
    background: #010413;
    padding: 4rem 2rem;
    text-align: center;
}

.services h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.service {
    background: #32363d;
    padding: 2rem;
    border-radius: 8px;
}

.service h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* --- PLATFORMS SECTION --- */
.platforms {
    position: relative;
    padding: 4rem 2rem;
    text-align: center;
    background-image: url('images/Background2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
}

.platforms::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0,0,0,0.2);
    z-index: 1;
}

.platform-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.platforms h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
    align-items: center;
    justify-items: center;
}

.platform-logo {
    max-width: 150px;
    max-height: 90px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: transform 0.2s ease;
}

.platform-logo:hover {
    transform: scale(1.1);
}

/* --- CONTACT SECTION --- */
.contact-hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.contact-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('images/Background3.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(4px);
    transform: scale(1.05);
    z-index: 0;
}

.contact-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0,0,0,0.3);
    z-index: 1;
}

.contact-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.contact-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.contact-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #eeeff1;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.contact-form input,
.contact-form textarea {
    padding: 0.9rem 1rem;
    border-radius: 6px;
    border: none;
    font-size: 1rem;
    outline: none;
    text-align: center;
    width: 100%;
    max-width: 700px;
    max-height: 150px;
}

.contact-form button.cta {
    padding: 0.9rem 2rem;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    background: #ffffff;
    color: #050505;
    cursor: pointer;
    transition: background 0.2s ease;
}

.contact-form button.cta:hover {
    background: #cfcece;
}

.submit-message {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    margin-bottom: 1.5rem;
    display: none;
}

/* --- SOCIALS --- */
.contact-socials {
    position: relative;
    padding: 2rem;
    text-align: center;
    background: #010413;
    color: #fff;
}

.contact-socials p {
    font-size: 1.2rem;
    
    color: #eeeff1;
}

.socials-grid {
    display: grid;
    grid-auto-flow: column;
    gap: 3rem;
    justify-content: center;
    align-items: center;
}

.social-logo {
    max-width: 120px;
    max-height: 70px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.social-logo:hover {
    transform: scale(1.1);
}

/* --- ABOUT SECTION --- */

.about-hero {
    position: relative; /* enables layering */
    padding: 3rem 2rem 2rem; /* extra top padding for header */
    background: #010413; /* fallback */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Background image layer */
.about-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('images/Background2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(2px);
    transform: scale(1.05);
    
    background-color: rgba(0, 0, 0, 0.3); /* black overlay at 50% opacity */
    background-blend-mode: darken;

    z-index: 0; /* behind everything */
}

/* Make About Us title appear above everything */
.about-title {
    position: relative;
    z-index: 2; /* above background and content */
    font-size: 3rem;
    font-weight: 800;
    color: #eeeff1;
    margin-bottom: 2rem;
    text-align: center;
}

/* Hero content (image + text box) */
.about-hero-content {
    position: relative;
    z-index: 1; /* above background but below title */
    display: flex;
    align-items: center;
    gap: 5rem;
    max-width: 1200px;
    width: 100%;
}

.about-hero-p {
    text-align: center;
    padding: 5px;
}

/* Founder image */
.founder {
    width: 410px;
    height: auto;
    border-radius: 8px;
    flex-shrink: 0;
}

/* Text box */
.about-text {
    background: rgba(50, 54, 61, 0.9);
    padding: 2rem;
    border-radius: 12px;
    color: #eeeff1;
    flex: 1;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    min-width: 500px;
}

/* Paragraph inside text box */
.about-text p {
    font-size: 1.2rem;
    line-height: 1.6;
}

.about-socials-grid {
    display: grid;
    grid-auto-flow: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.about-social-logo {
    max-width: 80px;
    max-height: 60px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.about-social-logo:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .about-hero {
        padding: 1rem 2rem 2rem;
    }
    .about-hero-content {
        flex-direction: column; /* stack text vertically */
        gap: 2rem; /* smaller gap on mobile */
        align-items: center;
    }

    .founder {
        display: none; /* hide image */
    }

    .about-text {
        min-width: unset; /* allow text box to shrink on mobile */
        width: 100%; /* optional: make it fit nicely */
        padding: 1rem; /* slightly smaller padding */
    }

    .about-title {
        font-size: 2.2rem; /* smaller title */
    }

    .about-text p {
        text-align: center;
        font-size: 1.2rem; /* smaller text for mobile */
    }
}



/* --- FOOTER --- */
footer {
    padding: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: #94a3b8;
}
