/* ============================================
   MODERN STYLES.CSS - Logic & Pixel Technologies
   Matching the Ultra-Modern Design Pattern
============================================ */

/* ===== CSS Reset & Variables ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary Colors */
    --primary: #a81313;
    --primary-light: #ff4444;
    --secondary: #0a0a0a;
    --accent: #ff6b6b;
    
    /* Gradients */
    --gradient-1: linear-gradient(135deg, #a81313 0%, #ff4444 50%, #ff6b6b 100%);
    --gradient-2: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-3: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    
    /* Glass Effects */
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-white: rgba(255, 255, 255, 0.95);
    
    /* Shadows */
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 15px 40px rgba(0, 0, 0, 0.12);
    --shadow-large: 0 25px 50px rgba(0, 0, 0, 0.18);
    --shadow-glow: 0 0 40px rgba(168, 19, 19, 0.3);
    --shadow-btn: 0 10px 30px rgba(168, 19, 19, 0.3);
    
    /* Text Colors */
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-muted: #999999;
    --text-light: #ffffff;
    
    /* Background Colors */
    --bg-light: #fafafa;
    --bg-white: #ffffff;
    --bg-section: #f8f9fa;
    
    /* Border & Radius */
    --border-light: rgba(0, 0, 0, 0.08);
    --border-radius-sm: 12px;
    --border-radius-md: 20px;
    --border-radius-lg: 25px;
    --border-radius-xl: 30px;
    --border-radius-full: 50px;
    
    /* Transitions */
    --transition-fast: all 0.2s ease;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    /* Fonts */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Space Grotesk', 'Inter', sans-serif;

    /* Type Scale */
    --h1-size: clamp(2rem, 3.2vw, 3.25rem);
    --h2-size: clamp(1.75rem, 2.4vw, 2.5rem);
    --body-size: 1rem;
    --body-line: 1.75;

    /* Spacing */
    --section-pad-y: clamp(3.5rem, 6vw, 7rem);
    --section-pad-x: clamp(1rem, 3vw, 2.5rem);
    --content-max: 650px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-light);
    color: var(--text-primary);
    font-size: var(--body-size);
    line-height: var(--body-line);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

*:focus-visible {
    outline: 3px solid rgba(168, 19, 19, 0.35);
    outline-offset: 3px;
    border-radius: 8px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

body.loading {
    overflow: hidden;
}

body.menu-open {
    overflow: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #8a0f0f 0%, #cc3333 100%);
}

/* ===== Selection ===== */
::selection {
    background: rgba(168, 19, 19, 0.2);
    color: var(--primary);
}

/* ===== Page Loader ===== */
.page-loader {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #a81313 0%, #ff4444 50%, #ff6b6b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

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

.loader-logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    background: var(--gradient-1);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-loader 1.5s ease-in-out infinite;
    box-shadow: 0 20px 50px rgba(168, 19, 19, 0.4);
}

.loader-logo img {
    width: 80px;
    height: 80px;
    border-radius: 20px;
}

.loader-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: white;
}

.loader-text .text-logic {
    color: var(--primary-light);
}

.loader-text .text-pixel {
    color: white;
}

.loader-bar {
    width: 250px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto 15px;
}

.loader-progress {
    height: 100%;
    background: var(--gradient-1);
    border-radius: 2px;
    animation: loading-bar 1.5s ease-in-out infinite;
}

.loader-tagline {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

@keyframes pulse-loader {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 20px 50px rgba(168, 19, 19, 0.4);
    }
    50% { 
        transform: scale(1.05); 
        box-shadow: 0 30px 60px rgba(168, 19, 19, 0.5);
    }
}

@keyframes loading-bar {
    0% { width: 0%; margin-left: 0; }
    50% { width: 70%; margin-left: 15%; }
    100% { width: 0%; margin-left: 100%; }
}

/* ===== Text Color Classes ===== */
.text-logic {
    color: var(--primary) !important;
}

.text-pixel {
    color: #ffffff !important;
}

