:root {
    --background-color: #ffffff;
    --background-color-rgb: 255, 255, 255;
    --text-color: #1d1d1f;
    --secondary-text-color: #86868b;
    --accent-color: #0071e3;
    --border-color: #d2d2d7;
    --card-background: #f5f5f7;
    --hero-text-color: #1d1d1f;
}

[data-theme="dark"] {
    --background-color: #000000;
    --background-color-rgb: 0, 0, 0;
    --text-color: #f5f5f7;
    --secondary-text-color: #a1a1a6;
    --accent-color: #2997ff;
    --border-color: #424245;
    --card-background: #2d2d30;
    --hero-text-color: #f5f5f7;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding: 0 22px;
}

.secondary-text {
    color: var(--secondary-text-color);
}

/* Utility Classes */
.mobile-break {
    display: none;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background-color: rgba(var(--background-color-rgb), 0.8);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

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

.logo img {
    height: 32px;
    transition: opacity 0.3s ease;
}

.light-logo {
    display: none;
}

.dark-logo {
    display: none;
}

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

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

/* Theme Switch */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
}

.theme-switch {
    display: inline-block;
    height: 28px;
    position: relative;
    width: 50px;
}

.theme-switch input {
    display: none;
}

.slider {
    background-color: #ccc;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
    border: 1px solid var(--border-color);
}

.slider:before {
    background-color: white;
    bottom: 3px;
    content: "";
    height: 20px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

input:checked + .slider {
    background-color: #0071e3;
}

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

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

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 64px;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--hero-text-color);
    transition: color 0.3s ease;
    animation: fadeIn 1s ease-out forwards;
}

.period {
    color: var(--accent-color);
}

.comma {
    color: var(--text-color);
}

/* Section Styling */
section {
    padding: 80px 0;
    border-bottom: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
}

section:first-of-type {
    border-top: none;
}

section h2 {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 30px;
    letter-spacing: -0.025em;
}

/* About Section */
.about-content p {
    font-size: 17px;
    line-height: 1.4;
    margin-bottom: 20px;
    color: var(--secondary-text-color);
}

/* Products Section */
.product-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--card-background);
    border-radius: 18px;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.product-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
}

.product-card p {
    color: var(--secondary-text-color);
    margin-bottom: 20px;
    font-size: 17px;
    line-height: 1.4;
}

.product-card a {
    display: inline-block;
    color: var(--accent-color);
    font-weight: 500;
    font-size: 17px;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.product-card a:hover {
    opacity: 0.7;
}

/* Jobs Section */
.job-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.job-category h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
}

.job-category ul {
    list-style: none;
}

.job-category li {
    margin-bottom: 10px;
}

.job-category a {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 17px;
    transition: opacity 0.3s ease;
}

.job-category a:hover {
    opacity: 0.7;
}

.apply-note {
    margin-top: 2rem;
    font-style: italic;
    color: var(--secondary-text-color);
}

.apply-note a {
    color: var(--accent-color);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.apply-note a:hover {
    opacity: 0.7;
}

/* Contact Section */
.contact-info {
    font-size: 17px;
    line-height: 1.5;
}

.contact-info p {
    margin-bottom: 15px;
}


.contact-info a {
    color: var(--accent-color);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.contact-info a:hover {
    opacity: 0.7;
}

/* Footer */
footer {
    padding: 30px 0;
    text-align: center;
    font-size: 14px;
    color: var(--secondary-text-color);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.about, .products, .jobs, .contact {
    opacity: 0;
}

.about.visible, .products.visible, .jobs.visible, .contact.visible {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 48px;
    }

    .hero h1 .mobile-break {
        display: block;
    }
    
    section h2 {
        font-size: 36px;
    }
    
    .about-content p {
        font-size: 18px;
    }
    
    section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 36px;
    }
    
    section h2 {
        font-size: 28px;
    }
    
    .about-content p {
        font-size: 16px;
    }
    
    .product-card {
        padding: 20px;
    }
    
    section {
        padding: 40px 0;
    }
}
