/* 
   DCRT Design System
   Resets and Base Styles
*/

/* Resets & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-hover);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout Classes */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

section {
    padding: 8rem 0;
    position: relative;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
        /* Reduced padding for mobile */
    }

    section {
        padding: 4rem 0;
        /* Reduced vertical padding for sections */
    }
}

/* Typography Classes */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
    /* Tight premium letter spacing */
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 400;
    letter-spacing: -0.01em;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2.25rem;
        /* Down from 3rem */
    }

    .subtitle {
        font-size: 1.1rem;
    }
}

/* Animations that are globally applicable */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.hover-glow {
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.hover-glow:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 20px 25px -5px rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.2);
}

.hover-glow:hover::before {
    opacity: 1;
}

.text-muted {
    color: var(--text-muted);
}