/* ============================================
   carpediem Solutions - Hyper-Realistic Styles
   Advanced CSS with Glass Morphism, 3D Effects,
   Particle Systems, and Micro-interactions
   ============================================ */

/* CSS Variables - Enhanced Rosewood Library Theme */
:root {
    /* Colors */
    --color-primary: #1B365D;
    --color-primary-dark: #0F1F36;
    --color-primary-light: #2E4A7A;
    --color-accent: #C9A87C;
    --color-accent-dark: #A88B5F;
    --color-accent-light: #DBC4A4;
    --color-text: #1a1a1a;
    --color-text-light: #4a4a4a;
    --color-text-muted: #7a7a7a;
    --color-bg: #F2EDE4;
    --color-bg-alt: #FFFFFF;
    --color-bg-dark: #1B365D;
    
    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-shadow: 0 8px 32px rgba(27, 54, 93, 0.15);
    
    /* Typography */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    --space-4xl: 8rem;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --shadow-glow: 0 0 40px rgba(201, 168, 124, 0.3);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
}

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

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

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

img, svg {
    display: block;
    max-width: 100%;
}

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

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

ul, ol {
    list-style: none;
}

/* Custom Cursor */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
}

.cursor-circle {
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.15s ease;
    opacity: 0.5;
}

.cursor.hover .cursor-dot {
    transform: translate(-50%, -50%) scale(2);
}

.cursor.hover .cursor-circle {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0.8;
}

/* Particle Canvas */
.particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.6;
}

/* Container */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    position: relative;
    z-index: 2;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.1;
    color: var(--color-primary);
}

h1 { font-size: clamp(3rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p {
    margin-bottom: var(--space-sm);
}

.text-accent {
    color: var(--color-accent);
    position: relative;
    display: inline-block;
}

.text-accent::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(180deg, transparent 0%, rgba(201, 168, 124, 0.2) 100%);
    z-index: -1;
    transform: skewX(-5deg);
}

/* Glass Card Effect */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-slow);
}

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

.glass-card:hover::before {
    left: 100%;
}

.card-shine {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.15) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

.glass-card:hover .card-shine {
    opacity: 1;
}

/* Magnetic Button */
.magnetic-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-text {
    position: relative;
    z-index: 2;
}

.btn-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    transform: translateY(100%);
    transition: transform var(--transition-slow);
    z-index: 1;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    border: 2px solid var(--color-primary);
}

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

.btn-primary:hover .btn-bg {
    transform: translateY(0);
}

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

.btn-outline:hover {
    background-color: var(--color-primary);
    color: white;
    transform: translateY(-3px);
}

.btn-light {
    background-color: white;
    color: var(--color-primary);
    border: 2px solid white;
}

.btn-light:hover {
    background-color: transparent;
    color: white;
    transform: translateY(-3px);
}

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

.btn-outline-light:hover {
    background-color: white;
    color: var(--color-primary);
    transform: translateY(-3px);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(242, 237, 228, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(27, 54, 93, 0.1);
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: rgba(242, 237, 228, 0.95);
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    position: relative;
}

.logo-icon {
    width: 44px;
    height: 44px;
    color: var(--color-primary);
    transition: transform var(--transition-slow);
}

.logo:hover .logo-icon {
    transform: rotate(180deg);
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

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

.logo-primary {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: -0.02em;
}

.logo-secondary {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
    position: relative;
    padding: var(--space-xs) 0;
    overflow: hidden;
}

.nav-link::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: var(--color-accent);
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
    transition: clip-path var(--transition-slow);
}

.nav-link:hover::before {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: all var(--transition-base);
    transform: translateX(-50%);
}

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

.nav-link.active {
    color: var(--color-primary);
    font-weight: 600;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-xs);
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-primary);
    transition: all var(--transition-base);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(80px + var(--space-3xl)) 0 var(--space-3xl);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(201, 168, 124, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(27, 54, 93, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, var(--color-bg) 0%, #e8e3da 100%);
}

.hero-noise {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201, 168, 124, 0.2) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    filter: blur(60px);
    animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.hero-content {
    max-width: 650px;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) var(--space-md);
    background: rgba(201, 168, 124, 0.15);
    border: 1px solid rgba(201, 168, 124, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-accent-dark);
    margin-bottom: var(--space-lg);
    backdrop-filter: blur(10px);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-accent);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
    box-shadow: 0 0 10px var(--color-accent);
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

