/*
==================================================
  style.css
  Quantum Consulting | Business Consulting Website
==================================================

TABLE OF CONTENTS
--------------------------------------------------
  1.  :root - CSS Variables
  2.  Global Styles & Typography
  3.  Utility Classes
  4.  Global Components (Buttons, Forms, Cards)
  5.  Header & Navigation
  6.  Hero Section
  7.  Content Sections (Mission, History, etc.)
  8.  Specific Section Styles
        - Mission
        - History Timeline
        - Statistics
        - Gallery
        - External Resources
        - Sustainability
        - Contact Form
  9.  Footer
  10. Particle JS & Animations
  11. Specific Page Styles (Success, Privacy, Terms)
  12. Media Queries (Responsiveness)
--------------------------------------------------
*/

/* 1. :root - CSS Variables */
:root {
    /* Color Palette - Pastel */
    --background-color: #e6e7ee;
    --text-color: #333745;
    --heading-color: #222530;
    --primary-color: #5dade2;
    --accent-color: #48c9b0;
    --light-grey: #f0f1f6;
    --white-color: #ffffff;

    /* Neomorphism Shadows */
    --shadow-light: #ffffff;
    --shadow-dark: #a8a9b1;
    --neumorphic-shadow-outset: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
    --neumorphic-shadow-inset: inset 6px 6px 12px var(--shadow-dark), inset -6px -6px 12px var(--shadow-light);
    --neumorphic-shadow-outset-sm: 4px 4px 8px var(--shadow-dark), -4px -4px 8px var(--shadow-light);

    /* Typography */
    --font-header: 'Manrope', sans-serif;
    --font-body: 'Rubik', sans-serif;

    /* Spacing */
    --header-height: 80px;
}

/* 2. Global Styles & Typography */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-header);
    color: var(--heading-color);
    font-weight: 800;
    text-align: center;
    margin-top: 0;
    margin-bottom: 1rem;
    line-height: 1.2;
}

/* Adaptive Typography */
h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    display: inline-block;
}

h2.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 1.8rem);
    text-align: left;
}

h4 {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    text-align: left;
}

p {
    margin-bottom: 1rem;
    font-size: clamp(1rem, 1.5vw, 1.1rem);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 3. Utility Classes */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.content-section, .content-section-colored {
    padding: clamp(3rem, 8vw, 6rem) 0;
    text-align: center;
}

.content-section-colored {
    background-color: var(--light-grey);
}

.section-subtitle {
    max-width: 700px;
    margin: 0 auto 3rem auto;
    font-size: 1.1rem;
    color: #555a68;
}

/* 4. Global Components (Buttons, Forms, Cards) */
/* Buttons */
.btn, button[type="submit"] {
    display: inline-block;
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    color: var(--heading-color);
    background-color: var(--background-color);
    border: none;
    padding: 15px 35px;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: var(--neumorphic-shadow-outset-sm);
    transition: all 0.3s ease;
}

.btn:hover, button[type="submit"]:hover {
    box-shadow: var(--neumorphic-shadow-inset);
    color: var(--primary-color);
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white-color);
    box-shadow: 4px 4px 10px #4a9fcc, -4px -4px 10px #70d9fa;
}

.btn-primary:hover {
    background: linear-gradient(145deg, #56aae0, #66caee);
    box-shadow: inset 4px 4px 10px #4a9fcc, inset -4px -4px 10px #70d9fa;
    color: var(--white-color);
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.card {
    background-color: var(--background-color);
    border-radius: 20px;
    box-shadow: var(--neumorphic-shadow-outset);
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
}

.card-image {
    width: 100%;
    height: 200px; /* Fixed height for image container */
    margin-bottom: 1.5rem;
    border-radius: 15px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the container */
}

.card-content {
    text-align: left;
    width: 100%;
}

.card-content h4 {
    margin-bottom: 0.5rem;
    text-align: left;
}

.card-content p {
    font-size: 0.95rem;
}

.read-more {
    font-family: var(--font-header);
    font-weight: 700;
    color: var(--accent-color);
    margin-top: 1rem;
    display: inline-block;
}

.read-more:hover {
    text-decoration: underline;
}

/* 5. Header & Navigation */
.site-header {
    background-color: rgba(230, 231, 238, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: var(--font-header);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--heading-color);
}

.logo-accent {
    color: var(--primary-color);
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2.5rem;
}

.nav-list a {
    font-family: var(--font-header);
    font-weight: 700;
    color: var(--text-color);
    font-size: 1rem;
    padding: 5px 0;
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-list a:hover::after {
    width: 100%;
}

.burger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.burger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--heading-color);
    margin: 5px 0;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

/* 6. Hero Section */
.hero-section {
    color: var(--white-color);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
}

.hero-container {
    max-width: 900px;
}

.hero-title {
    color: var(--white-color);
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    color: var(--white-color);
    opacity: 0.9;
}

/* 7. Content Sections */
.mission-content, .sustainability-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    text-align: left;
}

.mission-image-container, .sustainability-image-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--neumorphic-shadow-outset);
}

