/* =============================================
   Safe Harbor Communications - Main Stylesheet
   Brand Colors:
   - Red: rgb(237, 32, 36)
   - Blue Light: rgb(57, 83, 164)
   - White: rgb(255, 255, 255)
   - Blue Dark: rgb(14, 34, 57)
   Font: Sukhumvit Set Medium
============================================= */

/* CSS Variables */
:root {
    --red: rgb(237, 32, 36);
    --blue-light: rgb(57, 83, 164);
    --white: rgb(255, 255, 255);
    --blue-dark: rgb(14, 34, 57);
    --blue-darker: rgb(8, 20, 35);
    --transition: all 0.3s ease;
    --shadow: 0 10px 40px rgba(14, 34, 57, 0.15);
    --shadow-heavy: 0 20px 60px rgba(14, 34, 57, 0.25);
}

/* Font Import - Fallback stack since Sukhumvit Set may not be available */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500;600;700&display=swap');

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Sukhumvit Set', 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
    line-height: 1.7;
    color: var(--blue-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--blue-dark);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: #5a6a7a;
}

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

a:hover {
    color: var(--red);
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =============================================
   NAVIGATION
============================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(14, 34, 57, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: var(--shadow);
}

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

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

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    color: var(--white);
    font-weight: 500;
    font-size: 1.5rem;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--red);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

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

/* Mobile Menu */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.mobile-toggle span {
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

/* =============================================
   HERO SECTION - VIDEO BACKGROUND
============================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(14, 34, 57, 0.85) 0%,
        rgba(57, 83, 164, 0.7) 100%
    );
    z-index: -1;
}

.hero-content {
    text-align: center;
    color: var(--white);
    padding: 0 20px;
    max-width: 900px;
}

.hero-content h1 {
    color: var(--white);
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-tagline {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    font-weight: 300;
}

/* Expandable CTA Buttons */
.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.cta-btn {
    position: relative;
    background: var(--white);
    color: var(--blue-dark);
    padding: 18px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition);
    border: none;
    min-width: 220px;
    text-align: center;
}

.cta-btn .btn-icon {
    display: inline-block;
    margin-right: 10px;
    transition: var(--transition);
}

.cta-btn .btn-text {
    display: inline-block;
}

.cta-btn .btn-expand {
    display: block;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease;
    font-weight: 400;
    font-size: 0.85rem;
    color: #5a6a7a;
    margin-top: 0;
    padding-top: 0;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
    padding-bottom: 18px;
}

.cta-btn:hover .btn-expand {
    max-height: 60px;
    opacity: 1;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(14, 34, 57, 0.1);
}

.cta-btn.primary {
    background: var(--red);
    color: var(--white);
}

.cta-btn.primary .btn-expand {
    color: rgba(255, 255, 255, 0.85);
    border-top-color: rgba(255, 255, 255, 0.2);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator a {
    color: var(--white);
    font-size: 2rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* =============================================
   SECTION STYLES
============================================= */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header .subtitle {
    color: var(--red);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.section-header h2 {
    margin-bottom: 20px;
}

.section-header p {
    font-size: 1.1rem;
}

/* =============================================
   TECHNOLOGY PAGE
============================================= */
.tech-hero {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-light) 100%);
    padding: 180px 0 100px;
    color: var(--white);
}

.tech-hero h1 {
    color: var(--white);
}

.tech-hero p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.2rem;
}

/* Feature Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--blue-light), var(--red));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--blue-light), var(--blue-dark));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 1.8rem;
    color: var(--white);
}

.feature-card h4 {
    margin-bottom: 15px;
}

.feature-card p {
    margin-bottom: 0;
}

/* How It Works */
.how-it-works {
    background: linear-gradient(180deg, #f8fafc 0%, var(--white) 100%);
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--blue-light);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h4 {
    margin-bottom: 10px;
}

/* Diagram Placeholder */
.diagram-placeholder {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 20px;
    padding: 80px 40px;
    text-align: center;
    border: 2px dashed #cbd5e1;
    margin-top: 40px;
}

.diagram-placeholder p {
    color: #94a3b8;
    font-size: 1.1rem;
    margin: 0;
}

/* =============================================
   FOUNDERS PAGE
============================================= */
.founders-hero {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-light) 100%);
    padding: 180px 0 100px;
    color: var(--white);
}

.founders-hero h1 {
    color: var(--white);
}

.founders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 50px;
    max-width: 900px;
    margin: 0 auto;
}

.founder-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.founder-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.founder-image {
    width: 100%;
    height: 400px;
    max-height: 400px;
    min-height: 400px;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    display: block;
    position: relative;
    overflow: hidden;
    color: #94a3b8;
    font-size: 4rem;
}

.founder-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 400px;
    max-height: 400px;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.founder-info {
    padding: 35px;
}

.founder-info h3 {
    margin-bottom: 5px;
}

.founder-title {
    color: var(--red);
    font-weight: 600;
    margin-bottom: 20px;
    display: block;
}

.founder-bio {
    margin-bottom: 20px;
}

.founder-links {
    display: flex;
    gap: 15px;
}

.founder-links a {
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-dark);
    transition: var(--transition);
}

.founder-links a:hover {
    background: var(--blue-light);
    color: var(--white);
}

/* =============================================
   CONTACT PAGE
============================================= */
.contact-hero {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-light) 100%);
    padding: 180px 0 100px;
    color: var(--white);
}

.contact-hero h1 {
    color: var(--white);
}

.contact-hero p {
    color: rgba(255, 255, 255, 0.85);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

.contact-info {
    background: var(--blue-dark);
    color: var(--white);
    padding: 50px;
    border-radius: 20px;
}

.contact-info h3 {
    color: var(--white);
    margin-bottom: 20px;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.8);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-item-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-item-content h4 {
    color: var(--white);
    margin-bottom: 5px;
    font-size: 1rem;
}

.contact-item-content p {
    margin: 0;
    font-size: 0.95rem;
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--blue-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: #f8fafc;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue-light);
    background: var(--white);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    background: var(--red);
    color: var(--white);
    padding: 18px 45px;
    border: none;
    border-radius: 50px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    background: var(--blue-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* =============================================
   FOOTER
============================================= */
footer {
    background: var(--blue-darker);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand img {
    height: 60px;
    margin-bottom: 20px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    max-width: 300px;
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.1rem;
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin: 0;
}

/* =============================================
   RESPONSIVE DESIGN
============================================= */
@media (max-width: 992px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--blue-dark);
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        transition: var(--transition);
    }

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

    .mobile-toggle {
        display: flex;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

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

    /* 3-column comparison grid stacks on tablets */
    .features-grid[style*="repeat(3"] {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    section {
        padding: 70px 0;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-btn {
        width: 100%;
        max-width: 300px;
    }

    .step {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

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

    .footer-brand p {
        max-width: 100%;
    }

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

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-tagline {
        font-size: 1rem;
    }

    .feature-card {
        padding: 30px;
    }
}
