/* ==========================================================================
   ANAS Creative Studio - Premium Theme Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables
   -------------------------------------------------------------------------- */
   :root {
    /* Primary Colors */
    --primary: #1E3A8A;
    --secondary: #06B6D4;
    --accent: #F59E0B;
    
    /* Backgrounds */
    --bg-dark: #0B1120;
    --bg-card: #111827;
    --bg-darker: #060913;
    
    /* Text */
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    
    /* Utility */
    --success: #22C55E;
    --glass-bg: rgba(17, 24, 39, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-glow: linear-gradient(135deg, rgba(30, 58, 138, 0.5) 0%, rgba(6, 182, 212, 0.5) 100%);
}

/* --------------------------------------------------------------------------
   Global Reset & Typography
   -------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none; /* For custom cursor */
}

.font-poppins {
    font-family: 'Poppins', sans-serif;
}

.tracking-wide {
    letter-spacing: 0.1em;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-main);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.section-padding {
    padding: 100px 0;
}

.bg-darker {
    background-color: var(--bg-darker);
}

.z-index-1 {
    z-index: 1;
}

/* --------------------------------------------------------------------------
   Custom Cursor
   -------------------------------------------------------------------------- */
.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(245, 158, 11, 0.5);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9998;
    transition: width 0.2s, height 0.2s, border-color 0.2s;
}

/* Cursor Hover States */
.cursor-dot.hover-active {
    width: 12px;
    height: 12px;
    background-color: var(--secondary);
}

.cursor-outline.hover-active {
    width: 60px;
    height: 60px;
    border-color: var(--secondary);
    background-color: rgba(6, 182, 212, 0.1);
}

/* Hide custom cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
    .cursor-dot, .cursor-outline {
        display: none;
    }
    body {
        cursor: auto;
    }
}

/* --------------------------------------------------------------------------
   Loading Screen
   -------------------------------------------------------------------------- */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.loader-content {
    text-align: center;
}

.loader-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 3rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: var(--text-main);
}

.progress-bar-custom {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin: 0 auto;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 0.1s ease;
}

/* --------------------------------------------------------------------------
   Scroll Progress Bar
   -------------------------------------------------------------------------- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient-primary);
    z-index: 9999;
}

/* --------------------------------------------------------------------------
   Custom Scrollbar
   -------------------------------------------------------------------------- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-card);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* --------------------------------------------------------------------------
   Typography & Utilities
   -------------------------------------------------------------------------- */
.text-accent {
    color: var(--accent) !important;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn-primary-gradient {
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent);
    z-index: -1;
    transition: opacity 0.4s ease;
    opacity: 0;
}

.btn-primary-gradient:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.3);
}

.btn-primary-gradient:hover::before {
    opacity: 1;
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 10px 28px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #fff;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
    transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   Glassmorphism & Cards
   -------------------------------------------------------------------------- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* --------------------------------------------------------------------------
   Navbar
   -------------------------------------------------------------------------- */
.glass-nav {
    background: rgba(11, 17, 32, 0.8) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 0;
    transition: all 0.3s ease;
}

.glass-nav.scrolled {
    padding: 10px 0;
    background: rgba(11, 17, 32, 0.95) !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.nav-link {
    color: var(--text-main) !important;
    font-weight: 500;
    font-size: 0.95rem;
    margin: 0 10px;
    position: relative;
    padding-bottom: 5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-img-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    animation: slowZoom 20s ease-in-out infinite alternate;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(11, 17, 32, 0.6) 0%, rgba(11, 17, 32, 1) 100%);
    z-index: 1;
}

@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.hero-title {
    font-size: clamp(3rem, 6vw, 6rem);
    line-height: 1.1;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-weight: 300;
}

/* Floating Socials */
.floating-socials {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 10;
}

.floating-socials a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.floating-socials a:hover {
    color: var(--secondary);
    border-color: var(--secondary);
    transform: scale(1.1);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
}

.mouse {
    width: 24px;
    height: 36px;
    border: 2px solid #fff;
    border-radius: 12px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 6px;
    background: #fff;
    border-radius: 2px;
    animation: mouseScroll 1.5s infinite;
}

@keyframes mouseScroll {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}

.scroll-indicator p {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

/* --------------------------------------------------------------------------
   About Section
   -------------------------------------------------------------------------- */
.about-image-wrapper {
    position: relative;
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    padding: 20px;
    border-radius: 20px;
    text-align: center;
}

/* --------------------------------------------------------------------------
   Services Section & Blobs
   -------------------------------------------------------------------------- */
.blob {
    position: absolute;
    filter: blur(100px);
    z-index: 0;
    opacity: 0.3;
    animation: blobMove 10s infinite alternate;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    right: -100px;
    border-radius: 50%;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary);
    bottom: -50px;
    left: -100px;
    border-radius: 50%;
}

@keyframes blobMove {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

.service-card {
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-icon {
    transition: transform 0.4s ease;
}

.custom-list li {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   Process Timeline
   -------------------------------------------------------------------------- */
.process-step {
    position: relative;
}

.process-step::after {
    content: '';
    position: absolute;
    top: 30px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), rgba(6, 182, 212, 0.1));
    z-index: 0;
}

.process-step:last-child::after {
    display: none;
}

.step-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-card);
    border: 2px solid var(--secondary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary);
    margin: 0 auto;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
}

