/* Enhanced Hero Section Styles */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: none;
    border: none;
    border-bottom: none;
    margin-bottom: 0;
    box-shadow: none;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.floating-cube, .floating-sphere {
    position: absolute;
    background: linear-gradient(45deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(99, 102, 241, 0.2);
    animation: float 6s ease-in-out infinite;
}

.floating-cube {
    width: 60px;
    height: 60px;
    transform-style: preserve-3d;
}

.floating-cube:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 8s;
}

.floating-cube:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
    animation-duration: 7s;
}

.floating-cube:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
    animation-duration: 9s;
}

.floating-sphere {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15), transparent);
}

.floating-sphere:nth-child(4) {
    top: 30%;
    right: 20%;
    animation-delay: 1s;
    animation-duration: 6s;
}

.floating-sphere:nth-child(5) {
    bottom: 40%;
    right: 10%;
    animation-delay: 3s;
    animation-duration: 8s;
}

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

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 2rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    margin-bottom: 2rem;
    color: #6366f1;
    font-size: 0.875rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-subtitle {
    font-size: clamp(1rem, 3vw, 1.25rem);
    font-weight: 400;
    color: var(--text-secondary);
    display: block;
    margin-top: 0.5rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #6366f1;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::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.6s;
}

.btn-glow:hover::before {
    left: 100%;
}

.btn-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(88, 101, 242, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(88, 101, 242, 0); }
    100% { box-shadow: 0 0 0 0 rgba(88, 101, 242, 0); }
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.feature-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    color: #10b981;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Features Section */
.features-section {
    padding: 5rem 0;
    background: none;
    position: relative;
    border: none;
    border-top: none;
    margin-top: 0;
    box-shadow: none;
}

.features-section > .container {
    position: relative;
    z-index: 1;
    border: none !important;
    box-shadow: none !important;
    background: none !important;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.feature-card {
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.feature-icon i {
    margin: 0;
    padding: 0;
    line-height: 1;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Plugin Showcase */
.plugin-showcase {
    padding: 5rem 0;
    background: none;
    position: relative;
}

.plugin-showcase > .container {
    position: relative;
    z-index: 1;
    border: none !important;
    box-shadow: none !important;
    background: none !important;
}

.showcase-card {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.showcase-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 3rem;
    align-items: center;
}

.showcase-text h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.showcase-text p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.plugin-features {
    margin-bottom: 2rem;
}

.plugin-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.plugin-feature i {
    color: #10b981;
    font-size: 1.125rem;
}

.showcase-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.showcase-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.plugin-preview {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.minecraft-block {
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, #8B4513, #A0522D);
    border: 2px solid #654321;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.border-effect {
    position: absolute;
    width: 180px;
    height: 180px;
    border: 3px solid #6366f1;
    border-radius: 50%;
    animation: rotate 4s linear infinite;
    opacity: 0.7;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .showcase-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* Hero Highlights */
.hero-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.highlight-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
}

.highlight-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    flex-shrink: 0;
}

.highlight-text h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    color: var(--text-primary);
}

.highlight-text p {
    font-size: 0.9rem;
    margin: 0;
    color: var(--text-secondary);
}

/* Enhanced Plugin Showcase */
.plugin-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.minecraft-world {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.minecraft-block {
    width: 35px;
    height: 35px;
    border-radius: 6px;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    animation: blockFloat 3s ease-in-out infinite;
}

.block-1 {
    background: linear-gradient(45deg, #8B4513, #A0522D);
    animation-delay: 0s;
}

.block-2 {
    background: linear-gradient(45deg, #228B22, #32CD32);
    animation-delay: 0.5s;
}

.block-3 {
    background: linear-gradient(45deg, #4682B4, #87CEEB);
    animation-delay: 1s;
}

.border-glow {
    position: absolute;
    width: 240px;
    height: 240px;
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 50%;
    animation: rotate 8s linear infinite reverse;
    opacity: 0.6;
}

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

/* About Section */
.about-section {
    padding: 5rem 0;
    background: none;
    position: relative;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    align-items: center;
    position: relative;
    z-index: 1;
    border: none !important;
    box-shadow: none !important;
    background: none !important;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-text p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.creator-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.creator-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
    font-weight: 500;
}

.creator-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
    border-color: #6366f1;
}

.creator-link i {
    color: #6366f1;
}

.developer-card {
    background: var(--bg-primary);
    border-radius: var(--border-radius-xl);
    padding: 2.5rem;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.developer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.dev-avatar {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin: 0 auto 1.5rem;
    overflow: hidden;
}

.dev-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.developer-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.developer-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.dev-skills {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.skill {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

/* Enhanced Responsive */
@media (max-width: 768px) {
    .hero-highlights {
        grid-template-columns: 1fr;
    }
    
    .highlight-item {
        flex-direction: column;
        text-align: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .creator-links {
        justify-content: center;
    }
    
    .plugin-preview {
        width: 200px;
        height: 200px;
    }
    
    .border-effect {
        width: 180px;
        height: 180px;
    }
    
    .border-glow {
        width: 200px;
        height: 200px;
    }
}

/* Page Transitions */
body {
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

body.page-transitioning {
    opacity: 0;
    transform: translateY(20px);
}

.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-loader.active {
    opacity: 1;
    visibility: visible;
}

.loader-content {
    text-align: center;
    color: var(--text-primary);
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top: 3px solid #6366f1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Page transition overlay */
.transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.transition-overlay.active {
    opacity: 1;
    visibility: visible;
}

.transition-overlay .transition-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--text-primary);
}

.transition-progress {
    width: 200px;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
    margin: 1rem auto;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 2px;
}

/* Smooth scrolling for all elements */
html {
    scroll-behavior: smooth;
}

/* Reduce grid line visibility by making them more subtle */
.hero::before,
.features-section::before,
.plugin-showcase::before,
.about-section::before {
    background-blend-mode: overlay;
}

/* Anti-aliasing for smoother grid lines */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Remove all section borders to prevent visible lines */
section {
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    margin: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

.hero,
.features-section,
.plugin-showcase,
.about-section {
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    outline: none !important;
    margin: 0 !important;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.hero {
    padding-top: 8rem;
    padding-bottom: 5rem;
    min-height: 100vh;
}

/* Ensure seamless flow between sections */
.hero + .features-section,
.features-section + .plugin-showcase,
.plugin-showcase + .about-section {
    border-top: none !important;
    margin-top: 0 !important;
    padding-top: 5rem !important;
}

/* Custom Development Box Blue Glow */
.custom-dev-card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.15), 
                0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.custom-dev-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.3) 0%, 
        rgba(139, 92, 246, 0.3) 50%, 
        rgba(99, 102, 241, 0.3) 100%);
    border-radius: var(--border-radius-lg);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-dev-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.25), 
                0 12px 48px rgba(0, 0, 0, 0.15);
}

.custom-dev-card:hover::before {
    opacity: 1;
}
