/* === CSS VARIABLES & MODERN RESET === */
:root {
    --color-background: #0A0A0A;
    --color-surface: #141414;
    --color-surface-light: #1F1F1F;
    --color-text-primary: #EDEDED;
    --color-text-secondary: #A0A0A0;
    --color-accent: #FF8C00;
    /* Dark Orange */

    --font-display: 'Clash Display', sans-serif;
    --font-heading: 'Satoshi', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-fast: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-med: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

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

/* === PRELOADER === */
.preloader {
    position: fixed;
    inset: 0;
    background-color: var(--color-background);
    z-index: 10000;
    display: grid;
    place-items: center;
}

.preloader-logo {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 600;
    color: var(--color-text-primary);
    display: flex;
}

.preloader-logo span {
    display: inline-block;
}

.preloader-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-accent);
    transform-origin: left;
    transform: scaleX(0);
}

/* === GENERAL STYLING === */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

h1,
h2,
h3 {
    line-height: 1.2;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 500;
    text-decoration: none;
    border: 1px solid var(--color-surface-light);
    background: var(--color-surface);
    color: var(--color-text-primary);
    transition: var(--transition-fast);
    cursor: pointer;
}

.btn:hover {
    border-color: var(--color-accent);
    color: var(--color-text-primary);
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(255, 140, 0, 0.4);
}

/* === NAVBAR === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: background-color 0.3s, box-shadow 0.3s, border-color 0.3s, padding 0.3s;
    background-color: rgba(10, 10, 10, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    background-color: rgba(10, 10, 10, 0.85);
    border-bottom: 1px solid var(--color-surface-light);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    padding: 1rem 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--color-text-primary);
    transition: var(--transition-fast);
}

.logo:hover {
    color: var(--color-accent);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--color-text-secondary);
    font-weight: 500;
    position: relative;
    transition: var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease-out;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-text-primary);
}

.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.hamburger,
.nav-links-mobile {
    display: none;
}

/* === GENERAL SECTION STYLING === */
section {
    padding: 8rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--color-accent);
    font-family: var(--font-heading);
    font-weight: 500;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4rem);
}

.section-intro {
    max-width: 700px;
    margin: 1rem auto 0;
    color: var(--color-text-secondary);
}

/* === FOOTER === */
.footer {
    padding: 5rem 0 3rem;
    background-color: var(--color-surface);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    text-align: left;
    margin-bottom: 4rem;
}

.footer-about .logo {
    margin-bottom: 1.5rem;
}

.footer-about p {
    color: var(--color-text-secondary);
    max-width: 350px;
}

.footer-links h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul a {
    text-decoration: none;
    color: var(--color-text-secondary);
    transition: var(--transition-fast);
}

.footer-links ul a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    border-top: 1px solid var(--color-surface-light);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: var(--color-text-secondary);
}

.social-icons a {
    color: var(--color-text-secondary);
    font-size: 1.2rem;
    margin-left: 1.5rem;
    transition: var(--transition-fast);
}

.social-icons a:hover {
    color: var(--color-accent);
    transform: scale(1.2);
}

/* === BACK TO TOP BUTTON === */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background-color: var(--color-accent);
    color: var(--color-background);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    z-index: 999;
    text-decoration: none;
    transform: translateY(100px);
    transition: var(--transition-med);
}

.back-to-top.visible {
    transform: translateY(0);
}

/* === KEYFRAMES === */
@keyframes pulse {

    0%,
    100% {
        transform: scale(0.8);
    }

    50% {
        transform: scale(1.2);
    }
}



/* === RESPONSIVE - COMMON === */
@media (max-width: 768px) {

    .nav-links,
    .btn.nav-cta {
        display: none;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        background: none;
        border: none;
        position: fixed;
        top: 1.7rem;
        right: 2rem;
        z-index: 1002;
        transition: top 0.3s;
    }

    .header.scrolled .hamburger {
        top: 1.2rem;
    }

    .bar {
        width: 25px;
        height: 2px;
        background-color: var(--color-text-primary);
        border-radius: 2px;
        transition: var(--transition-fast);
    }

    .nav-links-mobile {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(10, 10, 10, 0.9);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transform: translateY(-100%);
        transition: transform 0.4s ease-in-out;
        z-index: 1001;
    }

    .nav-links-mobile.active {
        transform: translateY(0);
    }

    .nav-links-mobile .nav-link {
        font-size: 1.5rem;
        color: var(--color-text-primary);
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    section {
        padding: 5rem 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-about p {
        margin: 0 auto 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
    }
}