/* Reset and Base Styles */
:root {
    /* Light theme variables */
    --light-text: #333333;
    --light-bg: #ffffff;
    --light-accent: #007bff;
    --light-hover: #0056b3;
    
    /* Dark theme variables */
    --dark-text: #ffffff;
    --dark-bg: #000000;
    --dark-accent: #007bff;
    --dark-hover: #0056b3;

    /* Default theme (dark) */
    --text-color: var(--dark-text);
    --background-color: var(--dark-bg);
    --accent-color: var(--dark-accent);
    --hover-color: var(--dark-hover);

    /* Footer colors (constant regardless of theme) */
    --footer-bg: #000000;
    --footer-text: #ffffff;
}

[data-theme="light"] {
    --text-color: var(--light-text);
    --background-color: var(--light-bg);
    --accent-color: var(--light-accent);
    --hover-color: var(--light-hover);
}

/* Add smooth transitions for theme changes */
body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

/* Typography */
h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

h3 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Links */
a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--hover-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn.primary {
    background-color: var(--accent-color);
    color: white;
}

.btn.primary:hover {
    background-color: var(--hover-color);
    transform: translateY(-2px);
}

/* Utility Classes */
.hidden {
    display: none;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Form Styles */
.form-group {
    margin-bottom: 1rem;
    position: relative;
}

input, textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

label {
    display: block;
    margin-bottom: 0.5rem;
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

/* Media Queries */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 0.5rem;
    }
}