/* CSS Variables for Split-Complementary Color Scheme */
:root {
    /* Split-Complementary Color Palette */
    --primary-color: #2E8B57; /* Sea Green */
    --primary-light: #3CB371;
    --primary-dark: #228B44;
    
    --secondary-color: #FF6B35; /* Red Orange */
    --secondary-light: #FF8A65;
    --secondary-dark: #E55722;
    
    --accent-color: #8A2BE2; /* Blue Violet */
    --accent-light: #9932CC;
    --accent-dark: #7B1FA2;
    
    /* Neutral Colors for Eco-Minimalism */
    --background-color: #FEFEFE;
    --surface-color: #F8F9FA;
    --surface-dark: #E9ECEF;
    
    /* Text Colors */
    --text-primary: #2C3E50;
    --text-secondary: #5A6C7D;
    --text-light: #7F8C8D;
    --text-white: #FFFFFF;
    
    /* Gradient Variables */
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    --gradient-overlay: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
    
    /* Shadow Variables */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    
    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    
    /* Typography */
    --font-primary: 'Roboto', sans-serif;
    --font-secondary: 'Lato', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

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

/* Global Button Styles */
.btn, 
.button,
button,
input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-lg);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    background: var(--gradient-primary);
    color: var(--text-white);
    box-shadow: var(--shadow-md);
    transform: translateY(0);
}

.btn:hover,
.button:hover,
button:hover,
input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    filter: brightness(110%);
}

.btn.is-primary {
    background: var(--gradient-primary);
}

.btn.is-secondary,
.button.is-secondary {
    background: var(--gradient-secondary);
}

.btn.is-light,
.button.is-light {
    background: var(--text-white);
    color: var(--text-primary);
    border: 2px solid var(--primary-color);
}

.btn.is-light:hover,
.button.is-light:hover {
    background: var(--primary-color);
    color: var(--text-white);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-white { color: var(--text-white); }
.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--text-secondary); }

.bg-primary { background: var(--gradient-primary); }
.bg-secondary { background: var(--gradient-secondary); }
.bg-surface { background-color: var(--surface-color); }

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--spacing-sm) 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar-brand .navbar-item {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
}

.navbar-menu {
    display: flex;
    align-items: center;
}

.navbar-end {
    display: flex;
    gap: var(--spacing-sm);
}

.navbar-item {
    color: var(--text-primary);
    text-decoration: none;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    position: relative;
}

.navbar-item:hover {
    color: var(--primary-color);
    background-color: rgba(46, 139, 87, 0.1);
}

.navbar-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-item:hover::after {
    width: 80%;
}

/* Mobile Navigation */
.navbar-burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.navbar-burger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.hero-body {
    padding: var(--spacing-xl) 0;
    position: relative;
    z-index: 2;
}

.hero-title {
    color: var(--text-white) !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    margin-bottom: var(--spacing-md);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    color: var(--text-white) !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    margin-bottom: var(--spacing-lg);
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero p {
    color: var(--text-white) !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero .buttons {
    animation: fadeInUp 1s ease-out 0.9s both;
}

/* Particle Animation */
.particle-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0; }
    25% { opacity: 1; }
    50% { transform: translateY(-100px) rotate(180deg); opacity: 0.8; }
    75% { opacity: 1; }
}

/* Section Styles */
.section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

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

