/* styles.css */

/*
 * ===================================================================
 * Global Assets for Thrivepro AI & Web Solutions
 *
 * Architect's Note:
 * This CSS file establishes the foundational design system for the site.
 * It includes CSS variables, base styles, utility classes, and default
 * component styles. While the tech stack mentions Tailwind CSS, this file
 * serves as the custom base layer (@layer base) and component layer
 * (@layer components) that would be used alongside Tailwind's utility classes.
 * The defined CSS variables can be directly mapped to your tailwind.config.js.
 * ===================================================================
 */

/* -------------------------------------------------------------------
 * ## Google Fonts Import
 * ------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Roboto:wght@400;500&display=swap');

/* -------------------------------------------------------------------
 * ## CSS Custom Properties (Design System)
 * ------------------------------------------------------------------- */
:root {
    /* Colors */
    --color-primary: #0a4d68;         /* Deep, trustworthy blue */
    --color-primary-dark: #083a50;    /* Darker shade for hover */
    --color-secondary: #05bfdb;       /* Vibrant accent for CTAs */
    --color-secondary-dark: #049db4;  /* Darker accent for hover */
    --color-dark: #0b2530;            /* For headings and dark text */
    --color-body: #334155;            /* For body text (slate-700) */
    --color-light: #f8fafc;           /* Light background (slate-50) */
    --color-white: #ffffff;
    --color-border: #e2e8f0;          /* Light border color (slate-200) */

    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
    --font-size-base: 16px;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Spacing & Sizing */
    --spacing-xs: 0.5rem;  /* 8px */
    --spacing-sm: 1rem;    /* 16px */
    --spacing-md: 1.5rem;  /* 24px */
    --spacing-lg: 2rem;    /* 32px */
    --spacing-xl: 4rem;    /* 64px */
    --spacing-xxl: 6rem;   /* 96px */

    /* Borders & Shadows */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --box-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --box-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

    /* Transitions */
    --transition-fast: all 0.2s ease-in-out;
    --transition-smooth: all 0.3s ease-in-out;

    /* Layout */
    --container-width: 1140px;
    --container-padding: var(--spacing-md);
}

/* -------------------------------------------------------------------
 * ## Base & Reset Styles
 * ------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: var(--font-size-base);
}

body {
    font-family: var(--font-secondary);
    color: var(--color-body);
    background-color: var(--color-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    color: var(--color-dark);
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

p {
    margin-bottom: var(--spacing-sm);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--color-secondary);
}

img, video {
    max-width: 100%;
    height: auto;
}

/* -------------------------------------------------------------------
 * ## Layout Utilities
 * ------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.section {
    padding-top: var(--spacing-xxl);
    padding-bottom: var(--spacing-xxl);
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    font-size: 2.5rem;
}

/* -------------------------------------------------------------------
 * ## Component Styles
 * ------------------------------------------------------------------- */

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-primary);
    font-weight: var(--font-weight-medium);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
    transition: var(--transition-smooth);
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-secondary-dark);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-md);
}

/* Cards (for Services, Portfolio, etc.) */
.card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-lg);
    box-shadow: var(--box-shadow-md);
    transition: var(--transition-smooth);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

/* Forms */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: var(--font-secondary);
    color: var(--color-body);
    background-color: var(--color-light);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(10, 77, 104, 0.2);
}

/* -------------------------------------------------------------------
 * ## Header & Navigation
 * ------------------------------------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: var(--spacing-sm) 0;
    z-index: 1000;
    background-color: transparent;
    transition: background-color 0.3s ease-in-out, padding 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    padding: var(--spacing-xs) 0;
    box-shadow: var(--box-shadow-md);
    backdrop-filter: blur(10px);
}

.nav-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

/* -------------------------------------------------------------------
 * ## Footer
 * ------------------------------------------------------------------- */
.footer {
    background-color: var(--color-dark);
    color: var(--color-light);
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.footer a {
    color: var(--color-light);
}

.footer a:hover {
    color: var(--color-secondary);
}

.footer .social-links {
    margin-top: var(--spacing-sm);
}

.footer .social-links a {
    margin: 0 var(--spacing-xs);
    font-size: 1.5rem;
}

/* -------------------------------------------------------------------
 * ## Responsive Media Queries
 * ------------------------------------------------------------------- */
@media (max-width: 768px) {
    :root {
        --font-size-base: 15px;
        --spacing-xl: 3rem;
        --spacing-xxl: 4rem;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Mobile Navigation */
    .nav-toggle {
        display: block; /* Show hamburger on mobile */
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Hide off-screen */
        width: 70%;
        height: 100vh;
        background-color: var(--color-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease-in-out;
    }

    .nav-links.active {
        right: 0; /* Slide in */
    }

    .nav-links li {
        margin: var(--spacing-md) 0;
    }

    .nav-links a {
        color: var(--color-white);
        font-size: 1.2rem;
    }
}