:root {
    /* Light Mode */
    --bg-color: #ffffff;
    --text-color: #111827;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary: #64748b;
    --accent: #f59e0b;
    --border: #e2e8f0;
    --card-bg: #f8fafc;
    --nav-bg: rgba(255, 255, 255, 0.8);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme='dark'] {
    /* Dark Mode */
    --bg-color: #0f172a;
    --text-color: #f8fafc;
    --primary: #3b82f6;
    --primary-hover: #60a5fa;
    --secondary: #94a3b8;
    --accent: #fbbf24;
    --border: #1e293b;
    --card-bg: #1e293b;
    --nav-bg: rgba(15, 23, 42, 0.8);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
    overflow-x: hidden;
    padding-top: 90px; /* Fix for fixed header overlap */
}

/* Premium Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: var(--transition);
}

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

.logo {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--text-color);
    text-decoration: none;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--primary);
    font-weight: 400;
    font-size: 1.2rem;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem;
    opacity: 0.7;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

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

.nav-links a:hover::after {
    width: 100%;
}

.theme-toggle {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 0.7rem;
    border-radius: 12px;
    cursor: pointer;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.theme-toggle:hover {
    border-color: var(--primary);
    transform: rotate(15deg);
}

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

@keyframes scrollClientCarousel {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-200px * 25)); } /* 200px per slide roughly */
}

section {
    padding: 120px 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero {
    min-height: calc(100vh - 90px); /* Adjust for header padding */
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0.1;
    z-index: -1;
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 2rem;
    letter-spacing: -2px;
}

.hero-content p {
    font-size: 1.4rem;
    color: var(--secondary);
    max-width: 650px;
    margin-bottom: 3rem;
    font-weight: 400;
}

/* Button Premium Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 2.5rem;
    border-radius: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: white !important;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.3);
}

/* Card Enhancements */
.card {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid var(--border);
    transition: var(--transition);
    backdrop-filter: blur(4px);
}

.card:hover {
    transform: translateY(-12px);
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(37,99,235,0.05) 100%);
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
}

/* Typography */
h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

footer {
    padding: 6rem 0;
    background: #000000;
    color: #ffffff;
    border-top: 1px solid #333;
    text-align: left;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    max-height: 50px;
    width: auto;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.8rem;
}

.footer-links a:hover {
    color: #ffffff;
}

.search-container {
    margin-top: 2rem;
    position: relative;
    max-width: 300px;
}

.search-container input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    background: #111;
    border: 1px solid #333;
    border-radius: 8px;
    color: white;
    font-size: 0.85rem;
}

.search-container i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.header-logo {
    height: 73px; /* Increased by ~30% from 56px */
    width: auto;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
}

.mobile-toggle:hover {
    color: var(--primary);
}

/* Form Styling */
input, select, textarea {
    font-family: inherit;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    padding-right: 2.5rem !important;
}

@media (max-width: 600px) {
    #deletion-form div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-toggle { display: block; }
    
    /* Shrink the massive inline logo text so the hamburger button fits */
    .header-logo { height: 45px !important; }
    .logo { gap: 0.4rem !important; }
    .logo > div > span:nth-child(1) { font-size: 0.85rem !important; letter-spacing: 0 !important; }
    .logo > div > span:nth-child(2) { font-size: 1.1rem !important; margin-top: -2px !important; }
    .logo > div > span:nth-child(2) > span { font-size: 1.3rem !important; }
    
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 90px;
        left: 0;
        width: 100%;
        background: var(--nav-bg);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        padding: 2rem;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        text-align: center;
        gap: 1.5rem;
    }

    .nav-links.active {
        display: flex;
    }

    .hero-content h1 { font-size: 2.8rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}
