/* ========================================
   EVOLYSTIS - GLOBAL STYLES & 3D ANIMATIONS
   Complete Website CSS Framework
======================================== */

/* ========================================
   CSS Variables & Base Styles
======================================== */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #a855f7;
    --accent: #22d3ee;
    --accent-warm: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #6366f1 100%);
    --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
    --gradient-accent: linear-gradient(135deg, #22d3ee 0%, #06b6d4 100%);
    --gradient-warm: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    
    --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 -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
    --shadow-glow-cyan: 0 0 40px rgba(34, 211, 238, 0.3);
    --shadow-glow-purple: 0 0 40px rgba(168, 85, 247, 0.3);
    
    --transition-fast: all 0.2s ease;
    --transition-base: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--gradient-hero);
    color: var(--gray-800);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

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

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   3D BASE ANIMATIONS
======================================== */
.perspective-container {
    perspective: 1000px;
    transform-style: preserve-3d;
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotateY(0deg); }
    50% { transform: translateY(-20px) rotateY(5deg); }
}

.float-reverse {
    animation: float-reverse 8s ease-in-out infinite;
}

@keyframes float-reverse {
    0%, 100% { transform: translateY(0) rotateX(0deg); }
    50% { transform: translateY(20px) rotateX(-5deg); }
}

.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: var(--shadow-glow); }
    50% { box-shadow: 0 0 60px rgba(99, 102, 241, 0.5); }
}

.rotate-slow {
    animation: rotate-slow 20s linear infinite;
}

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

.rotate-reverse {
    animation: rotate-reverse 15s linear infinite;
}

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

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

.card-hover {
    transition: var(--transition-base);
}

.card-hover:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-2xl);
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   NAVIGATION
======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-base);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
    padding: 12px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.nav-cta {
    background: var(--gradient-primary);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: var(--shadow-glow);
    transition: var(--transition-base);
    margin-left: 8px;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 50px rgba(99, 102, 241, 0.5);
    color: white;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* ========================================
   HERO SECTIONS
======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    background: var(--gradient-hero);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(168, 85, 247, 0.15) 0%, transparent 50%);
}

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

.hero .container {
    position: relative;
    z-index: 10;
}

.hero-content {
    color: white;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary-light);
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 24px;
    line-height: 1.15;
}

.hero h1 .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--gray-400);
    margin-bottom: 40px;
    line-height: 1.7;
}

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

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-glow);
    transition: var(--transition-base);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 50px rgba(99, 102, 241, 0.5);
    color: white;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-base);
}

.btn-secondary:hover {
    border-color: var(--primary-light);
    color: var(--primary-light);
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition-base);
}

.btn-outline:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* ========================================
   3D VISUAL CONTAINERS
======================================== */
.hero-3d-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 60px;
}

.hero-3d-container {
    position: relative;
    width: 400px;
    height: 400px;
    transform-style: preserve-3d;
}

/* ========================================
   SECTIONS COMMON
======================================== */
.section {
    padding: 100px 0;
    position: relative;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

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

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary-light);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.section-title {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 16px;
}

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

/* ========================================
   CARDS GRID
======================================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.card-3d {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-base);
}

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

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

.card-3d:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-2xl), var(--shadow-glow);
    border-color: rgba(99, 102, 241, 0.3);
}

.card-icon {
    width: 72px;
    height: 72px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 2rem;
    color: white;
    box-shadow: var(--shadow-md);
}

.card-3d h3 {
    font-size: 1.35rem;
    color: white;
    margin-bottom: 12px;
}

.card-3d p {
    color: var(--gray-400);
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.card-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-500);
    font-size: 0.875rem;
}

.card-meta-item i {
    color: var(--primary-light);
}

/* ========================================
   STATS SECTION
======================================== */
.stats-section {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.02);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
}

.stat-card {
    text-align: center;
    padding: 40px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    transition: var(--transition-base);
}

