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

body {
    background: #fff;
    color: #333;
    font-family: system-ui, sans-serif;
    line-height: 1.6;
    transition: all 0.3s ease;
}

body.dark {
    background: #1a1a1a;
    color: #fff;
}

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

.header {
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

body.dark .header {
    background: #2d2d2d;
    border-color: #444;
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: inherit;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.nav-link:hover {
    background: #007bff;
    color: white;
}

.nav-link.active {
    background: #007bff;
    color: white;
}

.main {
    padding: 2rem 0;
}

.hero {
    text-align: center;
    padding: 4rem 1rem;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    color: #666;
}

body.dark .hero p {
    color: #aaa;
}

.section {
    margin-bottom: 4rem;
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #007bff;
    text-align: center;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid #dee2e6;
    transition: transform 0.2s;
}

body.dark .card {
    background: #2d2d2d;
    border-color: #444;
}

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

.card img {
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    width: 100%;
    height: 290px;
    object-fit: cover;
}

.card h3 {
    margin-bottom: 1rem;
    color: #007bff;
}

.card ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.card li {
    margin-bottom: 0.5rem;
}

.button {
    background: #007bff;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.2s;
}

.button:hover {
    background: #0056b3;
    transform: scale(1.05);
}

.button.secondary {
    background: transparent;
    border: 2px solid #007bff;
    color: #007bff;
}

.button.secondary:hover {
    background: #007bff;
    color: white;
}

body.dark .button.secondary {
    color: #6aa2ff;
    border-color: #6aa2ff;
}

body.dark .button.secondary:hover {
    background: #6aa2ff;
    color: #1a1a1a;
}

.modal {
    border: none;
    border-radius: 1rem;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    background: white;
    color: #333;
}

body.dark .modal {
    background: #2d2d2d;
    color: #fff;
}

.modal::backdrop {
    background: rgba(0, 0, 0, 0.5);
}

.modal-content h2 {
    margin-bottom: 1.5rem;
    color: #007bff;
    text-align: center;
}

body.dark .modal-content h2 {
    color: #6aa2ff;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: inherit;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #dee2e6;
    border-radius: 0.5rem;
    background: white;
    color: #333;
    font-size: 1rem;
    transition: all 0.3s ease;
}

body.dark .form-group input,
body.dark .form-group select,
body.dark .form-group textarea {
    background: #1a1a1a;
    border-color: #444;
    color: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

body.dark .form-group input:focus,
body.dark .form-group select:focus,
body.dark .form-group textarea:focus {
    border-color: #6aa2ff;
    box-shadow: 0 0 0 3px rgba(106, 162, 255, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

body.dark .form-group input::placeholder,
body.dark .form-group textarea::placeholder {
    color: #666;
}

.form-group small {
    color: #666;
    font-size: 0.875rem;
}

body.dark .form-group small {
    color: #aaa;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-content img {
    border-radius: 1rem;
    width: 100%;
}

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

.achievements {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.achievement .number {
    display: block;
    font-size: 3rem;
    font-weight: bold;
    color: #007bff;
}

body.dark .achievement .number {
    color: #6aa2ff;
}

.achievement .text {
    display: block;
    color: #666;
    font-size: 1.1rem;
}

body.dark .achievement .text {
    color: #aaa;
}

.video-container {
    text-align: center;
    margin: 2rem 0;
}

.video-container video {
    border-radius: 1rem;
    max-width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

body.dark .video-container video {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.theme-toggle {
    background: none;
    border: 2px solid #007bff;
    border-radius: 0.5rem;
    padding: 0.5rem;
    cursor: pointer;
    font-size: 1.25rem;
    margin-left: auto;
    color: inherit;
    transition: all 0.2s;
}

body.dark .theme-toggle {
    border-color: #6aa2ff;
}

.theme-toggle:hover {
    background: #007bff;
    color: white;
}

body.dark .theme-toggle:hover {
    background: #6aa2ff;
    color: #1a1a1a;
}

@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .theme-toggle {
        margin-left: 0;
    }
}