/* 
======================================
    MD Računovodstvo - Main Stylesheet
    v3.0 - 2025
======================================
*/

/* ===== Variables ===== */
:root {
    /* Light mode colors */
    --bg-color-light: #ffffff;
    --text-color-light: #121212;
    --muted-text-light: #555555;
    --numbers-color-light: rgba(0, 0, 0, 0.25);
    --card-bg-light: rgba(0, 0, 0, 0.05);
    --card-hover-light: rgba(0, 0, 0, 0.05);
    --form-bg-light: rgba(0, 0, 0, 0.05);
    --form-input-light: #ffffff;
    --form-border-light: rgba(0, 0, 0, 0.1);
    --header-bg-light: rgba(255, 255, 255, 0.95);
    --footer-bg-light: rgba(0, 0, 0, 0.03);
    --footer-border-light: rgba(0, 0, 0, 0.1);
    --toggle-bg-light: rgba(0, 0, 0, 0.15);
    
    /* Dark mode colors */
    --bg-color-dark: #000000; /* Changed from #1a1a1a to pure black */
    --text-color-dark: #f4f4e8;
    --muted-text-dark: rgba(255, 255, 255, 0.7);
    --numbers-color-dark: rgba(255, 255, 255, 0.15); /* More visible */
    --card-bg-dark: rgba(255, 255, 255, 0.05);
    --card-hover-dark: rgba(255, 255, 255, 0.08);
    --form-bg-dark: rgba(255, 255, 255, 0.05);
    --form-input-dark: rgba(255, 255, 255, 0.1);
    --form-border-dark: rgba(255, 255, 255, 0.2);
    --header-bg-dark: rgba(26, 26, 26, 0.95);
    --footer-bg-dark: rgba(0, 0, 0, 0.3);
    --footer-border-dark: rgba(255, 255, 255, 0.1);
    --toggle-bg-dark: rgba(255, 255, 255, 0.2);
    
    /* Common colors for both themes - UPDATED with client's requested colors */
    --main-color: #3949ab; /* Indigo blue */
    --accent-color: #1a237e; /* Darker indigo */
    --third-color: #5c6bc0; /* Lighter indigo */
}

/* Apply theme colors */
html[data-theme='dark'] {
    --bg-color: var(--bg-color-dark);
    --text-color: var(--text-color-dark);
    --muted-text: var(--muted-text-dark);
    --numbers-color: var(--numbers-color-dark);
    --card-bg: var(--card-bg-dark);
    --card-hover: var(--card-hover-dark);
    --form-bg: var(--form-bg-dark);
    --form-input: var(--form-input-dark);
    --form-border: var(--form-border-dark);
    --header-bg: var(--header-bg-dark);
    --footer-bg: var(--footer-bg-dark);
    --footer-border: var(--footer-border-dark);
    --toggle-bg: var(--toggle-bg-dark);
}

