/* =========================================
   VARIABLES & THEME
   ========================================= */
:root {
    /* Colors - Dark Purple/Blue Theme */
    --clr-bg: #0b0f19;
    --clr-bg-alt: #131a2a;
    --clr-surface: #1e2638;
    --clr-surface-hover: #2a3449;
    
    --clr-primary: #6d28d9; /* Deep Purple */
    --clr-secondary: #3b82f6; /* Blue */
    --clr-accent: #f43f5e; /* Rose / Pink for accents */
    
    --clr-text: #f8fafc;
    --clr-text-muted: #94a3b8;
    --clr-border: rgba(255, 255, 255, 0.1);

    --gradient-primary: linear-gradient(135deg, var(--clr-primary), var(--clr-secondary));
    --gradient-glow: linear-gradient(135deg, rgba(109, 40, 217, 0.2), rgba(59, 130, 246, 0.2));

    /* Typography */
    --font-main: 'Inter', sans-serif;
    
    /* Layout */
    --max-width: 1200px;
    --section-spacing: 100px;
    
    /* Shadows & Radii */
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.2);
    --shadow-glow: 0 0 40px rgba(109, 40, 217, 0.3);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 999px;
    
    /* Transitions */
    --transition-fast: 0.2s ease-in-out;
    --transition-norm: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================
   RESET & GLOBAL
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: var(--section-spacing) 0;
}

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

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

/* Typography Utilities */
.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-subtitle {
    color: var(--clr-text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-norm);
}

.btn-small {
    padding: 0.6rem 1.5rem;
    font-size: 0.875rem;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(109, 40, 217, 0.3);
}

.btn-primary:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--clr-surface);
    color: var(--clr-text);
    border: 1px solid var(--clr-border);
}

.btn-secondary:hover {
    background: var(--clr-surface-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid white;
    color: white;
}

.btn-outline:hover {
    background: white;
    color: var(--clr-bg);
}

.btn-whatsapp {
    background: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background: #20BD5A;
    transform: translateY(-2px);
}

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

/* =========================================
   HEADER
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition-norm);
}

.header.scrolled {
    padding: 1rem 0;
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--clr-border);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo i {
    color: var(--clr-secondary);
    font-size: 1.75rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-weight: 500;
    color: var(--clr-text-muted);
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--clr-text);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--clr-text);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    position: relative;
    padding-top: 180px;
    padding-bottom: 120px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.5;
}

.shape-1 {
    top: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: var(--clr-primary);
}

.shape-2 {
    bottom: -10%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: var(--clr-secondary);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--clr-text-muted);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-description {
    font-size: clamp(1rem, 1.2vw, 1.25rem);
    color: var(--clr-text-muted);
    margin-bottom: 2.5rem;
    max-width: 480px;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-features {
    display: flex;
    gap: 2rem;
    color: var(--clr-text-muted);
    font-size: 0.875rem;
}

.hero-features span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-features i {
    color: var(--clr-secondary);
}

.visual-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    z-index: 1;
}

.hero-mockup {
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border: 1px solid var(--clr-border);
}

.floating-card {
    position: absolute;
    background: rgba(30, 38, 56, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--clr-border);
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-soft);
    animation: float 6s ease-in-out infinite;
}

.floating-card i {
    font-size: 2rem;
    color: var(--clr-secondary);
}

.floating-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
}

.floating-card p {
    font-size: 0.75rem;
    color: var(--clr-text-muted);
}

.card-1 {
    top: 10%;
    left: -10%;
}

.card-2 {
    bottom: 15%;
    right: -10%;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* =========================================
   ABOUT SECTION
   ========================================= */
.grid {
    display: grid;
    gap: 2rem;
}

.about-highlights {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    margin-top: 4rem;
}

.about-card {
    background: var(--clr-surface);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--clr-border);
    transition: var(--transition-norm);
}

.about-card:hover {
    transform: translateY(-10px);
    border-color: rgba(109, 40, 217, 0.4);
    box-shadow: var(--shadow-glow);
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: var(--gradient-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--clr-secondary);
    margin-bottom: 1.5rem;
}

.about-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.about-card p {
    color: var(--clr-text-muted);
    font-size: 0.9375rem;
}

/* =========================================
   SERVICES SECTION
   ========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--clr-bg);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--clr-border);
    transition: var(--transition-norm);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-norm);
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--clr-primary);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.service-card p {
    color: var(--clr-text-muted);
    font-size: 0.9375rem;
    margin-bottom: 2rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: white;
    font-size: 0.9rem;
}

.service-link i {
    transition: transform var(--transition-fast);
}

.service-card:hover .service-link i {
    transform: translateX(4px);
    color: var(--clr-secondary);
}

/* =========================================
   PORTFOLIO SECTION
   ========================================= */
