/* ===== BASE VARIABLES ===== */
:root {
    --primary: #4285F4;
    --secondary: #34A853;
    --accent: #EA4335;
    --light: #f8f9fa;
    --dark: #202124;
    --gray: #5f6368;
    
    /* Light mode defaults */
    --bg-color: #ffffff;
    --text-color: #202124;
    --card-bg: #f8f9fa;
    --footer-bg: #202124;
    --footer-text: #bdc1c6;
}

/* Dark mode variables */
[data-theme="dark"] {
    --bg-color: #121212;
    --text-color: #f8f9fa;
    --card-bg: #1e1e1e;
    --light: #2d2d2d;
    --footer-bg: #000000;
    --footer-text: #bdc1c6;
}

/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: background-color 0.3s, color 0.3s;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER & NAVIGATION ===== */
header {
    background-color: var(--bg-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 40px;
    cursor: pointer;
}

.logo-img {
    height: 300%;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

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

.nav-links button {
    background: none;
    border: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: inherit;
    cursor: pointer;
    padding: 0;
    transition: color 0.3s;
}

.nav-links button:hover {
    color: var(--primary);
}

.cta-button {
    background-color: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.cta-button:hover {
    background-color: #3367d6;
    color: white;
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
    display: flex;
    align-items: center;
    margin-left: 20px;
    cursor: pointer;
}

.toggle-switch {
    position: relative;
    width: 60px;
    height: 28px;
    background-color: var(--light);
    border-radius: 14px;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    padding: 0 5px;
}

.toggle-switch::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: var(--primary);
    top: 3px;
    left: 3px;
    transition: transform 0.3s;
    z-index: 2;
}

[data-theme="dark"] .toggle-switch::before {
    transform: translateX(32px);
}

.toggle-icon {
    font-size: 16px;
    z-index: 1;
    transition: opacity 0.3s;
}

.sun-icon {
    color: #FFC107;
    margin-right: auto;
}

.moon-icon {
    color: #5b5b5b;
    margin-left: auto;
}

[data-theme="dark"] .sun-icon {
    opacity: 1;
}

[data-theme="light"] .moon-icon {
    opacity: 0.5;
}

/* ===== MOBILE MENU ===== */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-color);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--bg-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 99;
    padding: 20px;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu-links {
    list-style: none;
}

.mobile-menu-links li {
    margin-bottom: 15px;
}

.mobile-menu-links button {
    background: none;
    border: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: inherit;
    cursor: pointer;
    padding: 10px;
    text-align: left;
    width: 100%;
}

.mobile-menu-links .cta-button {
    display: inline-block;
    margin-top: 10px;
}

.mobile-menu-links button:hover {
    color: var(--primary);
}

.mobile-theme-toggle {
    display: none;
    align-items: center;
    margin-top: 20px;
    padding: 10px;
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 150px 0 100px;
    text-align: center;
    background: linear-gradient(135deg, var(--light) 0%, var(--card-bg) 100%);
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.hero p {
    font-size: 20px;
    color: var(--gray);
    max-width: 800px;
    margin: 0 auto 40px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.secondary-button {
    background-color: var(--bg-color);
    color: var(--primary);
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    border: 2px solid var(--primary);
    transition: all 0.3s;
    cursor: pointer;
}

.secondary-button:hover {
    background-color: var(--primary);
    color: white;
}

/* ===== SERVICES SECTION ===== */
.services {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--text-color);
    margin-bottom: 15px;
}

.section-title p {
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.service-icon {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.service-card p {
    color: var(--gray);
}

/* ===== FEATURES SECTION ===== */
.features {
    padding: 80px 0;
    background-color: var(--card-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-item {
    display: flex;
    gap: 20px;
}

.feature-icon {
    font-size: 24px;
    color: var(--secondary);
    flex-shrink: 0;
}

.feature-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.feature-content p {
    color: var(--gray);
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--text-color);
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary);
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.author-info h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--text-color);
}

.author-info p {
    color: var(--gray);
    font-size: 14px;
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary) 0%, #3367d6 100%);
    color: white;
    text-align: center;
}

.cta-section h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.cta-section p {
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

.cta-button.white {
    background-color: white;
    color: var(--primary);
}

.cta-button.white:hover {
    background-color: rgba(255,255,255,0.9);
}

/* ===== CONTACT SECTION ===== */
.contact-page {
    padding: 10px 0 40px;
    background-color: var(--bg-color);
    display: none;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.contact-form {
    background-color: var(--card-bg);
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 2px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    background-color: var(--bg-color);
    color: var(--text-color);
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.submit-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #3367d6;
}

.contact-info {
    padding: 25px;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.contact-info h3 {
    margin-bottom: 20px;
    color: var(--text-color);
}

.contact-method {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-icon {
    margin-right: 15px;
    color: var(--primary);
    font-size: 20px;
    width: 30px;
    text-align: center;
}

/* Form status message */
.form-status {
    margin-top: 20px;
    padding: 10px;
    border-radius: 4px;
    display: none;
}

.form-status.success {
    background-color: #d4edda;
    color: #155724;
    display: block;
}

.form-status.error {
    background-color: #f8d7da;
    color: #721c24;
    display: block;
}

.contact-method a {
    color: var(--primary) !important;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-method a:hover {
    color: var(--secondary) !important;
    text-decoration: underline;
}

.footer-links a {
    color: var(--footer-text);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 60px 0 20px;
}

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

.footer-col h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: white;
}

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

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

.footer-links button {
    background: none;
    border: none;
    color: var(--footer-text);
    text-decoration: none;
    transition: color 0.3s;
    padding: 0;
    cursor: pointer;
    font-size: inherit;
    text-align: left;
}

.footer-links button:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--footer-text);
    font-size: 14px;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .theme-toggle {
        display: none;
    }

    .mobile-theme-toggle {
        display: flex;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-form,
    .contact-info {
        padding: 25px;
    }
    
    .logo-img {
        max-width: 150px;
    }
}