:root {
    --primary: #8e44ad;
    --primary-dark: #6c3483;
    --accent: #d2b4de; 
    --bg-main: #fcf9fd; 
    
    --text-dark: #2c3e50;
    --text-light: #667;
    --white: #ffffff;
    
    --font-main: 'Outfit', sans-serif;
    --font-script: 'Great Vibes', cursive;
    
    --shadow: 0 10px 30px rgba(142, 68, 173, 0.1);
    --radius: 16px;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
img { max-width: 100%; height: auto; }
html { scroll-behavior: smooth; }

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

.bg-gradient {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh; z-index: -1;
    background: 
        radial-gradient(circle at 10% 20%, rgba(232, 218, 239, 0.6) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(210, 180, 222, 0.4) 0%, transparent 40%);
}

.header {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 0; border-bottom: 1px solid rgba(0,0,0,0.05);
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.nav-container { display: flex; justify-content: space-between; align-items: center; }

.logo-img { height: 60px; width: auto; }

.nav-menu ul { display: flex; gap: 30px; list-style: none; align-items: center; }
.nav-menu a { text-decoration: none; color: var(--text-dark); font-weight: 500; font-size: 0.95rem; transition: var(--transition); }
.nav-menu a:hover { color: var(--primary); }

.btn-highlight {
    background: var(--primary); color: white !important;
    padding: 10px 24px; border-radius: 50px; display: inline-flex; align-items: center; gap: 8px;
}
.btn-highlight:hover { background: var(--primary-dark); transform: translateY(-2px); }

.mobile-menu-btn { display: none; background: none; border: none; font-size: 1.5rem; color: var(--primary); }

.hero { padding: 140px 0 80px; min-height: 90vh; display: flex; align-items: center; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }

.pill-badge {
    background: rgba(142, 68, 173, 0.1); color: var(--primary);
    padding: 6px 14px; border-radius: 20px; font-weight: 600; font-size: 0.85rem; text-transform: uppercase;
    display: inline-block; margin-bottom: 20px; letter-spacing: 1px;
    animation: pulseBadge 3s infinite;
    will-change: transform;
}

@keyframes pulseBadge {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.hero-content h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 20px; color: var(--text-dark); font-weight: 700; }
.hero-content p { color: var(--text-light); font-size: 1.1rem; margin-bottom: 30px; max-width: 480px; }

.btn-group { display: flex; gap: 15px; }
.btn { text-decoration: none; padding: 14px 32px; border-radius: 50px; font-weight: 600; transition: var(--transition); }
.btn-primary { background: var(--primary); color: white; box-shadow: 0 4px 15px rgba(142, 68, 173, 0.3); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-3px); }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }

.blob-frame img {
    width: 100%; border-radius: 30px; transform: rotate(2deg);
    border: 8px solid white; box-shadow: var(--shadow);
    animation: floatImage 6s ease-in-out infinite;
    will-change: transform;
}