.hero-title {
    margin-bottom: var(--space-lg);
    line-height: 1.05;
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(30px);
}

.title-line.animated {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-light);
    margin-bottom: var(--space-2xl);
    max-width: 500px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* Hero Visual - 3D Card Stack */
.hero-visual {
    position: relative;
    perspective: 1000px;
}

.hero-image-container {
    position: relative;
    aspect-ratio: 1;
    max-width: 550px;
    margin: 0 auto;
}

.card-stack {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.stack-card {
    position: absolute;
    width: 280px;
    padding: var(--space-lg);
    transform-style: preserve-3d;
    transition: all var(--transition-slow);
}

.card-1 {
    top: 5%;
    left: -5%;
    transform: translateZ(60px) rotateY(-5deg);
    z-index: 3;
}

.card-2 {
    top: 35%;
    right: -10%;
    transform: translateZ(30px) rotateY(5deg);
    z-index: 2;
}

.card-3 {
    bottom: 10%;
    left: 10%;
    transform: translateZ(0) rotateY(-3deg);
    z-index: 1;
}

.stack-card:hover {
    transform: translateZ(100px) scale(1.05) !important;
    z-index: 10;
}

.card-content {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.card-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(201, 168, 124, 0.2) 0%, rgba(201, 168, 124, 0.05) 100%);
    border-radius: var(--radius-lg);
    font-size: 1.5rem;
    border: 1px solid rgba(201, 168, 124, 0.3);
}

.card-text {
    display: flex;
    flex-direction: column;
}

.card-value {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.card-suffix {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
}

.card-label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 2px;
}

/* 3D Shape */
.hero-3d-shape {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    transform: translate(-50%, -50%);
    z-index: 0;
    opacity: 0.6;
}

.shape-ring {
    position: absolute;
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    opacity: 0.3;
}

.ring-1 {
    width: 100%;
    height: 100%;
    animation: rotate 20s linear infinite;
}

.ring-2 {
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
    animation: rotate-reverse 15s linear infinite;
}

.ring-3 {
    width: 40%;
    height: 40%;
    top: 30%;
    left: 30%;
    animation: rotate 10s linear infinite;
}

.shape-core {
    position: absolute;
    width: 20%;
    height: 20%;
    top: 40%;
    left: 40%;
    background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(20px);
    animation: pulse-core 3s ease-in-out infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotate-reverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

@keyframes pulse-core {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.2); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-2xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--color-text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--color-text-muted);
    border-radius: var(--radius-full);
    position: relative;
}

.wheel {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background-color: var(--color-text-muted);
    border-radius: var(--radius-full);
    animation: scroll-wheel 1.5s ease-in-out infinite;
}

@keyframes scroll-wheel {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

.scroll-text {
    animation: fade-up-down 2s ease-in-out infinite;
}

@keyframes fade-up-down {
    0%, 100% { opacity: 0.6; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-5px); }
}

/* Section Headers */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-3xl);
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-accent);
    margin-bottom: var(--space-md);
    position: relative;
}

.section-eyebrow::before,
.section-eyebrow::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent));
}

.section-eyebrow::before {
    right: calc(100% + var(--space-sm));
}

.section-eyebrow::after {
    left: calc(100% + var(--space-sm));
    background: linear-gradient(90deg, var(--color-accent), transparent);
}

.section-title {
    margin-bottom: var(--space-md);
    line-height: 1.1;
}

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

/* Features Section */
.features {
    padding: var(--space-4xl) 0;
    background-color: var(--color-bg-alt);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(180deg, var(--color-bg) 0%, transparent 100%);
    pointer-events: none;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

.feature-card {
    text-align: center;
    padding: var(--space-2xl);
    transition: all var(--transition-slow);
}

.feature-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl), 0 20px 40px rgba(27, 54, 93, 0.1);
}

.feature-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto var(--space-lg);
    color: var(--color-accent);
    position: relative;
}

