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

html {
    scroll-behavior: smooth;
}

:root {
    --bg-color: #f8f9fa;
    --text-color: #333;
    --heading-color: #2c3e50;
    --link-color: #3498db;
    --link-hover-color: #2980b9;
    --card-bg: #fff;
    --nav-bg: #fff;
    --footer-bg: #2c3e50;
    --footer-text: #fff;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --border-color: #ddd;
}

body.dark-theme {
    --bg-color: #1a1a1a;
    --text-color: #f0f0f0;
    --heading-color: #e0e0e0;
    --link-color: #4dabf7;
    --link-hover-color: #74c0fc;
    --card-bg: #2c2c2c;
    --nav-bg: #252525;
    --footer-bg: #121212;
    --footer-text: #f0f0f0;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --border-color: #444;
}

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

body.no-scroll {
    overflow: hidden;
}

h1, h2, h3 {
    color: var(--heading-color);
}

a {
    text-decoration: none;
    color: var(--link-color);
}

section {
    padding: 80px 20px;
    background-color: var(--bg-color);
    transition: background-color 0.3s ease;
}

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

/* Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--nav-bg);
    box-shadow: 0 2px 10px var(--shadow-color);
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--link-color);
}

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

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

.nav-links a {
    color: var(--heading-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--link-color);
}

.theme-toggle {
    display: flex;
    align-items: center;
    margin-left: 20px;
    cursor: pointer;
}

.theme-toggle-label {
    margin-right: 8px;
    color: var(--heading-color);
    font-size: 0.9rem;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "🌙";
    display: flex;
    align-items: center;
    justify-content: center;
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    font-size: 10px;
}

input:checked + .toggle-slider:before {
    content: "☀️";
}

input:checked + .toggle-slider {
    background-color: var(--link-color);
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--heading-color);
    margin: 5px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #3498db, #8e44ad);
    color: white;
    padding-top: 80px;
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: white;
}

.hero h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    background-color: white;
    color: #3498db;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Services Section */
#services {
    background-color: var(--bg-color);
    text-align: center;
    transition: background-color 0.3s ease;
}

.services {
    background-color: var(--bg-color);
    text-align: center;
    transition: background-color 0.3s ease;
}

.services h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.services-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* About Section */
#about {
    background-color: var(--bg-color);
    text-align: center;
    transition: background-color 0.3s ease;
}

.about {
    background-color: var(--bg-color);
    text-align: center;
    transition: background-color 0.3s ease;
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* Contact Section */
.contact {
    background-color: var(--card-bg);
    text-align: center;
    transition: background-color 0.3s ease;
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    text-align: left;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

input, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    background-color: var(--card-bg);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.submit-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.submit-btn:hover {
    background-color: #2980b9;
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 60px 20px 20px;
    transition: background-color 0.3s ease;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

.footer-logo h2 {
    color: white;
    margin-bottom: 10px;
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
}

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

.footer-contact p {
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
}

/* Burger Menu Animation */
@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0;
        height: 92vh;
        top: 8vh;
        background-color: var(--nav-bg);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in, background-color 0.3s ease;
        box-shadow: -5px 0 10px var(--shadow-color);
        z-index: 999;
    }
    
    .nav-links li {
        opacity: 0;
        margin: 20px 0;
    }
    
    .burger {
        display: block;
        z-index: 1000;
    }
    
    .nav-active {
        transform: translateX(0%);
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    
    .submit-btn {
        align-self: center;
    }
}