:root {
    --primary: #010756;
    --secondary: #F7BC31;
    --accent: #10b981;
    --bg-light: #FAF9E9;
    --text-dark: #32315C;
    --text-muted: #4a5568;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow: 0 10px 30px rgba(1, 7, 86, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Figtree', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Base Styles */
h1,
h2,
h3,
h4 {
    font-weight: 800;
    color: var(--primary);
}

a {
    text-decoration: none;
    transition: 0.3s;
}

ul {
    list-style: none;
}

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

.mt-4 {
    margin-top: 1.5rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-5 {
    margin-top: 3rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.ml-2 {
    margin-left: 0.5rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.section-padding {
    padding: 100px 0;
}

@media (max-width: 768px) {
    .flex-column-mobile {
        flex-direction: column !important;
    }
}

/* Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(1, 7, 86, 0.05);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

nav {
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo img {
    height: 40px;
}

.logo h2 {
    color: var(--primary);
    margin: 0;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--primary);
    font-weight: 600;
}

.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
    padding: 10px;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
    display: block;
    background: var(--primary);
    height: 2px;
    width: 25px;
    border-radius: 2px;
    position: relative;
    transition: 0.3s;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
    content: '';
    position: absolute;
}

.nav-toggle-label span::before {
    bottom: 8px;
}

.nav-toggle-label span::after {
    top: 8px;
}

.btn-api-login {
    background: var(--primary);
    color: var(--white) !important;
    padding: 10px 25px;
    border-radius: 50px;
}

.btn-secondary {
    background: var(--secondary);
    color: var(--primary) !important;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: bold;
}

.shadow-sm {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--bg-light);
    overflow: hidden;
    padding: 100px 0 60px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img {
    width: 100%;
    max-width: 550px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(1, 7, 86, 0.15));
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero h1 span {
    color: var(--secondary);
}

.hero p {
    font-size: 1.15rem;
    margin-bottom: 35px;
    color: var(--text-muted);
}

.hero-actions {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.learn-more {
    color: var(--primary);
    font-weight: 700;
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 2px;
}

/* Grid Sections */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.card {
    background: var(--white);
    padding: 35px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.card:hover {
    transform: translateY(-8px);
    border-bottom: 5px solid var(--secondary);
}

.card i {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 20px;
    display: block;
}

/* Hifz Section */
.hifz-section {
    background: var(--primary);
    color: var(--white);
    border-radius: 40px;
    margin: 40px 0;
    overflow: hidden;
}

.hifz-content {
    padding: 60px;
    display: flex;
    align-items: center;
    gap: 50px;
}

.hifz-text {
    flex: 1.2;
}

.hifz-features {
    list-style: none;
    color: var(--white);
    opacity: 1;
}

.hifz-features li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hifz-features li i {
    color: var(--secondary);
}

.hifz-image {
    flex: 1;
}

.hifz-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 15px 15px 0 var(--secondary);
}

/* Computer Section */
.tech-row {
    display: flex;
    gap: 60px;
    align-items: center;
}

.tech-image-container,
.tech-content {
    flex: 1;
}

.tech-img {
    width: 100%;
    border-radius: 30px;
}

.computer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.tech-card {
    background: var(--white);
    padding: 20px;
    border-radius: 15px;
    display: flex;
    gap: 15px;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.tech-card .icon {
    min-width: 50px;
    height: 50px;
    background: rgba(247, 188, 49, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 1.2rem;
}

.hifz-badge {
    background: rgba(247, 188, 49, 0.15);
    color: var(--primary);
    padding: 8px 18px;
    border-radius: 50px;
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

/* Footer Section */
.footer-main {
    background: var(--primary);
    color: var(--white);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
}

.footer-brand p {
    opacity: 0.7;
    margin-top: 20px;
    max-width: 300px;
}

.footer-links h4,
.footer-social h4 {
    margin-bottom: 25px;
    color: var(--white);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links ul li a:hover {
    color: var(--secondary);
}

.social-icons {
    display: flex;
    gap: 15px;
}

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

.footer-map iframe {
    border: 0;
    border-radius: 15px;
    filter: grayscale(1) invert(1) contrast(0.8) brightness(0.8);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.fadeInUp {
    animation: fadeInUp 0.8s ease forwards;
}

.animate {
    opacity: 0;
    transition: all 0.6s ease;
}

/* Fallback if JS fails */
@media (prefers-reduced-motion: reduce) {
    .animate {
        opacity: 1 !important;
    }
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }

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

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }

    /* Nav Mobile */
    .nav-toggle-label {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 40px;
        gap: 20px;
        transform: translateY(-150%);
        transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .nav-toggle:checked~.nav-links {
        transform: translateY(0);
    }

    .nav-toggle:checked~.nav-toggle-label span {
        background: transparent;
    }

    .nav-toggle:checked~.nav-toggle-label span::before {
        transform: rotate(45deg);
        top: 0;
    }

    .nav-toggle:checked~.nav-toggle-label span::after {
        transform: rotate(-45deg);
        top: 0;
    }

    /* Hero Mobile */
    .hero {
        padding-top: 100px;
        text-align: center;
        min-height: auto;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-content {
        padding: 0;
        order: 1;
    }

    .hero-image-container {
        order: 2;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-actions {
        justify-content: center;
    }

    /* Layout Sections */
    .hifz-content,
    .tech-row {
        flex-direction: column;
        padding: 30px;
        gap: 30px;
    }

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

    .hifz-image img {
        box-shadow: 10px 10px 0 var(--secondary);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-brand p {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .card {
        padding: 25px;
    }

    .hifz-content {
        padding: 20px;
    }
}