html[data-theme='light'] {
    --bg-color: var(--bg-color-light);
    --text-color: var(--text-color-light);
    --muted-text: var(--muted-text-light);
    --numbers-color: var(--numbers-color-light);
    --card-bg: var(--card-bg-light);
    --card-hover: var(--card-hover-light);
    --form-bg: var(--form-bg-light);
    --form-input: var(--form-input-light);
    --form-border: var(--form-border-light);
    --header-bg: var(--header-bg-light);
    --footer-bg: var(--footer-bg-light);
    --footer-border: var(--footer-border-light);
    --toggle-bg: var(--toggle-bg-light);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    cursor: default;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Mobile Menu - New for Mobile Optimization */
.mobile-menu-toggle {
    display: none;
    position: relative;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 101;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-color);
    z-index: 100;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu nav {
    width: 100%;
    text-align: center;
}

.mobile-menu nav ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.mobile-menu nav ul li a {
    font-size: 24px;
    display: block;
    padding: 10px 0;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
    background-color: var(--header-bg);
    backdrop-filter: blur(10px);
    padding: 15px 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Replace the logo styling section in your main.css with this updated version */

/* Logo styling with better visibility and size */
.logo {
    font-weight: 900;
    font-size: 24px;
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

/* Ensure logo container provides color context */
.logo,
.footer-logo,
.mobile-menu-header {
    color: var(--text-color); /* This will be inherited by currentColor in SVG */
}

/* Increased logo size for better visibility */
.logo-image {
    height: 120px; /* Increased from 45px */
    width: auto;
    transition: all 0.3s ease;
    /* Ensure minimum width for visibility */
    min-width: 200px;
}

/* If the logo is still not visible, use this alternative approach */
html[data-theme='dark'] .logo-image {
    filter: none;
    /* Force white color for dark mode if currentColor isn't working */
    filter: brightness(0) invert(1);
}

html[data-theme='light'] .logo-image {
    filter: none;
    /* Ensure black color for light mode */
    filter: brightness(0);
}

/* Add hover effect */
.logo:hover .logo-image {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Header adjustments to accommodate larger logo */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 40px; /* Slightly reduced vertical padding */
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
    background-color: var(--header-bg);
    backdrop-filter: blur(10px);
    padding: 10px 40px; /* Adjusted for scrolled state */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Responsive logo sizing */
@media (min-width: 768px) {
    .logo-image {
        height: 120px; /* Increased from 50px */
        min-width: 220px;
    }
}

@media (max-width: 768px) {
    .logo-image {
        height: 120px; /* Good size for tablets */
        min-width: 180px;
    }
    
    header {
        padding: 12px 20px;
    }
    
    header.scrolled {
        padding: 8px 20px;
    }
}

@media (max-width: 576px) {
    .logo-image {
        height: 40px; /* Increased from 35px */
        min-width: 150px;
    }
}

@media (max-width: 380px) {
    .logo-image {
        height: 35px; /* Increased from 30px */
        min-width: 140px;
    }
}

/* Footer logo adjustments */
.footer-logo-image {
    height: 160px; /* Increased from 40px */
    width: auto;
    max-width: 300px;
    transition: all 0.3s ease;
}

/* Footer logo visibility fix */
html[data-theme='dark'] .footer-logo-image {
    filter: brightness(0) invert(1);
}

html[data-theme='light'] .footer-logo-image {
    filter: brightness(0);
}

/* Mobile logo image */
.mobile-logo-image {
    height: 70px; /* Increased from 60px */
    width: auto;
    transition: all 0.3s ease;
}

html[data-theme='dark'] .mobile-logo-image {
    filter: brightness(0) invert(1);
}

html[data-theme='light'] .mobile-logo-image {
    filter: brightness(0);
}

@media (max-width: 768px) {
    .mobile-logo-image {
        height: 60px;
    }
}

@media (max-width: 380px) {
    .mobile-logo-image {
        height: 50px;
    }
}

.mobile-menu-header {
    text-align: center;
    margin-bottom: 30px;
}

.mobile-logo-image {
    height: 60px;
    width: auto;
    transition: all 0.3s ease;
}

html[data-theme='dark'] .mobile-logo-image {
    filter: none; /* No filter needed - uses currentColor */
}

html[data-theme='light'] .mobile-logo-image {
    filter: none; /* No filter needed - uses currentColor */
}

@media (max-width: 768px) {
    .mobile-logo-image {
        height: 50px;
    }
}

@media (max-width: 380px) {
    .mobile-logo-image {
        height: 45px;
    }
}

/* Since logo-editor.svg includes the company name and tagline, 
   hide the duplicate h3 in footer if needed */
.footer-column.company-info .footer-logo + h3 {
    display: none; /* Remove this line if you want to keep the h3 */
}

.header-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    opacity: 0.8;
    transition: opacity 0.3s ease, color 0.3s ease;
    cursor: pointer;
}

nav ul li a:hover {
    opacity: 1;
    color: var(--main-color);
}

.header-buttons {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Theme Toggle Switch */
.theme-toggle-wrapper {
    display: flex;
    align-items: center;
}

.theme-toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.theme-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--toggle-bg);
    transition: .4s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: var(--main-color);
    transition: .4s;
    z-index: 1;
}

.slider .fa-sun {
    color: var(--text-color);
    font-size: 14px;
    margin-left: 2px;
}

.slider .fa-moon {
    color: var(--text-color);
    font-size: 14px;
    margin-right: 2px;
}

input:checked + .slider:before {
    transform: translateX(30px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

html[data-theme='dark'] input:checked + .slider:before {
    background-color: var(--main-color);
}

html[data-theme='light'] input:not(:checked) + .slider:before {
    background-color: var(--accent-color);
}

/* Enhancement for your existing get-started-btn class */
.get-started-btn {
    position: relative;
    background: linear-gradient(135deg, #3949ab, #5c6bc0);
    color: white;
    border: none; /* Remove original border */
    border-radius: 50px;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(57, 73, 171, 0.25);
    z-index: 1;
}

/* Add this for the animated border effect */
.get-started-btn::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50px;
    background: linear-gradient(90deg, #3949ab, #5c6bc0, #1a237e, #3949ab);
    background-size: 300% 300%;
    z-index: -1;
    animation: borderAnimation 3s ease infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.get-started-btn:hover::before {
    opacity: 1;
}

.get-started-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(57, 73, 171, 0.3);
    background-color: transparent;
    color: white;
}

.get-started-btn:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 5px 15px rgba(57, 73, 171, 0.3);
}

@keyframes borderAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Hero Section Styles */
.hero {
    min-height: 100vh;
    height: 100vh; /* Enforce full height */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 0 40px;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 5; /* Increased to ensure it's above the numbers */
    max-width: 1200px;
    width: 100%;
    margin-bottom: 60px; /* Space for county emblem */
}

.hero-title {
    font-size: clamp(3.5rem, 8vw, 8rem);
    font-weight: 900;
    line-height: 1;
    color: var(--text-color);
    margin-bottom: 30px;
    overflow: visible; /* Changed from hidden to fix cutoff issues */
    transition: color 0.3s ease;
    letter-spacing: -0.02em; /* Added to improve spacing and prevent cutoff */
}

.hero-title span {
    display: block;
    overflow: visible; /* Changed from hidden to fix cutoff issues */
}

.hero-title .line {
    display: block;
    transform: translateY(100%);
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.5rem);
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0;
    color: var(--muted-text);
    transition: color 0.3s ease;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--text-color);
    border-radius: 50px;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.cta-button::after {
    content: '';
    position: absolute;
    width: 0;
    height: 300%;
    top: 50%;
    left: 50%;
    background: var(--main-color);
    opacity: 0.2;
    transform: translate(-50%, -50%) rotate(45deg);
    transition: width 0.3s ease;
    z-index: -1;
}

.cta-button:hover::after {
    width: 120%;
}

.cta-button .arrow {
    transform: translateX(0);
    transition: transform 0.3s ease;
}

.cta-button:hover .arrow {
    transform: translateX(5px);
}

/* County Funding Notice - UPDATED VERSION for better mobile visibility */
.county-funding {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 5;
    transition: all 0.4s ease;
    width: auto;
    max-width: 90%;
}

.county-emblem {
    height: 50px; /* Increased size from 35px */
    width: auto;
    margin-right: 0;
    margin-bottom: 8px; /* Add space between emblem and text */
    transition: height 0.3s ease;
}

.county-text {
    margin: 0;
    font-size: 12px; /* Slightly increased from 11px */
    font-weight: 600;
    color: var(--text-color);
    text-transform: uppercase;
    text-align: center;
    white-space: normal; /* Changed from nowrap to allow wrapping */
    max-width: 100%;
    transition: all 0.4s ease;
}

/* Floating state when scrolling (minimized version) */
.county-funding.floating {
    position: fixed;
    bottom: 20px;
    left: 20px;
    transform: none;
    padding: 8px;
    z-index: 98;
    max-width: 60px;
    background-color: rgba(0, 0, 0, 0.8);
    flex-direction: column;
}

.county-funding.floating .county-emblem {
    height: 35px;
    margin-right: 0;
    margin-bottom: 0;
}

.county-funding.floating .county-text {
    opacity: 0;
    max-width: 0;
    margin: 0;
    height: 0;
}

/* Footer state (wider version) */
.county-funding.footer-state {
    position: relative;
    left: 0;
    bottom: 0;
    transform: none;
    margin: 0 auto 20px;
    padding: 15px 20px;
    max-width: 100%;
    width: auto;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    z-index: 5;
    flex-direction: column;
}

.county-funding.footer-state .county-emblem {
    height: 45px;
    margin-right: 0;
    margin-bottom: 10px;
}

.county-funding.footer-state .county-text {
    font-size: 13px;
    max-width: none;
    opacity: 1;
}

/* Number Grid Animation - updated to work in all sections */
.number-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.number-item {
    position: absolute;
    font-family: 'Inter', sans-serif;
    font-size: clamp(10px, 3vw, 50px); /* Slightly smaller for non-hero sections */
    font-weight: 900;
    opacity: 0;
    transform: rotate(var(--rotation));
    color: var(--numbers-color);
    transition: color 0.3s ease;
}

/* Make sure all section content stays above numbers */
.section-content, .hero-content {
    position: relative;
    z-index: 5;
}

/* Ensure proper visibility in light mode */
html[data-theme='light'] .number-item {
    color: rgba(0, 0, 0, 0.1);
}

html[data-theme='light'] .feature-card {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
}

html[data-theme='light'] .contact-form {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

/* Section background numbers */
.section-number {
    position: absolute;
    font-family: 'Inter', sans-serif;
    font-size: 6rem;
    font-weight: 900;
    opacity: 0.25;
    color: var(--text-color);
    z-index: 1;
    pointer-events: none;
    transition: all 0.3s ease;
}

/* Special large background number */
.large-background-number {
    position: absolute;
    font-family: 'Inter', sans-serif;
    font-size: 20rem; /* Reduced size */
    font-weight: 900;
    opacity: 0;
    color: var(--text-color);
    z-index: 1; /* Ensure this is lower than hero-content */
    pointer-events: none;
    transition: color 0.3s ease, transform 3s ease; /* Added transform transition */
}

/* Ensure light mode visibility for both number types */
html[data-theme='light'] .large-background-number,
html[data-theme='light'] .section-number {
    opacity: 0.06;
    color: rgba(0, 0, 0, 0.5);
}

/* Decorative Elements */
.decoration {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    will-change: transform; /* Optimization for animations */
}

.decoration-top-right {
    top: 20%;
    right: 10%;
    width: 80px;
    height: 80px;
    opacity: 0;
}

.decoration-top-left {
    top: 15%;
    left: 10%;
    width: 60px;
    height: 60px;
    opacity: 0;
}

.decoration-bottom {
    bottom: 10%;
    left: 15%;
    width: 50px;
    height: 50px;
    opacity: 0;
}

/* Sections for Scrolling */
.section {
    min-height: 100vh;
    padding: 120px 40px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.section-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 30px;
    color: var(--text-color);
    opacity: 0;
    transform: translateY(50px);
    transition: color 0.3s ease;
}

.section-text {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    max-width: 700px;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(30px);
    color: var(--muted-text);
    transition: color 0.3s ease;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
    justify-content: center;
}

/* For specific 3-card layouts */
.features-3-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.feature-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background-color: var(--card-hover);
}

.feature-card .icon {
    color: var(--main-color);
    font-size: 40px;
    margin-bottom: 10px;
}

.feature-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.feature-card p {
    font-size: 16px;
    color: var(--muted-text);
    line-height: 1.6;
    transition: color 0.3s ease;
}

/* Contact Section */
.contact-section {
    position: relative;
}

.contact-form {
    background: var(--form-bg);
    border-radius: 20px;
    padding: 40px;
    margin-top: 40px;
    opacity: 0;
    transform: translateY(30px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form-header {
    margin-bottom: 30px;
    text-align: center;
}

.contact-form-header h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.contact-form-header p {
    color: var(--muted-text);
    transition: color 0.3s ease;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.form-control {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    background-color: var(--form-input);
    border: 1px solid var(--form-border);
    border-radius: 12px;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--main-color);
    box-shadow: 0 0 0 3px rgba(57, 73, 171, 0.2);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
}

.privacy-text {
    font-size: 14px;
    color: var(--muted-text);
    max-width: 60%;
    transition: color 0.3s ease;
}

.privacy-text a {
    color: var(--main-color);
    text-decoration: none;
}

.privacy-text a:hover {
    text-decoration: underline;
}

.submit-btn {
    background-color: var(--main-color);
    color: var(--bg-color-dark);
    border: none;
    border-radius: 50px;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(57, 73, 171, 0.3);
}

.submit-btn i {
    transition: transform 0.3s ease;
}

.submit-btn:hover i {
    transform: translateX(5px);
}

/* Different Gradient Themes */
.main-gradient {
    background-image: linear-gradient(to right, var(--main-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.accent-gradient {
    background-image: linear-gradient(to right, var(--accent-color), var(--third-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Scroll To Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--main-color);
    color: var(--bg-color-dark);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 99;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(57, 73, 171, 0.3);
}

/* Footer Styles */
.site-footer {
    background: var(--footer-bg);
    color: var(--text-color);
    padding: 80px 40px 30px;
    position: relative;
    border-top: 1px solid var(--footer-border);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-column h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--main-color);
}

.footer-column p {
    margin-bottom: 15px;
    color: var(--muted-text);
    font-size: 14px;
    line-height: 1.6;
    display: flex;
    align-items: center;
}

.footer-column p i {
    margin-right: 10px;
    color: var(--main-color);
    width: 16px;
    text-align: center;
}

.footer-logo {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 15px;
    color: var(--text-color);
    /* Remove or comment out the gradient effect if using the SVG logo */
    /* background-image: linear-gradient(to right, var(--main-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent; */
}

.company-info p {
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--card-bg);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--main-color);
    color: var(--bg-color-dark);
    transform: translateY(-3px);
}

.quick-links ul {
    list-style: none;
}

.quick-links ul li {
    margin-bottom: 12px;
}

.quick-links ul li a {
    color: var(--muted-text);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.quick-links ul li a::before {
    content: '→';
    margin-right: 8px;
    color: var(--main-color);
    transition: transform 0.3s ease;
}

.quick-links ul li a:hover {
    color: var(--main-color);
    transform: translateX(5px);
}

.quick-links ul li a:hover::before {
    transform: translateX(3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid var(--footer-border);
    font-size: 14px;
    color: var(--muted-text);
}

.footer-bottom .credits {
    display: flex;
    align-items: center;
}

.footer-bottom .credits i {
    color: var(--accent-color);
    margin: 0 5px;
}

/* Add section separator styling */
.section-separator {
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 0 auto;
    position: relative;
}

/* Cookie Banner and Privacy Modal */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-color);
    border-top: 1px solid var(--footer-border);
    padding: 15px 40px;
    z-index: 99;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
    display: none;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-content p {
    margin: 0;
    color: var(--text-color);
    flex: 1 1 60%;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-btn {
    border: none;
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.accept-btn {
    background-color: var(--main-color);
    color: var(--bg-color-dark);
}

.accept-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(57, 73, 171, 0.3);
}

.decline-btn {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--text-color);
}

.decline-btn:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}

.privacy-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 15px;
}

.privacy-modal-content {
    background-color: var(--bg-color);
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.privacy-modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--footer-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.privacy-modal-header h3 {
    margin: 0;
    color: var(--text-color);
}

.privacy-modal-close {
    font-size: 24px;
    color: var(--text-color);
    cursor: pointer;
    background: transparent;
    border: none;
}

.privacy-modal-body {
    padding: 20px;
    color: var(--text-color);
}

.privacy-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--footer-border);
    text-align: right;
}

/* Responsive adjustments - Enhanced */
@media (max-width: 992px) {
    .features-3-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-title {
        font-size: clamp(3.5rem, 7vw, 7rem);
    }
    
    .decoration-top-right,
    .decoration-top-left {
        width: 60px;
        height: 60px;
    }
    
    .decoration-bottom {
        width: 40px;
        height: 40px;
    }
}

/* Footer emblem styling - add to main.css */
.county-funding.footer-state {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto 20px;
    padding: 15px 20px;
    border-radius: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.county-funding.footer-state .county-emblem {
    height: 45px;
    margin-right: 0;
    margin-bottom: 10px;
}

.county-funding.footer-state .county-text {
    font-size: 13px;
    max-width: none;
    opacity: 1;
    text-align: center;
}

@media (max-width: 768px) {
    .county-funding.footer-state {
        padding: 12px 15px;
    }
    
    .county-funding.footer-state .county-emblem {
        height: 40px;
    }
    
    .county-funding.footer-state .county-text {
        font-size: 12px;
    }

    .number-item {
        font-size: clamp(15px, 5vw, 70px) !important; /* Increased from original 3vw */
        opacity: 0.25 !important; /* Better visibility */
    }
    
    .large-background-number {
        font-size: clamp(3rem, 5vw, 5rem) !important; /* Reduced from original 20rem */
        opacity: 0.15 !important;
    }
    
    .section-number {
        font-size: clamp(4rem, 8vw, 5rem) !important;
        opacity: 0.12 !important;
    }
}

@media (max-width: 380px) {
    .county-funding.footer-state .county-emblem {
        height: 35px;
    }
    
    .county-funding.footer-state .county-text {
        font-size: 11px;
    }

    .number-item {
        font-size: clamp(14px, 4.5vw, 55px) !important;
    }
    
    .large-background-number {
        font-size: clamp(8rem, 14vw, 12rem) !important;
    }
    
    .section-number {
        font-size: clamp(3.5rem, 7vw, 4.5rem) !important;
    }
}

@media (max-width: 768px) {
    /* Show mobile menu toggle and hide desktop navigation */
    .mobile-menu-toggle {
        display: block;
    }
    
    .header-center {
        display: none;
    }
    
    header {
        padding: 15px 20px;
        justify-content: space-between;
    }
    
    header.scrolled {
        padding: 10px 20px;
    }
    
    /* Adjust header layout for mobile */
    .logo {
        font-size: 22px;
    }
    
    .header-buttons {
        gap: 15px;
    }
    
    .theme-toggle-switch {
        width: 50px;
        height: 25px;
    }
    
    .slider:before {
        height: 18px;
        width: 18px;
    }
    
    input:checked + .slider:before {
        transform: translateX(25px);
    }
    
    .get-started-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    /* Hero section adjustments for mobile */
    .hero {
        padding: 0 20px;
        min-height: 85vh; /* Shorter on mobile */
        margin-top: 60px; /* Add space for fixed header */
    }

    /* Enhanced county emblem for mobile */
    .county-funding {
        bottom: 20px;
        padding: 12px 15px;
        max-width: 200px; /* Control width on mobile */
    }
    
    .county-emblem {
        height: 45px; /* Keep emblem visible */
        margin-bottom: 8px;
    }
    
    .county-text {
        font-size: 11px;
        white-space: normal;
        text-align: center;
    }

    @media (max-width: 768px) {
        .hero {
            height: 100vh; /* Force full height on mobile */
            min-height: -webkit-fill-available; /* For iOS Safari */
            margin-top: 0; /* Remove any top margin */
            padding-top: 60px; /* Add padding for the fixed header */
        }
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 7vw, 5rem);
        margin-bottom: 20px;
    }
    
    .hero-description {
        font-size: clamp(0.9rem, 1.5vw, 1.2rem);
        margin-bottom: 30px;
    }
    
    .cta-button {
        padding: 12px 25px;
        font-size: 16px;
    }
    
    /* County funding adjustments for mobile */
    .county-funding.floating {
        padding: 8px;
        max-width: 50px;
    }
    
    .county-funding.floating .county-emblem {
        height: 35px;
    }
    
    /* Decorative elements adjustment */
    .decoration-top-right {
        top: 15%;
        right: 5%;
        width: 40px;
        height: 40px;
    }
    
    .decoration-top-left {
        top: 10%;
        left: 5%;
        width: 30px;
        height: 30px;
    }
    
    .decoration-bottom {
        bottom: 5%;
        left: 8%;
        width: 25px;
        height: 25px;
    }
    
    /* Section adjustments */
    .section {
        padding: 80px 20px;
        min-height: auto;
    }
    
    .section-title {
        font-size: clamp(2rem, 4vw, 3rem);
        margin-bottom: 20px;
    }
    
    .section-text {
        font-size: clamp(0.9rem, 1.3vw, 1.1rem);
        margin-bottom: 30px;
    }
    
    /* Feature cards */
    .features {
        gap: 20px;
        margin-top: 40px;
    }
    
    .features-3-cards {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 40px;
    }
    
    .feature-card {
        padding: 20px;
        gap: 15px;
    }
    
    .feature-card .icon {
        font-size: 32px;
        margin-bottom: 5px;
    }
    
    .feature-card h3 {
        font-size: 20px;
        margin-bottom: 5px;
    }
    
    .feature-card p {
        font-size: 14px;
    }
    
    /* Contact form */
    .contact-form {
        padding: 25px 20px;
        margin-top: 30px;
    }
    
    .contact-form-header h3 {
        font-size: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 15px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-control {
        padding: 12px;
        font-size: 14px;
    }
    
    .form-footer {
        flex-direction: column;
        gap: 20px;
    }
    
    .privacy-text {
        max-width: 100%;
        text-align: center;
        order: 2;
    }
    
    .submit-btn {
        width: 100%;
        justify-content: center;
        order: 1;
        padding: 12px 20px;
    }
    
    /* Footer adjustments */
    .site-footer {
        padding: 60px 20px 30px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-column h3 {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .footer-logo {
        font-size: 28px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    /* Scroll to top button */
    .scroll-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
    
    /* Cookie banner */
    .cookie-banner {
        padding: 15px 20px;
    }
    
    .cookie-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 380px) {
    /* Extra small screens like iPhone SE */
    .hero-title {
        font-size: clamp(2rem, 6vw, 4rem);
    }
    
    .hero-description {
        font-size: 0.85rem;
    }
    
    .cta-button {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .get-started-btn {
        padding: 8px 15px;
        font-size: 13px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .feature-card {
        padding: 15px;
    }
    
    .feature-card .icon {
        font-size: 28px;
    }
    
    .feature-card h3 {
        font-size: 18px;
    }
    
    /* County funding for very small screens */
    .county-funding {
        bottom: 15px;
        max-width: 160px;
    }
    
    .county-emblem {
        height: 40px;
    }
    
    .county-funding.footer-state {
        width: 100%;
        border-radius: 0;
        margin-bottom: 15px;
    }
    
    .theme-toggle-switch {
        width: 45px;
        height: 22px;
    }
    
    .slider:before {
        height: 16px;
        width: 16px;
        left: 3px;
        bottom: 3px;
    }
    
    input:checked + .slider:before {
        transform: translateX(23px);
    }
}

/* iOS-specific fixes for number visibility AND animations */
@supports (-webkit-touch-callout: none) {
    /* iOS devices only */
    .number-item {
        opacity: 0.25 !important; /* Visible but not too strong */
        color: rgba(255, 255, 255, 0.25) !important;
        /* Remove hardware acceleration that breaks animations */
        will-change: auto;
        transform: none !important;
    }
    
    /* Ensure GSAP animations work properly on iOS */
    .hero-title .line,
    .hero-description,
    .cta-button,
    .decoration,
    .feature-card,
    .section-title,
    .section-text,
    .contact-form {
        will-change: auto;
        -webkit-backface-visibility: visible;
        backface-visibility: visible;
    }
    
    /* Improve large number visibility without breaking animations */
    .large-background-number {
        opacity: 0.12 !important;
        will-change: auto;
    }
    
    .section-number {
        opacity: 0.1 !important;
        will-change: auto;
    }
    
    /* Light theme adjustments */
    html[data-theme='light'] .number-item {
        color: rgba(0, 0, 0, 0.18) !important;
    }
    
    html[data-theme='light'] .large-background-number,
    html[data-theme='light'] .section-number {
        opacity: 0.12 !important;
        color: rgba(0, 0, 0, 0.7) !important;
    }
}

/* Enhanced service lists - Client additions */
.service-list {
    list-style: none;
    margin-top: 10px;
}

.service-list li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    font-size: 15px;
    color: var(--muted-text);
}

.service-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--main-color);
    font-size: 18px;
    line-height: 1;
}

/* Two-column service list for wider screens */
@media (min-width: 768px) {
    .service-list-two-column {
        column-count: 2;
        column-gap: 30px;
    }
}

/* Add these styles to your CSS file */
.privacy-modal-body h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--main-color);
}

.privacy-modal-body h3 {
    font-size: 1.3rem;
    margin: 1.5rem 0 0.7rem;
    color: var(--text-color);
}

.privacy-modal-body p {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.privacy-modal-body a {
    color: var(--main-color);
    text-decoration: none;
}

.privacy-modal-body a:hover {
    text-decoration: underline;
}

.privacy-modal-body .small {
    font-size: 0.8rem;
    color: var(--muted-text);
    margin-top: 1.5rem;
}