/* Nautical Dark Theme Variables & Reset */
:root {
    --primary-color: #b4966e; 
    --secondary-color: #68594c; 
    --bg-main: #0f172a;       
    --bg-alt: #000719;        
    --card-bg: #0b0f19;       
    --heading-color: #f8fafc; 
    --text-color: #cbd5e1;    
    --border-color: #334155;  
    
    --gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    
    /* NEW Glowing Maritime Background */
    background: radial-gradient(1200px 800px at 30% 0%, rgba(18, 116, 133, 0.8), transparent 60%), 
                radial-gradient(800px 600px at 100% 10%, rgba(56, 191, 248, 0.5), transparent 55%), 
                var(--bg-main);
    background-repeat: no-repeat;
    background-attachment: fixed; /* This keeps the glow locked in place while the user scrolls */
    background-size: cover;
    background-position: center top;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Base Image Responsiveness */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
    color: var(--heading-color);
    margin-bottom: 15px;
    font-weight: 700;
}

h1 { font-size: 3.5rem; line-height: 1.2; }
h1 span { color: var(--primary-color); }
h2 { font-size: 2.5rem; }
p { margin-bottom: 20px; }

.text-center { text-align: center; }

/* Buttons */
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.btn-primary {
    background: var(--gradient);
    color: #ffffff;
    border: none;
}

.btn-primary:hover {
    box-shadow: 0 5px 20px #bba188;
    transform: translateY(0px);
}

.btn-outline {
    background: transparent;
    border-color: var(--text-color);
    color: var(--heading-color);
}

.btn-outline:hover {
    background: var(--heading-color);
    color: var(--bg-main);
}

.btn-inverse {
    background: var(--heading-color);
    color: var(--bg-main);
}

.btn-inverse:hover {
    background: var(--text-color);
}

.btn-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
}

.btn-link:hover {
    gap: 12px;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.site-header.scrolled {
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.6);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    width: 250px;
}

.nav-links {
    display: flex;
    gap: 35px;
}

.nav-links a {
    font-weight: 600;
    color: var(--text-color);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--heading-color);
}

