/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand Colors */
    --deep-blue: #1e40af;
    --soft-grey: #6b7280;
    --accent-teal: #0d9488;
    
    /* Light Theme Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --border-color: #d1d5db;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --nav-bg: #ffffff;
    
    /* Legacy variables for backward compatibility */
    --light-grey: var(--bg-secondary);
    --white: var(--bg-primary);
    --dark-text: var(--text-primary);
    --medium-text: var(--text-secondary);
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 4rem 0;
    --element-spacing: 2rem;
}

/* Dark Theme */
[data-theme="dark"] {
    --bg-primary: #111827;
    --bg-secondary: #1f2937;
    --bg-tertiary: #374151;
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --border-color: #4b5563;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --nav-bg: #1f2937;
    
    /* Update legacy variables */
    --light-grey: var(--bg-secondary);
    --white: var(--bg-primary);
    --dark-text: var(--text-primary);
    --medium-text: var(--text-secondary);
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-left: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    border-color: var(--accent-teal);
    transform: scale(1.1);
}

.theme-toggle .sun-icon,
.theme-toggle .moon-icon {
    font-size: 1.2rem;
    transition: all 0.3s ease;
    position: absolute;
}

.theme-toggle .moon-icon {
    opacity: 0;
    transform: rotate(180deg);
}

[data-theme="dark"] .theme-toggle .sun-icon {
    opacity: 0;
    transform: rotate(-180deg);
}

[data-theme="dark"] .theme-toggle .moon-icon {
    opacity: 1;
    transform: rotate(0deg);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-primary);
    font-weight: var(--font-weight-regular);
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3 {
    font-weight: var(--font-weight-semibold);
    color: var(--deep-blue);
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    color: var(--accent-teal);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--deep-blue);
}

/* Header */
header {
    background: var(--nav-bg);
    box-shadow: 0 1px 3px var(--shadow-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-teal);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: calc(70px + 4rem) 0 4rem;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    transition: background 0.3s ease;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero h2 {
    font-size: 1.5rem;
    color: var(--accent-teal);
    font-weight: var(--font-weight-medium);
    margin-bottom: 2rem;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.cta-button {
    display: inline-block;
    background: var(--accent-teal);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: var(--font-weight-semibold);
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.cta-button:hover {
    background: var(--deep-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* What I Do Section */
.what-i-do {
    padding: var(--section-padding);
    background: var(--bg-primary);
    transition: background-color 0.3s ease;
}

.what-i-do h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.content-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--accent-teal);
    transition: background-color 0.3s ease;
}

.content-card h3 {
    color: var(--deep-blue);
    margin-bottom: 1.5rem;
}

.content-card ul {
    list-style: none;
}

.content-card li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.content-card li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-teal);
    font-weight: var(--font-weight-bold);
}

/* Q & A Section */
.qa {
    padding: var(--section-padding);
    background: var(--bg-secondary);
    transition: background-color 0.3s ease;
}

.qa h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.qa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.qa-item {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.qa-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--shadow-color);
}

.qa-item h3 {
    color: var(--deep-blue);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.qa-item p {
    margin: 0;
}

/* Contact Section */
.contact {
    padding: var(--section-padding);
    background: var(--bg-primary);
    transition: background-color 0.3s ease;
}

.contact h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.contact > .container > p {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
}

.contact-info {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 12px;
    transition: background-color 0.3s ease;
}

.contact-form {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 12px;
    transition: background-color 0.3s ease;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 1rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-teal);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

.submit-button {
    background: var(--accent-teal);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: var(--font-weight-semibold);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-button:hover {
    background: var(--deep-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.submit-button:disabled {
    background: var(--soft-grey);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Footer */
footer {
    background: var(--deep-blue);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

footer p {
    margin: 0;
    color: #ffffff;
}

/* Success/Error Messages */
.message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: var(--font-weight-medium);
}

.message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--nav-bg);
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 4px 12px var(--shadow-color);
        transform: translateX(-100%);
        transition: transform 0.3s ease, background-color 0.3s ease;
        display: flex;
        z-index: 999;
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-menu li {
        margin-bottom: 1rem;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .theme-toggle {
        margin-left: 0.5rem;
        width: 35px;
        height: 35px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 1.25rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .content-grid,
    .qa-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .hero {
        padding: calc(70px + 2rem) 0 2rem;
    }
    
    :root {
        --section-padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .content-card,
    .qa-item,
    .contact-info,
    .contact-form {
        padding: 1.5rem;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
}