/* 8. Specific Section Styles */

/* History Timeline */
.history-timeline {
    position: relative;
    max-width: 800px;
    margin: 3rem auto 0;
}

.history-timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #d1d2d8;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 70px;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 70px;
    text-align: left;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--white-color);
    border: 4px solid var(--primary-color);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}

.timeline-year {
    font-family: var(--font-header);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.timeline-content h4 {
    margin: 10px 0;
    font-weight: 700;
}
.timeline-item:nth-child(odd) .timeline-content h4 { text-align: right; }
.timeline-item:nth-child(even) .timeline-content h4 { text-align: left; }


.progress-indicator {
    width: 100%;
    background-color: #d1d2d8;
    border-radius: 10px;
    height: 8px;
    margin-top: 1rem;
}

.progress-bar {
    height: 100%;
    background-color: var(--accent-color);
    border-radius: 10px;
}

/* Statistics */
.stats-section {
    background: linear-gradient(145deg, #5dade2, #48c9b0);
    padding: clamp(3rem, 8vw, 6rem) 0;
    color: var(--white-color);
}
.stats-section .section-title, .stats-section .section-title::after {
    color: var(--white-color);
    border-color: var(--white-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-widget {
    text-align: center;
}

.stat-number {
    font-family: var(--font-header);
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1;
}

.stat-label {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--neumorphic-shadow-outset-sm);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

/* External Resources */
.resources-list {
    text-align: left;
    max-width: 800px;
    margin: 2rem auto 0;
}

.resource-item {
    background: var(--light-grey);
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    box-shadow: var(--neumorphic-shadow-inset);
}

.resource-title a {
    font-family: var(--font-header);
    font-weight: 700;
}

.resource-description {
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

/* Contact Form */
.contact-form {
    max-width: 700px;
    margin: 3rem auto 0;
    text-align: left;
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px 20px;
    background-color: var(--background-color);
    border: none;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-color);
    box-shadow: var(--neumorphic-shadow-inset);
    transition: box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    box-shadow: var(--neumorphic-shadow-inset), 0 0 0 2px var(--primary-color);
}

.contact-form label {
    position: absolute;
    top: 15px;
    left: 20px;
    color: #888;
    pointer-events: none;
    transition: all 0.3s ease;
}

.contact-form input:focus + label,
.contact-form input:not(:placeholder-shown) + label,
.contact-form textarea:focus + label,
.contact-form textarea:not(:placeholder-shown) + label {
    top: -25px;
    left: 0;
    font-size: 0.85rem;
    color: var(--primary-color);
}

.form-group-checkbox {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
}

.form-group-checkbox input {
    margin-right: 10px;
}

.form-group-checkbox label {
    font-size: 0.9rem;
}

/* 9. Footer */
.site-footer-main {
    background-color: var(--light-grey);
    padding: 4rem 0 2rem 0;
    border-top: 5px solid var(--background-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-column h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

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

.footer-column a:hover {
    color: var(--primary-color);
}
.footer-column .social-links a {
    text-decoration: none;
    font-weight: 500;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #d1d2d8;
    font-size: 0.9rem;
    color: #6c757d;
}

/* 10. Particle JS & Animations */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 11. Specific Page Styles (Success, Privacy, Terms) */
.page-container {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 4rem;
    min-height: 80vh;
}
.page-container h1 { text-align: left; margin-bottom: 2rem; }
.page-container h2 { text-align: left; margin-top: 2rem; }

.success-page-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    padding: 2rem;
}

.success-content {
    background-color: var(--light-grey);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--neumorphic-shadow-outset);
}
.success-content h1 {
    color: var(--accent-color);
}
.success-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* 12. Media Queries (Responsiveness) */
@media (max-width: 992px) {
    .mission-content, .sustainability-content {
        grid-template-columns: 1fr;
    }

    .mission-image-container, .sustainability-image-container {
        grid-row: 1;
    }
}

@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--background-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        display: flex;
    }
    
    .main-nav.active {
        transform: translateX(0);
    }
    
    .nav-list {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .nav-list a {
        font-size: 1.5rem;
    }
    
    .burger-menu {
        display: block;
    }

    .burger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .burger-menu.active span:nth-child(2) {
        opacity: 0;
    }
    .burger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .history-timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    .timeline-item:nth-child(odd), .timeline-item:nth-child(even) {
        left: 0;
        text-align: left;
    }
    .timeline-item:nth-child(odd) .timeline-content h4, .timeline-item:nth-child(even) .timeline-content h4 { text-align: left; }
    
    .timeline-item::after {
        left: 21px;
    }
}

@media (max-width: 576px) {
    .card-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-column h4, .footer-column p {
        text-align: center;
    }
    .footer-column ul {
        align-items: center;
        display: flex;
        flex-direction: column;
    }
}