@tailwind base;
@tailwind components;
@tailwind utilities;

/* ==========================================
   MOVE WELL GROUP - PREMIUM WEBSITE STYLES
   ========================================== */

/* CSS Variables */
:root {
    --color-red: #ef4444;
    --color-red-dark: #dc2626;
    --color-red-light: #f87171;
    --color-dark: #0a0a0a;
    --color-dark-lighter: #141414;
    --color-dark-card: #1a1a1a;
    --color-gray-100: #f5f5f5;
    --color-gray-300: #d4d4d4;
    --color-gray-400: #a3a3a3;
    --color-gray-500: #737373;
    --color-gray-600: #525252;
    --color-gray-800: #262626;
    --color-white: #ffffff;
    
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Montserrat', sans-serif;
    --font-accent: 'Playfair Display', Georgia, serif;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 40px rgba(239, 68, 68, 0.3);
    
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --border-radius-xl: 30px;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background: var(--color-dark);
    color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.loading {
    overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 3rem;
    }
}

/* Text Utilities */
.text-red { color: var(--color-red); }
.text-white { color: var(--color-white); }
.text-gradient {
    background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-light) 50%, var(--color-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================
   PRELOADER
   ========================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    text-align: center;
}

.loader-logo-img {
    height: 50px;
    width: auto;
    margin: 0 auto 1.5rem;
    display: block;
    animation: pulse 1.5s ease infinite;
}

@media (min-width: 768px) {
    .loader-logo-img {
        height: 60px;
    }
}

.loader-logo {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    animation: pulse 1.5s ease infinite;
}

.loader-bar {
    width: 200px;
    height: 3px;
    background: var(--color-gray-800);
    border-radius: 10px;
    overflow: hidden;
}

.loader-progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--color-red), var(--color-red-light));
    border-radius: 10px;
    animation: loading 2s ease forwards;
}

