/* ===========================================
   GLOBAL STYLES & RESET
   =========================================== */

/* Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Links */
a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--accent-primary);
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Buttons Reset */
button {
    font-family: inherit;
    border: none;
    background: transparent;
    cursor: pointer;
    color: inherit;
}

/* Lists */
ul,
ol {
    list-style: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
}

/* Sections */
.section {
    padding: 5rem 0;
}

@media (max-width: 768px) {
    .section {
        padding: 3rem 0;
    }
}

/* Prevent text overflow globally */
* {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Headings */
.heading-2 {
    font-family: var(--font-heading);
    font-size: var(--font-3xl);
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.heading-3 {
    font-family: var(--font-heading);
    font-size: var(--font-xl);
    font-weight: 600;
    color: var(--text-primary);
}

/* Text utilities */
.text-center {
    text-align: center;
}

.text-sm {
    font-size: var(--font-sm);
}

.text-muted {
    color: var(--text-muted);
}

/* Flex/Grid utilities */
.flex {
    display: flex;
}

.grid {
    display: grid;
}

.justify-center {
    justify-content: center;
}

.items-center {
    align-items: center;
}

/* Section Divider */
.section-divider {
    width: 60px;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: var(--radius-full);
    margin: 0 auto 2rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

/* Selection */
::selection {
    background: var(--accent-primary);
    color: white;
}