/* ==========================================
   SYNORA STUDIO - Custom Styles
   ========================================== */

/* ---- CSS Custom Properties ---- */
:root {
    --coral: #FF6B6B;
    --orange: #FFB14A;
    --cyan: #00C2FF;
    --purple: #7A5CFF;
    --navy: #0D132B;
}

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

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

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--coral);
    color: white;
}

/* ---- Loading Screen ---- */
#loading-screen {
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

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

.loading-circle {
    stroke-dasharray: 240;
    stroke-dashoffset: 240;
    animation: loading-draw 1.5s ease-in-out infinite;
}

.loading-bar-fill {
    animation: loading-bar 1.5s ease-in-out infinite;
}

@keyframes loading-draw {
    0% { stroke-dashoffset: 240; }
    50% { stroke-dashoffset: 60; }
    100% { stroke-dashoffset: 240; }
}

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

/* ---- Navbar ---- */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.dark #navbar.scrolled {
    background: rgba(10, 15, 30, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-link {
    color: rgba(15, 23, 42, 0.7);
}

.dark .nav-link {
    color: rgba(255, 255, 255, 0.6);
}

.nav-link:hover,
.nav-link.active {
    color: var(--coral);
    background: rgba(255, 107, 107, 0.08);
}

/* Hamburger */
.hamburger {
    width: 20px;
    height: 14px;
    position: relative;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.hamburger-line:nth-child(1) { top: 0; }
.hamburger-line:nth-child(2) { top: 6px; }
.hamburger-line:nth-child(3) { top: 12px; }

.hamburger.active .hamburger-line:nth-child(1) {
    top: 6px;
    transform: rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.hamburger.active .hamburger-line:nth-child(3) {
    top: 6px;
    transform: rotate(-45deg);
}

/* ---- Glass Card ---- */
.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.dark .glass-card {
    background: rgba(17, 24, 39, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ---- Hero Section ---- */
.hero-gradient {
    background:
        radial-gradient(ellipse 80% 60% at 20% 40%, rgba(255, 107, 107, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 30%, rgba(122, 92, 255, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 50% 80%, rgba(0, 194, 255, 0.05) 0%, transparent 60%);
}

.dark .hero-gradient {
    background:
        radial-gradient(ellipse 80% 60% at 20% 40%, rgba(255, 107, 107, 0.05) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 30%, rgba(122, 92, 255, 0.04) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 50% 80%, rgba(0, 194, 255, 0.03) 0%, transparent 60%);
}

/* Floating Shapes */
.floating-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--coral);
    top: -100px;
    right: -50px;
    animation: float 8s ease-in-out infinite;
}

.shape-2 {
    width: 250px;
    height: 250px;
    background: var(--purple);
    bottom: 10%;
    left: -80px;
    animation: float 10s ease-in-out 1s infinite;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--cyan);
    top: 40%;
    right: 20%;
    animation: float 12s ease-in-out 2s infinite;
}

.shape-4 {
    width: 150px;
    height: 150px;
    background: var(--orange);
    bottom: -50px;
    right: 30%;
    animation: float 9s ease-in-out 3s infinite;
}

.shape-5 {
    width: 100px;
    height: 100px;
    background: var(--purple);
    top: 20%;
    left: 15%;
    animation: float 7s ease-in-out 0.5s infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(2deg); }
    66% { transform: translateY(15px) rotate(-1deg); }
}

/* Hero Mockup */
.hero-mockup {
    animation: float-slow 6s ease-in-out infinite;
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Floating Cards */
.floating-card {
    animation: float-card 4s ease-in-out infinite;
}

@keyframes float-card {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ---- Gradient Text ---- */
.gradient-text {
    background: linear-gradient(135deg, var(--coral), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-purple {
    background: linear-gradient(135deg, var(--purple), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-orange {
    background: linear-gradient(135deg, var(--orange), var(--coral));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-cyan {
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Primary Button ---- */
.btn-primary {
    background: linear-gradient(135deg, var(--coral), var(--purple));
}

.btn-primary:hover {
    box-shadow: 0 20px 40px -10px rgba(255, 107, 107, 0.35);
}

/* Blog Gradient Animation */
.blog-gradient {
    transition: all 0.5s ease;
}

.blog-card:hover .blog-gradient {
    transform: scale(1.1);
}

/* ---- Service Card ---- */
.service-card {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* ---- Pricing Section ---- */
.pricing-card {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Toggle Buttons */
.pricing-toggle-btn {
    color: rgba(15, 23, 42, 0.4);
    background: transparent;
}

.dark .pricing-toggle-btn {
    color: rgba(255, 255, 255, 0.4);
}

.pricing-toggle-btn.active {
    background: white;
    color: #0f172a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.dark .pricing-toggle-btn.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Pricing Expand Animation */
.pricing-expanded-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s ease;
    opacity: 0;
}

.pricing-expanded-content.show {
    max-height: 1200px;
    opacity: 1;
}

/* Bonus Glow Effect */
.pricing-bonus-glow {
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.pricing-bonus-glow:hover {
    box-shadow: 0 0 20px rgba(255, 177, 74, 0.1);
    border-color: rgba(255, 177, 74, 0.3);
}

/* Pricing Card Hover Micro Interactions */
.pricing-card .pricing-price {
    transition: all 0.3s ease;
}

.pricing-card:hover .pricing-price {
    transform: scale(1.03);
}

.pricing-card:hover .pricing-cta:not([class*="from-coral"]) {
    background: linear-gradient(135deg, var(--coral), var(--purple));
    color: white;
    box-shadow: 0 10px 30px -5px rgba(255, 107, 107, 0.3);
}

.pricing-card:hover .pricing-cta[class*="from-coral"] {
    box-shadow: 0 15px 40px -5px rgba(255, 107, 107, 0.4);
    transform: translateY(-2px);
}

/* Pricing FAQ */
.pricing-faq-item {
    transition: all 0.3s ease;
}

.pricing-faq-item:hover {
    border-color: rgba(255, 107, 107, 0.2);
}

.pricing-faq-item.active {
    border-color: rgba(255, 107, 107, 0.3);
    box-shadow: 0 4px 20px -4px rgba(255, 107, 107, 0.1);
}

.pricing-faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--coral);
}

.pricing-faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.pricing-faq-content.show {
    display: block;
    max-height: 200px;
}

/* ---- Custom Scrollbar ---- */
::-webkit-scrollbar {
    width: 8px;
}

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

.dark ::-webkit-scrollbar-track {
    background: #111827;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--coral), var(--purple));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, var(--purple), var(--coral));
}

/* ---- WhatsApp Float ---- */
#whatsapp-float {
    animation: pulse-whatsapp 2s ease-in-out infinite;
}

@keyframes pulse-whatsapp {
    0%, 100% { box-shadow: 0 4px 20px rgba(34, 197, 94, 0.3); }
    50% { box-shadow: 0 4px 30px rgba(34, 197, 94, 0.5); }
}

/* ---- Back to Top ---- */
#back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

/* ---- Scroll Progress ---- */
#scroll-progress {
    transition: width 0.1s linear;
}

/* ---- Form Select ---- */
select option {
    background: white;
    color: #0f172a;
}

.dark select option {
    background: #111827;
    color: #f3f4f6;
}

/* ---- Animations ---- */
@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-soft {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ---- Responsive Adjustments ---- */
@media (max-width: 1024px) {
    .hero-mockup {
        display: none;
    }
}

@media (max-width: 768px) {
    .floating-shape {
        opacity: 0.15;
    }

    .shape-1 { width: 200px; height: 200px; }
    .shape-2 { width: 150px; height: 150px; }
    .shape-3 { width: 120px; height: 120px; }
}

/* ---- Print Styles ---- */
@media print {
    #navbar,
    #whatsapp-float,
    #back-to-top,
    #scroll-progress,
    #loading-screen {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }
}
