/* ===== ROOT VARIABLES ===== */
:root {
    --space-black: #0a0a0f;
    --deep-space: #0d0d1a;
    --nebula-purple: #6b21a8;
    --cosmic-blue: #1e40af;
    --electric-blue: #3b82f6;
    --star-white: #f8fafc;
    --muted-gray: #94a3b8;
    --gradient-primary: linear-gradient(135deg, var(--cosmic-blue) 0%, var(--nebula-purple) 100%);
    --gradient-glow: linear-gradient(135deg, var(--electric-blue) 0%, #8b5cf6 50%, var(--nebula-purple) 100%);
    --text-gradient: linear-gradient(90deg, var(--electric-blue), #a855f7, var(--electric-blue));
}

/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--space-black);
    color: var(--star-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== STARFIELD BACKGROUND ===== */
.starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background: transparent;
}

.stars-small {
    background-image:
        radial-gradient(1px 1px at 20px 30px, white, transparent),
        radial-gradient(1px 1px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 50px 160px, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 90px 40px, white, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 160px 120px, white, transparent);
    background-size: 200px 200px;
    animation: twinkle 4s ease-in-out infinite;
}

.stars-medium {
    background-image:
        radial-gradient(2px 2px at 100px 50px, rgba(139,92,246,0.8), transparent),
        radial-gradient(2px 2px at 200px 150px, rgba(59,130,246,0.8), transparent),
        radial-gradient(2px 2px at 300px 250px, white, transparent),
        radial-gradient(2px 2px at 400px 100px, rgba(139,92,246,0.6), transparent);
    background-size: 400px 400px;
    animation: twinkle 6s ease-in-out infinite reverse;
}

.stars-large {
    background-image:
        radial-gradient(3px 3px at 150px 200px, rgba(59,130,246,0.9), transparent),
        radial-gradient(3px 3px at 350px 350px, rgba(168,85,247,0.8), transparent),
        radial-gradient(3px 3px at 550px 100px, white, transparent);
    background-size: 600px 600px;
    animation: twinkle 8s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Nebula gradients */
.nebula {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(107, 33, 168, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(30, 64, 175, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
}

/* ===== NAVIGATION ===== */
.navbar-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 1.5rem;
    transition: all 0.3s ease;
}

.navbar-wrapper.scrolled {
    padding: 1rem 1.5rem;
}

.navbar-orbital {
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid transparent;
    border-radius: 100px;
    padding: 0.5rem 1.5rem;
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    transition: all 0.3s ease;
    overflow: visible;
    /* Glow effect */
    background-image: linear-gradient(rgba(10, 10, 15, 0.85), rgba(10, 10, 15, 0.85)),
                      linear-gradient(135deg, var(--electric-blue), var(--nebula-purple), var(--electric-blue));
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3),
                0 0 40px rgba(59, 130, 246, 0.1),
                inset 0 0 20px rgba(139, 92, 246, 0.05);
}

.navbar-orbital::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 100px;
    padding: 2px;
    background: linear-gradient(135deg, var(--electric-blue), var(--nebula-purple), var(--cosmic-blue));
    -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;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: -1;
}

.navbar-orbital:hover::before {
    opacity: 1;
}

.navbar-wrapper.scrolled .navbar-orbital {
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.4),
                0 0 60px rgba(59, 130, 246, 0.15),
                inset 0 0 30px rgba(139, 92, 246, 0.08);
}

/* Desktop Navigation Layout */
.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
    z-index: 1;
}

.nav-left,
.nav-right {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
}

.nav-left {
    justify-content: flex-start;
}

.nav-right {
    justify-content: flex-end;
}

.nav-center {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
    z-index: 2;
    min-width: 100px;
    height: 100%;
}

/* Logo Circle Container - "Planet" that's bigger than the pill "rings" */
.logo-circle {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    background: rgba(10, 10, 15, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    /* Glow effect matching the pill */
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.5),
                0 0 60px rgba(59, 130, 246, 0.2);
}

.logo-circle::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(135deg, var(--electric-blue), var(--nebula-purple), var(--cosmic-blue));
    -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;
    opacity: 0.8;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.logo-circle:hover::before {
    opacity: 1;
}

