/* 
   Starlight Dream Limited - Core Styles 
*/

:root {
    /* Color Palette */
    --bg-dark: #070914;
    --bg-light: #0d1225;
    
    --text-main: #f0f4f8;
    --text-muted: #a0aec0;
    
    --primary: #00d2ff;
    --primary-glow: rgba(0, 210, 255, 0.4);
    --secondary: #7a22ff;
    
    /* Glassmorphism */
    --glass-bg: rgba(20, 25, 45, 0.5);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing & Transitions */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.section-title {
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-title.center {
    text-align: center;
}

.line {
    height: 4px;
    width: 60px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.line.center {
    margin: 0 auto 20px auto;
}

.gradient-text {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glassmorphism Utilities */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 45px rgba(0, 210, 255, 0.1);
}

/* Badges & Buttons */
.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(0, 210, 255, 0.15);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge.secondary {
    background: rgba(122, 34, 255, 0.15);
    color: #ae7aff;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    font-family: var(--font-heading);
}

.primary-btn {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.primary-btn:hover {
    box-shadow: 0 8px 25px var(--primary-glow);
    transform: translateY(-2px);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(7, 9, 20, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid var(--glass-border);
}

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

.logo {
    font-size: 1.8rem;
    color: white;
}

.logo span {
    color: var(--primary);
    font-weight: 900;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    font-size: 1rem;
    position: relative;
}

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

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 30px;
    height: 3px;
    background-color: white;
    border-radius: 3px;
    transition: var(--transition);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(7, 9, 20, 0.98);
    backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    z-index: 999;
    transition: var(--transition);
}

.mobile-menu.active {
    right: 0;
}

.mobile-link {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-dark) 100%), 
                linear-gradient(to bottom, rgba(7,9,20,0.4) 0%, var(--bg-dark) 100%);
}

.hero-content {
    max-width: 800px;
    z-index: 1;
}

.hero-content h2 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 5px;
}

.hero-content h3 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    text-shadow: 0 0 20px var(--primary-glow);
}

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

/* About Section */
.about {
    background: var(--bg-dark);
}

.about-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 40px;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.about-text strong {
    color: white;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-card {
    text-align: center;
    padding: 40px 20px;
}

.stat-card h4 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.stat-card p {
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--primary);
}

/* Services Section */
.services {
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
}

/* Abstract Background Shapes for Services */
.services::before {
    content: '';
    position: absolute;
    top: 50px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: var(--secondary);
    filter: blur(150px);
    opacity: 0.2;
    border-radius: 50%;
    z-index: 0;
}

.container {
    position: relative;
    z-index: 1;
}

.service-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 100px;
}

.service-item:last-child {
    margin-bottom: 0;
}

.service-item.reverse .service-img {
    order: 2;
}

.service-item.reverse .service-info {
    order: 1;
}

.service-img img {
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.service-img img:hover {
    transform: scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 0 30px var(--primary-glow);
}

.service-info h3 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.service-info p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-list li {
    padding-left: 25px;
    position: relative;
    color: var(--text-main);
}

.feature-list li::before {
    content: '✦';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary);
}

.feature-list li strong {
    color: white;
}

/* Partners Section */
.partners {
    background: var(--bg-dark);
}

.partner-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
}

.partner-card {
    padding: 20px 40px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: var(--transition);
    cursor: default;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
}

.partner-card.img-card {
    padding: 20px;
    min-width: unset;
    width: 180px;
    height: 90px;
}

.partner-card.img-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.7;
    transition: var(--transition);
}

.partner-card.img-card:hover img {
    filter: none;
    opacity: 1;
}

.partner-card:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    transform: translateY(-5px) scale(1.05);
}

/* Footer & Contact */
.footer {
    background: linear-gradient(to bottom, var(--bg-light) 0%, #000 100%);
    padding: 80px 0 30px 0;
    position: relative;
    overflow: hidden;
}

/* Footer glow */
.footer::before {
    content: '';
    position: absolute;
    bottom: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: var(--primary);
    filter: blur(200px);
    opacity: 0.15;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-info p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 400px;
    margin-top: 20px;
}

.footer-contact h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
}

.icon {
    font-size: 1.5rem;
}

.contact-list a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding: 20px;
    background: rgba(0,0,0,0.3);
    border: none;
    border-top: 1px solid var(--glass-border);
    margin-top: 40px;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
}


/* Animations */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s forwards cubic-bezier(0.25, 0.8, 0.25, 1);
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

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

/* Scroll Reveal Classes (handled by JS) */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* Responsive Design */
@media (max-width: 992px) {
    .about-grid,
    .service-item,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .service-item.reverse .service-img {
        order: -1;
    }
    
    .hero-content h2 {
        font-size: 2.8rem;
    }
    
    .hero-content h3 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-content h2 {
        font-size: 2.2rem;
    }
    
    .hero-content h3 {
        font-size: 1.5rem;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
}
