/*
==================================================
  VerdiTech Solutions - Main Stylesheet (style.css)
==================================================

*   Theme: Consulting Service
*   Design System: Glassmorphism, 3D UI Elements
*   Color Scheme: Bright
*   Fonts: Space Grotesk (Headings), DM Sans (Body)

TABLE OF CONTENTS:
1.  :ROOT VARIABLES & BASE STYLES
2.  LAYOUT & HELPERS (Container, Columns)
3.  GLOBAL COMPONENTS (Buttons, Cards, Forms)
4.  SITE HEADER & NAVIGATION
5.  PAGE-SPECIFIC SECTIONS
    5.1. Hero Section
    5.2. Workshops, News & Cards Sections
    5.3. Awards Section
    5.4. History (Timeline) Section
    5.5. External Resources Section
    5.6. Contact Section
6.  SITE FOOTER
7.  SPECIFIC PAGE STYLES (Success, Privacy etc.)
8.  ANIMATIONS & KEYFRAMES
9.  RESPONSIVE DESIGN (Media Queries)

==================================================
*/

/* 1. :ROOT VARIABLES & BASE STYLES
/* =============================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@700&family=DM+Sans:wght@400;500;700&display=swap');

:root {
    /* Bright Color Palette */
    --primary-color: #6a11cb;
    --secondary-color: #2575fc;
    --accent-color: #00ff87;
    --accent-color-dark: #00b862;

    /* Text & Background Colors */
    --text-color: #212529;
    --text-muted: #5a626b;
    --light-text-color: #f8f9fa;
    --background-color: #fdfcff;
    --section-light-bg: #f5f3f9;
    --footer-bg: #12121c;

    /* Glassmorphism & UI Elements */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --card-bg: rgba(255, 255, 255, 0.65);
    --border-color: rgba(255, 255, 255, 0.2);
    --shadow-light: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    --shadow-medium: 0 10px 25px rgba(0, 0, 0, 0.1);
    --border-radius: 16px;
    
    /* 3D Button Shadows */
    --btn-primary-shadow-color: #450b86;
    --btn-primary-active-shadow-size: 1px;
    --btn-primary-shadow-size: 4px;

    /* Typography */
    --font-headings: 'Space Grotesk', sans-serif;
    --font-body: 'DM Sans', sans-serif;
}

html {
    scroll-behavior: smooth;
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

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

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

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

/* 2. LAYOUT & HELPERS
/* =============================================== */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

.section {
    padding: 80px 0;
}

.section-light {
    background-color: var(--section-light-bg);
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.columns {
    display: flex;
    flex-wrap: wrap;
    margin: -15px;
}

.column {
    flex: 1;
    padding: 15px;
    min-width: 320px;
}

/* 3. GLOBAL COMPONENTS
/* =============================================== */

/* Buttons */
.btn {
    display: inline-block;
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 30px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    color: var(--light-text-color);
}

.btn-primary:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--light-text-color);
}

.btn-3d {
    border-radius: 12px;
    box-shadow: 0 var(--btn-primary-shadow-size) 0 0 var(--btn-primary-shadow-color);
}

.btn-3d:active, .btn-3d:focus {
    transform: translateY(var(--btn-primary-shadow-size));
    box-shadow: 0 var(--btn-primary-active-shadow-size) 0 0 var(--btn-primary-shadow-color);
}

/* Cards */
.card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

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

.card .card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    margin: 0 auto;
}

.card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card .card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.card .card-content h3 {
    margin-bottom: 15px;
}

.card .card-content span { /* For News date */
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.card .read-more {
    font-family: var(--font-headings);
    font-weight: 700;
    color: var(--primary-color);
    margin-top: auto;
    display: inline-block;
}

.card .read-more::after {
    content: ' →';
    transition: transform 0.3s ease;
    display: inline-block;
}

.card .read-more:hover::after {
    transform: translateX(5px);
}


/* Contact Form */
.contact-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-medium);
}

.form-group {
    position: relative;
    margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.7);
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group label {
    position: absolute;
    top: 15px;
    left: 15px;
    color: var(--text-muted);
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -10px;
    left: 10px;
    font-size: 0.8rem;
    color: var(--primary-color);
    background-color: var(--section-light-bg);
    padding: 0 5px;
}

.contact-form button {
    width: 100%;
    border-radius: 8px;
}