.logo-circle:hover {
    box-shadow: 0 0 35px rgba(139, 92, 246, 0.6),
                0 0 60px rgba(59, 130, 246, 0.25);
    transform: translate(-50%, -50%) scale(1.05);
}

.navbar-wrapper.scrolled .logo-circle {
    width: 100px;
    height: 100px;
}

/* Logo Styles */
.navbar-logo {
    height: 85px;
    width: auto;
    max-width: 98px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.navbar-wrapper.scrolled .navbar-logo {
    height: 65px;
    max-width: 78px;
}

.navbar-brand-orbital {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--text-gradient);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 3s ease infinite;
    text-decoration: none;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 200% center; }
}

.nav-link-orbital {
    color: var(--muted-gray) !important;
    font-weight: 500;
    padding: 0.5rem 0.75rem !important;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.9rem;
    text-decoration: none;
    white-space: nowrap;
}

.nav-link-orbital::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-glow);
    transition: width 0.3s ease;
}

.nav-link-orbital:hover {
    color: var(--star-white) !important;
}

.nav-link-orbital:hover::after {
    width: 80%;
}

/* Mobile Navigation */
.mobile-nav-header {
    display: none;
    position: relative;
    z-index: 1;
}

.mobile-nav-menu {
    display: none;
}

@media (max-width: 991px) {
    /* Move navbar to bottom on mobile */
    .navbar-wrapper {
        top: auto;
        bottom: 0;
        padding: 0.75rem 1rem;
        padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    }

    .navbar-wrapper.scrolled {
        padding: 0.5rem 1rem;
        padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px));
    }

    .navbar-orbital {
        border-radius: 20px;
        padding: 0.6rem 1rem;
    }

    .navbar-orbital::before {
        border-radius: 20px;
    }

    .navbar-content {
        display: none;
    }

    .mobile-nav-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .mobile-logo {
        height: 32px;
        width: auto;
    }

    /* Mobile menu opens ABOVE the bottom bar */
    .mobile-nav-menu {
        position: fixed;
        bottom: 75px;
        bottom: calc(75px + env(safe-area-inset-bottom, 0px));
        top: auto;
        left: 1rem;
        right: 1rem;
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-radius: 20px;
        padding: 1rem;
        display: none;
        flex-direction: column;
        gap: 0.25rem;
        border: 1px solid rgba(139, 92, 246, 0.3);
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5),
                    0 0 20px rgba(139, 92, 246, 0.2);
        max-height: 70vh;
        overflow-y: auto;
    }

    .mobile-nav-menu.show {
        display: flex;
    }

    .mobile-nav-menu .nav-link-orbital {
        padding: 0.6rem 1rem !important;
        font-size: 0.95rem;
        text-align: center;
    }

    .mobile-nav-menu .btn-orbital {
        margin-top: 0.5rem;
        text-align: center;
        padding: 0.75rem 1.5rem;
    }

    .mobile-nav-menu .lang-toggle {
        margin-top: 0.5rem;
        justify-content: center;
    }
}

/* ===== HERO SECTION ===== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 20px 80px;
    z-index: 1;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-title .gradient-text {
    background: var(--gradient-glow);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--muted-gray);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Floating orbit animation */
.orbit-ring {
    position: absolute;
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 50%;
    animation: orbit-rotate 20s linear infinite;
}

.orbit-ring-1 {
    width: 400px;
    height: 400px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.orbit-ring-2 {
    width: 600px;
    height: 600px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-duration: 30s;
    animation-direction: reverse;
}

.orbit-ring-3 {
    width: 800px;
    height: 800px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-duration: 40s;
}

@keyframes orbit-rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.orbit-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--electric-blue);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--electric-blue);
}

/* ===== BUTTONS ===== */
.btn-orbital {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary-orbital {
    background: var(--gradient-glow);
    color: white;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.btn-primary-orbital:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.6);
    color: white;
}

.btn-secondary-orbital {
    background: transparent;
    color: var(--star-white);
    border: 2px solid rgba(139, 92, 246, 0.5);
}

.btn-secondary-orbital:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: var(--nebula-purple);
    transform: translateY(-3px);
    color: white;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== SECTIONS ===== */
.section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--muted-gray);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
    font-size: 1.1rem;
}

