/* ============================================
   XEROUR 3D SCROLLING WEBSITE
   Pure CSS 3D + Vanilla JS
   No Node.js Required - Shared Hosting Ready
   ============================================ */

/* CSS Variables */
:root {
    --primary: #FF6B35;
    --primary-dark: #E85D2B;
    --secondary: #4ECDC4;
    --accent: #FFE66D;
    --dark: #1a1a2e;
    --darker: #16213e;
    --darkest: #0f3460;
    --light: #f8f9fa;
    --white: #ffffff;
    --gray: #6c757d;
    --gradient-1: linear-gradient(135deg, #FF6B35 0%, #FF8E53 100%);
    --gradient-2: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%);
    --gradient-3: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --shadow-3d: 0 20px 60px rgba(0,0,0,0.3);
    --shadow-soft: 0 10px 40px rgba(0,0,0,0.1);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--dark);
    color: var(--light);
    overflow-x: hidden;
    line-height: 1.6;
    perspective: 1000px;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--darker);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ============================================
   3D PARTICLE CANVAS BACKGROUND
   ============================================ */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ============================================
   NAVIGATION - 3D Glass Effect
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
    transform-style: preserve-3d;
}

.navbar.scrolled {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
    padding: 0.5rem 0;
}

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

.logo {
    font-size: 2rem;
    font-weight: 900;
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transform-style: preserve-3d;
    transition: var(--transition);
}

.logo:hover {
    transform: translateZ(20px) rotateY(5deg);
}

.logo span {
    color: var(--primary);
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: var(--gradient-1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transform: rotate(-5deg);
    box-shadow: 0 5px 15px rgba(255,107,53,0.4);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ============================================
   HERO SECTION - 3D Perspective
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 6rem 2rem 4rem;
    overflow: hidden;
    transform-style: preserve-3d;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--primary);
    border-radius: 50%;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: var(--secondary);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    top: 60%;
    right: 10%;
    animation-delay: -5s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: var(--accent);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    top: 30%;
    right: 20%;
    animation-delay: -10s;
}

.shape-4 {
    width: 250px;
    height: 250px;
    background: var(--primary);
    border-radius: 50%;
    bottom: 10%;
    left: 20%;
    animation-delay: -15s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg) translateZ(0); }
    25% { transform: translateY(-30px) rotate(5deg) translateZ(50px); }
    50% { transform: translateY(0) rotate(0deg) translateZ(0); }
    75% { transform: translateY(30px) rotate(-5deg) translateZ(-50px); }
}

.hero-content {
    text-align: center;
    max-width: 900px;
    position: relative;
    z-index: 2;
    transform-style: preserve-3d;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,107,53,0.15);
    border: 1px solid rgba(255,107,53,0.3);
    color: var(--primary);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    transform-style: preserve-3d;
}

.hero-title .line {
    display: block;
    transform-style: preserve-3d;
}

.hero-title .line-1 {
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-title .line-2 {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-title .line-3 {
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 1s both;
}

/* 3D Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-1);
    color: var(--white);
    box-shadow: 0 10px 30px rgba(255,107,53,0.4), 
                0 0 0 0 rgba(255,107,53,0.7);
}

.btn-primary:hover {
    transform: translateY(-5px) translateZ(30px);
    box-shadow: 0 20px 40px rgba(255,107,53,0.5), 
                0 0 0 10px rgba(255,107,53,0);
    animation: pulse 1.5s infinite;
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--primary);
    transform: translateY(-5px) translateZ(30px);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255,107,53,0.7); }
    70% { box-shadow: 0 0 0 20px rgba(255,107,53,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,107,53,0); }
}

/* 3D Hero Cards */
.hero-3d-cards {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    transform-style: preserve-3d;
}

.hero-card {
    position: absolute;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 1.5rem;
    transform-style: preserve-3d;
    animation: floatCard 8s infinite ease-in-out;
}

.hero-card-1 {
    top: 20%;
    left: 5%;
    animation-delay: 0s;
}

.hero-card-2 {
    top: 60%;
    right: 5%;
    animation-delay: -2s;
}

.hero-card-3 {
    bottom: 20%;
    left: 10%;
    animation-delay: -4s;
}

.hero-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.hero-card-1 .hero-card-icon { background: rgba(255,107,53,0.2); color: var(--primary); }
.hero-card-2 .hero-card-icon { background: rgba(78,205,196,0.2); color: var(--secondary); }
.hero-card-3 .hero-card-icon { background: rgba(255,230,109,0.2); color: var(--accent); }

.hero-card-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
}

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: bounce 2s infinite;
    cursor: pointer;
}

.scroll-indicator span {
    font-size: 0.75rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    border-radius: 2px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ============================================
   SECTIONS COMMON
   ============================================ */
.section {
    padding: 6rem 2rem;
    position: relative;
    transform-style: preserve-3d;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    transform-style: preserve-3d;
}

.section-label {
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
}

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

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

/* ============================================
   ABOUT SECTION - 3D Cards
   ============================================ */
.about-section {
    background: linear-gradient(180deg, var(--dark) 0%, var(--darker) 100%);
}

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

.about-content {
    transform-style: preserve-3d;
}

.about-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.about-content p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.about-features {
    list-style: none;
    margin-top: 2rem;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    border-left: 3px solid var(--primary);
    transition: var(--transition);
}

.about-features li:hover {
    background: rgba(255,255,255,0.06);
    transform: translateX(10px) translateZ(20px);
}

.about-features .icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
    flex-shrink: 0;
}