.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--clr-border);
    background: transparent;
    color: var(--clr-text-muted);
    transition: var(--transition-fast);
    font-weight: 500;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--clr-text);
    color: var(--clr-bg);
}

.portfolio-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 300px;
}

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

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 15, 25, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-overlay h4 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.portfolio-overlay p {
    color: var(--clr-text-muted);
    margin-bottom: 1.5rem;
}

/* =========================================
   WHY CHOOSE US
   ========================================= */
.why-us-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}

.tagline-box {
    margin-top: 2rem;
    background: var(--clr-surface);
    padding: 2rem;
    border-left: 4px solid var(--clr-secondary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.tagline-box i {
    font-size: 2rem;
    color: var(--clr-primary);
    margin-bottom: 0.5rem;
}

.tagline-box p {
    font-size: 1.25rem;
    font-weight: 600;
    font-style: italic;
}

.why-list {
    display: grid;
    gap: 2rem;
}

.why-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.icon-circle {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--clr-secondary);
}

.why-item h4 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.why-item p {
    color: var(--clr-text-muted);
    font-size: 0.9375rem;
}

/* =========================================
   STATS
   ========================================= */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    background: var(--gradient-primary);
    padding: 3rem;
    border-radius: var(--radius-lg);
    text-align: center;
}

.stat-number {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-number::after {
    content: "+";
}

.stat-label {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.9;
}

/* =========================================
   TESTIMONIALS
   ========================================= */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--clr-bg);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--clr-border);
}

.stars {
    color: #fbbf24;
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
    display: flex;
    gap: 0.25rem;
}

.review-text {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    font-style: italic;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.client-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.client-info h4 {
    font-size: 1rem;
}

.client-info span {
    font-size: 0.875rem;
    color: var(--clr-text-muted);
}

/* =========================================
   CONTACT
   ========================================= */
.contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    color: var(--clr-text-muted);
    transition: var(--transition-fast);
}

.contact-link i {
    font-size: 1.5rem;
    color: var(--clr-secondary);
}

.contact-link:hover {
    color: var(--clr-text);
}

.contact-form-container {
    background: var(--clr-surface);
    padding: 3rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--clr-border);
}

.contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--clr-text-muted);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--clr-bg);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-sm);
    color: var(--clr-text);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 2px rgba(109, 40, 217, 0.2);
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background: var(--clr-bg-alt);
    padding-top: 5rem;
    border-top: 1px solid var(--clr-border);
}

.flex-footer {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: var(--clr-text-muted);
    margin: 1.5rem 0;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--clr-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.social-links a:hover {
    background: var(--clr-primary);
    color: white;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.link-group h4 {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.link-group a {
    display: block;
    color: var(--clr-text-muted);
    margin-bottom: 0.75rem;
    transition: var(--transition-fast);
}

.link-group a:hover {
    color: var(--clr-text);
    padding-left: 5px;
}

.footer-bottom {
    padding: 2rem 0;
    border-top: 1px solid var(--clr-border);
    color: var(--clr-text-muted);
    font-size: 0.875rem;
    text-align: center;
}

/* =========================================
   ANIMATIONS (Scroll Reveal)
   ========================================= */
.reveal-element {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-element.active {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

.slide-up { transform: translateY(40px); }
.slide-down { transform: translateY(-40px); }
.slide-left { transform: translateX(40px); }
.slide-right { transform: translateX(-40px); }
.scale-in { transform: scale(0.9); }
.fade-in { transform: translateY(0); }

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 1024px) {
    .hero-container, 
    .why-us-grid, 
    .contact-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-ctas, 
    .hero-features {
        justify-content: center;
    }

    .visual-wrapper {
        max-width: 600px;
        margin: 0 auto;
    }

    .why-item {
        align-items: center;
        text-align: left;
    }
    
    .contact-methods {
        align-items: center;
    }
    
    .contact-info {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--clr-bg-alt);
        flex-direction: column;
        gap: 0;
        border-bottom: 1px solid var(--clr-border);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease;
    }

    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .nav-link, .nav-links .btn {
        width: 100%;
        text-align: center;
        padding: 1rem;
        border-radius: 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .flex-footer {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .card-1, .card-2 {
        display: none; /* Hide floating cards on small screens */
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-brand {
        text-align: center;
    }
    
    .footer-brand .logo {
        justify-content: center;
    }
}

/* =========================================
   CUSTOM CURSOR
   ========================================= */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    border: 2px solid var(--clr-primary);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: width 0.2s ease, height 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.custom-cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background-color: var(--clr-secondary);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 10000;
}

.custom-cursor.hover {
    width: 50px;
    height: 50px;
    background-color: rgba(109, 40, 217, 0.1);
    border-color: rgba(109, 40, 217, 0.5);
}

@media (max-width: 768px) {
    .custom-cursor, .custom-cursor-dot {
        display: none;
    }
}
