/* ==========================================================
   RYD REDESIGN - NODCODING.COM AESTHETIC
   Colors: Pure White (#ffffff), Vivid Red (#ec2028), True Black (#000000)
   Fonts: Montserrat (Headings - 900 weight), Inter (Body)
   ========================================================== */

/* Variables & Design Tokens */
:root {
    --brand-red: #ec2028;
    --brand-red-hover: #b9151d;
    --bg-white: #ffffff;
    --bg-light-grey: #f9f9f9;
    --text-primary: #000000;
    --text-secondary: #333333;
    --text-muted: #666666;
    
    --border-dark: #000000;
    --border-red: #ec2028;
    --border-light: rgba(0,0,0,0.1);
    
    --transition: all 0.3s ease;
    
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Base Resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--bg-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* Helpers */
.text-red { color: var(--brand-red) !important; }
.text-white { color: var(--bg-white) !important; }
.bg-red { background-color: var(--brand-red) !important; }
.bg-black { background-color: #000000 !important; }
.bg-light-grey { background-color: var(--bg-light-grey) !important; }
.hide-on-mobile { display: block; }
.hide-on-desktop { display: none; }
@media (max-width: 768px) {
    .hide-on-mobile { display: none !important; }
    .hide-on-desktop { display: block !important; }
}

/* Layout */
.nod-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}
@media (max-width: 768px) {
    .nod-container { padding: 0 20px; }
}

.nod-section {
    padding: 100px 0;
}
@media (max-width: 768px) {
    .nod-section { padding: 60px 0; }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.1;
    letter-spacing: -1px;
}

.massive-heading {
    font-size: clamp(40px, 6vw, 80px);
    margin-bottom: 20px;
}

.section-heading {
    margin-bottom: 60px;
}

/* Buttons */
.nod-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}
.nod-btn.btn-primary {
    background-color: var(--brand-red);
    color: var(--bg-white);
}
.nod-btn.btn-primary:hover {
    background-color: var(--brand-red-hover);
}
.nod-btn.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-dark);
}
.nod-btn.btn-outline:hover {
    background-color: var(--border-dark);
    color: var(--bg-white);
}
.nod-btn.btn-large {
    padding: 18px 40px;
    font-size: 20px;
}

/* Header */
.nod-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}
.nod-logo img {
    height: 40px;
}
.nod-nav {
    display: flex;
    gap: 40px;
}
.nod-nav a {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 16px;
    text-transform: uppercase;
}
.nod-nav a:hover {
    color: var(--brand-red);
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}
.menu-trigger-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* Full Screen Menu */
#menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--brand-red);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}
#menu-overlay.open {
    opacity: 1;
    visibility: visible;
}
.menu-overlay-close {
    position: absolute;
    top: 40px;
    right: 40px;
    background: none;
    border: none;
    color: var(--bg-white);
    font-size: 40px;
    cursor: pointer;
}
.menu-overlay-links {
    list-style: none;
    text-align: center;
}
.menu-overlay-links li {
    margin-bottom: 30px;
}
.menu-overlay-links a {
    font-family: var(--font-heading);
    font-size: clamp(30px, 5vw, 60px);
    color: var(--bg-white);
    font-weight: 900;
    text-transform: uppercase;
}
.menu-overlay-links a:hover {
    color: #000;
}

/* Hero Section */
.nod-hero {
    padding: 120px 0;
    background-color: var(--bg-white);
}
.hero-title {
    font-size: clamp(50px, 9vw, 130px);
    line-height: 0.95;
    margin-bottom: 40px;
    letter-spacing: -2px;
}
.hero-subtitle {
    font-size: clamp(18px, 2.5vw, 28px);
    max-width: 800px;
    margin-bottom: 50px;
    font-weight: 400;
    color: var(--text-secondary);
}
.hero-cta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Marquee */
.nod-marquee {
    overflow: hidden;
    white-space: nowrap;
    padding: 20px 0;
    border-top: 2px solid var(--border-dark);
    border-bottom: 2px solid var(--border-dark);
}
.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 900;
    color: var(--bg-white);
}
.marquee-content span {
    margin: 0 20px;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Grid Layouts */
.nod-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}
.nod-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
@media (max-width: 992px) {
    .nod-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .nod-grid-2, .nod-grid-3 { grid-template-columns: 1fr; }
    .nod-hero { padding: 60px 0; }
    .hero-title { font-size: 40px; margin-bottom: 20px; }
    .slider-section { padding: 40px 0; }
    .massive-heading { font-size: 32px; }
    .nod-section { padding: 50px 0; }
}