@keyframes loading {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ==========================================
   CUSTOM CURSOR
   ========================================== */
.cursor-follower,
.cursor-dot {
    display: none;
}

@media (min-width: 1024px) and (pointer: fine) {
    .cursor-follower {
        display: block;
        position: fixed;
        width: 40px;
        height: 40px;
        border: 1px solid var(--color-red);
        border-radius: 50%;
        pointer-events: none;
        z-index: 9999;
        transition: transform 0.15s ease, opacity 0.15s ease;
        transform: translate(-50%, -50%);
        opacity: 0;
    }
    
    .cursor-dot {
        display: block;
        position: fixed;
        width: 8px;
        height: 8px;
        background: var(--color-red);
        border-radius: 50%;
        pointer-events: none;
        z-index: 9999;
        transform: translate(-50%, -50%);
        opacity: 0;
    }
    
    body:hover .cursor-follower,
    body:hover .cursor-dot {
        opacity: 1;
    }
    
    .cursor-follower.hover {
        transform: translate(-50%, -50%) scale(1.5);
        border-color: var(--color-white);
    }
    
    .cursor-dot.hover {
        transform: translate(-50%, -50%) scale(0);
    }
}

/* ==========================================
   NAVIGATION
   ========================================== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: all var(--transition-normal);
}

#navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.75rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 1001;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-main {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.logo-text .text-red,
.logo-text .text-white {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.logo-tagline {
    font-size: 0.6rem;
    color: var(--color-gray-400);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 2px;
}

.nav-links {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .nav-links {
        display: flex;
    }
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-gray-300);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-red);
    transition: width var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-white);
}

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

.nav-cta {
    display: none;
    padding: 0.75rem 1.5rem;
    background: var(--color-red);
    color: var(--color-white);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-normal);
}

.nav-cta:hover {
    background: var(--color-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.3);
}

@media (min-width: 1024px) {
    .nav-cta {
        display: inline-flex;
    }
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-white);
    transition: all var(--transition-normal);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (min-width: 1024px) {
    .nav-toggle {
        display: none;
    }
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--color-dark);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

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

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.mobile-link {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-white);
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-normal);
}

.mobile-menu.active .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.active .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.active .mobile-link:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu.active .mobile-link:nth-child(6) { transition-delay: 0.35s; }
.mobile-menu.active .mobile-link:nth-child(7) { transition-delay: 0.4s; }

.mobile-link:hover {
    color: var(--color-red);
}

.mobile-cta {
    margin-top: 1rem;
    padding: 1rem 2rem;
    background: var(--color-red);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 8rem 1.5rem 4rem;
}

@media (min-width: 768px) {
    .hero {
        padding: 6rem 2rem;
    }
}

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

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(239, 68, 68, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(239, 68, 68, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(20, 20, 20, 1) 0%, var(--color-dark) 100%);
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--color-dark);
    border: none;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--color-red);
    border-radius: 50%;
    animation: blink 2s ease infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero-title {
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 800;
    color: var(--color-white);
    line-height: 1.1;
}

.title-accent {
    color: var(--color-red);
    font-family: var(--font-accent);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-top: 0.5rem;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--color-gray-400);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.125rem;
    }
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

@media (min-width: 480px) {
    .hero-cta {
        flex-direction: row;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-normal);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--color-red);
    color: var(--color-white);
}

.btn-primary:hover {
    background: var(--color-red-dark);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(239, 68, 68, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-gray-600);
}

.btn-outline:hover {
    border-color: var(--color-white);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-3px);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-gray-800);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--color-white);
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--color-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

/* Hero Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-gray-500);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scroll-indicator {
    width: 24px;
    height: 40px;
    border: 2px solid var(--color-gray-600);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-dot {
    width: 4px;
    height: 8px;
    background: var(--color-red);
    border-radius: 4px;
    animation: scrollBounce 2s ease infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(10px); opacity: 0.3; }
}

/* Floating Elements */
.hero-float {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.float-1 {
    width: 400px;
    height: 400px;
    background: rgba(239, 68, 68, 0.15);
    top: -100px;
    right: -100px;
    animation: float 20s ease infinite;
}

.float-2 {
    width: 300px;
    height: 300px;
    background: rgba(239, 68, 68, 0.1);
    bottom: -50px;
    left: -50px;
    animation: float 25s ease infinite reverse;
}

.float-3 {
    width: 200px;
    height: 200px;
    background: rgba(239, 68, 68, 0.08);
    top: 50%;
    left: 20%;
    animation: float 15s ease infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(30px, -30px); }
    50% { transform: translate(-20px, 20px); }
    75% { transform: translate(20px, 30px); }
}

/* ==========================================
   MARQUEE SECTION
   ========================================== */
.marquee-section {
    padding: 1.5rem 0;
    background: var(--color-dark-lighter);
    border-top: 1px solid var(--color-gray-800);
    border-bottom: 1px solid var(--color-gray-800);
    overflow: hidden;
}

.marquee {
    display: flex;
    overflow: hidden;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    animation: marquee 30s linear infinite;
    white-space: nowrap;
}

.marquee-content span {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-gray-500);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.marquee-dot {
    width: 6px;
    height: 6px;
    background: var(--color-red);
    border-radius: 50%;
    flex-shrink: 0;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
.about-section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .about-section {
        padding: 8rem 0;
    }
}

.about-grid {
    display: grid;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6rem;
    }
}

/* Section Tag */
.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-red);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
}

/* Section Title */
.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1.5rem;
    color: var(--color-white);
}

.about-text {
    color: var(--color-gray-400);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* About Features */
.about-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--border-radius-sm);
    color: var(--color-red);
}

.feature h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 0.25rem;
}

.feature p {
    font-size: 0.875rem;
    color: var(--color-gray-500);
}

/* About Visual */
.about-visual {
    position: relative;
    height: 400px;
    display: none;
}

@media (min-width: 768px) {
    .about-visual {
        display: block;
    }
}

@media (min-width: 1024px) {
    .about-visual {
        height: 500px;
    }
}

.visual-card {
    position: absolute;
    background: var(--color-dark-card);
    border: 1px solid var(--color-gray-800);
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    transition: all var(--transition-normal);
}

.visual-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(239, 68, 68, 0.3);
}

.card-1 {
    top: 0;
    left: 0;
    width: 220px;
    z-index: 3;
}

.card-2 {
    top: 120px;
    right: 0;
    width: 240px;
    z-index: 2;
}

.card-3 {
    bottom: 0;
    left: 40px;
    width: 200px;
    z-index: 1;
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: block;
}

.card-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 0.25rem;
}

.card-content p {
    font-size: 0.875rem;
    color: var(--color-gray-500);
}

.visual-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
}

/* ==========================================
   MOTTO SECTION
   ========================================== */
.motto-section {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
}

@media (min-width: 768px) {
    .motto-section {
        padding: 8rem 0;
    }
}

.motto-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-lighter) 50%, var(--color-dark) 100%);
}

.motto-content {
    position: relative;
    text-align: center;
    z-index: 1;
}

.motto-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-red);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
}

.motto-text {
    font-family: var(--font-accent);
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 400;
    font-style: italic;
    color: var(--color-white);
    margin-bottom: 1rem;
}

