:root {
    --bg-primary: #080c16;
    --bg-secondary: #0f1626;
    --bg-card: rgba(255, 255, 255, 0.03);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-indigo: #6366f1;
    --accent-purple: #a855f7;
    --accent-pink: #ec4899;
    --glow-opacity: 0.15;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

/* Background Glow Blobs */
.glow-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.glow-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: var(--glow-opacity);
    mix-blend-mode: screen;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-indigo);
    top: -100px;
    left: -100px;
    animation: float 10s ease-in-out infinite;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: var(--accent-purple);
    top: 20%;
    right: -200px;
    animation: float 12s ease-in-out infinite reverse;
}

.blob-3 {
    width: 350px;
    height: 350px;
    background: var(--accent-pink);
    bottom: -100px;
    left: 30%;
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.1); }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(8, 12, 22, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.8rem 2rem;
    background: rgba(8, 12, 22, 0.9);
}

.brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    background: linear-gradient(135deg, #fff 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

.btn-consult {
    background: linear-gradient(135deg, var(--accent-indigo) 0%, var(--accent-purple) 100%);
    color: #fff !important;
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    font-weight: 600 !important;
    text-shadow: none !important;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.5);
    transition: all 0.3s ease !important;
}

.btn-consult:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.8), 0 0 10px rgba(99, 102, 241, 0.5);
}

/* Sections */
section {
    padding: 7rem 2rem 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* Hero Section */
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 100vh;
    justify-content: flex-start;
    padding-top: 12rem;
    overflow: hidden;
}

.tech-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 80%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 80%);
    z-index: -1;
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-tag {
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-indigo);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    border: 1px solid rgba(99, 102, 241, 0.3);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    max-width: 1000px;
    font-weight: 800;
    letter-spacing: -1px;
}

.animated-gradient {
    background: linear-gradient(270deg, #a855f7 0%, #ec4899 50%, #6366f1 100%);
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.gradient-text {
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 50%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: var(--text-secondary);
    font-size: 1.25rem;
    max-width: 700px;
    margin-bottom: 3rem;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    z-index: 3;
}

/* Elite Button */
.btn-elite {
    position: relative;
    overflow: hidden;
    padding: 0 !important;
    background: transparent !important;
    border: none;
}

.btn-content {
    position: relative;
    z-index: 2;
    display: block;
    padding: 0.9rem 2.5rem;
    background: linear-gradient(135deg, var(--accent-indigo) 0%, var(--accent-purple) 100%);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-glow-border {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent 0%, transparent 30%, rgba(255,255,255,0.8) 50%, transparent 70%, transparent 100%);
    animation: rotateGlow 3s linear infinite;
    z-index: 1;
}

.btn-elite:hover .btn-content {
    background: linear-gradient(135deg, #7477f5 0%, #ba72f8 100%);
    box-shadow: inset 0 0 20px rgba(255,255,255,0.3);
}

@keyframes rotateGlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-showcase {
    position: relative;
    margin-top: 5rem;
    width: 100%;
    max-width: 1100px;
    perspective: 1000px;
    z-index: 1;
}

.hero-showcase img {
    width: 100%;
    height: auto;
    border-radius: 20px 20px 0 0;
    transform: rotateX(15deg) translateY(50px);
    box-shadow: 0 -20px 50px rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(255,255,255,0.1);
    border-bottom: none;
}

.hero-fade-bottom {
    position: absolute;
    bottom: -80px;
    left: 0;
    width: 100%;
    height: 280px;
    background: linear-gradient(to top, var(--bg-primary) 0%, var(--bg-primary) 30%, transparent 100%);
    z-index: 2;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-indigo) 0%, var(--accent-purple) 100%);
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Slider CSS System */
.slider-outer-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3.5rem;
}

.slider-viewport {
    width: 100%;
    overflow: hidden;
    padding: 1.5rem 0.5rem;
}

.services-slider-track, .pricing-slider-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

/* Adjust card width inside slider */
.slider-viewport .service-card {
    flex: 0 0 calc(33.333% - 1.34rem);
    min-width: 300px;
    height: auto;
}

/* Custom buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(15, 22, 38, 0.8);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.slider-btn:hover {
    background: linear-gradient(135deg, var(--accent-indigo) 0%, var(--accent-purple) 100%);
    border-color: transparent;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
    color: #fff;
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 2rem;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: var(--accent-purple);
    width: 24px;
    border-radius: 10px;
}

@media (max-width: 992px) {
    .slider-viewport .service-card {
        flex: 0 0 calc(50% - 1rem);
    }
}

@media (max-width: 680px) {
    .slider-viewport .service-card {
        flex: 0 0 100%;
    }
    .slider-outer-container {
        padding: 0 1rem;
    }
    .slider-btn {
        display: none; /* Hide buttons on mobile for native touch swiping */
    }
}


