:root {
    /* Light Mode Variables */
    --bg-color: #f8fafc;
    --text-color: #0f172a;
    --text-muted: #475569;
    --card-bg: rgba(255, 255, 255, 0.7);
    --card-border: rgba(255, 255, 255, 0.5);
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --blob-1: #3b82f6;
    --blob-2: #10b981; /* Changed from #8b5cf6 to modern green */
    --footer-bg: #0f172a;
    --footer-text: #f8fafc;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] {
    /* Dark Mode Variables */
    --bg-color: #0f172a;
    --text-color: #f8fafc;
    --text-muted: #94a3b8;
    --card-bg: rgba(30, 41, 59, 0.7);
    --card-border: rgba(255, 255, 255, 0.1);
    --accent: #60a5fa;
    --accent-hover: #93c5fd;
    --blob-1: #1d4ed8;
    --blob-2: #059669; /* Changed from #6d28d9 to modern green */
    --footer-bg: #020617;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes blobFloat {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

/* Base class before javascript starts observing */
.fade-el {
    opacity: 0;
    transform: translateY(30px);
}
.fade-el.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}
.fade-el.fade-in {
    transform: translateY(0);
    animation: fadeIn 1s ease forwards !important;
}


.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

/* Typography */
h1, h2, h3 { font-weight: 800; line-height: 1.2; }
p { font-weight: 300; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    background: linear-gradient(135deg, var(--accent), var(--blob-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.blob {
    position: absolute;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.5;
    animation: blobFloat 15s infinite alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: var(--blob-1);
    border-radius: 50%;
}

.blob-2 {
    bottom: -20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: var(--blob-2);
    border-radius: 50%;
    animation-delay: -5s;
}

.hero-content { z-index: 10; padding: 0 24px; }

.main-logo { height: 240px; object-fit: contain; margin-bottom: 2rem; }
.light-logo { display: inline-block; }
.dark-logo { display: none; }

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

.hero-title { font-size: 4rem; margin-bottom: 1rem; color: var(--text-color); }
.hero-subtitle { font-size: 1.5rem; color: var(--text-muted); max-width: 600px; margin: 0 auto; }

/* Theme Toggle */
.theme-toggle {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 100;
}
.theme-toggle:hover { transform: scale(1.1); box-shadow: var(--shadow-sm); }
.sun-icon { display: none; width: 24px; height: 24px; }
.moon-icon { display: block; width: 24px; height: 24px; }
[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 30px;
    text-decoration: none;
    color: inherit;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.5s ease;
    display: flex;
    flex-direction: column;
}

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

.card-logo-wrapper {
    height: 80px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.placeholder-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-color);
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(16, 185, 129, 0.2));
    padding: 10px 20px;
    border-radius: 12px;
    border: 1px solid var(--card-border);
}

.brand-logo { max-height: 50px; width: auto; object-fit: contain; }

.card-title { font-size: 1.5rem; margin-bottom: 10px; }
.card-description { color: var(--text-muted); margin-bottom: 20px; flex-grow: 1; }
.card-link {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}
.card:hover .card-link { color: var(--accent-hover); }

/* About Section */
.about-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 30px;
    padding: 60px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    transition: background 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

.about-card p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Footer */
footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 60px 24px;
    text-align: center;
    margin-top: 80px;
}

.footer-logo {
    height: 40px;
    object-fit: contain;
    margin-bottom: 20px;
    opacity: 0.8;
}

/* Media Queries */
@media (max-width: 768px) {
    .container { padding: 60px 20px; }
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .about-card { padding: 30px; }
    .main-logo { height: 160px; }
    .blob { width: 300px; height: 300px; }
}
