* {
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: #64748b rgba(226, 232, 240, 0.5);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
    position: relative !important;
    padding: 0 !important;
    margin: 0 !important;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

/* Logo Styles */
.logo-container {
    margin-top: -4px;
    max-height: 38px;
}

.logo-container img {
    max-height: 100%;
    width: auto;
}
footer .logo-container img {
    margin-top: 5px !important;
}
@media (max-width: 767px) {
    .logo-container {
        max-width: 180px;
        max-height: 42px;
        margin-top: -2px;
    }
    
    .logo-container img {
        max-height: 100%;
        width: auto;
        object-fit: contain;
    }
    footer .logo-container {
        margin-top: -20px !important;
        display: block;
        margin: auto;
        min-width: 400px !important;
    }
    /* Mobile navigation lines */
    .mobile-nav-line {
        width: 16px;
        height: 1.5px;
        margin: 2px 0;
        background-color: currentColor;
        transition: all 0.3s ease;
    }

    /* Mobile menu toggle button */
    .mobile-menu-toggle {
        padding: 6px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transform: scale(0.9);
    }

    /* Reduce nav padding when scrolled on mobile */
    .premium-navbar.scrolled nav {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
        transform: scale(0.97);
    }
    #mobileMenu.active {
        margin-bottom: 40px !important;
    }
    #livePreview {
        padding: 6px 1px 1px 1px !important;
    }
    .hero h1 {
        font-size: 1.7rem !important;
        margin-top: -18px !important;
        margin-bottom: 15px !important
    }
}

@media (min-width: 480px) {
    .xs\:block {
        display: block;
    }
    .xs\:hidden {
        display: none;
    }
    .xs\:flex {
        display: flex;
    }
    .xs\:inline-flex {
        display: inline-flex;
    }
}
.dropdown-content {
    position: absolute;
    background-color: white;
    min-width: 280px;
    box-shadow: 0 15px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-radius: 0.75rem;
    padding: 0.75rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(73, 76, 182, 0.1);
    z-index: 999999;
    backdrop-filter: blur(10px);
    background-image: 
        radial-gradient(circle at 100% 100%, rgba(73, 76, 182, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 0% 0%, rgba(73, 76, 182, 0.03) 0%, transparent 50%);
}

.dropdown-content.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Mega dropdown grid layout */
.mega-dropdown-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 0.5rem;
}

.mega-dropdown-section {
    padding: 0.5rem;
}

.mega-dropdown-section h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #494CB6;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(73, 76, 182, 0.1);
}

.dropdown-content a {
    color: #4B5563;
    padding: 0.75rem 1rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    border-radius: 0.5rem;
    margin-bottom: 0.25rem;
    position: relative;
    overflow: hidden;
}

.dropdown-content a i {
    margin-right: 0.5rem;
    font-size: 0.875rem;
    color: #494CB6;
    opacity: 0.8;
    transition: all 0.2s ease;
}

.dropdown-content a:hover {
    background-color: rgba(73, 76, 182, 0.05);
    color: #494CB6;
    transform: translateX(3px);
}

.dropdown-content a:hover i {
    opacity: 1;
    transform: scale(1.1);
}

.dropdown-content a.active {
    background-color: rgba(73, 76, 182, 0.08);
    color: #494CB6;
    font-weight: 500;
}

.dropdown-content a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: #494CB6;
    border-radius: 0 3px 3px 0;
}

.dropdown-content .featured-link {
    grid-column: span 2;
    background: linear-gradient(to right, rgba(73, 76, 182, 0.1), rgba(73, 76, 182, 0.05));
    border-radius: 0.5rem;
    padding: 0.75rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.dropdown-content .featured-link:hover {
    background: linear-gradient(to right, rgba(73, 76, 182, 0.15), rgba(73, 76, 182, 0.1));
    transform: none;
}

.dropdown-content .featured-link .featured-content {
    display: flex;
    flex-direction: column;
}

.dropdown-content .featured-link .featured-title {
    font-weight: 600;
    color: #494CB6;
    margin-bottom: 0.25rem;
}

.dropdown-content .featured-link .featured-description {
    font-size: 0.75rem;
    color: #6B7280;
}

.dropdown-content .featured-link .featured-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-color: #494CB6;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.2s ease;
}

