/* CSS Variables */
:root {
    --accent-color: #0dd6b3;
    --dark-bg: #111a24;
    --light-gray: #f4f2f3;
    --light-blue: #f6fffd;
    --light-mint: #f1f2ff;
    --white: #ffffff;
    --text-dark: #333333;
    --text-muted: #6c757d;
    --text-light-gray: #adb5bd;
    
    --border-radius: 1rem;
    --border-radius-lg: 1.5rem;
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --box-shadow-lg: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'League Spartan', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

.display-4 {
    font-weight: 700;
}

/* Utility Classes */
.text-accent {
    color: var(--accent-color) !important;
}

.bg-accent {
    background-color: var(--accent-color) !important;
}

.bg-accent-light {
    background-color: rgba(13, 214, 179, 0.1) !important;
}

.bg-dark {
    background-color: var(--dark-bg) !important;
}

.bg-light-gray {
    background-color: var(--light-gray) !important;
}

.bg-light-blue {
    background-color: var(--light-blue) !important;
}

.bg-light-mint {
    background-color: var(--light-mint) !important;
}

.text-light-gray {
    color: var(--text-light-gray) !important;
}

.rounded-4 {
    border-radius: var(--border-radius-lg) !important;
}

.shadow-sm {
    box-shadow: var(--box-shadow) !important;
}

.shadow-lg {
    box-shadow: var(--box-shadow-lg) !important;
}

/* Header Styles */
.header-dark {
    background-color: var(--dark-bg);
    padding: 1rem 0;
    z-index: 1050;
}

.navbar-brand {
    font-size: 1.75rem !important;
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1rem !important;
}

.nav-link:hover {
    color: var(--accent-color) !important;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    filter: brightness(0.7);
}

.hero-card {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Button Styles */
.btn-accent {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    font-weight: 600;
    transition: var(--transition);
}

.btn-accent:hover {
    background-color: #0bc4a3;
    border-color: #0bc4a3;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(13, 214, 179, 0.3);
}

/* Card Styles */
.research-card,
.tool-card {
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.research-card:hover,
.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.1) !important;
}

.icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-circle .material-icons-outlined {
    font-size: 28px;
}

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

.gallery-item img {
    transition: var(--transition);
}

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

/* Stats Card */
.stats-card {
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-item:last-child {
    border-bottom: none;
}

/* Tools Section Background */
.tools-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Footer Styles */
.footer-dark {
    background-color: var(--dark-bg);
}

.footer-dark a:hover {
    color: var(--accent-color) !important;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 400px;
    z-index: 1060;
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: none;
}

.cookie-popup.show {
    display: block;
    animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 80px;
        min-height: 80vh;
    }
    
    .hero-card {
        margin: 1rem;
        padding: 2rem !important;
    }
    
    .display-4 {
        font-size: 2rem !important;
    }
    
    .cookie-popup {
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .navbar-nav {
        text-align: center;
        padding-top: 1rem;
    }
    
    .nav-link {
        padding: 0.75rem 1rem !important;
    }
}

@media (max-width: 576px) {
    .hero-card {
        padding: 1.5rem !important;
    }
    
    .btn-lg {
        padding: 0.75rem 2rem !important;
        font-size: 1rem !important;
    }
    
    .icon-circle {
        width: 50px;
        height: 50px;
    }
    
    .icon-circle .material-icons-outlined {
        font-size: 24px;
    }
}

/* Section Spacing */
section {
    position: relative;
}

.py-5 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

/* Page Header Styles for Secondary Pages */
.page-header {
    padding-top: 160px;
    padding-bottom: 4rem;
    background-color: #f1f2ff
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-header .lead {
    font-size: 1.25rem;
    color: var(--text-muted);
}

/* Large Numbers Style (like in the mockup) */
.number-section {
    position: relative;
    overflow: hidden;
}

.large-number {
    position: absolute;
    font-size: 12rem;
    font-weight: 700;
    color: var(--accent-color);
    opacity: 0.1;
    z-index: 0;
    line-height: 1;
}

.number-content {
    position: relative;
    z-index: 1;
}

/* Form Styles */
.form-control {
    border-radius: var(--border-radius);
    border: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 214, 179, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* Contact Info Styles */
.contact-info .material-icons-outlined {
    color: var(--accent-color);
}

/* Map Container */
.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* Team Member Cards */
.team-card {
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

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

/* Values Cards */
.value-card {
    background-color: var(--white);
    transition: var(--transition);
}

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

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

.project-item {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

.project-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-content {
    padding: 1.5rem;
}

/* Material Types Grid */
.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    
}

.material-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

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

.material-card h5 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

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

.result-item {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

.result-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.result-content {
    padding: 1.5rem;
}

/* Thank You Page Styles */
.thank-you-card {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-lg);
    padding: 3rem 2rem;
}

.thank-you-icon {
    width: 80px;
    height: 80px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.thank-you-icon .material-icons-outlined {
    font-size: 40px;
    color: white;
}

/* Service Pages Styles */
.service-content {
    max-width: 800px;
    margin: 0 auto;
}

.service-content h2 {
    color: var(--accent-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.service-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.service-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.service-content ul {
    margin-bottom: 1rem;
}

.service-content li {
    margin-bottom: 0.5rem;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus Styles for Accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .header-dark,
    .cookie-popup,
    .btn {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    img {
        max-width: 100% !important;
        height: auto !important;
    }
}