.stat-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(99, 102, 241, 0.3);
}

.stat-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    color: white;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-label {
    color: var(--gray-400);
    font-size: 1rem;
    font-weight: 500;
}

/* ========================================
   CTA SECTION
======================================== */
.cta-section {
    padding: 100px 0;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(99, 102, 241, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(168, 85, 247, 0.25) 0%, transparent 50%);
}

.cta-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.15rem;
    color: var(--gray-400);
    margin-bottom: 40px;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ========================================
   FOOTER
======================================== */
.footer {
    background: var(--dark);
    color: white;
    padding: 80px 0 40px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    margin-bottom: 60px;
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--gray-400);
    margin-bottom: 24px;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: var(--transition-fast);
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-column h4 {
    font-size: 1.1rem;
    margin-bottom: 24px;
    color: white;
    font-weight: 600;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    color: var(--gray-400);
    transition: var(--transition-fast);
    font-size: 0.95rem;
}

.footer-link:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-contact-item i {
    color: var(--primary-light);
    font-size: 1.1rem;
    margin-top: 4px;
}

.footer-contact-item .text {
    color: var(--gray-400);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-contact-item a {
    color: var(--gray-400);
}

.footer-contact-item a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

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

.footer-legal {
    display: flex;
    gap: 32px;
}

.footer-legal a {
    color: var(--gray-500);
    font-size: 0.9rem;
}

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

/* ========================================
   FORM STYLES
======================================== */
.form-group {
    margin-bottom: 24px;
}

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    color: white;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

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

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* ========================================
   PAGE SPECIFIC 3D ELEMENTS
======================================== */

/* Formations - Books & Certificates */
.book-3d {
    width: 120px;
    height: 160px;
    background: var(--gradient-primary);
    border-radius: 8px 16px 16px 8px;
    position: relative;
    transform-style: preserve-3d;
    animation: book-float 4s ease-in-out infinite;
}

@keyframes book-float {
    0%, 100% { transform: translateY(0) rotateX(-10deg); }
    50% { transform: translateY(-20px) rotateX(5deg); }
}

.book-3d::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
}

.diploma-3d {
    width: 140px;
    height: 100px;
    background: var(--gradient-warm);
    border-radius: 8px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: diploma-float 5s ease-in-out infinite;
}

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

.diploma-3d::after {
    content: '';
    position: absolute;
    bottom: -20px;
    width: 100%;
    height: 40px;
    background: linear-gradient(to top, rgba(245, 158, 11, 0.3), transparent);
    border-radius: 50%;
    filter: blur(10px);
}

/* Solutions - Cubes & Networks */
.cube-3d {
    width: 120px;
    height: 120px;
    position: relative;
    transform-style: preserve-3d;
    animation: cube-rotate 20s linear infinite;
}

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

.cube-face-3d {
    position: absolute;
    width: 120px;
    height: 120px;
    background: rgba(99, 102, 241, 0.2);
    border: 2px solid rgba(99, 102, 241, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-light);
    backdrop-filter: blur(10px);
}

.cube-face-3d:nth-child(1) { transform: rotateY(0deg) translateZ(60px); }
.cube-face-3d:nth-child(2) { transform: rotateY(90deg) translateZ(60px); }
.cube-face-3d:nth-child(3) { transform: rotateY(180deg) translateZ(60px); }
.cube-face-3d:nth-child(4) { transform: rotateY(-90deg) translateZ(60px); }
.cube-face-3d:nth-child(5) { transform: rotateX(90deg) translateZ(60px); }
.cube-face-3d:nth-child(6) { transform: rotateX(-90deg) translateZ(60px); }

.node-3d {
    width: 80px;
    height: 80px;
    background: var(--gradient-accent);
    border-radius: 50%;
    position: absolute;
    animation: node-pulse 3s ease-in-out infinite;
}

@keyframes node-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(34, 211, 238, 0.5); }
    50% { transform: scale(1.1); box-shadow: 0 0 40px rgba(34, 211, 238, 0.8); }
}

