/* ==========================================================================
   1. GLOBAL STYLES & THEME VARIABLES
   ========================================================================== */
:root {
    /* Dark Mode Colors (Default) */
    --color-primary: #0084ff;
    --color-primary-light: #4da9ff;
    --color-accent: #8a63d2;
    --color-secondary-accent: #00a3cc;
    --color-background: #121212;
    --color-surface: #1e1e1e;
    --color-text-primary: #e9ecef;
    --color-text-secondary: #adb5bd;
    --color-border: #343a40;
    --color-border-translucent: rgba(255, 255, 255, 0.1);
    
    /* Shared Variables */
    --font-family: 'Inter', sans-serif;
    --transition-fast: all 0.2s ease-in-out;
    --transition-medium: all 0.4s ease-in-out;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-family);
    color: var(--color-text-primary);
    background-color: var(--color-background);
    line-height: 1.7;
    overflow-x: hidden; /* This is crucial to prevent horizontal scrollbars */
    transition: background-color 0.3s ease, color 0.3s ease;
    --color-primary-rgb: 0, 132, 255;
    --color-surface-rgb: 30, 30, 30;
}

/* ==========================================================================
   2. PREMIUM ANIMATED GRADIENT BACKGROUND
   ========================================================================== */
.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
}
.gradient-bg div { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.2; }
.gradient-blob-1 { width: 500px; height: 500px; background: var(--color-primary); top: 10%; left: 10%; animation: moveBlob1 20s infinite alternate ease-in-out; }
.gradient-blob-2 { width: 400px; height: 400px; background: var(--color-accent); top: 60%; right: 5%; animation: moveBlob2 25s infinite alternate ease-in-out; }
.gradient-blob-3 { width: 300px; height: 300px; background: var(--color-secondary-accent); top: 70%; left: 20%; animation: moveBlob3 18s infinite alternate ease-in-out; }
.gradient-blob-4 { width: 250px; height: 250px; background: var(--color-primary-light); top: 20%; right: 10%; animation: moveBlob4 22s infinite alternate ease-in-out; }

@keyframes moveBlob1 { from { transform: translate(-100px, 50px) rotate(0deg); } to { transform: translate(100px, -50px) rotate(180deg); } }
@keyframes moveBlob2 { from { transform: translate(50px, -100px) rotate(90deg); } to { transform: translate(-50px, 100px) rotate(270deg); } }
@keyframes moveBlob3 { from { transform: translate(-50px, 100px) rotate(180deg); } to { transform: translate(50px, -100px) rotate(360deg); } }
@keyframes moveBlob4 { from { transform: translate(100px, -50px) rotate(270deg); } to { transform: translate(-100px, 50px) rotate(90deg); } }

/* ==========================================================================
   3. UI ELEMENTS & POLISH
   ========================================================================== */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
section { padding: 100px 0; }
h1, h2, h3 { font-weight: 700; line-height: 1.2; margin-bottom: 1rem; letter-spacing: -0.5px; }
h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1rem; color: var(--color-text-secondary); }
a { text-decoration: none; color: var(--color-primary); transition: var(--transition-fast); }
img { max-width: 100%; height: auto; display: block; }

/* Glassmorphism Gradient Button Styles */
.btn {
    display: inline-block;
    padding: 14px 32px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-medium);
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    box-shadow: var(--shadow-sm);
    background-size: 200% auto;
    background-image: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 50%, var(--color-primary) 100%);
}
.btn:hover {
    background-position: right center; /* Change gradient direction */
    transform: translateY(-4px);
    box-shadow: 0 4px 15px rgba(var(--color-primary-rgb), 0.2);
}
.btn-outline {
    background-image: none;
    background-color: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}
.btn-outline:hover {
    background-image: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 50%, var(--color-primary) 100%);
    color: #fff;
    border-color: transparent;
}

.section-title { text-align: center; margin-bottom: 60px; position: relative; }
.section-title::after { content: ''; position: absolute; bottom: -15px; left: 50%; transform: translateX(-50%); width: 80px; height: 4px; background: var(--color-primary); border-radius: 2px; }
.text-center { text-align: center; }

/* ==========================================================================
   4. HEADER & NAVIGATION
   ========================================================================== */
.header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; transition: var(--transition-medium); padding: 15px 0; }
.header.scrolled {
    background-color: rgba(var(--color-surface-rgb), 0.8);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md); padding: 10px 0;
    border-bottom: 1px solid var(--color-border-translucent);
}
.header .container {
    display: flex;
    /* justify-content: space-between; <-- REMOVED THIS */
    align-items: center;
}
.logo a { font-size: 28px; font-weight: 700; color: var(--color-text-primary); }
.logo span { color: var(--color-primary); }

