:root {
    /* Color Palette - Premium Tech & Solar */
    --primary: #0a0f1c; /* Midnight Navy */
    --primary-light: #161e31;
    --secondary: #facc15; /* Solar Gold - Vibrant */
    --accent: #38bdf8; /* Electric Blue */
    --success: #10b981;
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dark: #0f172a;
    
    --bg-dark: #020617;
    --bg-card: #0f172a;
    
    --glass: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shine: rgba(255, 255, 255, 0.05);
    
    /* Typography */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Effects */
    --shadow-premium: 0 20px 50px rgba(0, 0, 0, 0.5);
    --transition-smooth: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    
    --radius-lg: 32px;
    --radius-md: 20px;
    --radius-sm: 12px;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
}

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

/* --- Typography --- */
h1, h2, h3, h4 {
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.text-gradient {
    color: var(--text-main);
    background: linear-gradient(135deg, var(--text-main) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-gradient-accent {
    color: var(--accent);
    background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Layout --- */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 8rem 0;
}

.glass {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-premium);
}

.badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: rgba(250, 204, 21, 0.1);
    border: 1px solid var(--secondary);
    color: var(--secondary);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

/* --- Header & Navigation --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;
    padding: 1rem 0;
    transition: var(--transition-smooth);
    background: rgba(10, 15, 28, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

header.scrolled {
    padding: 0.8rem 0;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

nav {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 50px;
    filter: drop-shadow(0 0 10px rgba(250, 204, 21, 0.3));
    transition: var(--transition-bounce);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    position: relative;
}

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

.nav-links a:hover {
    color: var(--text-main);
}

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

.nav-links a.active {
    color: var(--secondary);
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Buttons --- */
.cta-button {
    background: var(--secondary);
    color: var(--primary);
    padding: 1rem 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: var(--transition-bounce);
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(250, 204, 21, 0.2);
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(250, 204, 21, 0.3);
    background: white;
}

.cta-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: none;
}

.cta-outline:hover {
    border-color: var(--secondary);
    background: rgba(250, 204, 21, 0.1);
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    padding-top: 180px;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 70% 30%, var(--primary-light) 0%, var(--bg-dark) 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/hero.png') center/cover no-repeat;
    opacity: 0.3;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding-top: 5rem;
}

.hero h1 {
    font-size: clamp(3rem, 10vw, 5.5rem);
    margin-bottom: 2rem;
}

.hero h1 span {
    display: block;
    color: var(--secondary);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

/* --- Subpage Hero --- */
.subpage-hero {
    min-height: 80vh;
    display: flex;
    align-items: flex-start;
    padding-top: 180px;
    padding-bottom: 80px;
    position: relative;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, var(--bg-dark) 0%, transparent 50%, var(--bg-dark) 100%);
    z-index: 1;
    pointer-events: none;
}

/* --- Features Grid (Bento) --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 1.5rem;
}

.bento-item {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.bento-item:hover {
    border-color: var(--secondary);
    transform: translateY(-10px);
    background: var(--primary-light);
}

.bento-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.bento-item p {
    color: var(--text-muted);
    font-size: 1rem;
    position: relative;
    z-index: 2;
}

.bento-item i {
    display: block;
}

.text-link {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    transition: var(--transition-smooth);
    position: relative;
    z-index: 2;
}

.text-link:hover {
    gap: 0.8rem;
    color: white;
}

.bento-1 { grid-column: span 2; }
.bento-2 { grid-column: span 1; }
.bento-3 { grid-column: span 1; }
.bento-4 { grid-column: span 1; }
.bento-5 { grid-column: span 3; }

/* Subpage Bento Variations */
.bento-item.large { grid-column: span 2; grid-row: span 2; }
.bento-item.medium { grid-column: span 2; }

.bento-icon {
    width: 50px;
    height: 50px;
    background: rgba(250, 204, 21, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.bento-img-bg {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 60%;
    opacity: 0.2;
    filter: grayscale(1);
    transition: var(--transition-smooth);
    z-index: 0;
}

.bento-item:hover .bento-img-bg {
    opacity: 0.4;
    transform: scale(1.1) rotate(-5deg);
}

/* --- Service Cards --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    transition: var(--transition-bounce);
}

.service-card:hover {
    border-color: var(--accent);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.icon-box {
    width: 70px;
    height: 70px;
    background: rgba(56, 189, 248, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 2rem;
    margin-bottom: 2rem;
}

/* --- Stats --- */
.stats-section {
    background: var(--primary-light);
    border-radius: 60px;
    padding: 5rem 0;
    margin: 4rem 0;
}

@media (max-width: 768px) {
    .stats-section {
        border-radius: 30px;
        margin: 2rem 0;
        padding: 3rem 0;
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item h4 {
    font-size: 4rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
}

/* Subpage Stat Classes */
.stat-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--secondary);
    line-height: 1;
}

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

/* --- Gallery --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    display: block;
    text-decoration: none;
    height: 400px;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent, rgba(2, 6, 23, 0.9));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem;
    opacity: 0;
    transition: var(--transition-smooth);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* --- FAQ --- */
.faq-list {
    max-width: 900px;
    margin: 4rem auto 0;
}

.faq-item {
    margin-bottom: 1.5rem;
}

.faq-header {
    background: var(--bg-card);
    padding: 1.5rem 2.5rem;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}

.faq-header:hover {
    border-color: var(--accent);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease-out;
    padding: 0 2.5rem;
}

.faq-item.active .faq-content {
    max-height: 200px;
    padding: 1.5rem 2.5rem;
}

/* --- Contact Form --- */
.contact-section {
    position: relative;
    background: radial-gradient(circle at 10% 90%, rgba(56, 189, 248, 0.05) 0%, transparent 50%);
}

.form-wrapper {
    background: var(--bg-card);
    padding: 4rem;
    border-radius: 40px;
    border: 1px solid var(--glass-border);
    max-width: 700px;
    margin: 0 auto;
}

/* CTA Card Variation (Subpages) */
.cta-card {
    padding: 5rem;
    border-radius: 40px;
    text-align: center;
}

.cta-card h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
}

.form-group {
    margin-bottom: 2rem;
}

input, select, textarea {
    width: 100%;
    background: var(--primary-light);
    border: 1px solid var(--glass-border);
    padding: 1.2rem;
    border-radius: 12px;
    color: white;
    font-family: inherit;
    transition: var(--transition-smooth);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 20px rgba(250, 204, 21, 0.1);
}

/* --- Footer --- */
footer {
    padding: 8rem 0 4rem;
    background: #020617;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 6rem;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 2rem;
}

.footer-nav h4 {
    margin-bottom: 2rem;
    color: var(--secondary);
}

.footer-nav ul {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 1rem;
}

.footer-nav a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-nav a:hover {
    color: white;
    padding-left: 10px;
}

.footer-brand p {
    color: var(--text-muted);
    margin: 1.5rem 0;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    transition: var(--transition-smooth);
}

.social-links a:hover {
    background: var(--secondary);
    color: var(--primary);
    transform: translateY(-3px);
}

.footer-contact p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.footer-contact i {
    color: var(--secondary);
}

.footer-bottom {
    margin-top: 6rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    .bento-1, .bento-5 { grid-column: span 2; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-dark);
        padding: 6rem 2rem;
        z-index: 999;
    }
    
    .mobile-menu-btn { display: block; position: relative; z-index: 1000; }
    .header .cta-button { display: none; }
    
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .hero { height: auto; padding: 10rem 0 5rem; }
    .hero h1 { font-size: 3rem; }
    .hero-actions { flex-direction: column; }
    
    .subpage-hero { height: auto; padding: 12rem 0 6rem; min-height: auto; }
    
    .bento-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
    .bento-item, .bento-item.large, .bento-item.medium { grid-column: span 1; grid-row: span 1; }
    
    .gallery-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 3rem; }
    
    .cta-card { padding: 3rem 1.5rem; }
    .cta-card h2 { font-size: 2rem; }
    .cta-actions { flex-direction: column; }
    
    section { padding: 4rem 0; }
    
    .bento-item { padding: 1.5rem; }
    .form-wrapper { padding: 2rem 1.5rem; }
    .hero h1 span { display: inline; }
}

/* --- Animations --- */
/* AOS styles are handled by the linked stylesheet */


/* --- Gallery Pages Styles --- */
.gallery-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.gallery-card {
    border-radius: 20px;
    overflow: hidden;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}

.gallery-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.gallery-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.gallery-card .card-info {
    padding: 1.5rem;
}

.gallery-card h3 {
    color: var(--text-light);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

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

@media (max-width: 768px) {
    .gallery-grid-full {
        grid-template-columns: 1fr;
    }
}