@media (max-width: 768px) {
    .process-step::after {
        display: none;
    }
    .process-step {
        margin-bottom: 30px;
    }
}

/* --------------------------------------------------------------------------
   Portfolio Section
   -------------------------------------------------------------------------- */
.filter-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 8px 20px;
    border-radius: 50px;
    margin: 0 5px 10px;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
}

.portfolio-card {
    cursor: pointer;
}

.portfolio-card img {
    transition: transform 0.8s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(11, 17, 32, 0.9) 0%, rgba(11, 17, 32, 0.1) 100%);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 30px;
    opacity: 0;
    transition: all 0.4s ease;
}

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

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-info {
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.portfolio-card:hover .portfolio-info {
    transform: translateY(0);
}

.portfolio-link {
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    transform: scale(0);
    transition: transform 0.4s ease 0.1s;
}

.portfolio-card:hover .portfolio-link {
    transform: scale(1);
}

/* --------------------------------------------------------------------------
   Why Choose Us
   -------------------------------------------------------------------------- */
.feature-card i {
    transition: transform 0.4s ease;
}

.feature-card:hover i {
    transform: scale(1.2) translateY(-10px);
}

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */
.testimonial-card {
    border-top: 4px solid transparent;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    border-top-color: var(--accent);
}

.client-img {
    border: 3px solid rgba(255,255,255,0.1);
}

.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.5);
}

.swiper-pagination-bullet-active {
    background: var(--secondary);
}

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */
.pricing-card.popular {
    transform: scale(1.05);
    border: 1px solid var(--accent);
}

@media (max-width: 992px) {
    .pricing-card.popular {
        transform: scale(1);
    }
}

.popular-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--accent);
    color: #fff;
    padding: 5px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.pricing-list li {
    margin-bottom: 15px;
}

/* --------------------------------------------------------------------------
   Contact & FAQ
   -------------------------------------------------------------------------- */
.custom-accordion .accordion-button {
    padding: 20px;
    font-weight: 600;
}

.custom-accordion .accordion-button::after {
    filter: invert(1);
}

.custom-accordion .accordion-button:not(.collapsed) {
    color: var(--secondary) !important;
}

.custom-accordion .accordion-body {
    padding: 0 20px 20px 20px;
}

.custom-input .form-control, .custom-input .form-select {
    background: rgba(17, 24, 39, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 10px;
}

.custom-input .form-control:focus, .custom-input .form-select:focus {
    background: rgba(17, 24, 39, 0.8);
    border-color: var(--secondary);
    box-shadow: 0 0 0 0.25rem rgba(6, 182, 212, 0.25);
}

.custom-input label {
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.glass-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.glass-input:focus {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: var(--secondary);
    box-shadow: none;
}

/* --------------------------------------------------------------------------
   Floating WhatsApp & Back to Top
   -------------------------------------------------------------------------- */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
    z-index: 99;
    transition: all 0.3s ease;
}

.floating-whatsapp:hover {
    color: #fff;
    transform: scale(1.1);
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    transform: translateY(-5px);
}
