/* Base Styles & Variables */
:root {
    --color-indigo: #4B0082;
    --color-lime: #C4FF00;
    --color-fuchsia: #FF3CAC;
    --color-bg-light: #FCF7FF;
    --color-bg-dark: #E5E5E5;
    --color-text: #2A2A2A;
    --font-primary: 'Poppins', sans-serif;
    --border-radius-sm: 0.25rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 1rem;
    --border-radius-xl: 1.5rem;
    --border-radius-2xl: 2rem;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Reset & Global Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    background: linear-gradient(135deg, var(--color-bg-light), var(--color-bg-dark));
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-indigo);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--color-fuchsia);
}

ul, ol {
    list-style-position: inside;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 5rem 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    color: var(--color-indigo);
    position: relative;
    margin-bottom: 2.5rem;
    text-align: center;
}

h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-lime), var(--color-fuchsia));
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    border-radius: var(--border-radius-lg);
}

h3 {
    font-size: 1.75rem;
    color: var(--color-indigo);
}

p {
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    font-weight: 600;
    text-align: center;
    border-radius: var(--border-radius-2xl);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    border: none;
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background-color: var(--color-indigo);
    color: white;
}

.btn-primary:hover {
    background-color: #5B0092;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-gradient {
    background: linear-gradient(90deg, var(--color-lime), var(--color-fuchsia));
    color: white;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Header & Navigation */
.main-header {
    padding: 1rem 0;
    background-color: white;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    max-width: 150px;
    height: auto;
}

.main-nav ul {
    display: flex;
    gap: 1.5rem;
    list-style-type: none;
}

.main-nav a {
    color: var(--color-text);
    font-weight: 600;
    position: relative;
}

.main-nav a.active,
.main-nav a:hover {
    color: var(--color-fuchsia);
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: linear-gradient(90deg, var(--color-lime), var(--color-fuchsia));
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    cursor: pointer;
}

.menu-checkbox {
    display: none;
}

.menu-line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-indigo);
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: var(--border-radius-sm);
}

/* Hero Section */
.hero {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(252, 247, 255, 0.9), rgba(229, 229, 229, 0.9)), url('./img/Ynoxgo.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    animation: fadeIn 1s ease-in-out;
}

.hero-content {
    max-width: 700px;
    z-index: 2;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    margin-bottom: 1.5rem;
    color: var(--color-indigo);
}

.hero-cta {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* About Section */
.about {
    background-color: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    margin: 5rem auto;
    overflow: hidden;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.about-image {
    overflow: hidden;
    border-radius: var(--border-radius-lg);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.about-image img:hover {
    transform: scale(1.05);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background-color: white;
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 100%;
    height: 200px;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-icon img:hover {
    transform: scale(1.05);
}

/* Why Us Section */
.why-us {
    background-color: var(--color-indigo);
    color: white;
    position: relative;
}

.why-us h2 {
    color: white;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.advantage-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.advantage-icon {
    width: 60px;
    height: 60px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--color-indigo);
    font-size: 1.5rem;
}

/* Case Studies Section */
.case-studies {
    overflow: hidden;
}

.slider {
    position: relative;
    overflow: hidden;
    margin: 3rem auto;
    max-width: 1000px;
}

.slides {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* For Firefox */
}

.slides::-webkit-scrollbar {
    display: none; /* For Chrome and other browsers */
}

.slides > div {
    scroll-snap-align: start;
    flex-shrink: 0;
    width: 100%;
    height: 400px;
    margin-right: 2rem;
    border-radius: var(--border-radius-lg);
    background: white;
    transform-origin: center center;
    transition: transform 0.5s;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
}

.slider-nav {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    gap: 0.5rem;
}

.slider-nav a {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    opacity: 0.75;
    transition: opacity 0.3s;
}

.slider-nav a.active,
.slider-nav a:hover {
    opacity: 1;
    background: linear-gradient(90deg, var(--color-lime), var(--color-fuchsia));
}

/* Testimonials Section */
.testimonials {
    background-color: white;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--color-bg-light);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 5rem;
    color: var(--color-fuchsia);
    opacity: 0.2;
    line-height: 1;
}

.testimonial-content {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
}

.testimonial-author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-author-info h4 {
    margin-bottom: 0.25rem;
    color: var(--color-indigo);
}

/* Contact Form Section */
.contact-section {
    background-color: white;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--color-bg-light);
    border-radius: var(--border-radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.form-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(90deg, var(--color-lime), var(--color-fuchsia));
    border-radius: calc(var(--border-radius-xl) + 2px);
    z-index: -1;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius-md);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-indigo);
    box-shadow: 0 0 0 2px rgba(75, 0, 130, 0.2);
}

.checkbox-group {
    margin-top: 0.5rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 0.75rem;
    width: 18px;
    height: 18px;
}

.form-submit {
    margin-top: 2rem;
    text-align: center;
}

/* FAQ Section */
.faq-section {
    background-color: var(--color-bg-light);
}

.faq-container {
    max-width: 800px;
    margin: 3rem auto 0;
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background-color: white;
}

.faq-question {
    padding: 1.25rem;
    background-color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--color-indigo);
}

