:root {
    --primary: #005C7D;
    /* Logo Dark Teal */
    --primary-dark: #004660;
    --secondary: #00B4DB;
    /* Logo Cyan */
    --accent: #D4E040;
    /* Logo Lime */
    --accent-green: #44B649;
    /* Logo Green */
    --background: #ffffff;
    --surface: #f8fafc;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --glass: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 0, 0, 0.08);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--background);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Gradient Backgrounds */
.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-bg {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0.75rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to right, #005C7D, #00B4DB);
    /* Vibrant Teal to Cyan */
    box-shadow: 0 4px 15px rgba(0, 92, 125, 0.2);
    z-index: 1000;
}

.logo span {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    font-family: var(--font-heading);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
}

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

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

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

.btn-cta {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 99px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 15px -3px rgba(0, 92, 125, 0.2);
}

nav .btn-cta {
    background: white;
    color: var(--primary);
    padding: 0.6rem 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

nav .btn-cta:hover {
    background: #f8fafc;
    color: var(--primary-dark);
    transform: translateY(-1px);
}

/* Sections */
section {
    padding: 8rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 8rem 5%;
    overflow: hidden;
    background: var(--background);
    max-width: none;
    width: 100%;
}


.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.dot-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--glass-border) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.5;
}

.hero-dashboard-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('image/hero-dashboard.png');
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    filter: blur(40px) saturate(0);
    z-index: -3;
    pointer-events: none;
}


.blob {
    position: absolute;
    filter: blur(80px);
    border-radius: 50%;
    opacity: 0.4;
    z-index: -1;
    animation: blob-float 20s infinite alternate cubic-bezier(0.45, 0, 0.55, 1);
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: var(--primary);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary);
    bottom: -10%;
    right: -10%;
    animation-delay: -5s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    top: 40%;
    right: 20%;
    animation-delay: -10s;
}

/* Ghost Background Cards */
.ghost-card {
    position: absolute;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 45px rgba(0,0,0,0.03);
    border: 1px solid var(--glass-border);
    opacity: 0.4;
    z-index: -1;
    pointer-events: none;
    animation: floating-slight 12s infinite ease-in-out;
}

.card-1 { width: 300px; height: 180px; top: 15%; right: 10%; transform: rotate(15deg); animation-delay: 0s; }
.card-2 { width: 220px; height: 220px; bottom: 20%; left: 5%; transform: rotate(-10deg); animation-delay: -3s; }
.card-3 { width: 260px; height: 140px; top: 40%; left: 15%; transform: rotate(-5deg); animation-delay: -6s; }

@keyframes floating-slight {
    0%, 100% { transform: translate(0, 0) rotate(var(--rot, 0deg)); }
    50% { transform: translate(0, -20px) rotate(var(--rot, 0deg)); }
}

.card-1 { --rot: 15deg; }
.card-2 { --rot: -10deg; }
.card-3 { --rot: -5deg; }


@keyframes blob-float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

.hero-container {
    position: relative;
    z-index: 5; /* Ensure content is definitely above bg elements */
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1550px;
    width: 100%;
}

@media (max-width: 1400px) {
    .hero-container {
        gap: 2rem;
        padding: 0 4%;
    }
}


.hero-content {
    text-align: left;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.hero-content p {
    font-size: clamp(1.1rem, 1.5vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 540px;
}

.hero-visual {
    position: relative;
    perspective: 1000px;
}

.hero-image-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.15),
        0 30px 60px -30px rgba(0, 0, 0, 0.2);
    transform: rotateY(-5deg) rotateX(5deg);
    transition: var(--transition);
    border: 1px solid var(--glass-border);
}

.hero-image-wrapper:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

.hero-image-wrapper img {
    width: 100%;
    display: block;
    filter: saturate(1.1);
}

.glass-glare {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    pointer-events: none;
}




.badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(0, 0, 0, 0.05);
    color: #000000;
    border-radius: 99px;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 99px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: var(--glass-border);
    transform: translateY(-2px);
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary);
    box-shadow: 0 20px 25px -5px rgba(0, 180, 219, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 180, 219, 0.1);
    color: var(--secondary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 180, 219, 0.2);
}

input:focus {
    border-color: var(--secondary) !important;
    box-shadow: 0 0 0 4px rgba(0, 180, 219, 0.2);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    /* Subtle dark tint instead of opaque white */
    backdrop-filter: blur(1px);
    /* Reduced from 8px */
    display: none;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem 1rem;
    overflow-y: auto;
    z-index: 9999; /* Boost z-index to stay above everything */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--surface);
    width: 100%;
    max-width: 480px; /* Slightly wider for better form layout */
    padding: 2rem;
    border-radius: 20px;
    /* Slightly tighter corners */
    border: 1px solid var(--glass-border);
    position: relative;
    margin: auto;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--text-primary);
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    margin-bottom: 1rem;
    /* Further reduced from 1.5rem */
}

.modal-header h2 {
    font-size: 1.5rem;
    /* Smaller title */
    margin-bottom: 0.15rem;
}

.modal-header p {
    color: var(--text-secondary);
}

/* Form Styles */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
    background: var(--surface);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* Force single column in narrow modal regardless of screen size */
.modal-content .form-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}


.demo-form {
    display: grid;
    gap: 1.5rem;
}


.form-group {
    display: grid;
    gap: 0.25rem;
    /* Reduced from 0.4rem */
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 0.65rem 0.9rem;
    /* Further reduced from 0.8rem 1rem */
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    background: #ffffff;
    color: var(--text-primary);
    font-size: 0.9rem;
    /* Smaller font */
    outline: none;
    transition: var(--transition);
    font-family: inherit;
    appearance: none;
    /* For cleaner select dropdown */
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2rem;
    padding-right: 3rem;
    padding: 0.65rem 0.9rem;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    background-color: #ffffff;
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
    font-family: inherit;
    appearance: none;
}


.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--secondary);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 180, 219, 0.05);
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 2rem 0;
}

.success-icon {
    width: 64px;
    height: 64px;
    background: rgba(68, 182, 73, 0.1);
    color: var(--accent-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

.success-message h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.success-message p {
    color: var(--text-secondary);
}

/* Footer */
footer {
    padding: 4rem 2rem;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    background: #f1f5f9;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.social-links a {
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary);
}

/* Animations */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 4rem;
        padding-top: 4rem;
    }

    .hero-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-content h1 {
        font-size: clamp(2.25rem, 5vw, 3rem);
    }

    .hero-content p {
        margin: 0 auto 2.5rem;
    }

    .hero-visual {
        max-width: 600px;
        width: 100%;
        margin: 0 auto;
    }

    .nav-links {
        display: none;
    }
}
@media (max-width: 480px) {
    .hero-btns {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .btn-cta, .btn-secondary {
        width: 100%;
        text-align: center;
    }
    
    section {
        padding: 5rem 1rem;
    }
    
    .modal-content {
        padding: 1.5rem;
    }
}