/* Services Section */
.service-card {
    background: var(--text-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.service-card .card-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.service-card .image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

.service-card .card-content {
    padding: var(--spacing-lg);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.service-card .title {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

/* Portfolio Section */
.portfolio-card {
    background: var(--text-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.portfolio-card .card-image {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.portfolio-card .image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.portfolio-card:hover img {
    transform: scale(1.08);
}

.portfolio-card .card-content {
    padding: var(--spacing-md);
    flex-grow: 1;
    text-align: center;
}

/* Our Process Section */
.process-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background: var(--text-white);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-sm);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    box-shadow: var(--shadow-md);
}

.accordion-header {
    padding: var(--spacing-lg);
    cursor: pointer;
    background: var(--gradient-primary);
    color: var(--text-white);
    position: relative;
    transition: all 0.3s ease;
}

.accordion-header::after {
    content: '+';
    position: absolute;
    right: var(--spacing-lg);
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-header::after {
    transform: translateY(-50%) rotate(45deg);
}

.accordion-content {
    padding: var(--spacing-lg);
    background: var(--text-white);
    border-top: 1px solid rgba(0,0,0,0.1);
}

/* Team Section */
.team-card {
    background: var(--text-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.team-card .card-image {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.team-card .image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

.team-card .card-content {
    padding: var(--spacing-lg);
    flex-grow: 1;
    text-align: center;
}

.team-card .title {
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.team-card .subtitle {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

/* Media Section */
.media-slider .image-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.media-slider .image-container:hover img {
    transform: scale(1.1);
}

/* External Resources Section */
.external-resources {
    background: var(--gradient-primary);
}

.external-resources .title,
.external-resources .subtitle {
    color: var(--text-white) !important;
}

.external-resources p {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Contact Section */
.contact-info .contact-item {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.contact-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-form .input,
.contact-form .textarea,
.contact-form .select select {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.contact-form .input:focus,
.contact-form .textarea:focus,
.contact-form .select select:focus {
    background: var(--text-white);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.1);
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: var(--text-white);
    padding: var(--spacing-xl) 0 var(--spacing-lg);
}

.footer .title {
    color: var(--text-white) !important;
    margin-bottom: var(--spacing-sm);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--spacing-xs);
}

.footer-links a {
    color: #BDC3C7;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.social-links a {
    color: #BDC3C7;
    text-decoration: none;
    margin-right: var(--spacing-sm);
    transition: all 0.3s ease;
    display: inline-block;
    padding: var(--spacing-xs);
    border-radius: var(--radius-sm);
}

.social-links a:hover {
    color: var(--primary-light);
    background: rgba(46, 139, 87, 0.1);
    transform: translateY(-2px);
}

/* Success Page Styles */
.success-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    padding: var(--spacing-lg);
}

.success-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    width: 100%;
}

/* Privacy and Terms Pages */
.content-page {
    padding-top: 100px;
    min-height: 100vh;
}

.content-page .container {
    max-width: 800px;
}

.content-page h1,
.content-page h2,
.content-page h3 {
    color: var(--primary-color);
    margin-top: var(--spacing-lg);
}

.content-page p {
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        box-shadow: var(--shadow-lg);
        border-radius: 0 0 var(--radius-md) var(--radius-md);
    }
    
    .navbar-menu.is-active {
        display: block;
    }
    
    .navbar-burger {
        display: flex;
    }
    
    .navbar-end {
        flex-direction: column;
        padding: var(--spacing-md);
        gap: var(--spacing-xs);
    }
    
    .parallax-bg {
        background-attachment: scroll;
    }
}

@media screen and (max-width: 768px) {
    :root {
        --spacing-xs: 4px;
        --spacing-sm: 8px;
        --spacing-md: 16px;
        --spacing-lg: 24px;
        --spacing-xl: 32px;
    }
    
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .hero-body {
        padding: var(--spacing-lg) 0;
    }
    
    .section {
        padding: var(--spacing-lg) 0;
    }
    
    .columns.is-multiline > .column {
        margin-bottom: var(--spacing-md);
    }
    
    .btn,
    .button {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.9rem;
    }
    
    .service-card .card-content,
    .portfolio-card .card-content,
    .team-card .card-content {
        padding: var(--spacing-md);
    }
    
    .contact-form {
        padding: var(--spacing-md);
    }
    
    .footer .columns {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
        display: flex;
        flex-wrap: wrap;
        gap: var(--spacing-sm);
    }
}

@media screen and (max-width: 480px) {
    .navbar-brand .navbar-item {
        font-size: 1.2rem;
    }
    
    .hero .buttons {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-sm);
    }
    
    .btn,
    .button {
        width: 100%;
        max-width: 280px;
    }
    
    .service-card .card-image,
    .portfolio-card .card-image,
    .team-card .card-image,
    .media-slider .image-container {
        height: 200px;
    }
    
    .accordion-header {
        padding: var(--spacing-md);
    }
    
    .accordion-content {
        padding: var(--spacing-md);
    }
    
    .contact-form .field {
        margin-bottom: var(--spacing-sm);
    }
}

/* High DPI Display Optimizations */
@media screen and (-webkit-min-device-pixel-ratio: 2),
       screen and (min-resolution: 192dpi) {
    .hero,
    .parallax-bg {
        background-size: cover;
        background-position: center;
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero,
    .footer {
        display: none;
    }
    
    .section {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .parallax-bg {
        background-attachment: scroll;
    }
}

/* Focus Styles for Accessibility */
.btn:focus,
.button:focus,
button:focus,
input:focus,
textarea:focus,
select:focus,
.navbar-item:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: var(--text-white);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--surface-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}