/* ==================== GOOGLE FONTS ==================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Poppins:wght@300;400;500;600&display=swap');

/* ==================== VARIABLES CSS ==================== */
:root {
    --header-height: 3.5rem;

    /* Colors (Assuming Blue based on Logo description) */
    /* HSL(220, 90%, 56%) is a vibrant tech blue */
    --hue: 225;
    --first-color: hsl(var(--hue), 85%, 55%);
    --first-color-alt: hsl(var(--hue), 85%, 50%);
    --first-color-light: hsl(var(--hue), 85%, 95%);
    --title-color: hsl(var(--hue), 8%, 15%);
    --text-color: hsl(var(--hue), 8%, 35%);
    --text-color-light: hsl(var(--hue), 8%, 65%);
    --body-color: hsl(var(--hue), 60%, 99%);
    --container-color: #FFF;
    --white-color: #FFF;

    /* Font and Typography */
    --body-font: 'Poppins', sans-serif;
    --title-font: 'Montserrat', sans-serif;
    --big-font-size: 2.5rem;
    --h1-font-size: 1.75rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: .938rem;
    --small-font-size: .813rem;
    --smaller-font-size: .75rem;

    /* Font weight */
    --font-medium: 500;
    --font-semi-bold: 600;
    --font-bold: 700;

    /* z index */
    --z-tooltip: 10;
    --z-fixed: 100;
    --z-modal: 1000;
}

@media screen and (min-width: 968px) {
    :root {
        --big-font-size: 3.5rem;
        --h1-font-size: 2.5rem;
        --h2-font-size: 2rem;
        --h3-font-size: 1.5rem;
        --normal-font-size: 1rem;
        --small-font-size: .875rem;
        --smaller-font-size: .813rem;
    }
}

/* ==================== BASE ==================== */
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0 0 var(--header-height) 0;
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: var(--body-color);
    color: var(--text-color);
}

h1, h2, h3, h4 {
    color: var(--title-color);
    font-family: var(--title-font);
    font-weight: var(--font-semi-bold);
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

button, input, textarea {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
}

body.modal-active {
    overflow: hidden;
}

/* ==================== REUSABLE CSS CLASSES ==================== */
.section {
    padding: 4.5rem 0 2rem;
}

.section-title {
    font-size: var(--h2-font-size);
    color: var(--title-color);
    text-align: center;
    margin-bottom: 2.5rem;
}

.container {
    max-width: 968px;
    margin-left: 1.5rem;
    margin-right: 1.5rem;
}

.grid {
    display: grid;
    gap: 1.5rem;
}

/* Buttons */
.button {
    display: inline-flex;
    align-items: center;
    column-gap: .5rem;
    background-color: var(--first-color);
    color: var(--white-color);
    padding: 1rem 1.75rem;
    border-radius: .5rem;
    font-weight: var(--font-medium);
    transition: .3s;
    cursor: pointer;
    border: none;
}

.button:hover {
    background-color: var(--first-color-alt);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* ==================== HEADER ==================== */
.header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-fixed);
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.05); /* Subtle bottom shadow */
    transition: .3s;
    backdrop-filter: blur(10px);
}

.header-container {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px; /* Adjust based on actual logo */
    width: auto;
}

.nav-toggle {
    color: var(--title-color);
    font-size: 1.25rem;
    cursor: pointer;
    display: none; /* Hidden on desktop */
}

.nav-close {
    font-size: 1.5rem;
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    cursor: pointer;
    color: var(--title-color);
    display: none;
}

.nav-list {
    display: flex;
    column-gap: 2rem;
}

.nav-link {
    color: var(--title-color);
    font-weight: var(--font-medium);
    transition: .3s;
    position: relative;
    font-size: var(--normal-font-size);
}

.nav-link:hover, .nav-link.active {
    color: var(--first-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--first-color);
}

/* Mobile Menu Style */
@media screen and (max-width: 767px) {
    .nav-toggle, .nav-close {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: -100%;
        left: 0;
        width: 100%;
        background-color: var(--body-color);
        padding: 4rem 1.5rem;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        transition: .3s;
        border-radius: 0 0 1rem 1rem;
    }

    .show-menu {
        top: 0;
    }

    .nav-list {
        flex-direction: column;
        row-gap: 1.5rem;
        align-items: center;
    }
}

