:root {
    --bg-dark: #05050a;
    --bg-card: #121218;
    --text-main: #f5f5f7;
    --text-muted: #86868b;
    --accent-red: #E63946;
    --accent-yellow: #F4A261;
    --accent-blue: #1E88E5;
    --accent-green: #2A9D8F;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
}

/* Nav */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: background 0.3s, backdrop-filter 0.3s;
}

nav::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 120px;
    background: linear-gradient(180deg, rgba(5,5,10,0.8) 0%, rgba(5,5,10,0) 100%);
    pointer-events: none;
    z-index: -1;
    transition: opacity 0.3s;
}

nav.scrolled::before {
    opacity: 0;
}

nav.scrolled {
    background: rgba(5, 5, 10, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px; /* Adjust gap to account for diamond */
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.5px;
}

/* Logo icon styled as a rhombhus */
.logo-icon.small { 
    width: 22px; 
    height: 22px; 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    grid-template-rows: 1fr 1fr; 
    gap: 2px;
    transform: rotate(45deg); /* THIS MAKES IT A RHOMBUS */
    margin: 5px 5px 5px 10px;
}
.logo-square { border-radius: 2px; }
.red { background-color: var(--accent-red); }
.yellow { background-color: var(--accent-yellow); }
.blue { background-color: var(--accent-blue); }
.green { background-color: var(--accent-green); }

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    transition: color 0.3s, text-shadow 0.3s;
}

.nav-links a:hover { color: var(--text-main); }
.nav-links .btn-brochure {
    background: var(--accent-blue);
    color: white;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 600;
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}
.nav-links .btn-brochure:hover {
    background: #1976D2;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(30,136,229,0.3);
}

.nav-links .btn-contact {
    background: white;
    color: var(--bg-dark);
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 600;
    transition: transform 0.2s, background 0.2s;
}
.nav-links .btn-contact:hover {
    background: rgba(255,255,255,0.85);
    transform: scale(1.05);
}

/* Hero Section */
.hero-section {
    position: relative; height: 100vh;
    display: flex; align-items: center; justify-content: center;
    text-align: center; overflow: hidden;
}
.hero-video-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1;
}
.hero-video-bg picture {
    display: block; width: 100%; height: 100%;
}
.hero-video-bg img {
    width: 100%; height: 100%; object-fit: cover; opacity: 0.9;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(5,5,10,0.2) 0%, rgba(5,5,10,0.85) 65%, rgba(5,5,10,1) 95%);
}