.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.1);
}

.service-card::before {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: var(--accent-purple);
    border-radius: 50%;
    top: -75px;
    right: -75px;
    filter: blur(50px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover::before {
    opacity: 0.15;
}

.service-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(168, 85, 247, 0.15);
    color: #d8b4fe;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.8rem;
    border-radius: 50px;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--accent-indigo);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.service-card:hover .icon-box {
    color: #fff;
    background: linear-gradient(135deg, var(--accent-indigo) 0%, var(--accent-purple) 100%);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.service-card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    margin-bottom: 2rem;
}

.feature-list li {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-list li i {
    color: var(--accent-purple);
}

.card-cta {
    display: block;
    width: 100%;
    padding: 0.8rem;
    text-align: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.service-card:hover .card-cta {
    background: linear-gradient(135deg, var(--accent-indigo) 0%, var(--accent-purple) 100%);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

/* Audio Player custom styling for Voice Over */
.voice-over-demo {
    margin-top: 4rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
}

.voice-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.voice-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 1.2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.voice-item:hover {
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(99, 102, 241, 0.02);
}

.voice-info h4 {
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
}

.voice-info span {
    font-size: 0.8rem;
    color: var(--accent-purple);
    background: rgba(168, 85, 247, 0.1);
    padding: 0.1rem 0.6rem;
    border-radius: 50px;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.audio-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-play-audio {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--accent-indigo);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.btn-play-audio:hover {
    transform: scale(1.1);
    background: var(--accent-purple);
}

/* Showcase Sakila Calculator */
.sakila-widget-box {
    background: linear-gradient(145deg, rgba(15, 22, 38, 0.6) 0%, rgba(8, 12, 22, 0.8) 100%);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem;
    margin-top: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.sakila-demo-ui {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-select, .form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.9rem 1.2rem;
    color: #fff;
    outline: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-select option {
    background: var(--bg-secondary);
    color: #fff;
}

.form-select:focus, .form-input:focus {
    border-color: var(--accent-indigo);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
}

.donation-summary {
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.donation-summary span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.donation-summary strong {
    font-size: 1.3rem;
    color: var(--accent-pink);
    font-family: 'Outfit', sans-serif;
}

.sakila-success-toast {
    margin-top: 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #34d399;
    padding: 1rem;
    border-radius: 12px;
    display: none;
    font-size: 0.9rem;
    align-items: center;
    gap: 0.5rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Contact & Generator */
.contact-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    margin-top: 2rem;
}

.contact-form-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem;
}

.contact-info-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
}

.info-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-indigo);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.info-text h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.info-text p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.portfolio-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.portfolio-card:hover {
    transform: translateY(-10px);
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 20px 40px rgba(168, 85, 247, 0.2);
}

.portfolio-img {
    height: 220px;
    width: 100%;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
    transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-img {
    transform: scale(1.05);
}

.portfolio-content {
    padding: 1.8rem;
}

.portfolio-cat {
    font-size: 0.8rem;
    color: var(--accent-purple);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.portfolio-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
}

.portfolio-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    background: #05080f;
    padding: 4rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
}

.footer-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.copyright {
    width: 100%;
    text-align: center;
    color: #475569;
    font-size: 0.85rem;
    margin-top: 3rem;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .sakila-widget-box {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .hero h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }
    .nav-links {
        display: none; /* simple hidden links for small screens, can be activated/toggled */
    }
    .hero {
        padding-top: 8rem;
    }
}