/* 3D About Visual */
.about-visual {
    position: relative;
    height: 500px;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.about-visual-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: rotate3d 20s infinite linear;
}

.about-visual-card {
    position: absolute;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    padding: 2rem;
    transform-style: preserve-3d;
    box-shadow: var(--shadow-3d);
}

.about-visual-card-1 {
    width: 280px;
    height: 200px;
    top: 10%;
    left: 10%;
    transform: translateZ(100px) rotateY(-10deg);
    background: linear-gradient(135deg, rgba(255,107,53,0.1), rgba(255,107,53,0.05));
}

.about-visual-card-2 {
    width: 250px;
    height: 180px;
    top: 40%;
    right: 5%;
    transform: translateZ(50px) rotateY(10deg) rotateX(5deg);
    background: linear-gradient(135deg, rgba(78,205,196,0.1), rgba(78,205,196,0.05));
}

.about-visual-card-3 {
    width: 220px;
    height: 160px;
    bottom: 10%;
    left: 20%;
    transform: translateZ(150px) rotateY(-5deg) rotateX(-5deg);
    background: linear-gradient(135deg, rgba(255,230,109,0.1), rgba(255,230,109,0.05));
}

.about-visual-card .card-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.about-visual-card-1 .card-icon { background: rgba(255,107,53,0.2); color: var(--primary); }
.about-visual-card-2 .card-icon { background: rgba(78,205,196,0.2); color: var(--secondary); }
.about-visual-card-3 .card-icon { background: rgba(255,230,109,0.2); color: var(--accent); }

.about-visual-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.about-visual-card p {
    font-size: 0.85rem;
    color: var(--gray);
}

/* ============================================
   SERVICES SECTION - 3D Flip Cards
   ============================================ */
.services-section {
    background: var(--darker);
    position: relative;
    overflow: hidden;
}

.services-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,107,53,0.03) 0%, transparent 50%);
    animation: rotateBg 30s linear infinite;
    pointer-events: none;
}

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

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    perspective: 2000px;
}

.service-card {
    position: relative;
    height: 320px;
    transform-style: preserve-3d;
    transition: var(--transition);
    cursor: pointer;
}

.service-card:hover {
    transform: translateZ(50px) rotateX(5deg);
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card:hover .service-card-inner {
    transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 24px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.service-card-front {
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.service-card-back {
    background: var(--gradient-1);
    transform: rotateY(180deg);
    color: var(--white);
}

.service-icon {
    width: 80px;
    height: 80px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: translateZ(30px) scale(1.1);
}

.service-card-front h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.service-card-front p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

.service-card-back h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.service-card-back p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.service-card-back .btn-small {
    padding: 0.6rem 1.5rem;
    background: var(--white);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: var(--transition);
}

.service-card-back .btn-small:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

/* ============================================
   STATS SECTION - 3D Counter Cards
   ============================================ */
.stats-section {
    background: linear-gradient(135deg, var(--darkest) 0%, var(--darker) 100%);
    padding: 4rem 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-card {
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    text-align: center;
    transform-style: preserve-3d;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

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

.stat-card:hover {
    transform: translateY(-10px) translateZ(30px) rotateX(5deg);
    box-shadow: var(--shadow-3d);
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    display: block;
}

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

/* ============================================
   PORTFOLIO SECTION - 3D Carousel
   ============================================ */
.portfolio-section {
    background: var(--dark);
    overflow: hidden;
}

.portfolio-carousel {
    position: relative;
    height: 450px;
    perspective: 1200px;
    transform-style: preserve-3d;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-track {
    position: relative;
    width: 300px;
    height: 400px;
    transform-style: preserve-3d;
    transition: transform 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.portfolio-item {
    position: absolute;
    width: 300px;
    height: 400px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: var(--transition);
    cursor: pointer;
}

.portfolio-item:hover {
    transform: scale(1.05) translateZ(50px) !important;
}

.portfolio-item-image {
    width: 100%;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

.portfolio-item-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, var(--dark), transparent);
}

.portfolio-item-content {
    padding: 1.5rem;
    position: relative;
    z-index: 2;
}

.portfolio-item-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.portfolio-item-content span {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
}

.portfolio-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.portfolio-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-nav-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateZ(20px);
}

/* ============================================
   PRICING SECTION - 3D Tilt Cards
   ============================================ */
.pricing-section {
    background: linear-gradient(180deg, var(--darker) 0%, var(--dark) 100%);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    perspective: 2000px;
}

.pricing-card {
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    transform-style: preserve-3d;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.pricing-card.featured {
    background: linear-gradient(135deg, rgba(255,107,53,0.1), rgba(255,107,53,0.05));
    border-color: rgba(255,107,53,0.3);
    transform: translateZ(30px) scale(1.05);
    box-shadow: 0 20px 60px rgba(255,107,53,0.2);
}

.pricing-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: 1rem;
    right: -3rem;
    background: var(--gradient-1);
    color: var(--white);
    padding: 0.3rem 3rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    transform: rotate(45deg);
}

.pricing-card:hover {
    transform: translateZ(50px) rotateX(5deg);
    box-shadow: var(--shadow-3d);
}

.pricing-card.featured:hover {
    transform: translateZ(60px) scale(1.05) rotateX(5deg);
}

.pricing-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.pricing-price span {
    font-size: 1rem;
    color: var(--gray);
    font-weight: 400;
}

.pricing-features {
    list-style: none;
    margin: 2rem 0;
    text-align: left;
}

.pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray);
}

.pricing-features li::before {
    content: '✓';
    color: var(--secondary);
    font-weight: 700;
}

/* ============================================
   TEAM SECTION - 3D Hover Cards
   ============================================ */
.team-section {
    background: var(--darker);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    perspective: 1500px;
}

.team-card {
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    text-align: center;
    transform-style: preserve-3d;
    transition: var(--transition);
    position: relative;
}

.team-card:hover {
    transform: translateY(-15px) translateZ(40px) rotateY(5deg);
    box-shadow: var(--shadow-3d);
}

.team-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    margin: 0 auto 1.5rem;
    position: relative;
    transform-style: preserve-3d;
    transition: var(--transition);
}

.team-card:hover .team-avatar {
    transform: translateZ(30px) scale(1.1);
    box-shadow: 0 15px 40px rgba(255,107,53,0.4);
}

.team-avatar::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    opacity: 0;
    transition: var(--transition);
}

.team-card:hover .team-avatar::after {
    opacity: 1;
    transform: scale(1.1);
}

.team-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.team-card p {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
    background: linear-gradient(135deg, var(--dark) 0%, var(--darkest) 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    transform-style: preserve-3d;
}

.contact-info h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.contact-info p {
    color: var(--gray);
    margin-bottom: 2rem;
}

.contact-details {
    list-style: none;
}

.contact-details li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255,255,255,0.03);
    border-radius: 16px;
    transition: var(--transition);
}