.faq-arrow {
    width: 20px;
    height: 20px;
    position: relative;
    transition: transform 0.3s ease;
}

.faq-arrow::before,
.faq-arrow::after {
    content: '';
    position: absolute;
    background-color: var(--color-indigo);
    transition: all 0.3s ease;
}

.faq-arrow::before {
    width: 2px;
    height: 20px;
    top: 0;
    left: 9px;
}

.faq-arrow::after {
    width: 20px;
    height: 2px;
    top: 9px;
    left: 0;
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: rgba(252, 247, 255, 0.5);
}

.faq-content {
    padding: 0 1.25rem 1.25rem;
}

input[type="checkbox"].faq-checkbox {
    display: none;
}

input[type="checkbox"].faq-checkbox:checked ~ .faq-answer {
    max-height: 500px;
    transition: max-height 0.5s ease-in;
}

input[type="checkbox"].faq-checkbox:checked ~ .faq-question .faq-arrow {
    transform: rotate(45deg);
}

/* Footer */
.main-footer {
    background-color: var(--color-indigo);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    max-width: 150px;
    margin-bottom: 1.5rem;
}

.footer-contact ul {
    list-style-type: none;
}

.footer-contact li {
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style-type: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--color-bg-light);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--color-lime);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 500px;
    background-color: white;
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    animation: slideUp 0.5s forwards;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.cookie-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.cookie-content p {
    margin-bottom: 0;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translate(-50%, 100px);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

/* Policy Pages */
.policy-page {
    padding: 5rem 0;
}

.policy-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}

.policy-container h1 {
    color: var(--color-indigo);
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.policy-container h2 {
    text-align: left;
    margin-top: 2rem;
}

.policy-container h2::after {
    left: 0;
    transform: none;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.25rem;
    }
    
    section {
        padding: 4rem 0;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .about-grid,
    .services-grid,
    .advantages-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .mobile-menu-toggle {
        display: block;
        z-index: 1000;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: white;
        box-shadow: var(--shadow-lg);
        padding: 6rem 2rem 2rem;
        transition: right 0.3s ease;
        z-index: 999;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 2rem;
    }
    
    .menu-checkbox:checked ~ .main-nav {
        right: 0;
    }
    
    .menu-checkbox:checked ~ .menu-button .menu-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    
    .menu-checkbox:checked ~ .menu-button .menu-line:nth-child(2) {
        opacity: 0;
    }
    
    .menu-checkbox:checked ~ .menu-button .menu-line:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
    
    .hero {
        min-height: calc(100vh - 70px);
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .form-container,
    .policy-container {
        padding: 1.5rem;
    }
}