/*
 * NEW RULE TO PUSH MENU TO THE RIGHT:
 * 'margin-left: auto' tells the navbar to take up all available
 * space to its left, pushing it and any subsequent elements
 * (like .header-actions) to the right side of the container.
*/
.navbar {
    margin-left: auto;
}

.navbar ul { display: flex; list-style: none; }
.navbar ul li { margin-left: 35px; }
.navbar ul li a { color: var(--color-text-secondary); font-weight: 500; position: relative; padding: 5px 0; }
.navbar ul li a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--color-primary); transition: var(--transition-fast); }
.navbar ul li a:hover, .navbar ul li a.active { color: var(--color-text-primary); }
.navbar ul li a:hover::after, .navbar ul li a.active::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.mobile-menu-btn { display: none; font-size: 24px; cursor: pointer; color: var(--color-text-primary); }

/* ==========================================================================
   5. HERO & SERVICES
   ========================================================================== */
.hero {
    padding-top: 180px;
    padding-bottom: 100px;
}
.hero .container { display: flex; align-items: center; justify-content: space-between; gap: 60px; }
.hero-content { flex: 1.2; }
.hero-image { flex: 1; text-align: center; }
.hero-image img { max-width: 80%; animation: float 4s ease-in-out infinite; }
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-25px); }
    100% { transform: translateY(0px); }
}
.services { background-color: var(--color-surface); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-card { background: var(--color-background); padding: 40px 30px; border-radius: var(--border-radius); text-align: center; transition: var(--transition-medium); border: 1px solid var(--color-border); }
.service-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); border-color: var(--color-primary); }
.service-icon { width: 70px; height: 70px; margin: 0 auto 25px; display: flex; align-items: center; justify-content: center; background: var(--color-primary); color: #fff; font-size: 28px; border-radius: 50%; }

/* ==========================================================================
   6. PORTFOLIO & CAROUSEL
   ========================================================================== */
.portfolio-section { padding: 80px 0; border-bottom: 1px solid var(--color-border); }
.portfolio-section:last-of-type { border-bottom: none; }
.portfolio-feature { display: flex; align-items: center; gap: 50px; margin-bottom: 60px; }
.portfolio-feature.reverse { flex-direction: row-reverse; }
.portfolio-text { flex: 1; }
.portfolio-image { flex: 1; text-align: center; }
.portfolio-image img { border-radius: var(--border-radius); box-shadow: var(--shadow-lg); transition: var(--transition-medium); }
.portfolio-image img:hover { transform: scale(1.03); }
.carousel-container { margin-top: 20px; }
.carousel { overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); }
.carousel-track { display: flex; will-change: transform; }
.carousel-slide { flex-shrink: 0; width: 380px; height: 214px; margin: 0 15px; border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--shadow-md); transition: var(--transition-medium); cursor: pointer; }
.carousel-slide:hover { transform: translateY(-10px) scale(1.05); box-shadow: var(--shadow-lg); z-index: 10; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   7. OTHER SECTIONS (About, Video, Blog, Contact)
   ========================================================================== */
.about-section { background-color: var(--color-surface); }
.about-content { display: flex; align-items: center; gap: 50px; }
.about-image { flex: 1; }
.about-image img { border-radius: var(--border-radius); box-shadow: var(--shadow-lg); }
.about-text { flex: 1.2; }
.about-text .section-title::after { left: 0; transform: translateX(0); }
.video-section { background-color: var(--color-background); }
.video-container { max-width: 900px; margin: 0 auto; }
.video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: var(--border-radius); box-shadow: var(--shadow-lg); }
.video-thumbnail { position: absolute; top: 0; left: 0; width: 100%; height: 100%; cursor: pointer; }
.video-thumbnail img { width: 100%; height: 100%; object-fit: cover; }

/* --- UPDATED PLAY BUTTON STYLES --- */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 2;
}
.play-button::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 25px solid var(--color-primary); /* Adapted to use your theme color */
    margin-left: 5px;
}
.play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: white;
}