.contact-details li:hover {
    background: rgba(255,255,255,0.06);
    transform: translateX(10px) translateZ(20px);
}

.contact-details .icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-details strong {
    display: block;
    color: var(--white);
    margin-bottom: 0.2rem;
}

.contact-details span {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Contact Form */
.contact-form {
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    padding: 2.5rem;
    transform-style: preserve-3d;
    transition: var(--transition);
}

.contact-form:hover {
    transform: translateZ(20px);
    box-shadow: var(--shadow-3d);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

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

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
    background: rgba(255,255,255,0.08);
    box-shadow: 0 0 0 3px rgba(255,107,53,0.1);
}

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

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

.form-submit {
    width: 100%;
    padding: 1rem;
    background: var(--gradient-1);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    transform-style: preserve-3d;
}

.form-submit:hover {
    transform: translateY(-3px) translateZ(20px);
    box-shadow: 0 15px 30px rgba(255,107,53,0.4);
}

.form-message {
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    display: none;
}

.form-message.success {
    background: rgba(0,184,148,0.1);
    border: 1px solid rgba(0,184,148,0.3);
    color: #00b894;
    display: block;
}

.form-message.error {
    background: rgba(255,118,117,0.1);
    border: 1px solid rgba(255,118,117,0.3);
    color: #ff7675;
    display: block;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--darkest);
    padding: 4rem 2rem 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
}

.footer-brand .logo {
    margin-bottom: 1rem;
    display: inline-flex;
}

.footer-brand p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    font-size: 1rem;
    transition: var(--transition);
    transform-style: preserve-3d;
}

.footer-social a:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-5px) translateZ(20px) rotateY(10deg);
    box-shadow: 0 10px 20px rgba(255,107,53,0.3);
}

.footer-links h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--white);
}

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

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

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

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

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px) translateZ(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0) translateZ(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateZ(-100px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateZ(0);
    }
}

@keyframes rotate3d {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

/* Scroll Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(50px) translateZ(-50px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-80px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(80px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.8) translateZ(-100px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1) translateZ(0);
}

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-visual {
        height: 400px;
    }

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

    .pricing-card.featured {
        transform: scale(1);
    }

    .pricing-card.featured:hover {
        transform: translateZ(50px) rotateX(5deg) scale(1);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(26, 26, 46, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    .nav-links.active {
        display: flex;
    }

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

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-card {
        display: none;
    }

    .section {
        padding: 4rem 1.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .portfolio-carousel {
        height: 350px;
    }

    .portfolio-item {
        width: 250px;
        height: 350px;
    }

    .portfolio-track {
        width: 250px;
        height: 350px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2.5rem;
    }
}

/* ============================================
   LOADING SCREEN
   ============================================ */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2rem;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255,107,53,0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 3px;
}

.loading-text span {
    animation: dots 1.5s infinite;
}

.loading-text span:nth-child(2) { animation-delay: 0.2s; }
.loading-text span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dots {
    0%, 20% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}