.gradient-text {
    color: #000000 !important;
}

/* ===== Buttons ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 35px;
    background: var(--gradient-1);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--border-radius-full);
    border: none;
    cursor: pointer;
    transition: var(--transition-bounce);
    box-shadow: var(--shadow-btn);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(168, 19, 19, 0.4);
}

.btn-primary:active {
    transform: translateY(-2px);
}

.btn-primary i {
    transition: var(--transition);
}

.btn-primary:hover i {
    transform: translateX(5px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 35px;
    background: white;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--border-radius-full);
    border: 2px solid #e0e0e0;
    cursor: pointer;
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

.btn-white {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: white;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: var(--border-radius-full);
    border: none;
    cursor: pointer;
    transition: var(--transition-bounce);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.btn-white:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.4);
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    background: var(--glass-white);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-icon {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.logo-icon:hover {
    transform: rotate(10deg) scale(1.1);
}

.logo-icon img,
.logo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-text h1 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

.logo-text p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Navigation */
.nav-desktop {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-desktop a {
    position: relative;
    padding: 12px 20px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--border-radius-full);
    transition: var(--transition);
}

.nav-desktop a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--gradient-1);
    transition: var(--transition);
    transform: translateX(-50%);
    border-radius: 3px;
}

.nav-desktop a:hover::before {
    width: 60%;
}

.nav-desktop a:hover {
    color: var(--primary);
}

.nav-desktop a.active {
    background: var(--gradient-1);
    color: white;
}

.nav-desktop a.active::before {
    display: none;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    width: 50px;
    height: 50px;
    border: none;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    cursor: pointer;
    font-size: 1.3rem;
    color: var(--text-primary);
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    background: var(--gradient-1);
    color: white;
}

/* Mobile Navigation */
.nav-mobile {
    display: none;
    position: fixed;
    top: 85px;
    left: 20px;
    right: 20px;
    background: var(--glass-white);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    z-index: 999;
    flex-direction: column;
    gap: 10px;
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.nav-mobile.active {
    display: flex;
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.nav-mobile a {
    padding: 15px 25px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    border-radius: 15px;
    transition: var(--transition);
}

.nav-mobile a:hover {
    background: var(--gradient-1);
    color: white;
    transform: translateX(10px);
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 998;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== Section Styles ===== */
.section {
    padding: var(--section-pad-y) var(--section-pad-x);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 25px;
    background: var(--gradient-1);
    color: white;
    border-radius: var(--border-radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.section-header h2,
.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-1);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.section-header:hover h2::after {
    width: 120px;
}

.section-header p,
.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: var(--content-max);
    margin: 0 auto;
    line-height: 1.8;
}

/* ===== Hero Section ===== */
.hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding: 40px 30px 30px;
    position: relative;
    overflow: hidden;
    margin-bottom: 25px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #dbeafe 0%, #fef3ff 100%);
    z-index: -2;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: var(--gradient-1);
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
    opacity: 0.05;
    z-index: -1;
}

/* Particles */
.particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: var(--gradient-1);
    border-radius: 50%;
    animation: particle-float 15s infinite;
}

@keyframes particle-float {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 0.3; }
    90% { opacity: 0.3; }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

.hero-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.hero-text {
    opacity: 0;
    transform: translateX(-50px);
    animation: slide-in-left 0.8s ease forwards 0.3s;
    text-align: center;
}

@keyframes slide-in-left {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: linear-gradient(135deg, rgba(168, 19, 19, 0.1), rgba(255, 68, 68, 0.1));
    border: 1px solid rgba(168, 19, 19, 0.2);
    border-radius: var(--border-radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 30px;
    animation: badgePulse 3s infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(168, 19, 19, 0.4); }
    50% { box-shadow: 0 0 0 15px rgba(168, 19, 19, 0); }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: var(--h1-size);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--text-primary);
    text-align: left;
    padding-left: 0;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: var(--content-max);
    margin-bottom: 40px;
}