.quote-mark {
    color: var(--color-red);
}

.motto-tagline {
    font-size: 1.25rem;
    color: var(--color-gray-400);
    font-style: italic;
    margin-bottom: 2rem;
}

.motto-line {
    width: 100px;
    height: 2px;
    background: var(--color-red);
    margin: 0 auto 2rem;
}

.motto-description {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-gray-300);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ==========================================
   SERVICES SECTION
   ========================================== */
.services-section {
    padding: 6rem 0;
    background: var(--color-dark-lighter);
}

@media (min-width: 768px) {
    .services-section {
        padding: 8rem 0;
    }
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--color-gray-400);
    line-height: 1.7;
}

.services-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

.service-card {
    position: relative;
    background: var(--color-dark-card);
    border: 1px solid var(--color-gray-800);
    border-radius: var(--border-radius-md);
    padding: 2rem;
    transition: all var(--transition-normal);
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-red), var(--color-red-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(239, 68, 68, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

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

.service-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.1);
    border-radius: var(--border-radius-sm);
    color: var(--color-red);
    margin-bottom: 1.5rem;
    transition: all var(--transition-normal);
}

.service-card:hover .service-icon {
    background: var(--color-red);
    color: var(--color-white);
}

.service-number {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-gray-700);
}

.service-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 0.75rem;
}

.service-description {
    font-size: 0.875rem;
    color: var(--color-gray-400);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.service-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.service-features li {
    position: relative;
    padding-left: 1.25rem;
    font-size: 0.875rem;
    color: var(--color-gray-500);
    margin-bottom: 0.5rem;
}

.service-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 6px;
    height: 6px;
    background: var(--color-red);
    border-radius: 50%;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-red);
    transition: all var(--transition-fast);
}

.service-link:hover {
    gap: 0.75rem;
    color: var(--color-red-light);
}

/* ==========================================
   PORTFOLIO SECTION
   ========================================== */
.portfolio-section {
    padding: 6rem 0;
}

@media (min-width: 768px) {
    .portfolio-section {
        padding: 8rem 0;
    }
}

.portfolio-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

.portfolio-item {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    background: var(--color-dark-card);
    border: 1px solid var(--color-gray-800);
    transition: all var(--transition-normal);
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.portfolio-large {
    grid-column: span 1;
}

@media (min-width: 768px) {
    .portfolio-large {
        grid-row: span 2;
    }
}

.portfolio-wide {
    grid-column: span 1;
}

@media (min-width: 768px) {
    .portfolio-wide {
        grid-column: span 2;
    }
}

.portfolio-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .portfolio-large .portfolio-image {
        height: 100%;
        min-height: 300px;
    }
    
    .portfolio-wide .portfolio-image {
        height: 250px;
    }
}

.portfolio-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.preview-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-white);
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0.8;
}

.preview-icon {
    font-size: 3rem;
}

.portfolio-info {
    padding: 1.5rem;
}

.portfolio-category {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--color-red);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.portfolio-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 0.5rem;
}

.portfolio-description {
    font-size: 0.875rem;
    color: var(--color-gray-500);
    line-height: 1.6;
}

/* ==========================================
   TESTIMONIALS SECTION
   ========================================== */
.testimonials-section {
    padding: 6rem 0;
    background: var(--color-dark-lighter);
}

@media (min-width: 768px) {
    .testimonials-section {
        padding: 8rem 0;
    }
}

.testimonials-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

.testimonial-card {
    position: relative;
    background: var(--color-dark-card);
    border: 1px solid var(--color-gray-800);
    border-radius: var(--border-radius-md);
    padding: 2rem;
    transition: all var(--transition-normal);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: rgba(239, 68, 68, 0.2);
}

.testimonial-card.featured {
    border-color: rgba(239, 68, 68, 0.3);
    background: linear-gradient(135deg, var(--color-dark-card) 0%, rgba(239, 68, 68, 0.05) 100%);
}

.testimonial-quote {
    font-family: var(--font-accent);
    font-size: 4rem;
    color: var(--color-red);
    line-height: 1;
    margin-bottom: -1rem;
    opacity: 0.5;
}

.testimonial-text {
    font-size: 0.95rem;
    color: var(--color-gray-300);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-red);
    color: var(--color-white);
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: 50%;
}

.author-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-white);
}

.author-info span {
    font-size: 0.8rem;
    color: var(--color-gray-500);
}

.testimonial-rating {
    display: flex;
    gap: 0.25rem;
}

