/* ========================================
   GLOBAL STYLES
   Base styles and CSS variables
   ======================================== */

:root {
    /* Color Palette - Warm, sophisticated scheme */
    --primary-color: #2d3748;        /* Deep charcoal blue */
    --secondary-color: #4a5568;      /* Slate gray */
    --accent-color: #d97706;         /* Warm amber */
    --accent-light: #f59e0b;         /* Light amber */
    --text-color: #1a202c;           /* Almost black */
    --text-light: #718096;           /* Cool gray */
    --background-color: #f7f3f0;     /* Warm off-white */
    --white: #fefefe;                /* Soft white */
    --card-background: #ffffff;      /* Pure white for cards */
    --border-color: #e2d9d1;         /* Warm beige border */
    --shadow: rgba(45, 55, 72, 0.12);
    --shadow-dark: rgba(45, 55, 72, 0.25);
    
    /* Typography */
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-serif: Georgia, 'Times New Roman', serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: var(--spacing-sm);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
    /* Remove tap highlight on mobile */
    -webkit-tap-highlight-color: transparent;
}

a:hover {
    color: var(--primary-color);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Mobile container adjustment */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
    padding-top: 80px; /* Space for fixed navbar */
}

/* Mobile main content adjustment */
@media (max-width: 768px) {
    .main-content {
        padding-top: 70px;
    }
}

/* Section Titles */
.section-title {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    font-size: 2.5rem;
    position: relative;
    padding-bottom: var(--spacing-sm);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-color);
}

/* Buttons */
button, .button {
    cursor: pointer;
    border: none;
    padding: var(--spacing-xs) var(--spacing-md);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
    /* Better touch targets for mobile */
    min-height: 44px;
    /* Prevent text selection on buttons */
    -webkit-user-select: none;
    user-select: none;
    /* Remove tap highlight on mobile */
    -webkit-tap-highlight-color: transparent;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Mobile button adjustments */
@media (max-width: 768px) {
    button, .button {
        min-height: 48px;
        font-size: 1rem;
    }
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: var(--spacing-md);
}

.footer p {
    margin: 0;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: var(--spacing-sm);
}

.mb-2 {
    margin-bottom: var(--spacing-md);
}

.mt-1 {
    margin-top: var(--spacing-sm);
}

.mt-2 {
    margin-top: var(--spacing-md);
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Loading Animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

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