/* ====================================
   ESCENAN 2025 - CUSTOM STYLES
   Modern Landing Page
   ==================================== */

/* === VARIABLES & BASE === */
:root {
    --color-brand-orange: #FF8C00;
    --color-brand-yellow: #FFD700;
    --color-brand-gray: #5F6E7A;
    --color-brand-dark: #2C3744;
}

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

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

body {
    overflow-x: hidden;
}

/* === NAVIGATION === */
.nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 15px;
    padding: 8px 16px;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: inline-block;
}

.nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.mobile-nav-link {
    color: white;
    font-weight: 500;
    font-size: 16px;
    padding: 12px 16px;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: block;
}

.mobile-nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.btn-gradient {
    background: linear-gradient(135deg, var(--color-brand-orange), var(--color-brand-yellow));
    color: white;
    font-weight: 600;
    font-size: 15px;
    padding: 10px 24px;
    border-radius: 14px;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
}

.btn-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 140, 0, 0.5);
    color: white;
}

/* === HERO SECTION === */
.hero-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 140, 0, 0.15), transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(255, 215, 0, 0.1), transparent 50%);
    animation: gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.btn-gradient-large {
    background: linear-gradient(135deg, var(--color-brand-orange), var(--color-brand-yellow));
    color: white;
    font-weight: 700;
    font-size: 16px;
    padding: 16px 32px;
    border-radius: 16px;
    transition: all 0.4s ease;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 10px 30px rgba(255, 140, 0, 0.4);
}

.btn-gradient-large:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(255, 140, 0, 0.6);
    color: white;
}

.btn-outline-large {
    border: 2px solid white;
    color: white;
    font-weight: 700;
    font-size: 16px;
    padding: 14px 32px;
    border-radius: 16px;
    transition: all 0.4s ease;
    display: inline-flex;
    align-items: center;
    background: transparent;
}

.btn-outline-large:hover {
    background: white;
    color: var(--color-brand-dark);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

/* === 3D CAMERA ELEMENTS === */
.camera-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-element {
    position: absolute;
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    top: 10%;
    left: 10%;
}

.floating-element:nth-child(2) {
    top: 20%;
    right: 10%;
}

.floating-element:nth-child(3) {
    bottom: 20%;
    left: 15%;
}

.floating-element:nth-child(4) {
    bottom: 10%;
    right: 15%;
}

.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
}

.glass-card:hover {
    transform: scale(1.1) translateY(-10px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

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

/* === SERVICE CARDS === */
.service-card {
    background: white;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: var(--color-brand-orange);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--color-brand-orange), var(--color-brand-yellow));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(255, 140, 0, 0.4);
}

/* === PORTFOLIO === */
.filter-btn {
    padding: 10px 24px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--color-brand-orange), var(--color-brand-yellow));
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.4);
}

.portfolio-item {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 4/5;
    cursor: pointer;
    transition: all 0.4s ease;
}

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

.portfolio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.3) 60%, transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px;
    opacity: 0;
    transition: all 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-content {
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.portfolio-item:hover .portfolio-content {
    transform: translateY(0);
}

.portfolio-tag {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, var(--color-brand-orange), var(--color-brand-yellow));
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.btn-portfolio-view {
    background: white;
    color: var(--color-brand-dark);
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.btn-portfolio-view:hover {
    background: var(--color-brand-orange);
    color: white;
    transform: translateX(5px);
}

/* === TESTIMONIALS === */
.testimonial-card {
    background: white;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

/* === ANIMATIONS === */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-fade-in-up {
    animation: fade-in-up 0.8s ease-out forwards;
}

.animate-slide-down {
    animation: slide-down 0.6s ease-out forwards;
}

.animate-fade-in {
    animation: fade-in 1s ease-out forwards;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === PARTICLES CANVAS === */
#particlesCanvas {
    pointer-events: none;
}

/* === BACKGROUND PATTERNS === */
.bg-grid-pattern {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .camera-container {
        transform: scale(0.8);
    }
}

@media (max-width: 768px) {
    .hero-gradient {
        animation: gradientShiftMobile 6s ease-in-out infinite;
    }

    .camera-container {
        transform: scale(0.6);
        height: 300px;
    }

    .floating-element {
        animation: floatMobile 4s ease-in-out infinite;
    }

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

    .service-card {
        padding: 24px;
    }

    .portfolio-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.4) 50%, transparent);
    }

    .portfolio-content {
        transform: translateY(0);
    }

    .testimonial-card {
        padding: 24px;
    }
}

@media (max-width: 640px) {
    .btn-gradient-large,
    .btn-outline-large {
        font-size: 14px;
        padding: 12px 24px;
    }

    .floating-element {
        display: none;
    }

    .glass-card {
        padding: 16px;
    }
}

/* === SCROLL BEHAVIOR === */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--color-brand-orange), var(--color-brand-yellow));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-brand-orange);
}

/* === UTILITIES === */
.transition-smooth {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.shadow-glow {
    box-shadow: 0 0 30px rgba(255, 140, 0, 0.3);
}

.backdrop-blur-strong {
    backdrop-filter: blur(30px);
}