/* 4. SITE HEADER & NAVIGATION
/* =============================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-headings);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light-text-color);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
}

.main-nav li {
    margin-left: 30px;
}

.main-nav a {
    font-family: var(--font-headings);
    color: var(--light-text-color);
    font-size: 1rem;
    padding: 5px 0;
    position: relative;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease-in-out;
}

.main-nav a:hover::after,
.main-nav a:focus::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger {
    display: block;
    position: relative;
    width: 25px;
    height: 3px;
    background-color: var(--light-text-color);
    transition: all 0.3s ease-in-out;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 25px;
    height: 3px;
    background-color: var(--light-text-color);
    transition: all 0.3s ease-in-out;
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

/* 5. PAGE-SPECIFIC SECTIONS
/* =============================================== */

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(48, 2, 88, 0.7), rgba(0, 0, 0, 0.5));
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 80vh;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInDown 1s ease-out;
}

.hero-title {
    font-size: 4.5rem;
    color: var(--light-text-color);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

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

.stat-widget {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    animation: fadeInUp 1s ease-out;
}

.stat-widget h3 {
    color: var(--accent-color);
    font-size: 2rem;
    margin-bottom: 5px;
}

.stat-widget p {
    margin: 0;
    font-size: 1rem;
    color: var(--light-text-color);
    opacity: 0.8;
}

/* 5.2. Workshops, News & Cards Sections */
/* Uses the global .card styles, so no specific overrides needed here. */
/* Just ensure the layout is correct */
.columns {
    justify-content: center;
}

/* 5.3. Awards Section */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.award-item {
    padding: 20px;
}

.award-item img {
    margin: 0 auto 20px auto;
    max-height: 100px;
    width: auto;
}

.award-item h4 {
    margin-bottom: 10px;
}

.award-item p {
    color: var(--text-muted);
}

/* 5.4. History (Timeline) Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--primary-color);
    opacity: 0.2;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
}

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

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

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

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

.timeline-content {
    padding: 20px 30px;
    background: var(--card-bg);
    position: relative;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
}

.timeline-item:nth-child(even) .timeline-content {
    text-align: left;
}

.timeline-item:nth-child(odd) .timeline-content {
    text-align: right;
}

.timeline-content h4 {
    color: var(--primary-color);
}

/* 5.5. External Resources Section */
.resource-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.resource-card {
    background: var(--section-light-bg);
    padding: 25px;
    border-radius: var(--border-radius);
    border: 1px solid #e0e0e0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.resource-card h4 a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.resource-card h4 a:hover {
    color: var(--primary-color);
}

.resource-card p {
    color: var(--text-muted);
    margin-bottom: 0;
}


/* 6. SITE FOOTER
/* =============================================== */
.site-footer {
    background-color: var(--footer-bg);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 20px 0;
}

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

.footer-column h4 {
    color: var(--light-text-color);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

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

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-column ul a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* 7. SPECIFIC PAGE STYLES
/* =============================================== */

/* For pages like Privacy, Terms */
.content-page {
    padding-top: 120px; /* Offset for fixed header */
    padding-bottom: 80px;
}
.content-page .container {
    max-width: 800px;
}
.content-page h1 {
    margin-bottom: 30px;
}

/* For success.html */
.success-page-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
}

.success-container {
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 50px;
    border-radius: var(--border-radius);
    color: var(--text-color);
    max-width: 500px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.success-container h1 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* 8. ANIMATIONS & KEYFRAMES
/* =============================================== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* 9. RESPONSIVE DESIGN
/* =============================================== */

@media (max-width: 992px) {
    h1, .hero-title { font-size: 3rem; }
    h2 { font-size: 2rem; }
    .resource-list { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .main-nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #1c1929e8;
        padding: 20px 0;
    }
    .main-nav.nav-open ul {
        display: flex;
    }
    .main-nav li {
        margin: 0;
        width: 100%;
        text-align: center;
    }
    .main-nav a {
        padding: 15px;
        display: block;
        width: 100%;
    }
    .nav-toggle {
        display: block;
    }

    .nav-open .hamburger {
        background-color: transparent;
    }
    .nav-open .hamburger::before {
        transform: rotate(45deg);
        top: 0;
    }
    .nav-open .hamburger::after {
        transform: rotate(-45deg);
        bottom: 0;
    }

    .columns {
        flex-direction: column;
        margin: 0;
    }
    .column {
        padding: 15px 0;
    }

    .timeline::after { left: 30px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; }
    .timeline-item:nth-child(even) { left: 0; }
    .timeline-item::after { left: 20px; }
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        text-align: left;
    }
    
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.1rem; }
    
    .stats-widgets { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
    .section { padding: 60px 0; }
    .contact-form-wrapper { padding: 25px; }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}