* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Open Sans", sans-serif;
    background-color: #333333;
    color: #ffffff;
    margin: 0;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1,
h2,
h3,
.playfair {
    font-family: "Playfair Display", serif;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #2a2a2a;
}

::-webkit-scrollbar-thumb {
    background: #87ceeb;
    border-radius: 8px;
}

/* Cosmic Background */
#cosmic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: #333333;
}

canvas#star-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: -1;
    pointer-events: none;
}

/* Glassmorphism - FIXED for mobile */
.glass-card {
    background: linear-gradient(135deg, rgba(51, 51, 51, 0.85) 0%, rgba(42, 42, 42, 0.85) 100%);
    backdrop-filter: blur(12px);
    border-radius: 1.5rem;
    border: 1px solid rgba(135, 206, 235, 0.25);
    transition: all 0.3s ease;
}

/* NO transform scale on mobile - causes overflow issues */
@media (min-width: 769px) {
    .glass-card:hover {
        transform: translateY(-6px) scale(1.01);
        border-color: rgba(135, 206, 235, 0.7);
        box-shadow: 0 20px 40px rgba(135, 206, 235, 0.25);
    }
}

/* Mobile: simpler hover, no scale */
@media (max-width: 768px) {
    .glass-card:active {
        transform: scale(0.98);
        border-color: rgba(135, 206, 235, 0.7);
    }
}

.section-header {
    position: relative;
    font-family: "Playfair Display", serif;
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2rem;
    text-align: center;
}

.section-header::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: #87ceeb;
    border-radius: 9999px;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    position: relative;
    z-index: 5;
}

/* Hero Section - FIXED spacing */
.hero {
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem 1rem 3rem;
}

@media (min-width: 768px) {
    .hero {
        min-height: 90vh;
        padding: 3rem 0;
    }
}

.badge {
    background: rgba(135, 206, 235, 0.15);
    backdrop-filter: blur(4px);
    padding: 0.5rem 1rem;
    border-radius: 60px;
    font-size: clamp(0.7rem, 3vw, 0.85rem);
    letter-spacing: 1px;
    font-weight: 600;
    border: 1px solid rgba(135, 206, 235, 0.4);
    display: inline-block;
    margin-bottom: 1.5rem;
    color: #87ceeb;
    text-transform: uppercase;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .badge {
        white-space: normal;
        letter-spacing: 0.5px;
    }
}

h1 {
    font-size: clamp(2.2rem, 8vw, 5.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #87ceeb 60%, #6abfe1 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.dual-badge {
    display: flex;
    gap: 0.75rem;
    margin: 1rem 0;
    flex-wrap: wrap;
    justify-content: center;
}

.dual-tag {
    background: rgba(135, 206, 235, 0.12);
    padding: 0.4rem 1rem;
    border-radius: 40px;
    font-size: clamp(0.7rem, 3vw, 0.85rem);
    font-weight: 600;
    border: 1px solid rgba(135, 206, 235, 0.3);
    white-space: nowrap;
}

@media (max-width: 480px) {
    .dual-tag {
        white-space: normal;
        font-size: 0.7rem;
    }
}

.subtitle {
    font-size: clamp(0.9rem, 4vw, 1.1rem);
    max-width: 90%;
    margin: 0.5rem auto;
}

.tagline {
    font-size: clamp(0.85rem, 3.5vw, 1rem);
    color: #87ceeb;
    border-left: 2px solid #87ceeb;
    padding-left: 1rem;
    margin: 1rem auto;
    max-width: 90%;
    font-style: italic;
}

.stats-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0 1.5rem;
}

.stat-item {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    padding: 0.5rem 1.2rem;
    border-radius: 60px;
    font-weight: 600;
    font-size: clamp(0.8rem, 3.5vw, 0.95rem);
    border: 1px solid rgba(135, 206, 235, 0.3);
    text-align: center;
}

.stat-number {
    font-size: clamp(1.2rem, 5vw, 1.6rem);
    font-weight: 800;
    color: #87ceeb;
    margin-right: 5px;
    display: inline-block;
}

.launch-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #2a6b8f 0%, #87ceeb 100%);
    padding: 0.8rem 1.8rem;
    border-radius: 60px;
    font-weight: 700;
    font-size: clamp(0.9rem, 4vw, 1.2rem);
    color: #1a1a1a;
    text-decoration: none;
    margin: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(135, 206, 235, 0.4);
    border: none;
    cursor: pointer;
}

@media (min-width: 768px) {
    .launch-btn {
        padding: 1rem 2.8rem;
        gap: 12px;
    }
    .launch-btn:hover {
        transform: scale(1.03) translateY(-3px);
        box-shadow: 0 0 30px rgba(135, 206, 235, 0.8);
        gap: 18px;
    }
}

