:root {
    /* Light mode colors (default) */
    --background-color: #F4D58D;
    --text-color: #001427;
    --card-bg-color: #fff;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --accent-color: #663399;
    --hover-color: #4d2673;
    --border-color: rgba(0, 20, 39, 0.1);
}

[data-theme="dark"] {
    --background-color: #001427;
    --text-color: #F4D58D;
    --card-bg-color: #001f3d;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --accent-color: #9966cc;
    --hover-color: #b088e0;
    --border-color: rgba(244, 213, 141, 0.2);
}

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

body {
    font-family: 'Cabin', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Logo visibility based on theme */
.light-mode-logo {
    display: block;
}

.dark-mode-logo {
    display: none;
}

[data-theme="dark"] .light-mode-logo {
    display: none;
}

[data-theme="dark"] .dark-mode-logo {
    display: block;
}

/* Navigation Drawer */
.nav-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: var(--accent-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--card-shadow);
    transition: background-color 0.3s;
}

.nav-toggle:hover {
    background: var(--hover-color);
}

.nav-drawer {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100vh;
    background: var(--card-bg-color);
    z-index: 1001;
    transition: left 0.3s ease;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.nav-drawer.open {
    left: 0;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.drawer-logo {
    height: 40px;
    width: auto;
}

.drawer-close {
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    color: var(--text-color);
    transition: background-color 0.2s;
}

.drawer-close:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.drawer-menu {
    list-style: none;
    flex: 1;
    padding: 20px 0;
}

.drawer-menu li {
    margin-bottom: 5px;
}

.drawer-menu li a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: var(--text-color);
    transition: background-color 0.2s;
}

.drawer-menu li a:hover,
.drawer-menu li.active a {
    background-color: rgba(102, 51, 153, 0.1);
}

.drawer-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.social-links a {
    color: var(--text-color);
    font-size: 20px;
    transition: color 0.2s;
}

.social-links a:hover {
    color: var(--accent-color);
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.theme-label {
    font-size: 14px;
    margin-right: 10px;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

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

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

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

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

input:focus + .slider {
    box-shadow: 0 0 1px var(--accent-color);
}

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

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 900;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s;
}

.overlay.visible {
    visibility: visible;
    opacity: 1;
}

/* Main Content */
.main-content {
    margin: 0 auto;
    max-width: 1200px;
    width: 100%;
    padding: 20px;
    flex: 1;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 80px 20px 60px;
    margin-bottom: 40px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content img {
    width: 100%;
}

.hero-logo {
    height: 120px;
    width: auto;
    margin: 0 auto;
    margin-bottom: 30px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

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

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: var(--hover-color);
}

.cta-button.secondary {
    background-color: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

.cta-button.secondary:hover {
    background-color: rgba(102, 51, 153, 0.1);
}

/* Features Section */
.features {
    padding: 40px 0;
}

h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    text-align: center;
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--card-bg-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: transform 0.3s;
}

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

.feature-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

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

/* About Preview Section */
.about-preview {
    padding: 60px 0;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-preview p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.learn-more {
    display: inline-block;
    margin-top: 20px;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    position: relative;
}

.learn-more::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.learn-more:hover::after {
    transform: scaleX(1);
}

/* Footer */
.site-footer {
    background-color: #001427; /* Dark mode color in light mode */
    color: #F4D58D; /* Light mode color in dark mode */
    padding: 40px 20px;
    margin-top: 40px;
}

[data-theme="dark"] .site-footer {
    background-color: #F4D58D; /* Light mode color in dark mode */
    color: #001427; /* Dark mode color in light mode */
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.company-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 20px;
}

.company-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
    border-radius: 50%;
    object-fit: cover;
}

.footer-links {
    flex: 1;
    min-width: 200px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.footer-links a {
    text-decoration: none;
    color: #F4D58D; /* Light mode color in dark footer */
    transition: color 0.2s;
}

[data-theme="dark"] .footer-links a {
    color: #001427; /* Dark mode color in light footer */
}

.footer-links a:hover {
    color: var(--accent-color);
}

.social-footer {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex: 1;
    min-width: 200px;
}

.social-footer a {
    color: #F4D58D; /* Light mode color in dark footer */
    font-size: 24px;
    transition: color 0.2s;
}

[data-theme="dark"] .social-footer a {
    color: #001427; /* Dark mode color in light footer */
}

.social-footer a:hover {
    color: var(--accent-color);
}

.copyright {
    text-align: center;
    margin-top: 10px;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Media Queries */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .feature-cards {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-links ul {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 10px 40px;
    }
    
    .hero-logo {
        height: 80px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    h2 {
        font-size: 1.6rem;
    }
}