/* ==================== HOME (HERO) ==================== */
.home {
    position: relative;
    padding: 9rem 0 2rem; /* Extra top padding for header */
    background: linear-gradient(135deg, var(--first-color) 0%, #1e1e24 100%); 
    /* Alternatively use an image background with overlay */
    background-size: cover;
    background-position: center;
    color: var(--white-color);
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Decorative abstract shapes using pseudo-elements or specific divs */
.home-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1518770660439-4636190af475?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80'); /* Tech chip image placeholder */
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 1;
}

.home-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.home-content h1 {
    font-size: var(--big-font-size);
    margin-bottom: 1rem;
    color: var(--white-color);
    line-height: 1.2;
}

.home-content h1 span {
    color: var(--first-color-light);
    display: block;
    font-size: var(--h2-font-size);
    font-weight: var(--font-medium);
    margin-top: 0.5rem;
}

.home-subtitle {
    font-size: var(--h3-font-size);
    margin-bottom: 2.5rem;
    max-width: 600px;
    opacity: 0.9;
}

/* ==================== SERVICES ==================== */
.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--container-color);
    padding: 2.5rem 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    transition: .3s;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.02);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--first-color-light);
}

.service-icon {
    font-size: 3rem;
    color: var(--first-color);
    margin-bottom: 1.5rem;
}

.service-title {
    font-size: var(--h3-font-size);
    margin-bottom: 1rem;
}

.service-description {
    color: var(--text-color);
}

/* ==================== ABOUT ==================== */
.about-container {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2.5rem;
    align-items: center;
}

/* Abstract graphic placeholder for "About" image */
.about-img-box {
    width: 100%;
    height: 300px;
    background: linear-gradient(45deg, var(--first-color-alt), var(--first-color));
    border-radius: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgba(255,255,255,0.2);
    font-size: 8rem;
    position: relative;
    overflow: hidden;
}

.about-img-box::before {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
}

.about-description {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.about-stats {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
}

.stat-item h3 {
    font-size: 2rem;
    color: var(--first-color);
    margin-bottom: 0.25rem;
}

.stat-item p {
    font-size: var(--small-font-size);
    font-weight: var(--font-medium);
}

@media screen and (min-width: 768px) {
    .about-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-img-box {
        height: 400px;
        order: 1; /* Image right/left choice */
    }
}

/* ==================== CONTACT ==================== */
.contact-container {
    display: grid;
    gap: 3rem;
}

.contact-info {
    display: grid;
    gap: 1.5rem;
}

.contact-card {
    background-color: var(--container-color);
    padding: 1.5rem;
    border-radius: .75rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.contact-card i {
    font-size: 2rem;
    color: var(--first-color);
    margin-bottom: 0.5rem;
}

.contact-card-title {
    font-size: var(--normal-font-size);
    font-weight: var(--font-medium);
}

.contact-card-data {
    display: block;
    margin-top: 0.25rem;
    font-size: var(--small-font-size);
    color: var(--text-color-light);
}

.contact-form {
    background-color: var(--container-color);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

.contact-form-div {
    margin-bottom: 1.5rem;
    height: 3.5rem;
}

.contact-form-area {
    height: 11rem;
}

.contact-form-tag {
    display: block;
    font-size: var(--smaller-font-size);
    font-weight: var(--font-medium);
    margin-bottom: 0.25rem;
}

.contact-form-input {
    width: 100%;
    background-color: var(--body-color);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    outline: none;
    font-size: var(--normal-font-size);
    transition: .3s;
}

.contact-form-input:focus {
    border-color: var(--first-color);
}

textarea.contact-form-input {
    height: 100%;
    resize: none;
}

.contact-message {
    margin-top: 1rem;
    font-size: var(--small-font-size);
    color: var(--text-color);
}

@media screen and (min-width: 768px) {
    .contact-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==================== FOOTER ==================== */
.footer {
    background-color: #F8FAFC; 
    padding: 3rem 0;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 2rem;
    text-align: center;
}

.footer-logo {
    color: var(--title-color);
    font-size: var(--h2-font-size);
    font-weight: var(--font-bold);
    margin-bottom: 0.5rem;
    display: block;
}

.footer-copy {
    color: var(--text-color-light);
    font-size: var(--small-font-size);
}

.footer-links {
    display: flex;
    column-gap: 2rem;
}

.footer-link {
    color: var(--text-color);
    transition: .3s;
}

.footer-link:hover {
    color: var(--first-color);
}

@media screen and (min-width: 768px) {
    .footer-container {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* ==================== SCROLL UP ==================== */
.scrollup {
    position: fixed;
    right: 1.5rem;
    bottom: -30%;
    background-color: var(--first-color);
    opacity: 0.8;
    padding: 0.5rem;
    border-radius: 0.4rem;
    z-index: var(--z-tooltip);
    transition: .4s;
    color: #FFF;
    display: inline-flex;
}

.scrollup:hover {
    background-color: var(--first-color-alt);
    opacity: 1;
}

.show-scroll {
    bottom: 3rem;
}

/* ==================== CONTAINERS MD/LG ==================== */
@media screen and (min-width: 576px) {
    /* For centered small containers */
}

@media screen and (min-width: 968px) {
    .container {
        margin-left: auto;
        margin-right: auto;
    }
}