/* ===== Trust Strip ===== */
.trust-strip {
    padding: 22px 0;
    background: rgba(255, 255, 255, 0.7);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    backdrop-filter: blur(14px);
}

.trust-strip-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.trust-logos {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.trust-logos img {
    height: 34px;
    width: auto;
    opacity: 0.85;
    filter: grayscale(100%);
    transition: var(--transition-fast);
}

.trust-logos img:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.trust-stats {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.trust-stat {
    display: grid;
    gap: 2px;
    text-align: left;
    padding-left: 18px;
    border-left: 1px solid rgba(0, 0, 0, 0.08);
}

.trust-stat:first-child {
    border-left: none;
    padding-left: 0;
}

.trust-stat strong {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    line-height: 1.2;
    color: var(--text-primary);
}

.trust-stat span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 25px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    opacity: 0;
    transform: translateX(-20px);
    animation: feature-slide 0.5s ease forwards;
}

.feature-item:nth-child(1) { animation-delay: 0.5s; }
.feature-item:nth-child(2) { animation-delay: 0.7s; }
.feature-item:nth-child(3) { animation-delay: 0.9s; }
.feature-item:nth-child(4) { animation-delay: 1.1s; }

@keyframes feature-slide {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.feature-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-glow);
}

.feature-item i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-1);
    color: white;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
}

.feature-item span {
    font-weight: 500;
    color: var(--text-primary);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Hero Image */
.hero-image {
    position: relative;
    opacity: 0;
    transform: translateX(50px);
    animation: slide-in-right 0.8s ease forwards 0.5s;
}

.hero-visual {
    position: relative;
    width: 100%;
    opacity: 0;
    transform: translateX(50px);
    animation: slide-in-right 0.8s ease forwards 0.5s;
}

@keyframes slide-in-right {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-large);
    transition: var(--transition);
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
}

.hero-image-wrapper img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-large);
    transition: var(--transition);
}

.hero-image:hover img {
    transform: scale(1.03);
}

/* Floating Elements */
.floating-element {
    position: absolute;
    border-radius: var(--border-radius-md);
    opacity: 0.25;
}

.floating-1 {
    top: -24px;
    left: -24px;
    width: 96px;
    height: 96px;
    background: var(--gradient-1);
    animation: float-element-1 4s ease-in-out infinite;
}

.floating-2 {
    bottom: -24px;
    right: -24px;
    width: 128px;
    height: 128px;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    border-radius: 50%;
    animation: float-element-2 5s ease-in-out infinite;
}

@keyframes float-element-1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(10px, -15px) rotate(10deg); }
}

@keyframes float-element-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-10px, -20px) scale(1.1); }
}

/* ===== Overview Section ===== */
.overview {
    padding: 120px 0;
    background: var(--bg-section);
    position: relative;
}

.overview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-1);
}

.overview-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 35px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius-full);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-bounce);
    color: var(--text-primary);
}

.tab-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(168, 19, 19, 0.15);
}

.tab-btn.active {
    background: var(--gradient-1);
    border-color: transparent;
    color: white;
    box-shadow: 0 15px 35px rgba(168, 19, 19, 0.3);
}

.tab-btn i {
    font-size: 1.3rem;
}

.tab-content {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.tab-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: fadeUp 0.5s ease;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 15px;
}

.portfolio-item {
    position: relative;
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    cursor: pointer;
}

.portfolio-item:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

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

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

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 35px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: white;
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
}

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

.portfolio-overlay h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.portfolio-overlay p {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* ===== Speciality Section ===== */
.speciality {
    padding: 120px 0;
    background: white;
}

.speciality-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.speciality-text h2 {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-primary);
    position: relative;
}

.speciality-text h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--gradient-1);
    border-radius: 2px;
}

.speciality-text p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 35px;
}

.speciality-image {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.speciality-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: var(--transition);
}

.speciality-image:hover img {
    transform: scale(1.05);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: var(--transition);
}

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

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
}

