:root {
    --bg-color: #FFFFFF;
    --bg-secondary: #F9FAFB;
    --bg-tertiary: #F3F4F6;

    /* KSEF-like Red Palette */
    --primary-color: #C0020B;
    /* Deep Gov Red */
    --primary-hover: #991B1B;
    --primary-gradient: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
    --accent-red-light: rgba(220, 38, 38, 0.1);

    --text-main: #111827;
    --text-muted: #4B5563;
    --text-light: #6B7280;

    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 0, 0, 0.08);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --card-hover-shadow: 0 20px 40px rgba(185, 28, 28, 0.15);
}

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

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

h1,
h2,
h3,
.logo {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
}

/* Background Effects */
.pattern-grid {
    position: fixed;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(200, 200, 200, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(200, 200, 200, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    pointer-events: none;
}

.background-glow {
    position: fixed;
    top: -20%;
    right: -10%;
    width: 70vw;
    height: 70vw;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.04) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: -2;
    pointer-events: none;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #1F2937;
}

.logo .highlight {
    color: var(--primary-color);
}

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

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

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

.btn-primary-small {
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    color: var(--primary-color) !important;
    font-weight: 600 !important;
    transition: all 0.3s;
}

.btn-primary-small:hover {
    background: var(--primary-color);
    color: white !important;
    border-color: var(--primary-color);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    padding-top: 80px;
    position: relative;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
}

.badge-new {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: #FEF2F2;
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 50px;
    margin-bottom: 1rem;
    border: 1px solid #FCA5A5;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.03em;
}

.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

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

.btn-primary {
    padding: 0.9rem 2.2rem;
    background: var(--primary-gradient);
    border: none;
    border-radius: 6px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.4);
    background: linear-gradient(135deg, #B91C1C 0%, #991B1B 100%);
}

.btn-secondary {
    padding: 0.9rem 2.2rem;
    background: white;
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.hero-image-container {
    position: relative;
    width: 500px;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glass-card {
    background: white;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0;
    /* removed padding to allow header to be full width */
    width: 360px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.card-header {
    background: #F3F4F6;
    padding: 0.8rem 1rem;
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid #E5E7EB;
}

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

.dot.red {
    background: #EF4444;
}

.dot.yellow {
    background: #FBBF24;
}

.dot.green {
    background: #10B981;
}

.card-body {
    padding: 2rem;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #FEF2F2;
    border-radius: 8px;
    border: 1px solid #FECACA;
    overflow: hidden;
}

.file-item span:not(.status) {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.file-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.status {
    font-size: 0.8rem;
    color: var(--primary-color);
    color: var(--primary-color);
    margin-left: auto;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.margin-top {
    margin: 0 2rem 2rem 2rem;
    justify-content: center;
}

/* Connection Line */
.connection-line {
    position: absolute;
    width: 2px;
    height: 100vh;
    background: linear-gradient(180deg, transparent, var(--primary-color), transparent);
    left: 50%;
    top: -50%;
    opacity: 0.2;
    z-index: 0;
}

.status-badge {
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-badge.success {
    background: #ECFDF5;
    color: #059669;
    border: 1px solid #D1FAE5;
}

.small-card {
    position: absolute;
    width: 220px;
    padding: 1.2rem;
    right: -30px;
    bottom: 20px;
    z-index: 3;
    background: white;
    box-shadow: var(--card-shadow);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.icon-small {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.card-content-small strong {
    font-size: 0.9rem;
    color: var(--text-main);
    display: block;
}

/* Animations */
.float-animation {
    animation: float 6s ease-in-out infinite;
}

.float-animation-delayed {
    animation: float 7s ease-in-out infinite reverse;
    animation-delay: 1s;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Sections */
.section {
    padding: 6rem 10%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #111827;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.15rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

/* About Section */
.text-block p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: #111827;
}

.feature-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.feature-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* Mission Section - Now Light Gray instead of Dark */
.dark-bg {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 350px;
}

.icon-display {
    font-size: 8rem;
    color: var(--primary-color);
    filter: drop-shadow(0 10px 20px rgba(185, 28, 28, 0.2));
    animation: fadePulse 4s infinite;
}

.circle-blur {
    position: absolute;
    width: 250px;
    height: 250px;
    background: rgba(220, 38, 38, 0.05);
    border-radius: 50%;
    z-index: -1;
}

@keyframes fadePulse {
    0% {
        opacity: 0.8;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }

    100% {
        opacity: 0.8;
        transform: scale(1);
    }
}

/* Mission Lines */
.line-deco {
    position: absolute;
    background: var(--primary-color);
    opacity: 0.1;
    z-index: 0;
}

.line-1 {
    width: 1px;
    height: 120%;
    left: 45%;
    top: -10%;
}

.line-2 {
    width: 120%;
    height: 1px;
    top: 50%;
    left: -10%;
}

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

.feature-box {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--card-shadow);
    transition: all 0.3s;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
    border-color: rgba(220, 38, 38, 0.1);
}

.icon-bg {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background: #FEF2F2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* Newsletter */
.cta-section {
    display: flex;
    justify-content: center;
}

.glass-panel {
    background: white;
    border: 1px solid var(--glass-border);
    padding: 4rem;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    text-align: center;
    width: 100%;
    max-width: 800px;
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--primary-gradient);
}

.glass-panel h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.glass-panel p {
    margin-bottom: 2.5rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.newsletter-form {
    margin-top: 0;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.newsletter-form input {
    padding: 0.9rem 1.5rem;
    border-radius: 6px;
    border: 1px solid #E5E7EB;
    background: #F9FAFB;
    color: #111827;
    width: 320px;
    font-size: 1rem;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Footer */
footer {
    padding: 3rem 10%;
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
    background: var(--bg-secondary);
    color: var(--text-muted);
}

.socials a {
    color: var(--text-light);
    font-size: 1.3rem;
    transition: color 0.3s;
}

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

/* Footer */
footer {
    padding: 3rem 10%;
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
    background: var(--bg-secondary);
    color: var(--text-muted);
}

.footer-content.centered {
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    opacity: 0.7;
    letter-spacing: 0.5px;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

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

.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, -6px);
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 5%;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 70%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

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

    .nav-links a {
        font-size: 1.2rem;
        margin: 1rem 0;
    }

    .hero {
        flex-direction: column;
        padding-top: 100px; /* Increased to avoid overlap with nav */
        padding-bottom: 3rem;
        text-align: center;
        /* Ensure content doesn't get cut off */
        height: auto;
        min-height: auto; 
    }

    .hero-content {
        margin-bottom: 3rem;
        width: 100%;
    }

    h1 {
        font-size: 2.2rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        width: 100%;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
    }

    .grid-2 {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-image-container {
        width: 100%;
        height: 400px; /* Fixed height for container on mobile */
        margin-bottom: 3rem;
        display: flex;
        justify-content: center;
    }

    .glass-card {
        width: 90%; /* Responsive width */
        max-width: 340px;
    }

    .reverse-stack {
        display: flex;
        flex-direction: column-reverse;
    }

    .small-card {
        right: 50%;
        transform: translateX(50%); /* Center it horizontally relative to parent */
        bottom: -20px;
        width: 80%;
        justify-content: center;
    }
    
    /* Fix float animation conflict with transform centering */
    .small-card.float-animation-delayed {
        animation: none; /* Disable complex animation on mobile to prevent layout issues */
    }

    /* Newsletter Form Mobile */
    .newsletter-form input {
        width: 100%;
    }
    
    .newsletter-form button {
        width: 100%;
    }

    .section {
        padding: 4rem 5%;
    }

    .glass-panel {
        padding: 2rem;
    }
    
    .glass-panel h2 {
        font-size: 1.5rem;
    }
}