/* HERO & HOME PAGE - Original "Perfect" Design */

.hero-section {
    position: relative;
    padding: 160px 0 100px;
    overflow: hidden;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* Added separation line */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 10%;
    left: -10%;
    width: 50%;
    height: 60%;
    background: radial-gradient(circle, rgba(59,130,246,.15) 0%, transparent 70%);
    filter: blur(100px);
    animation: nebulaMove 15s ease-in-out infinite alternate;
    z-index: 1;
    will-change: transform;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 5%;
    right: -10%;
    width: 60%;
    height: 70%;
    background: radial-gradient(circle, rgba(139,92,246,.12) 0%, transparent 70%);
    filter: blur(120px);
    animation: nebulaMove 20s ease-in-out infinite alternate-reverse;
    z-index: 1;
    will-change: transform;
}

@keyframes nebulaMove {
    0% { transform: translate(0,0) scale(1); }
    100% { transform: translate(100px,50px) scale(1.2); }
}

.hero-container::before {
    content: '';
    position: absolute;
    inset: -100%;
    background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 60px 60px;
    background-position: center center;
    transform: perspective(1000px) rotateX(60deg);
    mask-image: linear-gradient(to bottom, transparent, black, transparent);
    z-index: 0;
    pointer-events: none;
    opacity: .5;
}

.page-grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center center;
    z-index: -2;
    pointer-events: none;
    mask-image: radial-gradient(circle 500px at var(--mouse-x, 50%) var(--mouse-y, 50%), black 0%, rgba(0,0,0,0.4) 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle 500px at var(--mouse-x, 50%) var(--mouse-y, 50%), black 0%, rgba(0,0,0,0.4) 40%, transparent 100%);
}

.page-grid-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,.3) 50%);
    background-size: 100% 4px;
    z-index: -1;
    opacity: .1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(14,165,233,.1);
    border: 1px solid rgba(14,165,233,.3);
    color: #38bdf8;
    padding: .6rem 1.2rem;
    border-radius: 50px;
    font-size: .9rem;
    font-weight: 600;
    width: fit-content;
    box-shadow: 0 0 15px rgba(14,165,233,.1);
}

.hero-title {
    font-size: clamp(3.5rem, 8vw, 5.5rem);
    line-height: .95;
    font-weight: 900;
    letter-spacing: -3px;
    color: #f8fafc;
    text-shadow: 0 0 30px rgba(255,255,255,.1);
}

.text-gradient {
    background: linear-gradient(135deg, #3b82f6, #60a5fa, #8b5cf6, #3b82f6);
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(59,130,246,.3));
    animation: textShine 8s linear infinite;
}

@keyframes textShine { to { background-position: 300% center; } }

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e2e8f0;
    display: block;
    line-height: 1.4;
}

