/* Modern Color Scheme */
:root {
    --primary-purple: #4c4dcf;
    --light-purple: #7a7beb;
    --dark-blue: #1a2b4a;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --white: #ffffff;
    --text-dark: #333333;
    
    /* Dark mode variables */
    --bg-dark: #121212;
    --text-light: #f5f5f5;
    --card-dark: #1e1e1e;
    --border-dark: #333333;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
    transition: background-color 0.3s ease;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-gray);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease;
}

.dark-mode body {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

/* Container Layout */
.container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    transition: background-color 0.3s ease;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Header Styles */
header {
    width: 100%;
    padding: 1.5rem 0;
    text-align: center;
    background-color: var(--white);
    transition: background-color 0.3s ease;
}

.dark-mode header {
    background-color: var(--card-dark);
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    height: 40px;
    width: auto;
    transition: filter 0.3s ease;
}

.dark-mode .logo {
    filter: brightness(0.8) contrast(1.2);
}

h1 {
    font-size: 1.8rem;
    color: var(--dark-blue);
    margin: 0;
    font-weight: 700;
    transition: color 0.3s ease;
}

.dark-mode h1 {
    color: var(--text-light);
}

/* Hero Section */
.hero {
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 10px;
    box-sizing: border-box;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
    line-height: 1.2;
}

.dark-mode h2 {
    color: var(--text-light);
}

.subtitle {
    font-size: 1.3rem;
    color: var(--dark-blue);
    margin-bottom: 2rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.dark-mode .subtitle {
    color: var(--text-light);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 200px;
    text-align: center;
    min-height: 48px;
    box-sizing: border-box;
    white-space: nowrap;
}

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

.write-btn {
    background-color: var(--dark-blue);
    color: var(--white);
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.dark-mode .action-btn:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Mission Box */
.mission-box {
    background-color: var(--primary-purple);
    padding: 2rem;
    border-radius: 12px;
    color: white;
    width: calc(100% - 40px);
    max-width: 800px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.mission-box blockquote {
    font-style: italic;
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.7;
}

.signature {
    text-align: right;
    font-weight: 600;
    margin-top: 1.5rem;
    font-style: normal;
}

/* Divider */
.divider {
    height: 1px;
    background-color: var(--medium-gray);
    margin: 3rem auto;
    width: 80%;
    max-width: 800px;
    border: none;
    transition: background-color 0.3s ease;
}

.dark-mode .divider {
    background-color: var(--border-dark);
}

/* Footer */
footer {
    width: 100%;
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 2.5rem 0;
    margin-top: auto;
    transition: background-color 0.3s ease;
}

.dark-mode footer {
    background-color: var(--card-dark);
}

footer nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

footer a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--light-purple);
}

.copyright {
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    position: fixed;
    top: 25px;
    right: 25px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-dark);
    padding: 10px;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: all 0.3s ease;
}

.dark-mode-toggle:hover {
    background: rgba(0, 0, 0, 0.1);
}

.dark-mode .dark-mode-toggle {
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.1);
}

.dark-mode .dark-mode-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.dark-mode-toggle .fa-sun {
    display: none;
}

.dark-mode-toggle .fa-moon {
    display: inline;
}

.dark-mode .dark-mode-toggle .fa-sun {
    display: inline;
    color: #FFD700;
}

.dark-mode .dark-mode-toggle .fa-moon {
    display: none;
}

/* Responsive Design - Mobile First Approach */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 0 10px;
        margin: 1.5rem auto;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .action-btn {
        width: 100%;
        max-width: 280px;
        padding: 1rem;
    }
    
    .mission-box {
        width: calc(100% - 30px);
        padding: 1.5rem;
    }
    
    .mission-box blockquote {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .divider {
        margin: 2rem auto;
        width: 90%;
    }
}

@media (max-width: 480px) {
    header {
        padding: 1rem 0;
    }
    
    .logo {
        height: 35px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .dark-mode-toggle {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .action-btn {
        min-width: auto;
        width: 100%;
    }
}