/* ============================================
   JRM SOFTWARE — CINEMATIC DARK DESIGN
   Full-bleed hero with bold typography
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Colors - Light Blue Theme */
    --primary: #1e40af;
    --primary-light: #3b82f6;
    --primary-dark: #1e3a8a;

    --surface: #ffffff;
    --surface-elevated: #f8fafc;
    --surface-border: #e2e8f0;

    --text: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    --white: #ffffff;
    --white-90: rgba(255, 255, 255, 0.9);
    --white-70: rgba(255, 255, 255, 0.7);
    --white-50: rgba(255, 255, 255, 0.5);
    --white-30: rgba(255, 255, 255, 0.3);
    --white-10: rgba(255, 255, 255, 0.1);
    --white-05: rgba(255, 255, 255, 0.05);

    /* Accent */
    --accent: #1e40af;
    --accent-light: #3b82f6;

    /* Typography */
    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    --space-4xl: 8rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
}

/* ============================================
   RESET & BASE
   ============================================ */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-main);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text);
    background: var(--surface);
    overflow-x: hidden;
}

::selection {
    background: var(--primary-light);
    color: var(--white);
}

/* ============================================
   LAYOUT
   ============================================ */

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-md) 0;
    transition: background var(--transition-medium);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--surface-border);
}

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

.nav-brand h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-lg);
}

.nav-menu a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--white-70);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.nav-menu a:hover {
    color: var(--white);
}

/* Scrolled state - dark text on light background */
.navbar.scrolled .nav-brand h1 {
    color: var(--text);
}

.navbar.scrolled .nav-menu a {
    color: var(--text-secondary);
}

.navbar.scrolled .nav-menu a:hover {
    color: var(--text);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
    border-radius: 8px;
    transition: background var(--transition-fast);
}

.hamburger:hover {
    background: var(--white-10);
}

.navbar.scrolled .hamburger:hover {
    background: var(--surface-elevated);
}

.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--transition-medium);
}

.navbar.scrolled .hamburger span {
    background: var(--text);
}

.hamburger span:nth-child(1) { margin-bottom: 5px; }
.hamburger span:nth-child(3) { margin-top: 5px; }

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--space-4xl) 0;
    overflow: hidden;
}

/* Background - cinematic dark gradient */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg,
            rgba(13, 17, 23, 0.85) 0%,
            rgba(13, 17, 23, 0.7) 50%,
            rgba(13, 17, 23, 0.6) 100%
        ),
        linear-gradient(45deg,
            #1a1a2e 0%,
            #16213e 25%,
            #0f3460 50%,
            #1a1a2e 100%
        );
    background-size: 100% 100%, 200% 200%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Subtle texture overlay */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.02;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-content h2 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--white);
    margin-bottom: var(--space-lg);
}

.hero-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--white-70);
    max-width: 550px;
    margin-bottom: var(--space-xl);
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 16px 32px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--dark);
    background: var(--white);
    border-radius: 8px;
    text-decoration: none;
    transition: all var(--transition-medium);
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.15);
}

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: var(--space-xl);
    left: var(--space-xl);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--white-50);
    z-index: 1;
}

.hero-scroll::before {
    content: '↓';
    animation: bounce 2s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

/* ============================================
   SECTIONS
   ============================================ */

.section {
    padding: var(--space-4xl) 0;
    background: var(--surface);
}

.section-header {
    margin-bottom: var(--space-3xl);
}

.section-label {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-sm);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text);
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.about-text h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--space-md);
}

.about-text p {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.8;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-visual {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 16px;
    overflow: hidden;
}

.about-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   NEWS SECTION
   ============================================ */

.section.news-section {
    background: var(--surface-elevated);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: var(--space-lg);
}

.news-card {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: 16px;
    padding: var(--space-xl);
    text-decoration: none;
    transition: all var(--transition-medium);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(30, 64, 175, 0.1);
}

.news-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-sm);
}

.news-card h3 {
    font-size: 1.375rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text);
    margin-bottom: var(--space-sm);
}

.news-card p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text-secondary);
    flex: 1;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    margin-top: var(--space-md);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-light);
    transition: gap var(--transition-medium);
}

.read-more::after {
    content: '→';
    transition: transform var(--transition-medium);
}

.news-card:hover .read-more {
    gap: var(--space-sm);
}

.news-card:hover .read-more::after {
    transform: translateX(4px);
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact-content {
    max-width: 600px;
}

.contact-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--space-sm);
}

.contact-content > p {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

.contact-email-wrapper {
    display: inline-block;
    background: var(--surface-elevated);
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    padding: var(--space-lg) var(--space-xl);
    transition: all var(--transition-fast);
}

.contact-email-wrapper:hover {
    border-color: var(--primary-light);
    box-shadow: 0 4px 20px rgba(30, 64, 175, 0.1);
}

.contact-email-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-xs);
}

.contact-email-wrapper a {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.contact-email-wrapper a:hover {
    color: var(--primary-light);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    position: relative;
    color: var(--white);
    padding: var(--space-3xl) 0 var(--space-lg);
}

.footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg,
            rgba(13, 17, 23, 0.85) 0%,
            rgba(13, 17, 23, 0.7) 50%,
            rgba(13, 17, 23, 0.6) 100%
        ),
        linear-gradient(45deg,
            #1a1a2e 0%,
            #16213e 25%,
            #0f3460 50%,
            #1a1a2e 100%
        );
    z-index: 0;
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-3xl);
    padding-bottom: var(--space-2xl);
}

.footer-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: var(--space-sm);
}

.footer-section h4 {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--white-50);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-md);
}

.footer-section p {
    font-size: 0.9375rem;
    color: var(--white-70);
    max-width: 320px;
    line-height: 1.7;
}

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

.footer-section ul li {
    margin-bottom: var(--space-xs);
}

.footer-section a {
    font-size: 0.9375rem;
    color: var(--white-70);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    padding-top: var(--space-lg);
    border-top: 1px solid var(--white-10);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: var(--white-50);
}

/* ============================================
   UTILITIES
   ============================================ */

.text-center { text-align: center; }

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .about-visual {
        order: -1;
        aspect-ratio: 16/9;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .footer-section:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-lg);
    }

    .navbar {
        padding: var(--space-sm) 0;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 60px;
        left: var(--space-md);
        right: var(--space-md);
        flex-direction: column;
        background: var(--surface);
        border: 1px solid var(--surface-border);
        padding: var(--space-md);
        border-radius: 16px;
        gap: var(--space-xs);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all var(--transition-medium);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-menu a,
    .navbar.scrolled .nav-menu a {
        display: block;
        padding: var(--space-sm) var(--space-md);
        border-radius: 8px;
        color: var(--text-secondary);
    }

    .nav-menu a:hover,
    .navbar.scrolled .nav-menu a:hover {
        background: var(--surface-elevated);
        color: var(--text);
    }

    .hero {
        padding: 120px 0 var(--space-3xl);
        min-height: auto;
    }

    .hero-content h2 {
        font-size: 2.25rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-scroll {
        left: var(--space-lg);
        bottom: var(--space-lg);
    }

    .section {
        padding: var(--space-3xl) 0;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }

    .hero-content h2 {
        font-size: 1.875rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .hero-scroll {
        display: none;
    }
}