.stat-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(168, 19, 19, 0.1), rgba(255, 68, 68, 0.1));
    border-radius: var(--border-radius-lg);
    font-size: 2rem;
    color: var(--primary);
    transition: var(--transition);
}

.stat-card:hover .stat-icon {
    background: var(--gradient-1);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.stat-card h3 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.stat-card p {
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===== Services Section ===== */
.services {
    padding: 120px 0;
    background: var(--bg-section);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 15px;
}

.service-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

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

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.service-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.service-icon {
    position: absolute;
    bottom: -30px;
    right: 30px;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-1);
    color: white;
    border-radius: var(--border-radius-md);
    font-size: 1.5rem;
    box-shadow: 0 15px 30px rgba(168, 19, 19, 0.3);
    z-index: 10;
    transition: var(--transition);
}

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

.service-content {
    padding: 50px 30px 30px;
}

.service-content h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
    transition: var(--transition);
}

.service-card:hover .service-content h3 {
    color: var(--primary);
}

.service-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.service-link:hover {
    gap: 15px;
}

/* ===== Reviews Section ===== */
.reviews {
    padding: 120px 0;
    background: white;
    position: relative;
    overflow: hidden;
}

.reviews::before {
    content: '"';
    position: absolute;
    top: 80px;
    left: 10%;
    font-size: 400px;
    font-family: Georgia, serif;
    color: rgba(168, 19, 19, 0.03);
    line-height: 1;
    pointer-events: none;
}

.reviews-slider {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.review-slide {
    display: none;
    opacity: 0;
    transform: translateX(50px);
    transition: var(--transition-slow);
}

.review-slide.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.review-content {
    text-align: center;
    padding: 60px 50px;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-medium);
}

.review-stars {
    margin-bottom: 30px;
}

.review-stars i {
    font-size: 1.5rem;
    color: #ffc107;
    margin: 0 3px;
}

.review-content blockquote {
    font-size: 1.4rem;
    line-height: 1.8;
    color: var(--text-primary);
    font-style: italic;
    margin-bottom: 40px;
}

.reviewer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.reviewer img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: var(--shadow-soft);
}

.reviewer-info {
    text-align: left;
}

.reviewer-info h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.reviewer-info p {
    color: var(--text-secondary);
}

/* Slider Controls */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-primary);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-bounce);
    z-index: 10;
}

.slider-btn:hover {
    background: var(--gradient-1);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.prev-btn { left: -100px; }
.next-btn { right: -100px; }

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.dot {
    width: 12px;
    height: 12px;
    background: #e0e0e0;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.dot:hover,
.dot.active {
    background: var(--gradient-1);
    transform: scale(1.3);
}

/* ===== Team Section ===== */
.team {
    padding: 120px 0;
    background: var(--bg-section);
}

.team-slider {
    position: relative;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.team-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    text-align: center;
}

.team-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.team-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.team-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    display: flex;
    justify-content: center;
    gap: 15px;
    transform: translateY(100%);
    transition: var(--transition);
}

.team-card:hover .team-overlay {
    transform: translateY(0);
}

.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-1);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.1rem;
    transition: var(--transition);
}

.contact-icon:hover {
    transform: scale(1.2);
}

.team-info {
    padding: 30px;
}

.team-info h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.team-info p {
    color: var(--text-secondary);
}