.feature-icon::before {
    content: '';
    position: absolute;
    inset: -10px;
    background: radial-gradient(circle, rgba(201, 168, 124, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.feature-card:hover .feature-icon::before {
    opacity: 1;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-title {
    font-size: 1.35rem;
    margin-bottom: var(--space-sm);
    transition: color var(--transition-base);
}

.feature-card:hover .feature-title {
    color: var(--color-accent);
}

.feature-desc {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-bottom: var(--space-md);
    line-height: 1.7;
}

.feature-arrow {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    color: var(--color-accent);
    opacity: 0;
    transform: translateX(-10px);
    transition: all var(--transition-base);
}

.feature-card:hover .feature-arrow {
    opacity: 1;
    transform: translateX(0);
}

.feature-arrow svg {
    width: 100%;
    height: 100%;
}

/* Services Preview */
.services-preview {
    padding: var(--space-4xl) 0;
    position: relative;
    overflow: hidden;
}

.services-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.services-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 0% 50%, rgba(27, 54, 93, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 50%, rgba(201, 168, 124, 0.05) 0%, transparent 50%);
}

.services-showcase {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    margin-bottom: var(--space-3xl);
}

.service-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: var(--space-2xl);
    align-items: center;
    padding: var(--space-2xl);
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(27, 54, 93, 0.1);
    transition: all var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.service-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--color-accent) 0%, var(--color-primary) 100%);
    transform: scaleY(0);
    transition: transform var(--transition-slow);
}

.service-item:hover {
    background: white;
    box-shadow: var(--shadow-xl);
    transform: translateX(10px);
}

.service-item:hover::before {
    transform: scaleY(1);
}

.service-number {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
    color: var(--color-accent);
    opacity: 0.2;
    line-height: 1;
    transition: all var(--transition-base);
}

.service-item:hover .service-number {
    opacity: 0.4;
    transform: scale(1.1);
}

.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
    transition: color var(--transition-base);
}

.service-item:hover .service-content h3 {
    color: var(--color-accent);
}

.service-content p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-bottom: var(--space-md);
    max-width: 500px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-weight: 600;
    color: var(--color-accent);
    position: relative;
}

.service-link svg {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-base);
}

.service-link:hover svg {
    transform: translateX(5px);
}

.service-visual {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-orb {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(201, 168, 124, 0.3) 0%, rgba(27, 54, 93, 0.1) 100%);
    box-shadow: 
        inset 0 0 30px rgba(201, 168, 124, 0.3),
        0 10px 30px rgba(201, 168, 124, 0.2);
    animation: float-orb 6s ease-in-out infinite;
    position: relative;
}

.service-orb::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 1px solid rgba(201, 168, 124, 0.2);
    animation: pulse-ring 3s ease-in-out infinite;
}

.orb-2 {
    background: linear-gradient(135deg, rgba(27, 54, 93, 0.3) 0%, rgba(201, 168, 124, 0.1) 100%);
    animation-delay: -2s;
}

.orb-3 {
    background: linear-gradient(135deg, rgba(201, 168, 124, 0.2) 0%, rgba(27, 54, 93, 0.2) 100%);
    animation-delay: -4s;
}

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

@keyframes pulse-ring {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.5; }
}

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

/* Stats Section */
.stats {
    padding: var(--space-4xl) 0;
    position: relative;
    overflow: hidden;
}

.stats-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.stats-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
}

.stats .container {
    position: relative;
    z-index: 2;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
    text-align: center;
}

.stat-item {
    padding: var(--space-xl);
    position: relative;
}

.stat-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background: linear-gradient(180deg, transparent, rgba(255,255,255,0.2), transparent);
}

.stat-item:last-child::after {
    display: none;
}

.stat-number-wrapper {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: var(--space-sm);
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
    text-shadow: 0 0 30px rgba(201, 168, 124, 0.3);
}

.stat-suffix {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--color-accent);
}

.stat-label {
    display: block;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.8);
    letter-spacing: 0.05em;
}

.stat-line {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    transition: width 1s ease;
}

.stat-item.visible .stat-line {
    width: 60%;
}

/* Testimonials */
.testimonials {
    padding: var(--space-4xl) 0;
    background-color: var(--color-bg-alt);
    position: relative;
}

.testimonials-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.testimonials-track {
    position: relative;
    min-height: 400px;
}

