/* --- CSS VARIABLES & RESET --- */
:root {
    --primary: #6d28d9; /* Royal Purple */
    --accent: #38bdf8; /* Sky Blue */
    --accent-hover: #0ea5e9;
    --text-dark: #312e81;
    --text-light: #818cf8;
    --bg-light: #faf5ff;
    --white: #ffffff;
    --shadow: 0 10px 25px -10px rgba(109,40,217,0.25);
    --transition: all 0.3s ease;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--primary);
    line-height: 1.2;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- UTILITIES --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-padding {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

.section-header {
    margin-bottom: 3rem;
    text-align: center;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
    text-transform: capitalize;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(109,40,217, 0.39);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(109,40,217, 0.23);
}

.btn-outline {
    border-color: var(--accent);
    color: var(--accent);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--accent);
    color: var(--white);
}

/* --- ANIMATION CLASSES --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- HEADER --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

header.scrolled {
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: var(--accent);
}

.nav-menu {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- HERO SECTION --- */
.hero {
    padding-top: 160px;
    padding-bottom: 100px;
    background: linear-gradient(135deg, #e8ddf9 0%, #e8ddf9 100%);
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

/* Hero Animation (CSS Illustration) */
.hero-visual {
    position: relative;
    height: 400px;
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 40px;
    overflow: hidden;
}

.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    height: 200px;
}

.bar {
    width: 40px;
    background: var(--accent);
    border-radius: 5px 5px 0 0;
    animation: growBar 2s ease-out forwards;
    opacity: 0.8;
}

.bar:nth-child(1) {
    height: 40%;
    animation-delay: 0.1s;
}

.bar:nth-child(2) {
    height: 60%;
    animation-delay: 0.2s;
    background: var(--primary);
}

.bar:nth-child(3) {
    height: 85%;
    animation-delay: 0.3s;
}

.bar:nth-child(4) {
    height: 50%;
    animation-delay: 0.4s;
}

.coin {
    position: absolute;
    top: 20%;
    right: 20%;
    font-size: 3rem;
    color: #fbbf24;
    animation: floatCoin 3s ease-in-out infinite;
}

@keyframes growBar {
    from {
        transform: scaleY(0);
    }

    to {
        transform: scaleY(1);
    }
}

@keyframes floatCoin {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.hero-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.stat-item h3 {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 5px;
}

/* --- ABOUT PREVIEW --- */
.about {
    background-color: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.value-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-10px);
    background: var(--white);
    box-shadow: var(--shadow);
}

.value-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 20px;
}

/* --- WHY CHOOSE US --- */
.why-us {
    background-color: var(--bg-light);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.why-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
}

.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(109,40,217, 0.9), rgba(15, 23, 42, 0.95));
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.why-card:hover::before {
    opacity: 1;
}

.why-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
    transition: 0.3s;
}

.why-title {
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
    transition: 0.3s;
}

.why-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    position: relative;
    z-index: 2;
    opacity: 1;
    transition: 0.3s;
}

.why-card:hover .why-icon,
.why-card:hover .why-title,
.why-card:hover .why-desc {
    color: var(--white);
    opacity: 1;
}

.hidden-desc {
    color: var(--white);
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.4s;
}

.why-card:hover .hidden-desc {
    opacity: 1;
    transform: translateY(0);
}

/* --- SERVICES --- */
.services {
    background-color: var(--white);
}

.service-category {
    margin-bottom: 40px;
    border: 1px solid #eee;
    border-radius: 15px;
    padding: 30px;
    transition: var(--transition);
}

.service-category:hover {
    box-shadow: var(--shadow);
    transform: scale(1.02);
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.service-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.service-item {
    background: var(--bg-light);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
    transition: 0.3s;
}

.service-item:hover {
    background: var(--accent);
    color: var(--white);
}

.service-cta {
    margin-top: 20px;
    text-align: right;
}

/* --- TESTIMONIALS --- */
.testimonials {
    background: var(--primary);
    color: var(--white);
}

.testimonials h2 {
    color: var(--white);
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    min-height: 250px;
}

.testimonial-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    text-align: center;
    padding: 20px;
}

.testimonial-item.active {
    opacity: 1;
    position: relative;
}

.quote-text {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 20px;
    color: #e2e8f0;
}

.quote-author {
    font-weight: 700;
    color: var(--accent);
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: var(--accent);
    transform: scale(1.2);
}

/* --- FAQ --- */
.faq {
    background-color: var(--bg-light);
}

.accordion-item {
    background: var(--white);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.accordion-header {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--primary);
}

.accordion-header i {
    transition: 0.3s;
}

.accordion-header.active i {
    transform: rotate(180deg);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    padding: 0 20px;
}

.accordion-body p {
    padding-bottom: 20px;
    font-size: 0.95rem;
}

/* --- CONTACT & NEWSLETTER --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    transition: 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(109,40,217, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.newsletter-box {
    background: var(--primary);
    color: var(--white);
    padding: 60px 20px;
    text-align: center;
    border-radius: 20px;
}

.newsletter-form {
    max-width: 500px;
    margin: 30px auto 0;
    display: grid;
    gap: 15px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    justify-content: center;
    cursor: pointer;
}

.checkbox-label input {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
}

/* --- FOOTER --- */
footer {
    background: #020617;
    color: #94a3b8;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.social-icons a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    margin-right: 10px;
    transition: 0.3s;
}

.social-icons a:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* --- MODAL --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 20px;
    overflow-y: auto;
}

.modal-content {
    background-color: var(--white);
    margin: 10% auto;
    padding: 40px;
    border-radius: 10px;
    max-width: 700px;
    position: relative;
    animation: slideDown 0.4s ease;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-light);
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {

    .hero-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .hero-content {
        text-align: center;
        order: 2;
    }

    .hero-visual {
        order: 1;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
}