/* ===== Clients Section ===== */
.clients {
    padding: 100px 0;
    background: white;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.client-card {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.client-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
}

.client-image {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
}

.client-image img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.client-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* ===== Contact Section ===== */
.contact {
    padding: 120px 0;
    background: linear-gradient(135deg, #a81313 0%, #ff4444 50%, #ff6b6b 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.contact .section-title {
    color: white;
}

.contact .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.contact-info h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ============================================
   PAGE TRANSITION LOADER STYLES
============================================ */
.page-transition-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.page-transition-loader:not(.hidden) {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.transition-loader-content {
    text-align: center;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.transition-loader-logo {
    margin-bottom: 30px;
}

.transition-loader-logo img {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(168, 19, 19, 0.2);
    animation: pulse 2s infinite;
}

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

.transition-loader-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.transition-loader-text .text-logic {
    color: var(--primary);
}

.transition-loader-text .text-pixel {
    color: var(--secondary);
}

.transition-loader-bar {
    width: 200px;
    height: 4px;
    background: rgba(168, 19, 19, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto 20px;
}

.transition-loader-progress {
    height: 100%;
    background: var(--gradient-1);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(168, 19, 19, 0.3);
}

.transition-loader-tagline {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin: 0;
}

/* Page transitioning state */
body.page-transitioning {
    overflow: hidden;
}

/* Responsive design for transition loader */
@media (max-width: 768px) {
    .transition-loader-logo img {
        width: 60px;
        height: 60px;
    }
    
    .transition-loader-text {
        font-size: 1.2rem;
    }
    
    .transition-loader-bar {
        width: 150px;
    }
}

/* ===== Service Page Compact Styles ===== */
body.service-page .service-hero {
    padding: 60px 30px 40px !important;
}

body.service-page .service-section {
    padding: 40px 30px !important;
}

body.service-page .service-features {
    gap: 15px !important;
}

body.service-page .service-feature {
    margin-bottom: 20px !important;
}

body.service-page .packages-grid {
    gap: 15px !important;
}

body.service-page .package-card {
    margin-bottom: 20px !important;
}

/* ===== Additional Compact Styles ===== */
body.service-page .contact-form {
    padding: 30px !important;
}

body.service-page .form-group {
    margin-bottom: 20px !important;
}

body.service-page .btn {
    padding: 15px 30px !important;
}

body.service-page .card {
    margin-bottom: 20px !important;
}

body.service-page .footer {
    padding: 40px 30px 20px !important;
}

/* ===== What's Included ===== */
.included-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 30px;
}

.included-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-md);
    padding: 18px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.included-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.included-card h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.included-list {
    list-style: none;
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.included-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.included-list i {
    margin-top: 2px;
    color: var(--primary);
}

@media (max-width: 992px) {
    .included-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .included-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Lightbox ===== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-dialog {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-dialog {
    transform: scale(1);
}

.lightbox-media img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.lightbox-title {
    font-size: 1.2rem;
    font-weight: 600;
}

.lightbox-close {
    width: 40px;
    height: 40px;
    background: var(--gradient-1);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.lightbox-close:hover {
    transform: scale(1.1);
}

/* ===== Typing Effect ===== */
.typewriter {
    opacity: 1;
    border-right: 3px solid var(--primary);
    animation: blink 0.7s step-end infinite;
}

.typewriter.typing-done {
    border-right: none;
    animation: none;
}

@keyframes blink {
    50% { border-color: transparent; }
}

/* ===== Team Slider Styles ===== */
.team-grid {
    overflow: hidden;
    position: relative;
}

.team-slider {
    display: flex;
    gap: 25px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-carousel-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.team-carousel-btn {
    width: 50px;
    height: 50px;
    background: white;
    border: 2px solid var(--border-light);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
}

.team-carousel-btn:hover {
    background: var(--gradient-1);
    border-color: transparent;
    color: white;
    transform: scale(1.1);
}

/* ===== Floating Cards Animation ===== */
.floating-card {
    animation: floatCard 5s ease-in-out infinite;
}

.floating-card-1 {
    animation-delay: 0s;
}

.floating-card-2 {
    animation-delay: -2.5s;
}

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

/* ===== Parallax Elements ===== */
.hero-image-wrapper {
    transition: transform 0.1s ease-out;
    will-change: transform;
}

/* ===== Tilt Effect Enhancement ===== */
.service-card, .team-card, .stat-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* ===== Magnetic Button Base ===== */
.btn-primary, .btn-secondary, .btn-white {
    transition: transform 0.2s ease;
    will-change: transform;
}

/* ===== Ripple Effect ===== */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}