@keyframes floatImage {
    0%, 100% { transform: translateY(0) rotate(2deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

.section { padding: 100px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-img img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-text h2 { font-size: 2.5rem; margin-bottom: 20px; }
.script-highlight { font-family: var(--font-script); color: var(--primary); font-size: 1.4em; }

.stats-box { display: flex; gap: 30px; margin-top: 30px; }
.stat-item { display: flex; align-items: center; gap: 15px; }
.stat-item i { font-size: 2rem; color: var(--accent); }
.stat-item span { font-weight: 600; font-size: 0.9rem; line-height: 1.3; }

.bg-light-purple { background: rgba(255,255,255,0.6); }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 2.2rem; margin-bottom: 10px; }

.services-wrapper { display: flex; flex-wrap: wrap; gap: 30px; justify-content: center; }
.service-category {
    flex: 1; min-width: 300px; background: white; padding: 40px; border-radius: var(--radius);
    box-shadow: var(--shadow); position: relative; border: 1px solid rgba(0,0,0,0.03);
}
.highlight-cat { border: 2px solid var(--accent); transform: scale(1.05); z-index: 2; }
.cat-header { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; border-bottom: 2px solid #f0f0f0; padding-bottom: 15px; }
.cat-header i { font-size: 1.8rem; color: var(--primary); }
.cat-header h3 { font-size: 1.25rem; color: var(--primary-dark); }

.service-category ul { list-style: none; }
.service-category li { padding: 8px 0; border-bottom: 1px dashed #eee; font-size: 0.95rem; color: #555; }
.service-category li:last-child { border-bottom: none; }
.tag-new { position: absolute; top: -10px; right: 20px; background: var(--primary); color: white; padding: 4px 12px; border-radius: 12px; font-size: 0.7rem; text-transform: uppercase; font-weight: bold; }

.ilib-intro { max-width: 700px; margin: 0 auto 50px; }
.tag-tech { display: inline-block; background: #e8f8f5; color: #1abc9c; padding: 5px 15px; border-radius: 20px; font-size: 0.8rem; font-weight: bold; margin-bottom: 15px; }

.ilib-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 15px;
}
.ilib-card {
    background: white; border: 1px solid #eee; padding: 25px 15px; text-align: center;
    border-radius: 12px; font-weight: 600; color: #555; font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}
.ilib-card:hover { background: var(--primary); color: white; transform: translateY(-5px); box-shadow: 0 5px 15px rgba(142, 68, 173, 0.2); border-color: var(--primary); }

.faq-container { display: flex; gap: 50px; flex-wrap: wrap; }
.faq-left, .faq-right { flex: 1; min-width: 300px; }

.info-place { background: white; padding: 25px; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 20px; }
.info-place h4 { color: var(--primary-dark); margin-bottom: 10px; display: flex; align-items: center; gap: 10px; font-size: 1.1rem; }
.info-place p { font-size: 0.95rem; color: #666; }
.warning-box { border-left: 4px solid #e74c3c; background: #fffcfc; }
.warning-box h4 i { color: #e74c3c; }

.accordion-item { border-bottom: 1px solid #eee; margin-bottom: 10px; }
.accordion-header {
    width: 100%; text-align: left; background: none; border: none; padding: 15px 0;
    font-weight: 600; color: var(--text-dark); cursor: pointer; display: flex; justify-content: space-between; font-size: 1rem;
}
.accordion-content { max-height: 0; overflow: hidden; transition: 0.3s; padding-bottom: 0; color: var(--text-light); font-size: 0.95rem; }
.accordion-header.active { color: var(--primary); }

.footer-codexo { background: linear-gradient(135deg, #af69cd 0%, #8e44ad 100%); color: #ddd; padding: 60px 0 0; margin-top: 60px; font-size: 0.9rem; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; padding-bottom: 40px; border-bottom: 1px solid #333; }

.brand-name { font-family: var(--font-script); font-size: 2rem; color: white; display: block; margin-bottom: 10px; }
.socials a { color: #bbb; font-size: 1.5rem; margin-right: 15px; transition: 0.3s; }
.socials a:hover { color: var(--primary); }

.footer-links h4, .footer-dev h4 { color: white; margin-bottom: 15px; font-weight: 600; }
.footer-links a { display: block; color: #999; text-decoration: none; margin-bottom: 8px; transition: 0.3s; }
.footer-links a:hover { color: white; transform: translateX(5px); }

.developer-badge { display: flex; flex-direction: column; opacity: 0.7; transition: 0.3s; }
.developer-badge:hover { opacity: 1; }
.developer-badge span { font-size: 0.75rem; margin-bottom: 5px; }

.copyright { text-align: center; padding: 20px; background: #111111; color: #666; font-size: 0.8rem; }

.location-card {
    background: var(--white);
    border-radius: 24px; 
    box-shadow: 0 15px 40px rgba(142, 68, 173, 0.15);
    overflow: hidden; 
    display: flex;
    min-height: 450px;
    margin-top: 20px;
}

.location-text {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.location-map {
    flex: 1.2; 
    min-height: 300px;
}

.location-text h2 {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.loc-details {
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.loc-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon-box {
    width: 45px; height: 45px;
    background: rgba(142, 68, 173, 0.1);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
}

.loc-item strong { display: block; color: var(--primary-dark); font-size: 0.9rem; }
.loc-item span { color: #666; font-size: 0.95rem; }

.footer-links-list { list-style: none; }
.footer-links-list li { margin-bottom: 10px; }
.footer-links-list a { color: #ffffff; text-decoration: none; transition: 0.3s; }
.footer-links-list a:hover { color: white; padding-left: 5px; }

.footer-contact-list {
    list-style: none;
    padding: 0;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start; 
    gap: 15px;
    margin-bottom: 20px;
    color: #ffffff;
    font-size: 0.9rem;
}

.footer-contact-list i {
    color: #ffffff; 
    font-size: 1.2rem;
    margin-top: 3px; 
}

@media (max-width: 768px) {
    .header {
        backdrop-filter: none;
        background: rgba(255, 255, 255, 0.98);
    }
    
    .blob-frame img {
        animation: none; /* Disable heavy animation on mobile */
    }

    .hero-grid, .about-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-content h1 { font-size: 2.5rem; }
    .btn-group { justify-content: center; }
    .nav-menu {
        position: fixed; top: 70px; right: -100%; width: 100%; height: 100vh; background: white;
        flex-direction: column; transition: 0.3s; padding: 40px;
    }
    .nav-menu.active { right: 0; }
    .nav-menu ul { flex-direction: column; gap: 20px; }
    .mobile-menu-btn { display: block; }
    .stats-box { justify-content: center; }
}
@media (max-width: 900px) {
    .location-card {
        flex-direction: column;
    }
    .location-text {
        padding: 40px;
    }
    .location-map {
        height: 300px; 
        flex: none;
    }
}


.reveal { 
    opacity: 0; 
    transform: translateY(30px); 
    transition: all 0.6s ease;
}

.reveal.active { 
    opacity: 1; 
    transform: translateY(0); 
}

.service-category {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(142, 68, 173, 0.15);
    z-index: 5;
}

.highlight-cat:hover {
    transform: scale(1.05); 
}

.ilib-card {
    transition: all 0.3s ease;
}

.ilib-card:hover { 
    background: var(--primary); 
    color: white; 
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(142, 68, 173, 0.2); 
    border-color: var(--primary); 
}

.blob-frame img {
    animation: floatImage 6s ease-in-out infinite;
}

.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.carousel-track-container {
    overflow: hidden;
    width: 100%;
    max-width: 900px; 
    border-radius: var(--radius);
}

.carousel-track {
    display: flex;
    gap: 20px;
    list-style: none;
    padding: 10px; 
    overflow-x: auto; 
    scroll-behavior: smooth;
    -ms-overflow-style: none;  
    scrollbar-width: none;  
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-card {
    min-width: 280px;
    height: 350px;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
    flex-shrink: 0; 
}

.carousel-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.carousel-card:hover img {
    transform: scale(1.1);
}

.card-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    color: white;
    padding: 20px;
    font-weight: 500;
}

.carousel-btn {
    background-color: var(--white);
    color: var(--primary);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    flex-shrink: 0;
}

.carousel-btn:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .carousel-btn {
        display: none;
    }
}