/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS Custom Properties - Design System */
:root {
    /* Light mode */
    --background: hsl(0 0% 100%);
    --foreground: hsl(0 0% 3.9%);
    --primary: hsl(0 0% 9%);
    --secondary: hsl(0 0% 96.1%);
    --muted: hsl(0 0% 45.1%);
    --border: hsl(0 0% 89.8%);

    /* Accent - Blue theme */
    --accent: hsl(221 83% 53%);
    --accent-hover: hsl(221 83% 45%);
    --accent-light: hsl(221 83% 95%);

    /* Typography */
    --font-family-primary: 'Gidole', 'DM Sans', sans-serif;
    --font-family-secondary: 'DM Sans', sans-serif;

    /* Layout */
    --border-radius: 0.5rem;
    --container-max-width: 1200px;
    --section-padding: 2.5rem 0;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* Dark mode */
[data-theme="dark"] {
    --background: hsl(0 0% 3.9%);
    --foreground: hsl(0 0% 98%);
    --primary: hsl(0 0% 98%);
    --secondary: hsl(0 0% 14.9%);
    --muted: hsl(0 0% 63.9%);
    --border: hsl(0 0% 14.9%);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --background: hsl(0 0% 3.9%);
        --foreground: hsl(0 0% 98%);
        --primary: hsl(0 0% 98%);
        --secondary: hsl(0 0% 14.9%);
        --muted: hsl(0 0% 63.9%);
        --border: hsl(0 0% 14.9%);
    }
}

/* Base styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-secondary);
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* Typography */
h1 { 
    font-size: 2.5rem; 
    font-weight: 700; 
    line-height: 1.2; 
    margin-bottom: 0.5rem;
}

h2 { 
    font-size: 2rem; 
    font-weight: 600; 
    margin-bottom: 1.5rem; 
}

h3 { 
    font-size: 1.875rem; 
    font-weight: 600; 
    margin-bottom: 1rem;
}

h4 { 
    font-size: 1.25rem; 
    font-weight: 600; 
    margin-bottom: 1rem; 
}

.section-title {
    text-align: center;
    color: var(--foreground);
    position: relative;
    margin-bottom: 2rem;
}

.section-title::after {
    content: '';
    width: 100px;
    height: 3px;
    background: var(--accent);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* Header */
.header {
    background: var(--background);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 40px;
    width: auto;
    max-width: 200px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--foreground);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    background: none;
    border: 2px solid var(--border);
    color: var(--foreground);
    padding: 0.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

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

.btn-disabled {
    background: var(--secondary);
    color: var(--muted);
    border: 2px solid var(--border);
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: not-allowed;
}

/* Hero Section */
.hero {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--background) 0%, var(--secondary) 100%);
}

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

.hero-title {
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--foreground), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.notice-box {
    background-color: var(--accent-light);
    border-left: 4px solid var(--accent);
    padding: 0.75rem 1.25rem;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--accent);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Services Section */
.services {
    padding: var(--section-padding);
}

.service-section {
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
}

.single-card {
    max-width: 400px;
    width: 100%;
}

.service-divider {
    margin: 3rem 0 2rem 0;
    position: relative;
    text-align: center;
}

.service-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
    z-index: 1;
}

.divider-text {
    background: var(--background);
    padding: 0 1.5rem;
    color: var(--accent);
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    z-index: 2;
}

.management-system {
    background: var(--secondary);
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 2px solid var(--border);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    grid-template-rows: 1fr;
    gap: 2rem;
    align-items: end;
}

.service-card {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
}

.service-card.active:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.service-card.disabled {
    opacity: 0.6;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--accent);
    font-size: 1.5rem;
}

.service-card.disabled .card-icon {
    background: var(--secondary);
    color: var(--muted);
}

.card-title {
    margin-bottom: 1rem;
    color: var(--foreground);
}

.card-description {
    color: var(--muted);
    margin-bottom: 1.5rem;
    line-height: 1.5;
    font-size: 0.95rem;
}

.coming-soon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.service-card.disabled .coming-soon {
    background: var(--muted);
}

/* About Section */
.about {
    padding: var(--section-padding);
    background: var(--secondary);
}

.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content h2 {
    margin-bottom: 1.5rem;
}

.about-content p {
    color: var(--muted);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: grid;
    grid-template-columns: 25px 1fr;
    gap: 1rem;
    align-items: start;
}

.contact-item i {
    width: 20px;
    text-align: center;
    color: var(--accent);
    margin-top: 0.2rem;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: 300px;
    height: 300px;
    background: var(--accent-light);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 4rem;
}

/* Footer */
.footer {
    background: var(--primary);
    color: var(--background);
    padding: 2rem 0;
}

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

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--background);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --section-padding: 2rem 0;
    }
    
    .nav {
        display: none;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .two-column {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .about-image {
        order: -1;
    }
    
    .image-placeholder {
        width: 200px;
        height: 200px;
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-disabled {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Grid utilities */
.grid-auto-fit {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* Animation classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus styles for accessibility */
.btn-primary:focus,
.btn-secondary:focus,
.theme-toggle:focus,
.nav-link:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .service-card {
        border-width: 2px;
    }
    
    .btn-primary,
    .btn-secondary {
        border-width: 2px;
    }
}