/* Services Grid - FULLY RESPONSIVE */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}

@media (min-width: 640px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.8rem;
    }
}

@media (min-width: 1024px) {
    .services-grid {
        gap: 2rem;
    }
}

.service-card {
    padding: 1.5rem;
    text-align: center;
}

@media (min-width: 768px) {
    .service-card {
        padding: 2rem;
    }
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
}

@media (min-width: 768px) {
    .service-icon {
        font-size: 3rem;
    }
    .glass-card:hover .service-icon {
        transform: scale(1.1) rotate(3deg);
    }
}

.service-title {
    font-size: clamp(1.3rem, 5vw, 1.6rem);
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: "Playfair Display", serif;
    color: #87ceeb;
}

.service-list {
    text-align: left;
    margin-top: 1rem;
    padding-left: 1rem;
}

.service-list li {
    margin: 0.6rem 0;
    color: #d4d4d4;
    font-size: clamp(0.8rem, 3.5vw, 0.9rem);
}

/* Offerings Grid - RESPONSIVE */
.offerings-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 2rem 0;
}

@media (min-width: 500px) {
    .offerings-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }
}

@media (min-width: 768px) {
    .offerings-grid {
        gap: 1.5rem;
    }
}

@media (min-width: 900px) {
    .offerings-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.offering-item {
    padding: 1.2rem;
    text-align: center;
}

@media (min-width: 768px) {
    .offering-item {
        padding: 1.5rem;
    }
}

.offering-icon {
    font-size: 1.8rem;
    margin-bottom: 0.6rem;
    display: inline-block;
}

@media (min-width: 768px) {
    .offering-icon {
        font-size: 2.2rem;
    }
}

.offering-title {
    font-size: clamp(1rem, 4vw, 1.2rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #87ceeb;
}

.offering-item p {
    font-size: clamp(0.75rem, 3vw, 0.85rem);
    color: #c0c0c0;
}

/* Skills Constellation - RESPONSIVE wrap */
.skills-constellation {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem;
    margin: 2rem 0;
}

.skill-star {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    padding: 0.5rem 1rem;
    border-radius: 40px;
    font-weight: 600;
    font-size: clamp(0.75rem, 3.5vw, 0.9rem);
    border-left: 3px solid #87ceeb;
    white-space: nowrap;
}

@media (max-width: 550px) {
    .skill-star {
        white-space: normal;
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Quote Box - RESPONSIVE */
.quote-box {
    max-width: 90%;
    margin: 2rem auto;
    padding: 1.5rem;
    text-align: center;
    border-radius: 1.5rem;
}

@media (min-width: 768px) {
    .quote-box {
        max-width: 700px;
        padding: 2rem;
        margin: 3rem auto;
    }
}

.quote-box p:first-child {
    font-size: clamp(0.95rem, 4vw, 1.2rem);
    font-weight: 500;
}

/* Footer - FULLY RESPONSIVE */
footer {
    background: linear-gradient(135deg, rgba(35, 35, 35, 0.98) 0%, rgba(25, 25, 25, 0.98) 100%);
    backdrop-filter: blur(12px);
    padding: 2rem 1rem;
    border-top: 1px solid rgba(135, 206, 235, 0.2);
    margin-top: 2rem;
    width: 100%;
}

@media (min-width: 768px) {
    footer {
        padding: 2.5rem 0;
        margin-top: 3rem;
    }
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: center;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(135, 206, 235, 0.1);
    color: #87ceeb;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1.2rem;
}

@media (min-width: 768px) {
    .footer-social a {
        width: 48px;
        height: 48px;
        font-size: 1.4rem;
    }
    .footer-social a:hover {
        background: #87ceeb;
        color: #1a1a1a;
        transform: translateY(-5px) rotate(5deg) scale(1.05);
    }
}

footer p {
    text-align: center;
    font-size: clamp(0.7rem, 3vw, 0.85rem);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

/* Mobile touch optimizations */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .section-header {
        margin-bottom: 1.5rem;
    }
    
    /* Better touch targets on mobile */
    .launch-btn,
    .footer-social a,
    .stat-item {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
    }
    
    .skills-constellation,
    .dual-badge {
        padding: 0 0.5rem;
    }
}

/* Extra small devices */
@media (max-width: 380px) {
    .stats-row {
        flex-direction: column;
        align-items: center;
        gap: 0.7rem;
    }
    
    .stat-item {
        width: auto;
        min-width: 160px;
    }
    
    .dual-tag {
        font-size: 0.65rem;
        padding: 0.3rem 0.8rem;
    }
}