.hero-content {
    max-width: 900px; padding: 0 30px;
    opacity: 0; transform: translateY(40px);
}
.hero-title {
    font-family: var(--font-heading); font-size: 85px; font-weight: 800;
    line-height: 1.05; letter-spacing: -2px; margin-bottom: 25px;
}
.gradient-text {
    background: linear-gradient(90deg, #1E88E5 0%, #2A9D8F 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}
.hero-subtitle {
    font-size: 22px; color: rgba(255, 255, 255, 0.9); font-weight: 300;
    max-width: 700px; margin: 0 auto; line-height: 1.5;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.scroll-indicator {
    margin-top: 50px;
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    opacity: 0;
}
.scroll-indicator span {
    font-size: 11px; color: rgba(255, 255, 255, 0.85); text-transform: uppercase;
    letter-spacing: 3px; font-weight: 600; text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.mouse {
    width: 24px; height: 38px; border: 2px solid rgba(255,255,255,0.7);
    border-radius: 12px; display: flex; justify-content: center; padding-top: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}
.wheel {
    width: 3px; height: 6px; background: white; border-radius: 2px;
    animation: scroll 2s cubic-bezier(0.15, 0.41, 0.69, 0.94) infinite;
}
@keyframes scroll {
    0% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(14px); opacity: 0; }
    100% { transform: translateY(0); opacity: 0; }
}

/* Scroll Sequence Section (SVG Drone) */
.scroll-sequence {
    position: relative; background: var(--bg-dark);
}
.pin-container {
    height: 100vh; width: 100%; position: relative; overflow: hidden;
    display: flex; align-items: center;
}

/* Fake light source */
.pin-container::before {
    content: ''; position: absolute; top: 50%; left: 30%; transform: translate(-50%, -50%);
    width: 50vh; height: 50vh; border-radius: 50%;
    background: radial-gradient(circle, rgba(30,136,229,0.15) 0%, transparent 70%);
    filter: blur(60px); z-index: 0;
}

.canvas-container {
    flex: 0 0 50%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    z-index: 2; position: relative;
}

canvas {
    position: absolute;
    inset: 0;
    margin: auto;
    max-height: 85vh; width: auto; max-width: 100%;
    opacity: 0; /* All hidden by default, JS will control */
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.sequence-texts {
    flex: 0 0 50%; position: relative; height: 100%; z-index: 2;
}

.seq-text {
    position: absolute; top: 50%; left: 10%; 
    max-width: 450px; opacity: 0; visibility: hidden;
}
.seq-text h2 {
    font-family: var(--font-heading); font-size: 55px; font-weight: 800;
    line-height: 1.1; margin-bottom: 25px; letter-spacing: -1.5px;
}
.seq-text .highlight { color: var(--accent-blue); }
.seq-text p {
    font-size: 20px; color: var(--text-muted); line-height: 1.6; font-weight: 300;
}

/* Main Content Styles */
.main-content {
    background: #08080d;
    padding-bottom: 100px;
}
.content-section {
    padding: 100px 5%;
    max-width: 1400px;
    margin: 0 auto;
}
.section-header {
    text-align: center; margin-bottom: 60px;
}
.section-header h2 {
    font-family: var(--font-heading); font-size: 50px; font-weight: 800;
    letter-spacing: -1px; margin-bottom: 15px;
}
.section-header p {
    font-size: 20px; color: var(--text-muted); max-width: 600px; margin: 0 auto;
}
.section-header .highlight { color: var(--accent-red); }
.dark-header .highlight { color: var(--accent-yellow); }

.grid-cards {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
}
.grid-cards.four-col {
    grid-template-columns: repeat(4, 1fr);
}

.service-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255,255,255,0.03);
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    border-color: rgba(255,255,255,0.1);
}
.card-img {
    height: 220px; overflow: hidden;
}
.card-img picture {
    display: block; width: 100%; height: 100%;
}
.card-img img {
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s;
}
.service-card:hover .card-img img { transform: scale(1.05); }

.card-body {
    padding: 30px;
}
.card-body h3 {
    font-family: var(--font-heading); font-size: 22px; margin-bottom: 15px; color: white;
}
.card-body p {
    font-size: 15px; color: var(--text-muted); line-height: 1.6; margin-bottom: 20px;
}
.check-list {
    list-style: none;
}
.check-list li {
    font-size: 14px; color: #bbb; margin-bottom: 8px; position: relative; padding-left: 20px;
}
.check-list li::before {
    content: '✓'; position: absolute; left: 0; color: var(--accent-green); font-weight: bold;
}

.small-card .card-img { height: 180px; }
.small-card .card-body { padding: 25px; }

.dark-card {
    position: relative; height: 350px; border: none; min-height: 400px;
}
.dark-card picture {
    position: absolute; width: 100%; height: 100%; display: block;
}
.dark-card .card-bg {
    position: absolute; width:100%; height:100%; object-fit:cover;
}
.dark-overlay {
    position: absolute; width:100%; height:100%;
    background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 100%);
}
.card-text {
    position: absolute; bottom: 0; left: 0; padding: 30px; z-index: 2;
}
.dark-card h3 { 
    font-family: var(--font-heading); font-size: 24px; color: white; margin-bottom: 10px; 
    word-break: break-word; overflow-wrap: break-word; hyphens: auto;
}
.dark-card p { font-size: 15px; color: #ccc; }

/* Footer */
footer {
    background: #000; padding: 60px 5% 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-wrap {
    display: flex; justify-content: center; max-width: 1200px; margin: 0 auto 50px; flex-wrap: wrap; gap: 80px; text-align: center;
}
.footer-col { flex: 1; min-width: 250px; display: flex; flex-direction: column; align-items: center; }
.footer-text { margin-top: 20px; color: var(--text-muted); font-size: 15px; max-width: 300px; }
.footer-col h3 { font-family: var(--font-heading); font-size: 18px; margin-bottom: 25px; color: white; }
.footer-col p, .footer-col a { color: var(--text-muted); font-size: 15px; margin-bottom: 15px; display: block; text-decoration: none; text-align: center; }
.footer-col a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 30px; text-align: center; color: var(--text-muted); font-size: 14px; }

/* Hamburger - hidden on desktop */
.hamburger {
    display: none;
    background: none; border: none; cursor: pointer;
    flex-direction: column; gap: 5px; padding: 8px; z-index: 1100;
}
.hamburger span {
    display: block; width: 24px; height: 2px;
    background: white; border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Responsive adjustments */
@media (max-width: 1100px) {
    .grid-cards.four-col { grid-template-columns: repeat(2, 1fr); }
    .hero-title { font-size: 60px; }
}
@media (max-width: 800px) {
    .grid-cards, .grid-cards.four-col { grid-template-columns: 1fr; }
    .hero-title { font-size: 45px; }

    /* Hamburger visible */
    .hamburger { display: flex; }

    /* Mobile menu overlay */
    .nav-links {
        display: none;
        position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
        background: rgba(5, 5, 10, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center; justify-content: center;
        gap: 30px; z-index: 1050;
    }
    .nav-links.open { display: flex; }
    .nav-links a {
        font-size: 22px; color: var(--text-main); font-weight: 500;
    }
    .nav-links .btn-contact {
        margin-top: 10px; padding: 12px 30px; font-size: 18px;
    }
    .desktop-only { display: none !important; }
    
    /* Mobile Animation Stacking */
    .pin-container { display: block; }
    .canvas-container { position: absolute; width: 100%; height: 60vh; top: 0; left: 0; }
    canvas { max-height: 55vh; top: 55%; }
    
    .sequence-texts { position: absolute; width: 100%; height: 40vh; top: 60%; left: 0; margin: 0; }
    .seq-text { 
        left: 5%; width: 90%; max-width: none; 
        text-align: center; top: 50%;
    }
    .seq-text h2 { font-size: 32px; margin-bottom: 10px; }
    .seq-text p { font-size: 15px; margin: 0 auto; max-width: 90%; }
}
