/* style.css - FINAL COMPLETE VERSION */

/* --- 1. VARIABLES & RESET --- */
:root {
    --bg: #FFFDF5; /* Cream Background */
    --text: #1a1a1a;
    --purple: #6D28D9;
    --lime: #CCFF00;
    --pink: #FF90E8;
    --border: 3px solid #000;
    --shadow: 5px 5px 0px #000;
    --radius: 12px;
    --font-head: 'Syne', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

h1, h2, h3 {
    font-family: var(--font-head);
    font-weight: 800;
    text-transform: uppercase;
    margin: 0;
}

a { text-decoration: none; color: inherit; }

/* --- 2. NAVIGATION --- */
nav {
    padding: 20px;
    border-bottom: var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -1px;
    transform: rotate(-2deg);
    display: inline-block;
    background: var(--lime);
    padding: 5px 10px;
    border: var(--border);
    box-shadow: 3px 3px 0 #000;
    text-decoration: none;
    color: black;
}

.nav-links a {
    margin-left: 20px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    color: black;
    border-bottom: 3px solid transparent;
    transition: 0.2s;
}

.nav-links a:hover {
    border-bottom: 3px solid var(--purple);
    color: var(--purple);
}

/* --- 3. FOOTER --- */
footer {
    border-top: var(--border);
    padding: 40px;
    text-align: center;
    background: #fff;
    font-weight: 700;
}

/* --- 4. HERO SECTION (UPDATED FOR VIDEO) --- */
.hero {
    position: relative; /* Essential for stacking video behind text */
    padding: 100px 20px;
    text-align: center;
    max-width: 100%; /* Changed to full width to hold the video */
    margin: 0 auto;
    overflow: hidden; /* Cuts off video if it spills over */
    min-height: 80vh; /* Ensures it's tall enough */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* The Video in the Background */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures video covers the whole box without stretching */
    z-index: 1; /* Sits at the bottom */
    opacity: 0.4; /* Fades the video so text is readable */
    filter: grayscale(100%); /* Optional: Makes video B&W to fit the vibe */
}

/* The Text on Top */
.hero-content {
    position: relative;
    z-index: 2; /* Sits ON TOP of the video */
    max-width: 1000px;
}

.hero h1 { font-size: 5rem; line-height: 0.9; margin-bottom: 30px; }
.hero h1 span { color: var(--purple); }
.hero p { font-size: 1.5rem; max-width: 700px; margin: 0 auto 40px; font-weight: 500; }

/* --- 5. MARQUEE --- */
.marquee-container { background: var(--text); color: var(--lime); padding: 15px 0; overflow: hidden; border-top: var(--border); border-bottom: var(--border); white-space: nowrap; }
.marquee-content { display: inline-block; animation: scroll 20s linear infinite; font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; text-transform: uppercase; }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- 6. GRID CARDS --- */
.grid-section { padding: 80px 20px; max-width: 1200px; margin: 0 auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.card { 
    background: #fff; border: var(--border); border-radius: var(--radius); 
    padding: 30px; box-shadow: var(--shadow); position: relative; overflow: hidden;
    transition: 0.2s;
}
.card:hover { transform: translateY(-5px); box-shadow: 8px 8px 0 #000; }
.card h3 { font-size: 2rem; margin-bottom: 15px; }
.card.pink { background: var(--pink); }
.card.lime { background: var(--lime); }

/* --- 7. ABOUT PAGE --- */
.story-container { max-width: 900px; margin: 0 auto; padding: 60px 20px; }
.story-header { text-align: center; margin-bottom: 80px; }
.story-header h1 { font-size: 4rem; transform: rotate(-1deg); }

.manifesto-box {
    background: #fff; border: var(--border); padding: 40px; box-shadow: var(--shadow);
    margin-bottom: 60px; transform: rotate(1deg); position: relative;
}
.manifesto-box::before {
    content: "THE TRUTH"; position: absolute; top: -20px; left: 20px; 
    background: var(--purple); color: #fff; padding: 5px 15px; border: var(--border); font-weight: bold; font-family: var(--font-head);
}
.mello-section {
    background: var(--pink); border: var(--border); padding: 50px; border-radius: 20px;
    text-align: center; box-shadow: var(--shadow);
}
.mello-section h2 { font-size: 3rem; color: #fff; -webkit-text-stroke: 2px #000; margin-bottom: 20px; }
.highlight { background: var(--lime); padding: 0 5px; border: 2px solid #000; border-radius: 4px; display: inline-block; transform: rotate(-2deg); }

/* --- 8. SERVICES PAGE (Tech) --- */
.tech-header { background: var(--purple); color: #fff; padding: 80px 20px; text-align: center; border-bottom: var(--border); }
.tech-header h1 { font-size: 4rem; text-shadow: 4px 4px 0 #000; }

.service-row { display: grid; grid-template-columns: 1fr 1fr; border-bottom: var(--border); }
.service-content { padding: 60px; }
.service-visual { background-size: cover; border-left: var(--border); min-height: 400px; filter: grayscale(100%) contrast(120%); background-position: center; }

/* --- SERVICE IMAGES (UPDATED) --- */
/* 1. Data Cloud: Vibrant Blue Sky */
.service-visual.data { 
    background-image: url('https://images.unsplash.com/photo-1513002749550-c59d786b8e6c?auto=format&fit=crop&q=80&w=1000');
    filter: none; /* Shows color */
}

/* 2. Agentforce: Tech/Abstract */
.service-visual.agent { 
    background-image: url('https://images.unsplash.com/photo-1614726365723-498aa67c5f7b?auto=format&fit=crop&q=80&w=1000'); 
    border-left: none; 
    border-right: var(--border); 
}

/* 3. Flow: Code/Abstract (FIXED) */
.service-visual.flow { 
    background-image: url('https://images.unsplash.com/photo-1504639725590-34d0984388bd?auto=format&fit=crop&q=80&w=1000'); 
}

.service-content h2 { font-size: 3rem; margin-bottom: 20px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.tag { background: #fff; border: 2px solid #000; padding: 8px 15px; font-weight: 700; border-radius: 50px; box-shadow: 3px 3px 0 #000; }

.row-reverse { direction: rtl; }
.row-reverse .service-content { direction: ltr; background: var(--lime); }

/* --- 9. CONTACT PAGE --- */
.contact-body { min-height: 100vh; display: flex; flex-direction: column; background: var(--purple); }
.main-wrapper { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px; }
.contact-card {
    background: #fff; border: var(--border); padding: 50px; width: 100%; max-width: 600px;
    box-shadow: 10px 10px 0 var(--lime); border-radius: 20px;
}
.contact-card h1 { font-size: 3rem; margin-bottom: 20px; }
.contact-card form { display: flex; flex-direction: column; gap: 20px; }
.contact-card label { font-weight: 700; font-size: 1.1rem; }
.contact-card input, .contact-card select, .contact-card textarea {
    width: 100%; padding: 15px; border: 2px solid #000; background: var(--bg);
    font-family: var(--font-body); font-size: 1rem; border-radius: 8px;
}
.contact-card input:focus, .contact-card textarea:focus { outline: none; background: var(--pink); }
.contact-card button {
    background: #000; color: var(--lime); font-family: var(--font-head); font-size: 1.5rem;
    padding: 20px; border: none; font-weight: 800; text-transform: uppercase;
    cursor: pointer; box-shadow: 5px 5px 0 rgba(0,0,0,0.5); margin-top: 10px;
    transition: 0.2s;
}
.contact-card button:hover { background: var(--lime); color: #000; box-shadow: 5px 5px 0 #000; transform: translate(-2px, -2px); }

/* --- 10. MEDIA QUERIES (MOBILE) --- */
@media (max-width: 768px) {
    .hero h1 { font-size: 3rem; }
    .btn-group { flex-direction: column; }
    .service-row { grid-template-columns: 1fr; }
    .service-visual { border: none; border-top: var(--border); height: 300px; }
    .contact-card { padding: 30px; }
}