/* Hero Section */
.hero {
    padding: 180px 0 100px;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-content {
    flex: 1.5; 
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center; 
}

.hero-mockup-wrapper {
    perspective: 1000px; 
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.hero-mockup-img {
    width: 680px;
    max-width: 850px;
    height: auto;
    object-fit: cover;
    transition: transform 0.1s ease-out; 
    filter: drop-shadow(0 15px 35px rgba(0,0,0,0.3));
    pointer-events: none; 
}

/* Mockup Placeholders */
.mockup-placeholder {
    width: 100%;
    max-width: 320px;
    height: 600px;
    background: var(--gradient);
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 120px;
    box-shadow: var(--shadow);
    border: 10px solid var(--bg-main); 
}

.image2mockup img{
    width: 600px;
    height: auto;
    object-fit: cover;
}

/* Sections */
section { padding: 100px 0; }
/* Changed from a solid color to a glass effect so the background glows through */
.bg-alt { 
    background: rgba(30, 41, 59, 0.3); 
    backdrop-filter: blur(8px); 
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.bg-gradient { background: var(--gradient); color: #ffffff; }
.bg-gradient h2 { color: #ffffff; }
.bg-gradient p { color: rgba(255, 255, 255, 0.9); margin-bottom: 0; }

/* Features Section */
.features-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.features-image { flex: 1; }
.features-content { flex: 1; }

.icon-box-list { margin-top: 40px; }

.icon-box {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.icon-box .icon i {
    font-size: 1.8rem;
    color: var(--primary-color);
    background: #233243;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.icon-box h3 { margin-bottom: 5px; font-size: 1.2rem; }

/* Tools Section */
.section-header { margin-bottom: 60px; max-width: 600px; margin-inline: auto; }

/* Tools / Ecosystem Section Cards */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: #0b0f19; /* Extremely dark blue/black matching the screenshot */
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05); /* Very subtle light border */
    
    /* New Flexbox rules to align contents */
    display: flex;
    flex-direction: column;
    text-align: left;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(180, 150, 110, 0.3); /* Subtle gold/tan glow on hover */
}

.service-card i {
    font-size: 1.5rem; /* Smaller icon size to match image */
    color: var(--primary-color);
    margin-bottom: 0px;
    display: block;
}

.service-card h3 {
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 15px;
}

.service-card p {
    font-size: 0.95rem;
    color: #94a3b8; /* Slate gray text for description */
    line-height: 1.6;
    margin-bottom: 30px;
    flex-grow: 1; /* This is the magic rule that pushes the link to the very bottom */
}

.service-card .btn-link {
    margin-top: auto; /* Aligns to the bottom of the flex container */
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: var(--transition);
}

.service-card .btn-link:hover {
    gap: 12px;
    color: #ffffff; /* Turns white on hover for nice contrast */
}

/* CTA Section */
.cta-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.cta-form form {
    display: flex;
    gap: 10px;
    background: var(--bg-main);
    padding: 8px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.cta-form input {
    border: none;
    padding: 15px 25px;
    border-radius: 50px;
    width: 350px;
    outline: none;
    background: transparent;
    color: var(--heading-color);
    font-family: inherit;
    font-size: 1rem;
}

.cta-form input::placeholder {
    color: var(--text-color);
}

/* Footer */
.site-footer {
    background: #0b0f19;
    color: #94a3b8;
    padding: 80px 0 30px;
}

.site-footer h2, .site-footer h3 { color: var(--heading-color); }
.site-footer h3 { font-size: 1.2rem; margin-bottom: 20px; }

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a:hover { color: var(--primary-color); }

.app-links i { font-size: 2rem; margin-right: 15px; color: var(--heading-color); cursor: pointer; }
.social-links {
    display: flex;
    flex-wrap: nowrap; /* Forces all icons to stay on one single line */
    gap: 10px; /* Spacing between the icons */
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    color: var(--heading-color);
    border-radius: 50%;
    transition: var(--transition);
    flex-shrink: 0; /* Prevents the circles from squishing if the screen gets small */
}

.social-links a:hover {
    background: var(--primary-color);
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}

/* ========================================= */
/* Scroll Animations Core Styles             */
/* ========================================= */

/* Hidden states before scrolling into view */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

/* Specific transform directions */
.slide-up { transform: translateY(40px); }
.slide-right { transform: translateX(-40px); }
.slide-left { transform: translateX(40px); }
.fade-in { transform: scale(0.95); }

/* The 'visible' state added by JavaScript */
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* Stagger Delays to make lists/grids pop smoothly */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* ========================================= */
/* Responsive Design (All Devices Friendly)  */
/* ========================================= */

@media (max-width: 992px) {
    .hero-container, .features-container { 
        flex-direction: column; 
        text-align: center; 
    }
    
    .features-image { order: 2; margin-top: 40px; }
    .features-content { order: 1; }

    .hero-buttons { justify-content: center; }
    
    .icon-box { 
        flex-direction: column; 
        align-items: center; 
        text-align: center; 
    }
    
    .footer-grid { grid-template-columns: 1fr 1fr; }
    
    section { padding: 80px 0; }
    .hero { padding: 140px 0 80px; }

    /* Override delays on smaller screens to prevent weird staggered breaks */
    .delay-100, .delay-200, .delay-300, .delay-400 { transition-delay: 0ms; }
}

@media (max-width: 768px) {
    .nav-links, .header-actions .btn { display: none; }
    .mobile-menu-btn { display: block; }
    
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-alt);
        padding: 20px;
        box-shadow: 0 10px 15px rgba(0,0,0,0.5);
        border-bottom: 1px solid var(--border-color);
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .cta-container { flex-direction: column; text-align: center; }
    .cta-form form { 
        flex-direction: column; 
        background: transparent; 
        border: none; 
        box-shadow: none; 
        padding: 0;
    }
    .cta-form input { 
        width: 100%; 
        border-radius: 8px; 
        padding: 15px; 
        background: var(--bg-main); 
        border: 1px solid var(--border-color);
    }
    .cta-form button { border-radius: 8px; width: 100%; }
    
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .social-links { justify-content: center; display: flex; }
    
    section { padding: 60px 0; }
    .hero { padding: 120px 0 60px; }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.7rem; }
    
    .hero-buttons { 
        flex-direction: column; 
        width: 100%; 
    }
    
    .hero-buttons .btn { 
        width: 100%; 
    }
    
    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .mockup-placeholder {
        height: 400px;
        font-size: 80px;
    }
}

/* ========================================= */
/* Install Section Styles                    */
/* ========================================= */

.install-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.install-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.install-icon {
    font-size: 3.5rem;
    color: var(--heading-color);
    margin-bottom: 20px;
}

.step-list {
    list-style: none;
    counter-reset: install-counter;
    margin-top: 25px;
}

.step-list li {
    position: relative;
    padding-left: 45px;
    margin-bottom: 20px;
    font-size: 1rem;
    color: var(--text-color);
}

.step-list li strong {
    color: var(--heading-color);
}

.step-list li::before {
    counter-increment: install-counter;
    content: counter(install-counter);
    position: absolute;
    left: 0;
    top: -2px;
    width: 30px;
    height: 30px;
    /* Softened primary color background for the numbers */
    background: rgba(180, 150, 110, 0.15); 
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    border: 1px solid rgba(180, 150, 110, 0.3);
}

/* Ensure the new grid works smoothly on mobile */
@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* ========================================= */
/* Contact Form Styles                       */
/* ========================================= */

.cta-container.align-start {
    align-items: flex-start;
}

.contact-form-wrapper {
    flex: 1;
    max-width: 500px;
    width: 100%;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: rgba(15, 23, 42, 0.4); /* Semi-transparent dark background */
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow);
}

.form-group input,
.form-group textarea {
    width: 100%;
    border: none;
    padding: 15px 20px;
    border-radius: 12px;
    outline: none;
    background: rgba(255, 255, 255, 0.9);
    color: var(--bg-main);
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #64748b;
}

.form-group input:focus,
.form-group textarea:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

#contact-form .btn-inverse {
    width: 100%;
    margin-top: 10px;
}

/* Status Messages */
#form-messages {
    margin-top: 15px;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
}

.success-msg { color: #4ade80; /* Light Green */ }
.error-msg { color: #f87171; /* Light Red */ }

/* ========================================= */
/* Live Screen Width Indicator               */
/* ========================================= */

#screen-width-indicator {
    position: fixed;
    bottom: 20px;
    left: 20px; /* Placed on the left so it doesn't block mobile chat widgets/scrollbars */
    background: rgba(15, 23, 42, 0.85); /* Semi-transparent dark background */
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 50px;
    font-family: monospace; /* Monospace is great for numbers */
    font-size: 0.9rem;
    font-weight: 700;
    z-index: 9999; /* Keeps it on top of everything */
    border: 1px solid rgba(180, 150, 110, 0.3); /* Subtle gold border */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    pointer-events: none; /* Ensures you can still click things underneath it */
}