/* ===== SERVICES SECTION ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.service-card {
    background: rgba(13, 13, 26, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-glow);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 20px 40px rgba(107, 33, 168, 0.2);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.service-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-description {
    color: var(--muted-gray);
    line-height: 1.7;
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.portfolio-card {
    background: rgba(13, 13, 26, 0.9);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(139, 92, 246, 0.15);
    transition: all 0.4s ease;
}

.portfolio-card:hover {
    transform: scale(1.02);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 25px 50px rgba(107, 33, 168, 0.25);
}

.portfolio-image {
    width: 100%;
    height: 220px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

.portfolio-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.portfolio-card:hover .portfolio-image::after {
    transform: translateX(100%);
}

.portfolio-content {
    padding: 2rem;
}

.portfolio-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.portfolio-description {
    color: var(--muted-gray);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.portfolio-tag {
    background: rgba(59, 130, 246, 0.15);
    color: var(--electric-blue);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ===== STATS SECTION ===== */
.stats-section {
    background: linear-gradient(180deg, transparent 0%, rgba(107, 33, 168, 0.1) 50%, transparent 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 2rem;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--gradient-glow);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--muted-gray);
    font-size: 1.1rem;
    font-weight: 500;
}

/* ===== TESTIMONIALS ===== */
.testimonials-section {
    overflow-x: hidden;
}

.testimonial-card {
    background: rgba(13, 13, 26, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--muted-gray);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.testimonial-name {
    font-weight: 600;
}

.testimonial-role {
    color: var(--muted-gray);
    font-size: 0.9rem;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    background: linear-gradient(180deg, transparent 0%, rgba(30, 64, 175, 0.1) 100%);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

@media (max-width: 900px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.contact-info p {
    color: var(--muted-gray);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--muted-gray);
}

.contact-method-icon {
    width: 50px;
    height: 50px;
    background: rgba(59, 130, 246, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.contact-form {
    background: rgba(13, 13, 26, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 24px;
    padding: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--star-white);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(10, 10, 15, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    color: var(--star-white);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--electric-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.5rem;
    padding-right: 3rem;
}

.form-select option {
    background: var(--deep-space);
    color: var(--star-white);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.btn-submit {
    width: 100%;
    padding: 1.25rem;
    font-size: 1.1rem;
}

/* ===== FOOTER ===== */
.footer-orbital {
    background: rgba(10, 10, 15, 0.95);
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    padding: 4rem 0 2rem;
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-brand p {
    color: var(--muted-gray);
    margin-top: 1rem;
    line-height: 1.7;
}

.footer-logo {
    height: 50px;
    width: auto;
    transition: all 0.3s ease;
}

.footer-logo:hover {
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.5));
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--muted-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--electric-blue);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(139, 92, 246, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--muted-gray);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-gray);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--electric-blue);
    color: white;
    transform: translateY(-3px);
}

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Planet decoration */
.planet {
    position: absolute;
    border-radius: 50%;
    filter: blur(0.5px);
}

.planet-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle at 30% 30%, #4c1d95 0%, #1e1b4b 50%, transparent 70%);
    top: 20%;
    right: -100px;
    opacity: 0.4;
}

.planet-2 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle at 30% 30%, #1e40af 0%, #0f172a 60%, transparent 70%);
    bottom: 30%;
    left: -50px;
    opacity: 0.5;
}

/* Glowing line decoration */
.glow-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--electric-blue), var(--nebula-purple), transparent);
    margin: 3rem auto;
    max-width: 600px;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--space-black);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--cosmic-blue), var(--nebula-purple));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--electric-blue), #a855f7);
}

/* ===== UTILITY CLASSES ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-center {
    text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* Success message */
.alert-success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

/* Mobile hamburger */
.navbar-toggler-orbital {
    background: transparent;
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
}

.navbar-toggler-orbital span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--star-white);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Language Toggle Button */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    color: var(--muted-gray);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.lang-toggle:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: var(--nebula-purple);
    color: var(--star-white);
}