.testimonial-card {
    position: absolute;
    width: 100%;
    padding: var(--space-2xl);
    opacity: 0;
    transform: translateX(50px) scale(0.95);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.testimonial-card.active {
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: auto;
}

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

.testimonial-text {
    font-size: 1.35rem;
    font-style: italic;
    color: var(--color-text);
    margin-bottom: var(--space-xl);
    line-height: 1.8;
    position: relative;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.author-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: white;
    box-shadow: 0 10px 30px rgba(27, 54, 93, 0.2);
}

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

.author-name {
    display: block;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-primary);
}

.author-title {
    display: block;
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.testimonial-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

.nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--color-primary);
    background: transparent;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.nav-btn:hover {
    background: var(--color-primary);
    color: white;
    transform: scale(1.1);
}

.nav-btn svg {
    width: 20px;
    height: 20px;
}

.testimonial-dots {
    display: flex;
    gap: var(--space-sm);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--color-text-muted);
    opacity: 0.3;
    transition: all var(--transition-base);
    position: relative;
}

.dot::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--color-accent);
    opacity: 0;
    transform: scale(0.8);
    transition: all var(--transition-base);
}

.dot.active {
    background-color: var(--color-accent);
    opacity: 1;
}

.dot.active::before {
    opacity: 1;
    transform: scale(1);
}

/* CTA Section */
.cta-section {
    padding: var(--space-4xl) 0;
    position: relative;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.cta-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
}

.cta-particles {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(201, 168, 124, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(201, 168, 124, 0.1) 0%, transparent 50%);
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.cta-content {
    text-align: center;
    color: white;
}

.cta-content h2 {
    color: white;
    margin-bottom: var(--space-md);
    font-size: clamp(2rem, 4vw, 3.5rem);
}

.cta-content p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: var(--space-2xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* Footer */
.footer {
    padding: var(--space-4xl) 0 var(--space-xl);
    position: relative;
    overflow: hidden;
}

.footer-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.footer-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--color-primary-dark) 0%, #0a1420 100%);
}

.footer .container {
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
}

.footer-brand {
    color: white;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.footer-logo .logo-icon {
    color: white;
    width: 48px;
    height: 48px;
}

.footer-logo .logo-primary {
    color: white;
    font-size: 1.5rem;
}

.footer-tagline {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: var(--space-xl);
    line-height: 1.7;
    max-width: 300px;
}

.footer-social {
    display: flex;
    gap: var(--space-md);
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.social-link:hover {
    transform: translateY(-5px);
}

.social-link:hover::before {
    opacity: 1;
}

.social-link svg {
    width: 20px;
    height: 20px;
    position: relative;
    z-index: 2;
}

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

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.magnetic-link {
    font-size: 0.95rem;
    opacity: 0.7;
    color: white;
    transition: all var(--transition-base);
    display: inline-block;
}

.magnetic-link:hover {
    opacity: 1;
    color: var(--color-accent);
    transform: translateX(5px);
}

.footer-contact {
    color: white;
}

.footer-contact p {
    font-size: 0.95rem;
    opacity: 0.7;
    margin-bottom: var(--space-xs);
    line-height: 1.6;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255,255,255,0.1);
    color: white;
}

.footer-bottom p {
    font-size: 0.875rem;
    opacity: 0.5;
    margin-bottom: 0;
}

.footer-legal {
    display: flex;
    gap: var(--space-xl);
}

/* Page Header */
.page-header {
    padding: calc(80px + var(--space-3xl)) 0 var(--space-2xl);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(201, 168, 124, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(201, 168, 124, 0.1) 0%, transparent 50%);
}

.page-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-accent);
    margin-bottom: var(--space-md);
}

.page-title {
    color: white;
    margin-bottom: var(--space-md);
}

.page-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .features-grid,
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-visual {
        display: none;
    }
    
    .stat-item::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .cursor {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: rgba(242, 237, 228, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: var(--space-2xl);
        gap: var(--space-md);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
        box-shadow: var(--shadow-lg);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .features-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .service-item {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .service-visual {
        order: -1;
        margin: 0 auto;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .stack-card {
        position: relative;
        width: 100%;
        transform: none !important;
        margin-bottom: var(--space-md);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .testimonial-nav {
        flex-direction: column;
        gap: var(--space-md);
    }
}