/* ============================================
   Layout & Grid Structures
   ============================================ */

/* Navigation Bar Layout */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(230, 57, 70, 0.1);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(11, 11, 15, 0.95);
    border-bottom-color: rgba(230, 57, 70, 0.3);
    box-shadow: var(--shadow-md);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    transition: var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-white);
}

.nav-link.active::after {
    width: 100%;
}

.nav-cta {
    margin-left: 1rem;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: var(--transition-fast);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Hero Section Layout */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-top: 60px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--text-white);
}

.hero-title {
    margin-bottom: 1.5rem;
    color: var(--text-white);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.typing-container {
    font-size: 1.3rem;
    margin: 2rem 0;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.typing-prefix {
    color: var(--text-muted);
}

.typing-text {
    color: var(--primary);
    font-weight: 600;
}

.typing-cursor {
    color: var(--primary);
    animation: blink 0.7s infinite;
}

/* Stats Container */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent-1));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* CTA Buttons Layout */
.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
}

.bounce-arrow {
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

/* Section Layouts */
section {
    padding: 4rem 0;
    position: relative;
}

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

.section-header h2 {
    color: var(--text-white);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: flex-start;
}

/* Footer Grid */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(230, 57, 70, 0.1);
}

/* Hero Page Layout */
.hero-page {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-top: 60px;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.1) 0%, rgba(114, 9, 183, 0.1) 100%);
}

.hero-page-content {
    text-align: center;
    z-index: 2;
}

.hero-page-content h1 {
    color: var(--text-white);
    margin-bottom: 1rem;
}

.hero-page-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
}

/* Service Detail Grid */
.service-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.service-detail-grid.reverse {
    direction: rtl;
}

.service-detail-grid.reverse > * {
    direction: ltr;
}

.service-detail-content h2 {
    color: var(--text-white);
    margin-bottom: 1rem;
}

.service-detail-content h3 {
    color: var(--text-white);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.service-detail-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.15) 0%, rgba(114, 9, 183, 0.15) 100%);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--primary);
    border: 1px solid rgba(230, 57, 70, 0.2);
}

.image-placeholder p {
    margin-top: 1rem;
    font-size: 1rem;
    color: var(--text-muted);
}

/* Utility Layout Classes */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.back-to-top.show {
    display: flex;
    opacity: 1;
}

.back-to-top:hover {
    background: var(--accent-1);
    transform: translateY(-3px);
    box-shadow: var(--glow-lg);
}

/* ============================================
   Decorative Spots & Orbs
   ============================================ */

.decorative-spot {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.spot-lg {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(220,20,60,0.25) 0%, transparent 70%);
    filter: blur(50px);
}

.spot-md {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(139,0,0,0.3) 0%, transparent 70%);
    filter: blur(40px);
}

.spot-sm {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(196,30,58,0.2) 0%, transparent 70%);
    filter: blur(30px);
}

.spot-ring {
    width: 80px;
    height: 80px;
    border: 2px solid rgba(220,20,60,0.4);
    background: transparent;
    filter: none;
}

.spot-dot {
    width: 15px;
    height: 15px;
    background: var(--primary);
    filter: blur(2px);
    opacity: 0.6;
}

/* Stats Container Styling */
.stats-container {
    position: relative;
    z-index: 1;
}

.stats-section {
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
}

.stat-item {
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(220,20,60,0.2) !important;
    box-shadow: 0 15px 40px rgba(220,20,60,0.3);
}

.stat-item:hover h3 {
    text-shadow: 0 0 40px rgba(220,20,60,0.8);
}

/* Stats Container Hover */
.stats-container:hover {
    box-shadow: 0 30px 100px rgba(0,0,0,0.6), 0 0 60px rgba(220,20,60,0.2), inset 0 1px 0 rgba(255,255,255,0.08);
}