/* Services - Tools & Gears */
.gear-3d {
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    clip-path: polygon(
        50% 0%, 61% 35%, 98% 35%, 68% 57%, 
        79% 91%, 50% 70%, 21% 91%, 32% 57%, 
        2% 35%, 39% 35%
    );
    animation: gear-rotate 10s linear infinite;
}

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

.wrench-3d {
    width: 40px;
    height: 120px;
    background: linear-gradient(to bottom, #94a3b8, #64748b);
    border-radius: 8px;
    position: relative;
    animation: wrench-float 3s ease-in-out infinite;
}

.wrench-3d::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 30px;
    background: #94a3b8;
    border-radius: 8px 8px 20px 20px;
}

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

/* Actualités - Newspapers & Articles */
.newspaper-3d {
    width: 140px;
    height: 200px;
    background: var(--gray-100);
    border-radius: 4px;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 16px;
    animation: newspaper-float 4s ease-in-out infinite;
}

@keyframes newspaper-float {
    0%, 100% { transform: translateY(0) rotateX(-5deg); }
    50% { transform: translateY(-20px) rotateX(5deg); }
}

.newspaper-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: var(--dark);
    border-radius: 4px 4px 0 0;
}

.article-3d {
    width: 100px;
    height: 140px;
    background: white;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: article-float 5s ease-in-out infinite;
}

@keyframes article-float {
    0%, 100% { transform: translateY(0) rotateY(0deg); }
    50% { transform: translateY(-25px) rotateY(-10deg); }
}

/* Contact - Envelope & Phone */
.envelope-3d {
    width: 160px;
    height: 100px;
    background: var(--gradient-primary);
    border-radius: 12px;
    position: relative;
    animation: envelope-float 4s ease-in-out infinite;
}

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

.envelope-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom right, transparent 50%, rgba(0,0,0,0.1) 50%);
}

.phone-3d {
    width: 60px;
    height: 120px;
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border: 3px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    position: relative;
    animation: phone-float 3s ease-in-out infinite;
}

.phone-3d::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
}

@keyframes phone-float {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.pin-3d {
    width: 40px;
    height: 40px;
    background: var(--danger);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    animation: pin-bounce 2s ease-in-out infinite;
}

@keyframes pin-bounce {
    0%, 100% { transform: rotate(-45deg) translateY(0); }
    50% { transform: rotate(-45deg) translateY(-15px); }
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */
@media (max-width: 1200px) {
    .hero h1 { font-size: 2.5rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
    .hero h1 { font-size: 2.25rem; }
    .hero-description { font-size: 1.1rem; }
    .hero-3d-visual { display: none; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .cards-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-toggle { display: flex; }
    .hero { padding: 100px 0 60px; }
    .hero h1 { font-size: 2rem; }
    .section-title { font-size: 2rem; }
    .cta-content h2 { font-size: 2rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .hero-buttons { flex-direction: column; }
    .btn-primary, .btn-secondary, .btn-outline { width: 100%; justify-content: center; }
    .cta-buttons { flex-direction: column; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.75rem; }
    .section { padding: 60px 0; }
    .stat-number { font-size: 2rem; }
    .footer-legal { flex-direction: column; gap: 16px; }
}

/* ========================================
   UTILITY CLASSES
======================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }

.py-1 { padding-top: 8px; padding-bottom: 8px; }
.py-2 { padding-top: 16px; padding-bottom: 16px; }
.py-3 { padding-top: 24px; padding-bottom: 24px; }
.py-4 { padding-top: 32px; padding-bottom: 32px; }
.py-5 { padding-top: 48px; padding-bottom: 48px; }

.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.gap-4 { gap: 32px; }

.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }

.w-full { width: 100%; }
.max-w-400 { max-width: 400px; }
.max-w-600 { max-width: 600px; }
.max-w-800 { max-width: 800px; }
