/* Webfort - Main Stylesheet */

/* Animated gradient mesh background */
.gradient-bg {
    background: linear-gradient(135deg, #0a0f1c 0%, #1a1f3c 50%, #0a0f1c 100%);
    position: relative;
    overflow: hidden;
}
.gradient-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(96, 165, 250, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(200, 255, 0, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(59, 130, 246, 0.3) 0%, transparent 50%);
    animation: gradientMove 15s ease-in-out infinite;
}
@keyframes gradientMove {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(5deg); }
    66% { transform: translate(-20px, 20px) rotate(-5deg); }
}

/* Floating orbs */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    animation: orbFloat 8s ease-in-out infinite;
}
.orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(37, 99, 235, 0.5);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}
.orb-2 {
    width: 300px;
    height: 300px;
    background: rgba(200, 255, 0, 0.3);
    top: 60%;
    right: 10%;
    animation-delay: -3s;
}
.orb-3 {
    width: 350px;
    height: 350px;
    background: rgba(96, 165, 250, 0.4);
    bottom: 10%;
    left: 30%;
    animation-delay: -5s;
}
@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, -50px) scale(1.1); }
}

/* Glowing text */
.glow-text {
    text-shadow: 0 0 80px rgba(200, 255, 0, 0.5);
}

/* Marquee */
.marquee-track {
    display: flex;
    animation: marquee 30s linear infinite;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Glass card */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(200, 255, 0, 0.3);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px -20px rgba(200, 255, 0, 0.2);
}

/* Bento grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, minmax(180px, auto));
    gap: 20px;
}
.bento-item-1 { grid-column: span 2; grid-row: span 2; }
.bento-item-2 { grid-column: span 2; }
.bento-item-3 { grid-column: span 1; }
.bento-item-4 { grid-column: span 1; }
.bento-item-5 { grid-column: span 2; }
.bento-item-6 { grid-column: span 2; }

@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    .bento-item-1, .bento-item-2, .bento-item-5, .bento-item-6 { grid-column: span 2; }
    .bento-item-3, .bento-item-4 { grid-column: span 1; }
    .bento-item-1 { grid-row: span 1; }
}
@media (max-width: 640px) {
    .bento-grid { grid-template-columns: 1fr; }
    .bento-item-1, .bento-item-2, .bento-item-3, .bento-item-4, .bento-item-5, .bento-item-6 { grid-column: span 1; }
}

/* 3D tilt effect */
.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}
.tilt-card:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(-5deg);
}

/* Magnetic button */
.magnetic-btn {
    transition: transform 0.3s ease;
}

/* Animated border */
.animated-border {
    position: relative;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(200, 255, 0, 0.1));
}
.animated-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, #2563eb, #c8ff00, #60a5fa, #2563eb);
    background-size: 300% 300%;
    animation: borderRotate 4s linear infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}
@keyframes borderRotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Pricing card hover */
.pricing-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.pricing-card:hover {
    transform: translateY(-20px);
}
.pricing-card.featured {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: scale(1.05);
}
.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-20px);
}

