/* ============================================
   Netskope Threat Library - Custom Styles
   Based on Netskope Brand Guidelines 2025
   ============================================ */

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

:root {
    /* Netskope Brand Colors - Dark Theme */
    --primary-cyan: #00BCD4;
    --primary-blue: #003D6D;
    --dark-navy: #001F3F;
    --darker-navy: #000A14;
    --background-dark: #0A0F1A;
    --background-darker: #050810;
    --card-dark: #131923;
    --card-hover: #1A2332;
    --light-cyan: #E8F7FA;
    --bright-cyan: #00E5FF;
    --text-white: #FFFFFF;
    --text-light: #E5E7EB;
    --text-gray: #9CA3AF;
    --text-dark-gray: #6B7280;
    --white: #ffffff;
    --border-dark: #1F2937;
    --border-darker: #111827;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #00BCD4 0%, #0077BE 50%, #003D6D 100%);
    --gradient-dark: linear-gradient(135deg, #0A0F1A 0%, #131923 100%);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    color: var(--text-light);
    line-height: 1.65;
    background: #081A59 url('hero-background.jpg') center -500px / contain no-repeat;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
}

/* Header Styles */
.site-header {
    background-color: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    transform: translateY(0);
}

.site-header.scrolled {
    background-color: rgba(8, 26, 89, 0.95);
    box-shadow: var(--shadow-md);
}

.site-header.header-hidden {
    transform: translateY(-100%);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo img {
    height: 70px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-white);
    letter-spacing: -0.02em;
}

.main-nav {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.main-nav a {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    border-bottom: 2px solid transparent;
    position: relative;
}

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

.main-nav a.active {
    color: var(--text-white);
    border-bottom-color: var(--primary-cyan);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: var(--text-white);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero-section {
    background: transparent;
    padding: var(--spacing-xl) var(--spacing-md);
    position: relative;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
}


.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    position: relative;
    z-index: 1;
}

.hero-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto var(--spacing-lg);
}

.hero-header h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-title-primary {
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.hero-title-accent {
    color: #ff8200;
    font-family: 'Lora', Georgia, serif;
    font-weight: 500;
}

.hero-header .subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    line-height: 1.6;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
    background-color: transparent;
}

.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-sm) var(--spacing-md);
}

/* Dashboard Container */
.dashboard-container {
    background-color: transparent;
    border-radius: 0;
    overflow: hidden;
    margin: 0 auto var(--spacing-sm);
    max-width: 1400px;
    height: 900px;
}

.dashboard-header {
    background: var(--gradient-dark);
    padding: var(--spacing-md) var(--spacing-lg);
    border-bottom: 1px solid var(--border-dark);
}

.dashboard-header h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--text-white);
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.dashboard-header p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* Looker Studio Embed */
.looker-embed {
    width: 100%;
    height: 940px;
    border: none;
    display: block;
    background: transparent !important;
    opacity: 1;
}

/* Footer Styles */
.site-footer {
    background: transparent;
    color: var(--text-light);
    padding: var(--spacing-lg) 0 var(--spacing-md);
    margin-top: var(--spacing-xl);
    position: relative;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 0;
}

.footer-bottom p {
    color: var(--text-gray);
    font-size: 0.875rem;
}

.footer-attribution {
    font-size: 0.875rem;
    color: var(--text-gray);
}

.footer-attribution a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-attribution a:hover {
    color: var(--primary-cyan);
}

/* Info Cards */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.info-card {
    background: var(--card-dark);
    padding: var(--spacing-md);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-dark);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background-color: var(--card-hover);
    border-color: var(--primary-cyan);
}

.info-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--primary-cyan);
    margin-bottom: 0.75rem;
    font-weight: 400;
}

.info-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Mobile Header */
    .header-container {
        flex-direction: row;
        justify-content: space-between;
        gap: 0;
        padding: 0.75rem 1.5rem;
    }

    .logo img {
        height: 40px;
    }

    /* Show hamburger on mobile */
    .hamburger {
        display: flex;
    }

    /* Mobile Navigation */
    .main-nav {
        position: fixed;
        top: 60px;
        right: -250px;
        background-color: rgba(8, 26, 89, 0.98);
        flex-direction: column;
        width: 250px;
        padding: 1.5rem;
        gap: 0;
        box-shadow: var(--shadow-lg);
        transition: right 0.3s ease;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav a {
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 1rem;
    }

    .main-nav a:last-child {
        border-bottom: none;
    }

    /* Hero Section - Compact on mobile */
    .hero-header h1 {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

    .hero-section {
        padding: 1.5rem var(--spacing-sm);
        min-height: auto;
    }

    .hero-content {
        padding: 0 1.5rem;
    }

    .hero-header .subtitle {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .hero-header {
        margin: 0 auto 1rem;
    }

    .content-wrapper {
        padding: 0;
    }

    .main-content {
        padding: 0;
    }

    .dashboard-header {
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .footer-container {
        padding: 0 1.5rem;
    }
}

/* Mobile portrait styles */
body.mobile-portrait .header-container {
    flex-direction: row;
    justify-content: space-between;
    gap: 0;
    padding: 0.75rem 1.5rem;
}

body.mobile-portrait .logo img {
    height: 40px;
}

body.mobile-portrait .hamburger {
    display: flex;
}

body.mobile-portrait .main-nav {
    position: fixed;
    top: 60px;
    right: -250px;
    background-color: rgba(8, 26, 89, 0.98);
    flex-direction: column;
    width: 250px;
    padding: 1.5rem;
    gap: 0;
    box-shadow: var(--shadow-lg);
    transition: right 0.3s ease;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    max-height: calc(100vh - 60px);
    overflow-y: auto;
}

body.mobile-portrait .main-nav.active {
    right: 0;
}

body.mobile-portrait .main-nav a {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1rem;
}

body.mobile-portrait .main-nav a:last-child {
    border-bottom: none;
}

body.mobile-portrait .hero-header h1 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

body.mobile-portrait .hero-section {
    padding: 1.5rem var(--spacing-sm);
    min-height: auto;
}

body.mobile-portrait .hero-content {
    padding: 0 1.5rem;
}

body.mobile-portrait .hero-header .subtitle {
    font-size: 0.95rem;
    line-height: 1.5;
}

body.mobile-portrait .hero-header {
    margin: 0 auto 1rem;
}

/* Mobile portrait-specific dashboard styles */
body.mobile-portrait .dashboard-container {
    height: 720px !important;
    width: 100%;
    max-width: 375px;
    margin: 0 auto;
    padding: 0;
    overflow: hidden !important;
}

body.mobile-portrait .looker-embed {
    width: 100% !important;
    max-width: 375px;
    height: 750px !important;
    display: block;
}

body.mobile-portrait .looker-embed::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

body.mobile-portrait .content-wrapper {
    padding: 0;
}

body.mobile-portrait .main-content {
    padding: 0;
}

body.mobile-portrait .footer-container {
    padding: 0 1.5rem;
}