.testimonial-rating span {
    color: #fbbf24;
    font-size: 0.875rem;
}

/* ==========================================
   CTA SECTION
   ========================================== */
.cta-section {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
}

@media (min-width: 768px) {
    .cta-section {
        padding: 8rem 0;
    }
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 50% 50%, rgba(239, 68, 68, 0.15) 0%, transparent 50%),
        var(--color-dark);
}

.cta-content {
    position: relative;
    text-align: center;
    z-index: 1;
}

.cta-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.125rem;
    color: var(--color-gray-400);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

@media (min-width: 480px) {
    .cta-buttons {
        flex-direction: row;
    }
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact-section {
    padding: 6rem 0;
    background: var(--color-dark-lighter);
}

@media (min-width: 768px) {
    .contact-section {
        padding: 8rem 0;
    }
}

.contact-grid {
    display: grid;
    gap: 4rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    /* Contact info styling */
}

.contact-text {
    color: var(--color-gray-400);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--border-radius-sm);
    color: var(--color-red);
}

.contact-item h4 {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.25rem;
}

.contact-item a {
    font-size: 1rem;
    color: var(--color-white);
    transition: color var(--transition-fast);
}

.contact-item a:hover {
    color: var(--color-red);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-dark-card);
    border: 1px solid var(--color-gray-800);
    border-radius: var(--border-radius-sm);
    color: var(--color-gray-400);
    transition: all var(--transition-normal);
}

.social-link:hover {
    background: var(--color-red);
    border-color: var(--color-red);
    color: var(--color-white);
    transform: translateY(-3px);
}

/* Contact Form */
.contact-form-container {
    background: var(--color-dark-card);
    border: 1px solid var(--color-gray-800);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
}

@media (min-width: 768px) {
    .contact-form-container {
        padding: 3rem;
    }
}

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

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-gray-300);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--color-dark);
    border: 1px solid var(--color-gray-800);
    border-radius: var(--border-radius-sm);
    color: var(--color-white);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-red);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-gray-600);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
}

.form-group select option {
    background: var(--color-dark);
    color: var(--color-white);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    position: relative;
    padding: 4rem 0 2rem;
    background: var(--color-dark);
}

.footer-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    overflow: hidden;
    transform: translateY(-99%);
}

.footer-wave svg {
    width: 100%;
    height: 100%;
}

.footer-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
        gap: 3rem;
    }
}

.footer-brand {
    /* Footer brand styling */
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo .logo-img {
    height: 36px;
}

.footer-logo .logo-text {
    font-size: 1rem;
}

.footer-description {
    font-size: 0.875rem;
    color: var(--color-gray-500);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-dark-card);
    border: 1px solid var(--color-gray-800);
    border-radius: var(--border-radius-sm);
    color: var(--color-gray-500);
    transition: all var(--transition-normal);
}

.footer-social a:hover {
    background: var(--color-red);
    border-color: var(--color-red);
    color: var(--color-white);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--color-gray-500);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-red);
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-contact li svg {
    flex-shrink: 0;
    color: var(--color-red);
}

.footer-contact a {
    font-size: 0.875rem;
    color: var(--color-gray-400);
    transition: color var(--transition-fast);
}

.footer-contact a:hover {
    color: var(--color-white);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--color-gray-800);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-bottom p {
    font-size: 0.875rem;
    color: var(--color-gray-600);
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    font-size: 0.875rem;
    color: var(--color-gray-600);
    transition: color var(--transition-fast);
}

.footer-legal a:hover {
    color: var(--color-white);
}

/* ==========================================
   BACK TO TOP BUTTON
   ========================================== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-red);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-normal);
    z-index: 100;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-red-dark);
    transform: translateY(-3px);
}

/* ==========================================
   ANIMATIONS & REVEALS
   ========================================== */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: var(--delay, 0s);
}

.reveal-up {
    transform: translateY(40px);
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.reveal-up.active,
.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: translate(0);
}

/* ==========================================
   RESPONSIVE ADJUSTMENTS
   ========================================== */
@media (max-width: 767px) {
    .hero-scroll {
        display: none;
    }
    
    .stat-label {
        font-size: 0.65rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
}

/* ==========================================
   SELECTION & FOCUS STYLES
   ========================================== */
::selection {
    background: rgba(239, 68, 68, 0.3);
    color: var(--color-white);
}

:focus-visible {
    outline: 2px solid var(--color-red);
    outline-offset: 2px;
}

/* ==========================================
   SCROLLBAR STYLING
   ========================================== */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--color-gray-700);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-gray-600);
}
