@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-color: #000000;
    --accent-color: #007AFF; /* Apple Blue */
    --accent-glow: rgba(0, 122, 255, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 24px;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-family);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Mesh Gradient Background */
.mesh-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(circle at 20% 20%, #001a33 0%, transparent 40%),
                radial-gradient(circle at 80% 80%, #000d1a 0%, transparent 40%),
                radial-gradient(circle at 50% 50%, #000000 0%, transparent 100%);
    opacity: 0.8;
}

/* Glass UI Elements */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    transition: var(--transition-smooth);
}

.glass:not(nav):hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Navigation */
nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: fit-content;
    padding: 10px 30px;
    z-index: 1000;
    display: flex;
    gap: 30px;
    align-items: center;
    pointer-events: auto; /* Force clickability */
}

nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.7;
    transition: var(--transition-smooth);
    padding: 10px; /* Increase click area */
    display: inline-block;
}

nav a:hover, nav a.active {
    opacity: 1;
    color: var(--accent-color);
}

/* Sections */
section {
    padding: 80px 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#hero, [id*="-hero"] {
    min-height: 100vh;
}

/* Hero Specifics */
#hero {
    position: relative;
    overflow: hidden;
    background: var(--bg-color);
}

[id*="-hero"]:not(#hero) {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.8)), 
                url('https://images.unsplash.com/photo-1544735716-392fe2489ffa?q=80&w=2071&auto=format&fit=crop') center/cover;
}

.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.6;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.image-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-top: 40px;
    border: 1px solid var(--glass-border);
    height: 200px; /* Force uniform height */
}

.image-container img {
    width: 100%;
    height: 100%; /* Fill container */
    object-fit: cover; /* Maintain aspect ratio without stretching */
    display: block;
    transition: transform 0.5s ease;
}

.image-container:hover img {
    transform: scale(1.05);
}

p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.6;
}

/* Buttons */
.btn {
    padding: 14px 28px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-smooth);
    display: inline-block;
    text-decoration: none;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-color);
}

.btn-primary:hover {
    transform: scale(1.05);
    background: #fff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-outline:hover {
    background: var(--glass-bg);
}

/* Grid Layouts */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.card {
    padding: 40px;
    text-align: left;
}

.card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.card .icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

/* Footer Section */
.info-footer {
    padding: 60px 10%;
    border-top: 1px solid var(--glass-border);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    background: rgba(0,0,0,0.5);
}

.footer-col h4 {
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

.footer-col p {
    font-size: 0.95rem;
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }
    nav {
        width: 90%;
        overflow-x: auto;
    }
}
