body {
    margin: 0;
    background-color: #000510;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* The Galaxy Background - Deep Blue/Black Theme */
.galaxy-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(0, 100, 200, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(0, 150, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(0, 50, 100, 0.2) 0%, transparent 70%),
        linear-gradient(180deg, #000205 0%, #000510 50%, #000a1a 100%);
    background-size: cover;
    background-position: center;
    z-index: -2;
}

/* Canvas for Stars */
#star-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    opacity: 0.9;
    pointer-events: none;
    mix-blend-mode: screen;
}

/* Responsive Background Image */
.galaxy-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

/* Typography Overrides */
.font-serif {
    font-family: 'Playfair Display', serif;
}

/* The MECS Text Effect - Blue Galaxy Theme */
.mega-text {
    font-size: 20vw;
    line-height: 0.8;
    transform: skewX(-8deg);
    letter-spacing: -0.001em;
    width: 110%;
    margin: 0 auto;
    background:
        linear-gradient(180deg,
            rgba(0, 200, 255, 0.1) 0%,
            rgba(0, 100, 200, 0.3) 50%,
            rgba(0, 50, 100, 0.1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    mix-blend-mode: overlay;
    filter: drop-shadow(0 0 30px rgba(0, 150, 255, 0.4));
    user-select: none;
    pointer-events: none;
}

.mega-text-container {
    transform: scaleX(1.15);
    transform-origin: center;
}

@media (max-width: 768px) {
    .mega-text {
        font-size: 15vw;
        transform: skewX(-5deg);
        letter-spacing: -0.12em;
        width: 105%;
    }
    
    .mega-text-container {
        transform: scaleX(1.10);
    }

    /* Mobile responsive image */
    .galaxy-bg img {
        object-position: center top;
        object-fit: cover;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    /* Tablet responsive image */
    .galaxy-bg img {
        object-fit: cover;
        object-position: center;
    }
}

/* Button Styling */
.cta-btn {
    background: linear-gradient(90deg, #0ea5e9 0%, #0284c7 100%);
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.4);
    transition: all 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(14, 165, 233, 0.6);
}

.cta-btn-outline {
    border: 1px solid rgba(14, 165, 233, 0.5);
    background: transparent;
    transition: all 0.3s ease;
}

.cta-btn-outline:hover {
    background: rgba(14, 165, 233, 0.1);
    border-color: rgba(14, 165, 233, 0.8);
}

/* Subtle Grain Overlay for Texture */
.grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Trust Cards Styling */
.trust-card {
    background: rgba(0, 20, 40, 0.4);
    border: 1px solid rgba(0, 150, 255, 0.15);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.trust-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(0, 150, 255, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.trust-card:hover::before {
    opacity: 1;
}

.trust-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 150, 255, 0.4);
    box-shadow: 0 10px 40px rgba(0, 100, 200, 0.3);
}

.icon-glow {
    filter: drop-shadow(0 0 15px rgba(0, 150, 255, 0.6));
}

/* Service Cards */
.service-card {
    background: rgba(0, 10, 20, 0.5);
    border: 1px solid rgba(0, 150, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 150, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 100, 200, 0.2);
}

.service-card img {
    transition: transform 0.6s ease;
}

.service-card:hover img {
    transform: scale(1.05);
}

/* Process Steps */
.process-step {
    position: relative;
}

.process-icon {
    width: 56px;
    height: 56px;
    background: rgba(0, 100, 200, 0.15);
    border: 1px solid rgba(0, 150, 255, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

/* Checkmark list */
.check-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.check-icon {
    width: 24px;
    height: 24px;
    background: rgba(0, 150, 255, 0.2);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Section transition */
.content-section {
    position: relative;
    z-index: 10;
}

/* Laptop mockup styling */
.laptop-mockup {
    position: relative;
    filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.8));
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* MECS bracket styling */
.mecs-bracket {
    color: #f97316;
    font-size: 1.2em;
    font-weight: 300;
}

/* Blue glow effects */
.blue-glow {
    box-shadow: 0 0 60px rgba(0, 150, 255, 0.3);
}

.laptop-screen-glow {
    box-shadow: 0 0 80px rgba(0, 150, 255, 0.3), inset 0 0 60px rgba(0, 0, 0, 0.8);
}

.megs-watermark {
    background: linear-gradient(180deg, rgba(0, 200, 255, 0.15) 0%, rgba(0, 100, 200, 0.05) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(0, 150, 255, 0.2);
}

.screen-bg {
    background:
        radial-gradient(ellipse at 20% 30%, rgba(0, 100, 200, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(0, 200, 255, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(0, 50, 100, 0.5) 0%, #000000 100%);
}

.laptop-frame {
    background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.laptop-base {
    background: linear-gradient(180deg, #3a3a3a 0%, #1a1a1a 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.cta-button {
    background: #00BFFF;
    box-shadow: 0 0 30px rgba(0, 191, 255, 0.4);
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #33CCFF;
    box-shadow: 0 0 40px rgba(0, 191, 255, 0.6);
    transform: translateY(-2px);
}

.rock-overlay {
    mask-image: linear-gradient(to top, black 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to top, black 60%, transparent 100%);
}

.screen-reflection {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}