/* ==============================
   CSS Custom Properties (Tokens)
   ============================== */
:root {
    --bg-dark:   #0d1117;
    --bg-card:   #f5f5f5;
    --tech-gray: rgba(255, 255, 255, 0.04);
    --valo-red:  #ff4655;
    --valo-blue: #00e5ff;
}

/* ==============================
   Reset & Base
   ============================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-dark);
    color: #fff;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ==============================
   Background Grid Overlay
   ============================== */
.bg-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image:
        linear-gradient(var(--tech-gray) 1px, transparent 1px),
        linear-gradient(90deg, var(--tech-gray) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
}

/* ==============================
   Main Wrapper Gradients
   ============================== */
.main-wrapper {
    background:
        radial-gradient(circle at top right,  rgba(255, 70, 85, 0.10), transparent),
        radial-gradient(circle at bottom left, rgba(0, 229, 255, 0.05), transparent);
}

/* ==============================
   Layout
   ============================== */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==============================
   Header / Hero
   ============================== */
header {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
}

.tech-lines {
    position: absolute;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--valo-red);
    opacity: 0.5;
    text-transform: uppercase;
}

h1 {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(2.5rem, 10vw, 7rem);
    line-height: 0.9;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

/* ==============================
   Section Titles
   ============================== */
.section-title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(2rem, 8vw, 3.5rem);
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
    text-transform: uppercase;
}

.section-title::before {
    content: "// РАЗДЕЛ";
    position: absolute;
    top: -20px; left: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--valo-red);
}

/* ==============================
   Services Section
   ============================== */
.services {
    padding: 100px 0 20px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding-bottom: 80px;
}

/* ==============================
   Premium Cards
   ============================== */
.premium-card {
    background: var(--bg-card);
    color: #000;
    border-radius: 2px;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
                box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
}

.premium-card:hover {
    transform: translateY(-10px);
    box-shadow: 15px 15px 0px var(--valo-red);
}

.card-tag {
    position: absolute;
    top: 20px; right: 20px;
    background: var(--valo-red);
    color: #fff;
    padding: 4px 12px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 2;
}

.card-img-wrap {
    height: 220px;
    overflow: hidden;
    background: #000;
    position: relative;
}

.card-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.premium-card:hover .card-img-wrap img {
    transform: scale(1.1);
    opacity: 1;
}

.card-body { padding: 30px 25px; }

.card-body h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-body h3::after {
    content: '';
    flex-grow: 1;
    height: 2px;
    background: rgba(0, 0, 0, 0.1);
}

.card-body p {
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* ==============================
   Button
   ============================== */
.valo-btn {
    display: inline-block;
    background: var(--valo-red);
    color: #fff;
    padding: 18px 35px;
    font-family: 'Oswald', sans-serif;
    text-decoration: none;
    font-weight: bold;
    clip-path: polygon(0 0, 100% 0, 100% 70%, 85% 100%, 0 100%);
    transition: background 0.3s ease, padding-left 0.3s ease;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.9rem;
    white-space: nowrap;
}

.valo-btn:hover {
    background: #000;
    padding-left: 45px;
}

/* ==============================
   Resources Section
   ============================== */
.resources {
    padding: 100px 0;
    background: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.resource-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    transition: background 0.3s ease, border-left 0.3s ease;
}

.resource-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-left: 5px solid var(--valo-blue);
}

/* ==============================
   Scroll Reveal Animation
   ============================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==============================
   Footer
   ============================== */
footer {
    padding: 60px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    text-align: center;
    opacity: 0.4;
}

/* ==============================
   Responsive / Mobile
   ============================== */
@media (max-width: 768px) {
    .container { padding: 0 25px; }
    .tech-lines { display: none; }
    .resource-item {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .valo-btn {
        width: 100%;
        text-align: center;
        clip-path: none;
    }
    .card-body { padding: 25px 20px; }
    .services { padding: 60px 0 20px; }
}