/* Expandable pricing features - smooth grid animation */
.expanded-features-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.pricing-cards-expanded .expanded-features-wrapper {
    grid-template-rows: 1fr;
}
.expanded-features {
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
}
.pricing-cards-expanded .expanded-features {
    opacity: 1;
    transform: translateY(0);
}
.expanded-features-inner {
    padding-top: 16px;
    margin-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.expand-toggle {
    transition: all 0.3s ease;
}
.expand-toggle svg {
    transition: transform 0.3s ease;
}
.pricing-cards-expanded .expand-toggle svg {
    transform: rotate(180deg);
}

/* Live chat bubble */
.chat-bubble {
    animation: chatPulse 2s ease-in-out infinite;
}
@keyframes chatPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Domain pill animation */
.domain-pill {
    transition: all 0.3s ease;
}
.domain-pill:hover {
    transform: scale(1.1) rotate(-2deg);
    box-shadow: 0 20px 40px -15px rgba(200, 255, 0, 0.4);
}

/* Noise overlay */
.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Floating animation */
.float {
    animation: float 6s ease-in-out infinite;
}
.float-delay-1 { animation-delay: -2s; }
.float-delay-2 { animation-delay: -4s; }
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Pulse ring */
.pulse-ring {
    animation: pulseRing 2s ease-out infinite;
}
@keyframes pulseRing {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* Text gradient animation */
.animated-gradient-text {
    background: linear-gradient(90deg, #2563eb, #c8ff00, #60a5fa, #2563eb);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientText 5s linear infinite;
}
@keyframes gradientText {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

/* Counter animation */
.counter {
    font-variant-numeric: tabular-nums;
}

/* Scroll indicator */
.scroll-indicator {
    animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* Split text animation */
.split-text span {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    animation: splitReveal 0.8s ease forwards;
}
.split-text.active span {
    opacity: 1;
    transform: translateY(0);
}

/* Navigation links */
.nav-link {
    position: relative;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
}
.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(200, 255, 0, 0.15), rgba(96, 165, 250, 0.15));
    border-radius: 12px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-link:hover {
    color: #c8ff00;
    transform: translateY(-2px);
}
.nav-link:hover::before {
    opacity: 1;
    transform: scale(1);
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}
.nav-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-dropdown-trigger svg {
    transition: transform 0.3s ease;
}
.nav-dropdown:hover .nav-dropdown-trigger svg {
    transform: rotate(180deg);
}
.nav-dropdown:hover .nav-link {
    color: #c8ff00;
}
.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 240px;
    padding: 12px;
    background: rgba(10, 15, 28, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(200, 255, 0, 0.2);
    border-radius: 16px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 30px rgba(200, 255, 0, 0.1);
}
.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.nav-dropdown-item:hover {
    background: linear-gradient(135deg, rgba(200, 255, 0, 0.15), rgba(96, 165, 250, 0.1));
    color: #c8ff00;
    transform: translateX(4px);
}
.nav-dropdown-item svg {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    padding: 8px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.3), rgba(200, 255, 0, 0.1));
    border-radius: 10px;
    transition: all 0.2s ease;
}
.nav-dropdown-item:hover svg {
    background: linear-gradient(135deg, rgba(200, 255, 0, 0.3), rgba(96, 165, 250, 0.2));
    transform: scale(1.1);
}

/* Mobile menu */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.active {
    transform: translateX(0);
}

/* Glow button */
.glow-btn {
    position: relative;
    overflow: hidden;
}
.glow-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}
.glow-btn:hover::before {
    left: 100%;
}

/* Scrollbar styling */
html {
    scrollbar-width: thin;
    scrollbar-color: #2563eb #0a0f1c;
}
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0a0f1c; }
::-webkit-scrollbar-thumb { background: #2563eb; border-radius: 4px; }

/* Trial Modal */
.trial-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 15, 28, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.trial-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.trial-modal {
    width: 100%;
    max-width: 440px;
    background: linear-gradient(135deg, rgba(26, 31, 60, 0.95), rgba(10, 15, 28, 0.98));
    border: 1px solid rgba(200, 255, 0, 0.2);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 40px rgba(200, 255, 0, 0.1);
}
.trial-modal-overlay.active .trial-modal {
    transform: scale(1) translateY(0);
}
.trial-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}
.trial-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(200, 255, 0, 0.3);
    color: #c8ff00;
}
.trial-modal-slider {
    position: relative;
    overflow: hidden;
}
.trial-slide {
    display: none;
}
.trial-slide.active {
    display: block;
    animation: slideIn 0.3s ease;
}
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
.trial-slide.slide-out {
    animation: slideOut 0.3s ease;
}
@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-30px);
    }
}
.trial-modal h3 {
    color: white;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}
.trial-modal p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    margin-bottom: 28px;
    line-height: 1.5;
}
.platform-buttons {
    display: flex;
    gap: 16px;
}
.platform-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.platform-btn:hover {
    background: rgba(200, 255, 0, 0.1);
    border-color: rgba(200, 255, 0, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(200, 255, 0, 0.15);
}
.platform-btn svg {
    color: #c8ff00;
}
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}
.trial-modal input[type="email"] {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    color: white;
    font-size: 16px;
    margin-bottom: 16px;
    transition: all 0.2s ease;
}
.trial-modal input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.4);
}
.trial-modal input[type="email"]:focus {
    outline: none;
    border-color: rgba(200, 255, 0, 0.5);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(200, 255, 0, 0.1);
}
.trial-modal button[type="submit"] {
    width: 100%;
    padding: 16px 24px;
    background: #c8ff00;
    color: #0a0f1c;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}
.trial-modal button[type="submit"]:hover {
    box-shadow: 0 0 40px rgba(200, 255, 0, 0.4);
    transform: translateY(-2px);
}
.trial-modal button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
.trial-modal .modal-note {
    margin-top: 16px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
}
.trial-modal .success-message {
    text-align: center;
    padding: 20px 0;
}
.trial-modal .success-message svg {
    width: 64px;
    height: 64px;
    color: #c8ff00;
    margin-bottom: 16px;
}
.trial-modal .success-message h4 {
    color: white;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}
.trial-modal .success-message p {
    margin-bottom: 0;
}
