:root {
    --primary-color: #6366f1;
    --secondary-color: #a855f7;
    --accent-color: #ec4899;
    --text-color: #f8fafc;
    --text-muted: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --bg-dark: #0f172a;
    --background-color: #0f172a;
}

.footer-links {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-color);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Blobs */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s infinite alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: var(--primary-color);
}

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

.blob-3 {
    top: 40%;
    left: 40%;
    width: 30vw;
    height: 30vw;
    background: var(--accent-color);
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(50px, 50px) rotate(20deg);
    }
}

/* Glassmorphism Utilities */
.glass-card,
.glass-nav {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    padding: 1rem 2rem;
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

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

.nav-logo {
    height: 50px;
    width: auto;
    transform: translateY(9px);
}

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

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

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

/* Buttons */
.btn-primary,
.btn-secondary {
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    flex: 1;
    padding: 3rem;
    border-radius: 24px;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #cbd5e1);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* Mockup */
.mockup-container {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 16/10;
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mockup-header {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red {
    background: #ef4444;
}

.yellow {
    background: #eab308;
}

.green {
    background: #22c55e;
}

.mockup-body {
    display: flex;
    gap: 1rem;
    height: 100%;
}

.skeleton-sidebar {
    width: 20%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.skeleton-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skeleton-header {
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    flex: 1;
}

.skeleton-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

/* Features Section */
.features {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    background: linear-gradient(to right, #fff, #cbd5e1);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    border-radius: 20px;
    transition: transform 0.3s;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-card p {
    color: var(--text-muted);
}

/* Security Section */
.security {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.security-content {
    padding: 4rem;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.security-text ul {
    list-style: none;
    margin-top: 2rem;
}

.security-text li {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.security-text i {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

/* Pricing Section */
.pricing {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pricing-card {
    padding: 3rem;
    border-radius: 30px;
    width: 100%;
    max-width: 500px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.pricing-header h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.price {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.price span {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 400;
}

.pricing-features {
    list-style: none;
    margin: 2rem 0;
    text-align: left;
}

.pricing-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pricing-features i {
    color: var(--green);
    color: #22c55e;
}

.full-width {
    display: block;
    width: 100%;
}

/* Footer */
.footer {
    margin-top: 4rem;
    padding: 4rem 2rem 2rem;
    border-radius: 30px 30px 0 0;
    text-align: center;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

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

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

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

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
    background: none;
    border: none;
    padding: 0;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Responsive */
@media (max-width: 1024px) {
    .glass-nav {
        width: 95%;
        padding: 1rem;
    }

    .hero {
        padding: 6rem 2rem 2rem;
        gap: 2rem;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .showcase-grid {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    }
}

@media (max-width: 768px) {
    .glass-nav {
        padding: 1rem 1.5rem;
        width: 90%;
        justify-content: space-between;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 100%;
        /* Full width on mobile for better touch targets */
        background: rgba(15, 23, 42, 0.95);
        /* More transparent for glass effect */
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        z-index: 999;
    }

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

    .nav-links li {
        opacity: 0;
        transform: translateX(20px);
        transition: all 0.4s ease;
        margin: 1.5rem 0;
    }

    .nav-links a {
        font-size: 1.5rem;
        /* Larger font for mobile menu */
    }

    .nav-links.nav-active li {
        opacity: 1;
        transform: translateX(0);
    }

    /* Hamburger Animation */
    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .toggle .line2 {
        opacity: 0;
    }

    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .logo {
        position: relative;
        /* Reset position */
        left: auto;
        transform: none;
        max-width: 60%;
        /* Ensure logo doesn't overlap hamburger */
    }

    .nav-logo {
        height: auto;
        /* Fix distortion */
        max-width: 100%;
        max-height: 50px;
        /* Maintain max height */
        width: auto;
    }

    /* Center logo visually if needed, but flex-between handles it well with hamburger */

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 8rem;
        gap: 3rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
    }

    .hero-content {
        padding: 1rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .showcase-grid {
        grid-template-columns: 1fr;
        /* Stack vertically */
        gap: 3rem;
    }

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

    .tests-grid {
        grid-template-columns: 1fr;
        /* Assuming tests-grid exists, if not it will be ignored */
    }

    .security-content {
        padding: 2rem;
        flex-direction: column;
        width: 100%;
    }

    .security-text ul {
        padding-left: 0;
    }

    .pricing-card {
        padding: 2rem;
        width: 100%;
        /* Ensure full width */
        max-width: none;
    }

    .footer-content {
        padding: 0 1rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .contact-container,
    .info-container {
        padding: 2rem 1.5rem;
        width: 100%;
    }

    /* Adjust browser frame height for mobile */
    .browser-content {
        height: 400px;
    }

    .browser-frame:hover .browser-content img {
        transform: translateY(calc(-100% + 400px));
    }

    .mockup-container {
        width: 100%;
        height: auto;
        aspect-ratio: auto;
        /* Allow flexible height */
    }
}

@media (max-width: 480px) {
    .glass-nav {
        width: 95%;
        padding: 0.8rem 1rem;
    }

    .nav-logo {
        width: 120px;
        /* Smaller logo */
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }

    .showcase-item,
    .feature-card,
    .test-card {
        padding: 1.5rem 1rem;
    }

    .browser-content {
        height: 300px;
    }

    .browser-frame:hover .browser-content img {
        transform: translateY(calc(-100% + 300px));
    }
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Contact Page */
.contact-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
}

.contact-container {
    width: 100%;
    max-width: 600px;
    padding: 3rem;
    border-radius: 24px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    margin-left: 0.5rem;
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.captcha-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.captcha-img {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 280px;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.alert-success {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

.alert-error {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

/* Showcase Section */
.showcase {
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 4rem;
}

.showcase-item {
    padding: 1.5rem;
    border-radius: 20px;
    text-align: center;
}

.showcase-item h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

/* Browser Frame & Scroll Effect */
.browser-frame {
    background: #1e293b;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    /* Removed fixed aspect ratio to allow taller content */
}

.browser-header {
    background: #334155;
    padding: 1rem;
    display: flex;
    gap: 10px;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10;
    position: relative;
}

.browser-content {
    width: 100%;
    height: 600px;
    /* Increased height for better visibility */
    overflow: hidden;
    position: relative;
}

.browser-content img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 6s ease-in-out;
    /* Slower transition for longer images */
}

/* Hover Effect: Scroll Image */
.browser-frame:hover .browser-content img {
    transform: translateY(calc(-100% + 600px));
    /* Scroll to bottom based on new height */
}

/* Hero Image Fix */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-visual {
    padding: 1rem;
    border-radius: 20px;
    max-width: 100%;
}

.hero-img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

/* Tests Section */
.tests {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.tests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.test-card {
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s;
}

.test-card:hover {
    transform: translateY(-5px) scale(1.02);
}

.test-card img {
    width: 100%;
    height: auto;
    /* Allow full height */
    object-fit: contain;
    /* Ensure full image is visible */
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.test-card h4 {
    font-size: 1.2rem;
    color: var(--text-color);
}

/* Info Pages (About, Legal, Privacy, Terms) */
.info-section {
    padding: 8rem 2rem 4rem;
    max-width: 1000px;
    margin: 0 auto;
    min-height: 100vh;
}

.info-container {
    padding: 3rem;
    border-radius: 24px;
}

.info-header {
    text-align: center;
    margin-bottom: 3rem;
}

.info-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #cbd5e1);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.info-content h2 {
    color: var(--primary-color);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.info-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.info-content ul {
    list-style: none;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
}

.info-content li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-muted);
}

.info-content li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.info-content a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s;
}

.info-content a:hover {
    color: var(--primary-color);
}