.dropdown-content .featured-link:hover .featured-icon {
    transform: scale(1.1) rotate(5deg);
}

.dropdown-trigger {
    position: relative;
    cursor: pointer;
}

/* Show arrow indicator */
.dropdown-trigger .arrow {
    display: inline-block;
    margin-left: 0.25rem;
    transition: transform 0.3s ease;
}

.dropdown-trigger:hover .arrow {
    transform: rotate(180deg);
}

/* Custom Container Width */
.container {
    max-width: 1230px !important;
    width: 100% !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    box-sizing: border-box !important;
    margin-left: auto !important;
    margin-right: auto !important;
    overflow-x: visible !important;
}

/* Mobile fixes */
@media screen and (max-width: 767px) {
    .container {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    section {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    
    body > * {
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }
}

@media (min-width: 640px) {
    .container {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
}

@media (min-width: 1536px) {
    .container {
        max-width: 1380px !important;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: #22c55e;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #16a34a;
}

/* 3D Perspective Effect */
.perspective {
    perspective: 1000px;
}

.rotate-y-minus-5 {
    transform: rotateY(-5deg);
}

.rotate-y-plus-5 {
    transform: rotateY(5deg);
}


.timeline-dot::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: rgba(73, 76, 182, 0.2);
    border-radius: 50%;
    top: -7px;
    left: -7px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    70% {
        transform: scale(1.5);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

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

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

@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

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

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

@keyframes pulse-slow {
    0% { opacity: 0.5; }
    50% { opacity: 0.8; }
    100% { opacity: 0.5; }
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes shine-slow {
    0% { 
        left: -150%;
        opacity: 0.3;
    }
    100% { 
        left: 150%;
        opacity: 0.6;
    }
}

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

@keyframes breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes rotate-3d {
    0% { transform: rotate3d(1, 1, 1, 0deg); }
    25% { transform: rotate3d(1, 1, 1, 5deg); }
    50% { transform: rotate3d(1, 1, 1, 0deg); }
    75% { transform: rotate3d(1, 1, 1, -5deg); }
    100% { transform: rotate3d(1, 1, 1, 0deg); }
}

@keyframes float-subtle {
    0% { transform: translate(0, 0); }
    25% { transform: translate(2px, -2px); }
    50% { transform: translate(0, -4px); }
    75% { transform: translate(-2px, -2px); }
    100% { transform: translate(0, 0); }
}

@keyframes morph {
    0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    34% { border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%; }
    67% { border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%; }
    100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
}

@keyframes glare {
    0% { 
        background-position: -100% 0; 
        opacity: 0;
    }
    25% { opacity: 0.5; }
    50% { opacity: 0.7; }
    85% { opacity: 0.2; }
    100% { 
        background-position: 200% 0; 
        opacity: 0;
    }
}

@keyframes bounce-subtle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.animate-blink {
    animation: blink 1s ease-in-out infinite;
}

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

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

.animate-ping {
    animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.animate-spin-slow {
    animation: spin-slow 15s linear infinite;
}

.animate-spin-slow-reverse {
    animation: spin-slow-reverse 20s linear infinite;
}

.animate-spin-super-slow {
    animation: spin-slow 30s linear infinite;
}

.animate-spin-super-slow-reverse {
    animation: spin-slow-reverse 40s linear infinite;
}

.animate-pulse-slow {
    animation: pulse-slow 4s ease-in-out infinite;
}

.animate-shine {
    animation: shine 1.5s ease-in-out infinite;
}

.animate-shine-slow {
    animation: shine-slow 3s ease-in-out infinite;
}

.animate-breathe {
    animation: breathe 5s ease-in-out infinite;
}

.animate-rotate-3d {
    animation: rotate-3d 12s ease-in-out infinite;
}

.animate-float-subtle {
    animation: float-subtle 5s ease-in-out infinite;
}

.animate-morph {
    animation: morph 10s ease-in-out infinite;
}

.animate-glare {
    animation: glare 4s ease-in-out infinite;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    background-size: 200% 100%;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.animate-bounce-subtle {
    animation: bounce-subtle 3s ease-in-out infinite;
}

.animate-shimmer {
    animation: shimmer 3s linear infinite;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    background-size: 1000px 100%;
    position: absolute;
    inset: 0;
    z-index: 1;
}

.animate-fadeIn {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Animation delays */
.animation-delay-100 {
    animation-delay: 100ms;
}

.animation-delay-200 {
    animation-delay: 200ms;
}

.animation-delay-300 {
    animation-delay: 300ms;
}

.animation-delay-400 {
    animation-delay: 400ms;
}

.animation-delay-500 {
    animation-delay: 500ms;
}

.animation-delay-600 {
    animation-delay: 600ms;
}

.animation-delay-700 {
    animation-delay: 700ms;
}

.animation-delay-800 {
    animation-delay: 800ms;
}

.animation-delay-900 {
    animation-delay: 900ms;
}

.animation-delay-1000 {
    animation-delay: 1000ms;
}

.animation-delay-1500 {
    animation-delay: 1500ms;
}

.animation-delay-2000 {
    animation-delay: 2000ms;
}

.animation-delay-3000 {
    animation-delay: 3000ms;
}

.perspective-1000 {
    perspective: 1000px;
}

/* Card Hover Effects */
.theme-card:hover {
    transform: translateY(-10px);
}

.feature-card:hover {
    transform: translateY(-8px);
}

/* Utility Classes */
.bg-size-200 {
    background-size: 200% 100%;
}

/* Animation Classes (Initial States) */
.fade-in {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 1s ease-out;
}

.slide-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

/* Custom Form Styling */
input:focus, textarea:focus, select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(73, 76, 182, 0.2);
}



/* Button pulse effect on primary buttons */
.bg-primary {
    position: relative;
    overflow: hidden;
}

.bg-primary:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.bg-primary:hover:after {
    animation: ripple 1.5s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(50, 50);
        opacity: 0;
    }
}

/* Navigation Styles */
.nav-link {
    position: relative;
    font-size: 16px;
    letter-spacing: 0.2px;
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #494CB6;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 40%;
}

/* Premium Navbar Styles */
.premium-navbar {
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(73, 76, 182, 0.1);
    transform-origin: top;
}

.premium-navbar nav {
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* The shadow will be added via JavaScript when scrolling */
.premium-navbar.shadow-md {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.01);
    transform: translateY(-2px);
}

.premium-nav-link {
    position: relative;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

/* Removing bottom border hover effect as requested */
.premium-nav-link::after {
    content: none;
}

.premium-nav-link:hover::after,
.premium-nav-link.active::after {
    content: none;
}

/* Desktop Navbar Styles */
.desktop-navbar {
    padding: 0.5rem 0;
    /* Remove default box shadow */
    box-shadow: none;
}



/* Mobile Menu Animation */
#mobileMenu {
    transition: all 0.3s ease;
    max-height: 0;
    overflow: hidden;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    max-width: calc(100% - 16px);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

#mobileMenu.active {
    max-height: 500px;
}

/* Back to Top Button Animation */
#backToTop {
    transition: all 0.3s ease-in-out;
}

#backToTop.visible {
    opacity: 1;
    visibility: visible;
}

/* FAQ Toggle Animation */
.faq-icon {
    transition: transform 0.3s ease;
}

.faq-toggle.active .faq-icon {
    transform: rotate(180deg);
}

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

.faq-content.active {
    max-height: 300px;
}

/* WHMCS Sub-Navbar Styles */
.whmcs-subnav {
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(73, 76, 182, 0.1);
    background-color: rgba(249, 250, 251, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.whmcs-nav-link {
    position: relative;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.3px;
    padding: 8px 0;
    margin: 0 6px;
    transition: all 0.3s ease;
}

/* Theme Card Styles */
.theme-card {
    transition: all 0.3s ease;
}

.theme-card:hover {
    transform: translateY(-10px);
}

/* Process Timeline Styles */
.timeline-connector {
    height: 100%;
    width: 2px;
    background-color: #E5E7EB;
    position: absolute;
    left: 25px;
    top: 48px;
    bottom: 0;
    z-index: 0;
}

.timeline-connector.active {
    background-color: #22c55e;
}

/* Filter Button Styles */
.filter-button {
    background-color: white;
    border: 1px solid #e5e7eb;
    color: #4b5563;
    transition: all 0.3s ease;
}

.filter-button:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
}


/* Mobile Menu Styles */
#mobileMenu {
    transition: all 0.3s ease;
}

#mobileMenuToggle {
    transition: all 0.3s ease;
}

/* Premium Navbar Styles */
.premium-navbar {
    transition: all 0.3s ease;
}

.premium-nav-link {
    transition: all 0.3s ease;
}

/* Dropdown Arrow Animation */
.dropdown-trigger .arrow {
    transition: transform 0.3s ease;
}

.dropdown-trigger:hover .arrow {
    transform: rotate(180deg);
}

/* Shine Animation */
@keyframes shine {
    100% {
        left: 150%;
    }
}

.animate-shine {
    animation: shine 1.5s ease-in-out infinite;
}

/* Line Generation Animations */
@keyframes lineVertical {
    0% {
        transform: scaleY(0);
        opacity: 0;
    }
    100% {
        transform: scaleY(1);
        opacity: 1;
    }
}

@keyframes lineHorizontal {
    0% {
        transform: scaleX(0);
        opacity: 0;
    }
    100% {
        transform: scaleX(1);
        opacity: 1;
    }
}

@keyframes lineDiagonal {
    0% {
        transform: scale(0) rotate(-45deg);
        opacity: 0;
    }
    100% {
        transform: scale(1) rotate(-45deg);
        opacity: 1;
    }
}

.animate-line-vertical {
    animation: lineVertical 1.5s ease-out forwards;
}

.animate-line-horizontal {
    animation: lineHorizontal 1.5s ease-out forwards;
}

.animate-line-diagonal {
    animation: lineDiagonal 1.5s ease-out forwards;
}

.animation-delay-500 {
    animation-delay: 500ms;
}

.animation-delay-1000 {
    animation-delay: 1000ms;
}

/* Code Editor Styles */
.editor-container {
    background-color: #1e1e1e;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    min-height: 400px;
    height: auto;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.editor-header {
    background-color: #2d2d2d;
    padding: 8px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #3d3d3d;
}

.tab-buttons {
    display: flex;
    gap: 5px;
}

.tab-btn {
    padding: 5px 10px;
    background-color: #2d2d2d;
    color: #ccc;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    background-color: #3d3d3d;
}

.tab-btn.active {
    background-color: #1e1e1e;
    color: #fff;
}

.animation-controls {
    display: flex;
    gap: 10px;
}

.play-btn, .reset-btn {
    padding: 5px 10px;
    background-color: #2d2d2d;
    color: #ccc;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.play-btn:hover, .reset-btn:hover {
    background-color: #3d3d3d;
}

.editor-content {
    flex: 1;
    display: flex;
    overflow-y: scroll;
    overflow-x: hidden;
    padding-top: 5px;
    min-height: 300px;
    height: auto;
    position: relative;
}

.code-section {
    display: none;
    flex: 1;
    overflow-y: scroll;
    overflow-x: hidden;
    padding: 8px 12px;
    font-family: 'Fira Code', monospace;
    font-size: 13px;
    line-height: 1.4;
    color: #d4d4d4;
    min-width: 0;
    width: 100%;
    height: auto;
    min-height: 300px;
    position: relative;
}

.code-section.active {
    display: block;
    height: auto;
}

.line-numbers {
    width: 40px;
    padding: 10px 5px;
    background-color: #252526;
    color: #666;
    font-family: 'Fira Code', monospace;
    font-size: 12px;
    text-align: right;
    user-select: none;
    overflow-y: auto;
}

.code-area {
    flex: 1;
    padding: 4px 8px;
    font-family: 'Fira Code', monospace;
    font-size: 13px;
    line-height: 1.4;
    color: #d4d4d4;
    overflow-y: scroll;
    overflow-x: hidden;
    white-space: pre-wrap;
    tab-size: 4;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 300px;
    position: relative;
}

.typing-text {
    display: inline-block;
    max-width: 100%;
    white-space: pre-wrap;
    height: auto;
}

.preview-section {
    flex: 1;
    background-color: #f5f5f5;
    border-left: 1px solid #3d3d3d;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.preview-header {
    background-color: #e0e0e0;
    padding: 6px 10px;
    border-bottom: 1px solid #d0d0d0;
}

.preview-header h3 {
    font-size: 14px;
    color: #333;
}

.preview-content {
    flex: 1;
    padding: 10px;
    overflow: auto;
    height: 100%;
    font-size: 13px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .editor-container {
        min-height: 350px;
        max-height: 60vh;
    }
    
    .editor-content,
    .code-section,
    .code-area {
        min-height: 250px;
    }
    
    .code-section,
    .code-area {
        font-size: 12px;
        line-height: 1.3;
        padding: 6px 10px;
    }
    
    .preview-content {
        font-size: 12px;
        padding: 8px;
    }
    
    .preview-header {
        padding: 5px 8px;
    }
}

@media (max-width: 768px) {
    .editor-container {
        min-height: 300px;
        max-height: 50vh;
    }
    
    .editor-content,
    .code-section,
    .code-area {
        min-height: 200px;
    }
    
    .code-section,
    .code-area {
        font-size: 11px;
        line-height: 1.2;
        padding: 4px 8px;
    }
    
    .preview-content {
        font-size: 11px;
        padding: 6px;
    }
    
    .preview-header {
        padding: 4px 6px;
    }
    
    .preview-header h3 {
        font-size: 12px;
    }
}

/* Code Editor Animations */
.typing-animation {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.code-line {
    opacity: 1;
    position: relative;
    overflow: hidden;
}

.code-line::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background-color: rgba(255, 255, 255, 0.3);
    animation: blink 1s step-end infinite;
    opacity: 0;
}

.code-line.typing {
    width: 0;
    white-space: nowrap;
    overflow: hidden;
    border-right: 2px solid #6366F1;
    animation: typing 2s steps(40, end) forwards;
}

/* New human-like typing animations */
@keyframes humanTyping {
    0% { width: 0; }
    20% { width: 40%; }
    40% { width: 70%; }
    60% { width: 85%; }
    80% { width: 95%; }
    100% { width: 100%; }
}

.code-line.human-typing {
    width: 0;
    white-space: pre-wrap;
    overflow: hidden;
    border-right: none;
    animation: humanTyping 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    max-width: 100%;
}

/* Add a blinking cursor that's more subtle */
.code-line.human-typing::after {
    content: '|';
    position: absolute;
    right: 0;
    top: 0;
    color: rgba(99, 102, 241, 0.7);
    animation: blink 1s step-end infinite;
    display: none !important;
}

.code-line.typing-pause {
    animation-delay: 0.1s;
}

.code-line.typing-pause-2 {
    animation-delay: 0.2s;
}

.code-line.typing-pause-3 {
    animation-delay: 0.3s;
}

.code-line.typing-pause-4 {
    animation-delay: 0.4s;
}

.code-line.typing-pause-5 {
    animation-delay: 0.5s;
}

.code-line.typing-pause-6 {
    animation-delay: 0.6s;
}

.code-line.typing-pause-7 {
    animation-delay: 0.7s;
}

.code-line.typing-pause-8 {
    animation-delay: 0.8s;
}

.code-line.typing-pause-9 {
    animation-delay: 0.9s;
}

.code-line.typing-pause-10 {
    animation-delay: 1s;
}

.terminal-line {
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.terminal-line.visible {
    opacity: 1;
    transform: translateX(0);
}

.preview-step-1 {
    display: block;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.preview-step-2 {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.preview-step-2.visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* File Explorer Animations */
.file-item {
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.file-item:hover {
    transform: translateX(5px);
}

/* Tab Animations */
#editorTabs div {
    transition: all 0.2s ease;
}

#editorTabs div:hover {
    transform: translateY(-1px);
}

/* Cursor Animation */
.cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background-color: currentColor;
    animation: blink 1s step-end infinite;
}

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

/* Terminal Cursor Animation */
.terminal-cursor {
    display: inline-block;
    width: 8px;
    height: 1em;
    background-color: currentColor;
    animation: blink 1s step-end infinite;
}

/* Preview Loading Animation */
.preview-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.preview-loading::after {
    content: '';
    width: 1rem;
    height: 1rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Slide In Animation */
.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Typing Animation */
@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

/* Terminal Animation */
@keyframes terminalType {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.terminal-line:nth-child(1) { animation: terminalType 0.5s forwards; animation-delay: 1.6s; }
.terminal-line:nth-child(2) { animation: terminalType 0.5s forwards; animation-delay: 1.8s; }
.terminal-line:nth-child(3) { animation: terminalType 0.5s forwards; animation-delay: 2.0s; }
.terminal-line:nth-child(4) { animation: terminalType 0.5s forwards; animation-delay: 2.2s; }

/* Preview Animation */
@keyframes previewFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.preview-step-2 {
    animation: previewFadeIn 0.5s forwards;
    animation-delay: 2.4s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #494CB6 0%, #6366F1 100%);
    padding: 60px 0 40px 0px;
    color: white;
    text-align: center;
}

.hero h1 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    line-height: 39px;
    animation: fadeIn 1s ease-out;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    animation: fadeIn 1s ease-out 0.3s forwards;
    opacity: 0;
}

.cta-button {
    background: white;
    color: #494CB6;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    animation: fadeIn 1s ease-out 0.6s forwards;
    opacity: 0;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Custom Scrollbar Styles */
.editor-content::-webkit-scrollbar,
.code-section::-webkit-scrollbar,
.code-area::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

.editor-content::-webkit-scrollbar-track,
.code-section::-webkit-scrollbar-track,
.code-area::-webkit-scrollbar-track {
    background: #1e1e1e;
    border: 3px solid #1e1e1e;
}

.editor-content::-webkit-scrollbar-thumb,
.code-section::-webkit-scrollbar-thumb,
.code-area::-webkit-scrollbar-thumb {
    background: #494CB6;
    border-radius: 6px;
    border: 2px solid #1e1e1e;
}

.editor-content::-webkit-scrollbar-thumb:hover,
.code-section::-webkit-scrollbar-thumb:hover,
.code-area::-webkit-scrollbar-thumb:hover {
    background: #6366F1;
}

.editor-content::-webkit-scrollbar-corner,
.code-section::-webkit-scrollbar-corner,
.code-area::-webkit-scrollbar-corner {
    background: #1e1e1e;
}

/* Remove horizontal scrollbar styles */
.code-area::-webkit-scrollbar-thumb {
    background: #494CB6;
    height: 0;
}

/* Hero Graphic */
.hero-graphic {
    flex: 1;
    max-height: 80vh;
    overflow-y: scroll;
    display: flex;
    flex-direction: column;
    position: relative;
}
