/* ==========================================================================
   Global CSS Variables
   ========================================================================== */
:root {
    /* Favicon
    --icon-url: url('image/icon.png');
    --icon-size: 32px;
    --icon-type: image/png;
    --icon-rel: icon; */

    /* Colors - Used across all pages */
    --primary-bg: #0a0a0a;
    --secondary-bg: #1a1a1a;
    --accent-blue: #00c6ff;
    --accent-blue-dark: #0072ff;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --border-color: #333;

    /* Spacing - Used for consistent layout */
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;

    /* Component-specific variables */
    --card-border-radius: 1.5rem;
    --button-border-radius: 9999px;
    --input-border-radius: 0.5rem;

    /* Org Chart specific variables - Used in about.html */
    --org-chart-line-color: var(--accent-blue);
    --org-chart-card-bg: var(--secondary-bg);
    --org-chart-card-border: var(--border-color);
    --org-chart-text-primary: var(--text-primary);
    --org-chart-text-accent: var(--accent-blue);
    --org-chart-text-secondary: var(--text-secondary);
    --org-chart-spacing-sm: var(--spacing-sm);
    --org-chart-spacing-md: var(--spacing-md);
    --org-chart-spacing-lg: var(--spacing-lg);
    --org-chart-line-width: 2px;
    --org-chart-line-height: 2rem;
    --org-chart-card-min-width: 160px;
    --org-chart-card-max-width: 200px;
}

/* ==========================================================================
   Base Styles - Used across all pages
   ========================================================================== */
/* html {
    --favicon: var(--icon-url);
} */

/* ==========================================================================
   Animation Utilities
   ========================================================================== */

/* Keyframe Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Animation Classes */
.animate-fadeIn { animation: fadeIn 0.8s ease-out forwards; }
.animate-slideInUp { animation: slideInUp 1s ease-out forwards; opacity: 0; }

/* Common Layout Components */
.header-main {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 50;
    padding: 1rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1280px;
    margin: auto;
}

.nav-menu {
    display: none; /* Hidden by default, shown on md+ */
}

@media (min-width: 768px) {
    .nav-menu { display: flex; gap: 2rem; }
}

.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 40;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    font-size: 1.25rem;
}

/* Common Text Styles */
.heading-primary {
    font-size: 2.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .heading-primary {
        font-size: 3rem;
    }
}

.heading-secondary {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    margin: 2rem 0 1rem;
}

.blur-section {
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
}

body {
    background-color: #0a0a0a;
    background-image: url('../img/black.webp');
    background-attachment: fixed;
    background-size: cover;
    color: rgb(229, 231, 235); /* text-gray-200 */
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

main {
    background-color: #111827;
}

/* Container Styles */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 768px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Common Text Styles */
@font-face {
    font-family: 'ExcratchThin';
    src: url('../fonts/excratch-thin.woff2') format('woff2');
}

.text-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-left: 0.75rem;
}

/* Common Button Styles */
.button-menu {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (min-width: 768px) {
    .button-menu { display: none; }
    .button-menu:focus { outline: none; }
}

/* Common Image Styles */
.img-feature {
    width: 100%;
    height: 16rem;
    object-fit: cover;
    border-radius: 1rem;
    margin-bottom: 2rem;
}

/* Common Link Styles */
.link-primary {
    color: rgb(34, 211, 238); /* text-cyan-400 */
    font-weight: 500;
    transition: color 0.3s;
}

.link-primary:hover {
    color: rgb(59, 130, 246); /* text-blue-500 */
}

/* Common Grid Layouts */
.grid-main {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .grid-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.grid-stats {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .grid-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Common Flex Layouts */
.flex-center { display: flex; align-items: center; }

/* Navigation - Used in all pages */
.navbar-link {
    position: relative;
    padding-bottom: 0.25rem;
    transition: color 0.3s ease;
}

.navbar-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: linear-gradient(to right, var(--accent-blue), var(--accent-blue-dark));
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-link:hover::after {
    width: 100%;
}

/* Hero Section - Used in all pages */
.hero-background {
    background-color: rgba(10, 10, 10, 0.6);
}

/* Buttons - Used in multiple pages */
.btn-primary {
    background: linear-gradient(to right, #2563eb, #38bdf8);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
    transform: translateY(-3px);
}

/* ==========================================================================
   Utility Components - Used across all pages
   ========================================================================== */

/* Scroll to Top Button */
#scrollToTopBtn {
    display: none;
    position: fixed;
    bottom: var(--spacing-md);
    right: var(--spacing-md);
    z-index: 99;
    background-color: var(--accent-blue);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    line-height: 50px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 198, 255, 0.4);
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

#scrollToTopBtn:hover {
    background-color: var(--accent-blue-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 114, 255, 0.6);
}

/* ==========================================================================
   Form Components - Used in contact.html
   ========================================================================== */
.form-input {
    background-color: var(--secondary-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: var(--input-border-radius);
    padding: 0.75rem 1rem;
    width: 100%;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 198, 255, 0.3);
}

/* Logo Component - Used in all pages */
.logo-header {
    width: 40px; height: 40px;
    background-image: url('../img/icon.webp');
    background-size: cover;
}

.logo-hero {
    width: 100px; height: 100px;
    background-image: url('../img/icon.webp');
    background-size: cover;
    margin: 0 auto 1.5rem auto;
}

/* ==========================================================================
   Card Components
   ========================================================================== */
/* Common Card Styles */
.card-base {
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    border-radius: 0.75rem;
    padding: 2.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
}
.card-base:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card-stat {
    text-align: center;
}

.stat-value {
    font-size: 1.875rem;
    font-weight: 700;
    color: rgb(34, 211, 238);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: rgb(209, 213, 219);
}

/* Technology Tags */
.tech-tag {
    padding: 0.25rem 0.75rem;
    background-color: rgb(31, 41, 55);
    border-radius: 9999px;
    font-size: 0.875rem;
}

/* Common Footer Styles */
.footer-main {
    background-color: #111827;
    color: #9ca3af;
    padding: 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.footer-link {
    color: white;
}

.footer-link:hover {
    color: rgb(199, 204, 214); /* text-gray-200 */
}

.footer-separator {
    color: rgb(75, 85, 99); /* text-gray-600 */
    margin: 0 0.5rem;
}