.video-wrapper iframe { display: none; position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
.video-wrapper.playing .video-thumbnail { display: none; }
.video-wrapper.playing iframe { display: block; }
.blog-section { background-color: var(--color-surface); }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-bottom: 40px; }
.blog-card { background: var(--color-background); border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition-medium); border: 1px solid var(--color-border); }
.blog-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-md); }
.blog-image { height: 200px; overflow: hidden; }
.blog-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.blog-card:hover .blog-image img { transform: scale(1.1); }
.blog-content { padding: 25px; }
.read-more { font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.read-more i { transition: var(--transition-fast); }
.read-more:hover i { transform: translateX(5px); }
.contact-section { background-color: var(--color-background); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-form-wrapper { background: var(--color-surface); padding: 40px; border-radius: var(--border-radius); box-shadow: var(--shadow-md); }
.form-group { margin-bottom: 20px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 14px; border: 1px solid var(--color-border); border-radius: 8px; font-family: var(--font-family); background-color: var(--color-background); color: var(--color-text-primary); transition: var(--transition-fast); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.2); }
.contact-info h3 { margin-bottom: 20px; }
.contact-info ul { list-style: none; margin-bottom: 30px; }
.contact-info ul li { margin-bottom: 15px; display: flex; align-items: center; gap: 15px; }
.contact-info ul li i { color: var(--color-primary); font-size: 18px; width: 20px; text-align: center; }
.fiverr-btn { margin: 25px 0; }
.fiverr-btn .btn { width: 100%; text-align: center; }
.social-icons { display: flex; gap: 15px; }
.social-icons a { width: 40px; height: 40px; border-radius: 50%; background: var(--color-surface); color: var(--color-text-secondary); display: flex; align-items: center; justify-content: center; transition: var(--transition-fast); border: 1px solid var(--color-border); }
.social-icons a:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); transform: translateY(-4px); }
.working-hours { margin-top: 35px; }

/* ==========================================================================
   8. FOOTER & UTILITIES
   ========================================================================== */
.whatsapp-float { position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; background: #25D366; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px; box-shadow: 0 5px 20px rgba(37, 211, 102, 0.3); z-index: 100; transition: var(--transition-fast); }
.whatsapp-float:hover { transform: translateY(-5px) scale(1.1); }
.image-preview-modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.9); }
.modal-content { display: block; margin: auto; max-width: 90%; max-height: 90%; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); border-radius: 5px; }
.close-modal { position: absolute; top: 20px; right: 35px; color: #f1f1f1; font-size: 40px; font-weight: bold; transition: 0.3s; cursor: pointer; }
.footer { background-color: var(--color-surface); color: #ffffff; padding: 60px 0 0; border-top: 1px solid var(--color-border); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h3 { color: #ffffff; font-size: 20px; margin-bottom: 20px; }
.footer-col p { color: #cccccc; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: #cccccc; }
.footer-col ul li a:hover { color: var(--color-primary); padding-left: 5px; }
.newsletter-form { display: flex; margin-top: 20px; }
.newsletter-form input { flex: 1; padding: 10px 15px; border: 1px solid var(--color-border); border-radius: 5px 0 0 5px; background-color: var(--color-background); color: var(--color-text-primary); }
.newsletter-form button {
    padding: 0 20px;
    background-size: 200% auto;
    background-image: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 50%, var(--color-primary) 100%);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-left: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: var(--transition-medium);
}
.newsletter-form button:hover {
    background-position: right center;
}
.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid var(--color-border);
    text-align: center;
}
.footer-bottom p {
    color: #ffffff;
}

/* ==========================================================================
   9. RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 992px) {
    .portfolio-feature, .about-content { flex-direction: column !important; text-align: center; }
    .about-text .section-title::after { left: 50%; transform: translateX(-50%); }
    .hero .container { flex-direction: column-reverse; text-align: center; }
    .hero-image { margin-bottom: 40px; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    /* The mobile menu logic remains unchanged and will still work correctly */
    .header .container {
        /* Re-add space-between for mobile to put hamburger on the right */
        justify-content: space-between;
    }
    .navbar {
        /* Reset margin for mobile view */
        margin-left: 0;
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--color-surface);
        transition: var(--transition-medium);
        z-index: 999;
        padding-top: 20px;
    }
    .navbar.active { left: 0; }
    .navbar ul { flex-direction: column; align-items: center; }
    .navbar ul li { margin: 15px 0; }
    .mobile-menu-btn { display: block; }
    .footer-bottom { flex-direction: column; gap: 15px; }

    /* Reduce hero graphic size on mobile */
    .hero-image img {
        max-width: 65%;
        margin: 0 auto;
    }

    /* Two-column services grid on mobile */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .service-card {
        padding: 25px 20px;
    }
    .service-card h3 {
        font-size: 1.1rem;
    }

    /* Carousel to Grid on Mobile */
    .carousel { overflow: visible; mask-image: none; -webkit-mask-image: none; }
    .carousel-track { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; transform: none !important; }
    .carousel-slide { width: 100%; height: auto; aspect-ratio: 16 / 9; margin: 0; }
    .carousel-slide:hover { transform: scale(1.03); }
    
    .secondary-carousel { 
        display: none; 
    }
}

@media (max-width: 480px) {
    /* Switch to a single column grid on small phones */
    .carousel-track { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
}

/* --- NEW: Desktop-only adjustment for Hero Section --- */
@media (min-width: 992px) {
    .hero .container {
        /* Original right padding is 24px, new left padding is 100px to shift content */
        padding: 0 24px 0 100px; 
    }
}