/* Cards (Brutalist style) */
.nod-card {
    padding: 40px;
    background-color: var(--bg-white);
    transition: var(--transition);
}
.nod-card.brutalist-border {
    border: 3px solid var(--border-dark);
    box-shadow: 8px 8px 0px var(--border-dark);
}
.brutalist-border {
    border: 3px solid var(--border-dark);
    box-shadow: 8px 8px 0px var(--border-dark);
}
.nod-card h3 {
    font-size: 32px;
    margin-bottom: 20px;
}
.nod-card p {
    font-size: 18px;
    color: inherit;
}
.nod-card.hover-red {
    border: 2px solid var(--border-light);
}
.nod-card.hover-red:hover {
    background-color: var(--brand-red);
    color: var(--bg-white);
    border-color: var(--brand-red);
}
.card-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

/* Slider Section */
.slider-section {
    padding: 80px 0;
}
.hero-slider-border {
    background: #000;
    padding: 10px;
}
.swiper-slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
.swiper-desktop-slider {
    width: 100%;
    height: auto;
}
.swiper-mobile-slider {
    width: 100%;
    height: auto;
}

/* Footer */
.nod-footer {
    padding: 80px 0 40px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}
@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand {
    font-size: 60px;
    margin-bottom: 10px;
}
.footer-grid h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--text-muted);
}
.social-links {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}
.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #333;
    border-radius: 50%;
}
.social-links a:hover {
    background-color: var(--brand-red);
}
.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 14px;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0; visibility: hidden;
    transition: var(--transition);
}
.modal-overlay.open {
    opacity: 1; visibility: visible;
}
.modal-content {
    background-color: var(--bg-white);
    width: 90%;
    max-width: 600px;
    padding: 40px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    border: 3px solid #000;
    box-shadow: 12px 12px 0px #000;
}
.modal-close {
    position: absolute;
    top: 20px; right: 20px;
    background: none; border: none;
    font-size: 24px; cursor: pointer;
}
.form-row {
    display: flex; gap: 20px;
}
@media (max-width: 768px) {
    .form-row { flex-direction: column; gap: 0; }
}
.form-group {
    margin-bottom: 20px;
    flex: 1;
}
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-family: var(--font-heading);
}
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-light);
    font-family: var(--font-body);
    transition: var(--transition);
}
.form-control:focus {
    outline: none;
    border-color: var(--brand-red);
}
.checkbox-container {
    display: flex; align-items: flex-start; gap: 10px; cursor: pointer;
}
.checkbox-container input {
    margin-top: 5px;
}

/* Video Roster Brutalist */
.magazine-grid {
    margin-top: 40px;
    border-top: 3px solid var(--border-dark);
}
.magazine-row {
    display: grid;
    grid-template-columns: 80px 1fr 140px;
    padding: 24px 16px;
    border-bottom: 3px solid var(--border-dark);
    align-items: center;
    cursor: pointer;
    background: var(--bg-white);
    transition: var(--transition);
}
.magazine-row:hover {
    background-color: var(--brand-red);
    color: var(--bg-white);
}
.video-icon-wrapper {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--border-dark);
    border-radius: 50%;
    background: var(--bg-white);
    color: var(--border-dark);
    font-size: 20px;
    transition: var(--transition);
}
.magazine-row:hover .video-icon-wrapper {
    background: #000;
    color: #fff;
    border-color: #000;
}
.magazine-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    text-transform: uppercase;
}
.magazine-tag {
    justify-self: end;
    font-size: 14px;
    font-family: var(--font-heading);
    font-weight: 800;
    border: 2px solid var(--border-dark);
    padding: 5px 10px;
    transition: var(--transition);
}
.magazine-row:hover .magazine-tag {
    border-color: #fff;
}
.video-hover-preview {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    height: 180px;
    background-color: #000;
    border: 3px solid #000;
    box-shadow: 8px 8px 0px rgba(0,0,0,0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease;
    overflow: hidden;
}
.video-hover-preview.active {
    opacity: 1;
    visibility: visible;
}
.video-hover-preview iframe {
    width: 100%;
    height: 100%;
    border: none;
}
@media (max-width: 768px) {
    .magazine-row {
        grid-template-columns: 60px 1fr;
        gap: 10px;
    }
    .magazine-tag {
        display: none;
    }
    .magazine-title {
        font-size: 18px;
    }
}