.typing-text {
    position: relative;
    background: linear-gradient(to right, #a855f7, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    min-height: 1.5em;
}

.cursor {
    display: inline-block;
    width: 3px;
    height: 1.2em;
    background-color: #a855f7;
    animation: blink 1s infinite;
    margin-left: 4px;
    vertical-align: middle;
}

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

.hero-description {
    color: #94a3b8;
    font-size: 1.15rem;
    max-width: 600px;
    line-height: 1.8;
}

/* Colors used in features */
.text-white { color: #f1f5f9; font-weight: 600; }
.text-blue { color: #60a5fa; font-weight: 600; }
.text-green { color: #4ade80; font-weight: 600; }
.text-pink { color: #f472b6; font-weight: 600; }

/* Floating Shapes (Restored) */
.floating-shape {
    position: absolute;
    background: rgba(255,255,255,.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    z-index: 1;
    pointer-events: none;
    animation: morph 8s ease-in-out infinite alternate;
}

@keyframes morph {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; transform: rotate(0deg) scale(1); }
    100% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; transform: rotate(15deg) scale(1.1); }
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    right: 5%;
    background: radial-gradient(circle at 30% 30%, rgba(59,130,246,.1), transparent);
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: 15%;
    left: 5%;
    background: radial-gradient(circle at 70% 70%, rgba(139,92,246,.1), transparent);
    animation-delay: -4s;
}

.hero-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: #cbd5e1;
    font-size: .95rem;
}
.feature-item i { color: #22c55e; }

.hero-callout {
    display: flex;
    gap: 1rem;
    background: rgba(15,23,42,.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(245,158,11,.2);
    border-left: 5px solid #f59e0b;
    padding: 1.25rem 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,.2), inset 0 0 15px rgba(245,158,11,.03);
}

.callout-icon { color: #f59e0b; font-size: 1.4rem; }
.callout-text strong { display: block; color: #f59e0b; margin-bottom: .3rem; font-size: 1.05rem; }
.callout-text p { font-size: .9rem; color: #94a3b8; margin: 0; }

.hero-actions {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.btn {
    padding: 1.1rem 2.2rem;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    transition: all .4s cubic-bezier(.175,.885,.32,1.275);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    box-shadow: 0 10px 30px rgba(59,130,246,.4);
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(59,130,246,.6);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(255,255,255,.2), transparent);
    pointer-events: none;
}

.btn-outline {
    background: rgba(15,23,42,.6);
    color: white;
    border: 1px solid rgba(255,255,255,.1);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(15,23,42,.8);
    border-color: #3b82f6;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(59,130,246,.2);
}

/* Float Particles (Restored) */
.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.hero-particles::before,
.hero-particles::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: #3b82f6;
    border-radius: 50%;
    filter: blur(2px) drop-shadow(0 0 10px #3b82f6);
    animation: floatParticle 10s infinite linear;
    opacity: 0;
}

.hero-particles::after {
    width: 3px;
    height: 3px;
    background: #8b5cf6;
    animation-duration: 15s;
    animation-delay: -5s;
}

@keyframes floatParticle {
    0% { transform: translateY(110vh) translateX(0); opacity: 0; }
    20% { opacity: .6; }
    80% { opacity: .6; }
    100% { transform: translateY(-10vh) translateX(100px); opacity: 0; }
}

.social-proof {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,.05);
}

.avatars { display: flex; align-items: center; }

.avatars img.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid #020617;
    object-fit: cover;
    margin-left: -15px;
    transition: transform .3s cubic-bezier(.175,.885,.32,1.275);
    position: relative;
    z-index: 1;
}

.avatars img.avatar:first-child { margin-left: 0; }

.avatars img.avatar:hover {
    transform: translateY(-8px) scale(1.1);
    z-index: 10;
    border-color: #3b82f6;
}

.more-count {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid #020617;
    background: #1e293b;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    font-weight: 700;
    margin-left: -15px;
    position: relative;
    z-index: 1;
}

.proof-text { display: flex; flex-direction: column; gap: .2rem; }
.proof-count { color: #f8fafc; font-weight: 600; }
.stars { color: #fbbf24; font-size: .9rem; }
.rating { color: #94a3b8; margin-left: .5rem; font-size: .9rem; }

.hero-visual {
    height: 650px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    perspective: 1200px;
}

.orbit-system {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.central-logo { position: relative; z-index: 20; }

.logo-inner {
    width: 170px;
    height: 170px;
    background: #020617;
    border: 2px solid #3b82f6;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 30px rgba(59,130,246,.4), inset 0 0 20px rgba(59,130,246,.2);
    backdrop-filter: blur(10px);
    overflow: hidden;
    transition: all .5s cubic-bezier(.175,.885,.32,1.275);
}

.logo-inner::after {
    content: '';
    position: absolute;
    inset: -50%;
    background: conic-gradient(transparent, rgba(59,130,246,.3), transparent);
    animation: rotate 4s linear infinite;
    z-index: 5;
}

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

.central-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    animation: logo-float 4s infinite ease-in-out;
}

@keyframes logo-float {
    0%, 100% { transform: translateY(0); filter: drop-shadow(0 0 10px rgba(96,165,250,.3)); }
    50% { transform: translateY(-8px); filter: drop-shadow(0 0 20px rgba(96,165,250,.5)); }
}

.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(37,99,235,.15) 0%, transparent 70%);
    z-index: -1;
    animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { transform: translate(-50%,-50%) scale(1); opacity: .6; }
    50% { transform: translate(-50%,-50%) scale(1.1); opacity: 1; }
}

.orbit-circle { position: absolute; border-radius: 50%; transform-style: preserve-3d; }

.inner-orbit {
    width: 380px;
    height: 380px;
    border: 1px solid rgba(255,255,255,.08);
    animation: orbit-rotate 25s linear infinite;
    box-shadow: 0 0 0 1px rgba(255,255,255,.02);
}

.outer-orbit {
    width: 650px;
    height: 650px;
    border: 1px solid rgba(255,255,255,.08);
    animation: orbit-rotate 40s linear infinite reverse;
}

.orbit-item {
    position: absolute;
    width: 75px;
    height: 75px;
    background: rgba(15,23,42,.85);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.3rem;
    color: white;
    box-shadow: 0 8px 32px rgba(0,0,0,.4), 0 0 15px rgba(59,130,246,.2);
    backdrop-filter: blur(8px);
    transition: all .3s cubic-bezier(.4,0,.2,1);
}

.orbit-item:hover {
    box-shadow: 0 0 30px rgba(59,130,246,.6), 0 0 10px rgba(255,255,255,.4);
    border-color: #3b82f6;
    transform: scale(1.15) translateY(-5px);
    z-index: 100;
}

@keyframes orbit-rotate { 0% { transform: rotate(0deg) } 100% { transform: rotate(360deg) } }
.orbit-item i, .orbit-item span { animation: counter-rotate 25s linear infinite reverse; }
.outer-orbit .orbit-item i { animation-duration: 40s; animation-direction: normal; }

.inner-orbit .orbit-item { animation: maintain-upright-inner 25s linear infinite; }
.outer-orbit .orbit-item { animation: maintain-upright-outer 40s linear infinite; }

@keyframes maintain-upright-inner { 0% { transform: rotate(360deg) } 100% { transform: rotate(0deg) } }
@keyframes maintain-upright-outer { 0% { transform: rotate(0deg) } 100% { transform: rotate(360deg) } }

.inner-orbit .item-react { top: -37.5px; left: 50%; margin-left: -37.5px; }
.inner-orbit .item-node { bottom: -37.5px; left: 50%; margin-left: -37.5px; }
.inner-orbit .item-python { top: 50%; left: -37.5px; margin-top: -37.5px; }
.inner-orbit .item-mongo { top: 50%; right: -37.5px; margin-top: -37.5px; }

.outer-orbit .item-html { top: -37.5px; left: 50%; margin-left: -37.5px; }
.outer-orbit .item-tailwind { bottom: -37.5px; left: 50%; margin-left: -37.5px; }
.outer-orbit .item-css { top: 25%; right: 6.7%; }
.outer-orbit .item-js { bottom: 25%; right: 6.7%; }
.outer-orbit .item-mysql { bottom: 25%; left: 6.7%; }
.outer-orbit .item-express { top: 25%; left: 6.7%; }

.bottom-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: -4rem;
    margin-bottom: 8rem; /* Increased gapping */
    padding-bottom: 4rem;
    position: relative;
    z-index: 5;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* Separation line */
}

.feature-card {
    background: rgba(15,23,42,.6);
    border: 1px solid rgba(255,255,255,.08);
    padding: 2.5rem 2rem;
    border-radius: 1.5rem;
    text-align: center;
    transition: all .4s ease;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,.1);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(59,130,246,.4);
    background: rgba(15,23,42,.8);
}

.card-icon {
    width: 70px;
    height: 70px;
    border-radius: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    margin: 0 auto 1.5rem;
    color: white;
}

.icon-blue { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.icon-purple { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.icon-cyan { background: linear-gradient(135deg, #06b6d4, #0891b2); }

.feature-card h3 {
    font-size: 1.35rem;
    margin-bottom: .75rem;
    color: #f8fafc;
    font-weight: 700;
}

.feature-card p {
    color: #94a3b8;
    line-height: 1.6;
}

@media (max-width: 1280px) {
    .hero-title { font-size: 4.5rem; }
    .outer-orbit { width: 500px; height: 500px; }
}

@media (max-width: 1024px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; gap: 5rem; padding-top: 2rem; }
    .hero-content { align-items: center; }
    .hero-title { font-size: 4rem; letter-spacing: -2px; }
    .hero-description { margin: 0 auto; }
    .hero-features { justify-content: center; max-width: 600px; margin: 1rem auto; }
    .hero-actions { justify-content: center; }
    .hero-callout { max-width: 600px; margin: 0 auto; text-align: left; }
    .hero-visual { height: 550px; order: -1; }
    .orbit-system { transform: scale(.85); }
    .bottom-features { margin-top: 2rem; grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hero-section { padding: 10rem 0 4rem; }
    .hero-container { grid-template-columns: 1fr; text-align: center; gap: 3rem; padding-top: 1rem; }
    .hero-content { align-items: center; text-align: center; }
    .hero-title { font-size: 2.8rem; letter-spacing: -1.5px; }
    .hero-subtitle { font-size: 1.1rem; text-align: center; margin: 0 auto; line-height: 1.5; }
    .hero-description { font-size: .95rem; margin: 0 auto; line-height: 1.6; }
    .hero-features { grid-template-columns: 1fr; text-align: left; width: fit-content; margin: 0 auto; }
    .hero-actions { flex-direction: row; gap: .4rem; margin-top: 1.25rem; }
    .btn { padding: .5rem .8rem; font-size: .72rem; gap: .4rem; }
    .orbit-system { transform: scale(.65); }
    .hero-visual { height: 400px; }
    .bottom-features { grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-top: 1.5rem; padding: 0 .5rem; }
    .feature-card { padding: .75rem .4rem; border-radius: 1rem; }
    .card-icon { width: 35px; height: 35px; font-size: 1rem; margin-bottom: .5rem; }
    .feature-card h3 { font-size: .75rem; margin-bottom: .25rem; }
    .feature-card p { font-size: .65rem; line-height: 1.2; display: none; }
    .social-proof { flex-direction: row; justify-content: center; gap: 1rem; text-align: center; flex-wrap: wrap; }
    .avatars { justify-content: center; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.5rem; }
    .orbit-system { transform: scale(.5); }
    .hero-visual { height: 300px; }
    .logo-inner { width: 100px; height: 100px; }
    .hero-description { font-size: 1rem; }
    .badge { font-size: .8rem; padding: .4rem 1rem; }
}

/* =========================================
   MOBILE PERFORMANCE OPTIMIZATIONS 
   ========================================= */
@media (max-width: 768px) {
    /* Disable heavy particles and floating shapes */
    .hero-particles,
    .floating-shape,
    .hero-section::before,
    .hero-section::after {
        display: none !important; 
    }

    /* Reduce orbit system complexity */
    .orbit-item {
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .orbit-circle {
        border-width: 1px !important;
        box-shadow: none !important;
    }

    .logo-inner {
        box-shadow: 0 0 10px rgba(59,130,246,.4) !important;
        backdrop-filter: none !important;
    }
    
    .glow-effect {
        display: none !important;
    }
    
    .hero-container::before {
        background-image: none !important;
    }
}