/* ==========================================================================
   RESET, BASE STYLES & COMMON UTILITIES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-primary);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.02) 0%, transparent 40%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-8);
}

/* Typography styles */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
    cursor: pointer;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Stylized Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
    border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-emerald);
}

/* Section Header Utility */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-12) auto;
}

.section-subtitle {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-emerald);
    font-weight: 600;
    margin-bottom: var(--space-2);
    display: block;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: var(--space-4);
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Text glow */
.text-glow {
    background: linear-gradient(135deg, var(--accent-emerald), var(--accent-mint));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Focus Ring Accessibility */
*:focus-visible {
    outline: 2px solid var(--accent-emerald);
    outline-offset: 4px;
}

/* Buttons System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem var(--space-6);
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition-spring);
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
}

.btn:active {
    transform: scale(0.96) !important;
}

.btn-primary {
    background: var(--accent-emerald);
    color: #020813;
}

.btn-primary:hover {
    background: var(--accent-mint);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
    background: rgba(16, 185, 129, 0.05);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--border-color-strong);
    color: var(--accent-mint);
}

.btn-outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text-secondary);
}

.btn-outline:hover {
    border-color: var(--accent-emerald);
    color: var(--text-primary);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-mini {
    padding: 0.4rem var(--space-3);
    font-size: 0.8rem;
    border-radius: 6px;
}

/* Cards System */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: var(--space-6);
    transition: var(--transition-spring);
}

.glass-card:hover {
    border-color: var(--border-color-strong);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

/* Global Form Controls Styling */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.75rem var(--space-4);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-fast);
    box-sizing: border-box;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-emerald);
    background: rgba(16, 185, 129, 0.02);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.15);
}

select option {
    background-color: #080b11;
    color: var(--text-primary);
}

input[type="checkbox"] {
    accent-color: var(--accent-emerald);
    cursor: pointer;
}