.lang-toggle .lang-icon {
    font-size: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    html {
        overflow-x: hidden;
        overflow-y: scroll;
        height: auto;
    }

    body {
        overflow: visible;
        width: 100%;
        max-width: 100vw;
        height: auto;
        min-height: auto;
        /* Add padding at bottom for fixed navbar */
        padding-bottom: 80px;
        padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    }

    /* Prevent any section from becoming a scroll container */
    .section,
    .stats-section,
    .testimonials-section,
    .contact-section {
        overflow: visible !important;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
    }

    /* Hero section - full screen height but no scroll container */
    .hero-section {
        padding: 40px 1rem 60px;
        min-height: calc(100vh - 80px);
        min-height: calc(100dvh - 80px);
        overflow: visible !important;
        max-height: none !important;
    }

    .hero-content {
        padding: 0 0.5rem;
        max-width: 100%;
    }

    .section {
        padding: 50px 0;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
        max-width: 100%;
        overflow: visible;
    }

    /* Cards and forms */
    .contact-form {
        padding: 1.25rem;
        margin: 0;
    }

    .service-card,
    .testimonial-card {
        padding: 1.25rem;
    }

    .portfolio-content {
        padding: 1.25rem;
    }

    .portfolio-card {
        margin: 0;
    }

    /* Grids */
    .services-grid,
    .portfolio-grid {
        padding: 0;
        gap: 1rem;
    }

    /* Hide orbit rings on mobile to prevent overflow */
    .orbit-ring {
        display: none;
    }

    /* Hide planets on mobile */
    .planet {
        display: none;
    }

    /* Typography */
    .hero-title {
        font-size: clamp(1.6rem, 6vw, 2.5rem);
        padding: 0 0.25rem;
        word-wrap: break-word;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        padding: 0;
        line-height: 1.5;
    }

    .section-title {
        font-size: clamp(1.4rem, 5vw, 2rem);
        padding: 0 0.5rem;
    }

    .section-subtitle {
        padding: 0;
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }

    /* Stats */
    .stat-number {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        padding: 0;
    }

    .stat-item {
        padding: 0.75rem 0.5rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    /* Footer */
    .footer-orbital {
        padding-bottom: 100px;
        padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px));
    }

    .footer-grid {
        gap: 1.5rem;
        padding: 0;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .footer-logo {
        height: 40px;
    }

    /* Buttons */
    .btn-orbital {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        width: 100%;
        padding: 0 1rem;
    }

    .hero-buttons .btn-orbital {
        width: 100%;
        max-width: 260px;
    }

    /* Glow line */
    .glow-line {
        margin: 1.5rem auto;
        max-width: 80%;
    }

    /* Contact section */
    .contact-wrapper {
        gap: 2rem;
    }

    .contact-info h3 {
        font-size: 1.5rem;
    }

    .contact-info p {
        font-size: 0.95rem;
    }

    .contact-method {
        font-size: 0.9rem;
    }

    .contact-method-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        flex-shrink: 0;
    }

    /* Service cards */
    .service-icon {
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
    }

    .service-title {
        font-size: 1.15rem;
    }

    .service-description {
        font-size: 0.9rem;
    }

    /* Testimonials */
    .testimonial-text {
        font-size: 0.95rem;
    }

    .testimonial-avatar {
        width: 40px;
        height: 40px;
        font-size: 0.85rem;
    }

    .testimonial-name {
        font-size: 0.95rem;
    }

    .testimonial-role {
        font-size: 0.8rem;
    }

    /* Portfolio */
    .portfolio-image {
        height: 160px;
        font-size: 2.5rem;
    }

    .portfolio-title {
        font-size: 1.1rem;
    }

    .portfolio-description {
        font-size: 0.85rem;
    }

    .portfolio-tag {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }
}

@media (max-width: 480px) {
    body {
        padding-bottom: 75px;
    }

    .hero-section {
        padding: 30px 0.75rem 50px;
        min-height: calc(100vh - 75px);
        min-height: calc(100dvh - 75px);
    }

    .hero-title {
        font-size: clamp(1.4rem, 5.5vw, 2rem);
    }

    .section {
        padding: 40px 0;
    }

    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .contact-form {
        padding: 1rem;
    }

    .form-input,
    .form-textarea,
    .form-select {
        padding: 0.75rem 0.875rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .form-label {
        font-size: 0.9rem;
    }

    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .service-card,
    .testimonial-card {
        padding: 1rem;
    }

    .portfolio-image {
        height: 140px;
        font-size: 2rem;
    }

    .footer-grid {
        gap: 1.25rem;
    }

    .footer-title {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .footer-links a {
        font-size: 0.9rem;
    }
}
