:root {
    /* Color Palette - Electric Orange / Black / White */
    --bg-color: #ffffff;
    --surface-color: #f8f9fa; /* Light grey for cards */
    --primary-color: #FF6600; /* Electric Orange */
    --secondary-color: #000000; /* Deep Black */
    --text-color: #1a1a1a; /* Almost Black */
    --text-muted: #4b5563; /* Grey */
    --accent-gradient: linear-gradient(135deg, #FF6600, #ff8c00); /* Orange gradient */

    /* Typography */
    --font-main: 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Borders & Glass */
    --radius-md: 12px;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: 1px solid rgba(0, 0, 0, 0.1);
}

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    font-weight: 600;
    border-radius: 50px;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--secondary-color); /* Black text for high contrast on Orange */
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
    color: var(--secondary-color) !important; /* Forces black text even on hover */
    background-color: #ff751a;
}

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

.btn-outline:hover {
    background: rgba(255, 102, 0, 0.1);
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: var(--glass-border);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    z-index: 1100;
}

/* Hamburger Menu Toggle */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 18px;
    cursor: pointer;
    z-index: 1100;
}

.menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--secondary-color);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* Nav Links as an Overlay */
.nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--bg-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-md);
    transition: right 0.4s cubic-bezier(0.645, 0.045, 0.355, 1);
    z-index: 1000;
}

.nav-links.active {
    right: 0;
}

.nav-links a {
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--text-color);
    transition: color 0.3s ease;
}

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

/* Nav specific button sizing */
.nav-links .btn {
    padding: 14px 36px;
    font-size: 1.1rem;
    margin-top: 1rem;
}

/* Toggle Animation */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero */
.hero {
    padding: 160px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-color);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Clearer Grid Pattern */
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at 50% 50%, black, transparent 80%);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 102, 0, 0.15) 0%, transparent 50%);
    animation: rotateMesh 15s linear infinite;
    z-index: 0;
}

@keyframes rotateMesh {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto var(--spacing-lg);
}

/* Sections */
section {
    padding: var(--spacing-lg) 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.service-card {
    background: var(--surface-color);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border: var(--glass-border);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.service-card h3 {
    margin-bottom: var(--spacing-sm);
    font-size: 1.5rem;
    color: var(--text-color);
}

.service-card p {
    color: var(--text-muted);
}

/* About */
.about-flex {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.about-logo {
    width: 200px;
    height: auto;
    flex-shrink: 0;
}

.about-text {
    font-size: 1.2rem;
    color: var(--text-muted);
}

/* Mobile adjustments for About section */
@media (max-width: 768px) {
    .about-flex {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-md);
    }
    
    .about-logo {
        width: 150px;
    }
}

/* Footer */
footer {
    padding: var(--spacing-xl) 0 var(--spacing-md);
    position: relative;
    overflow: hidden;
    background: #000000; /* Dark base for the glow contrast */
    color: #ffffff;
    border-top: 1px solid rgba(255, 102, 0, 0.2);
}

footer::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(circle at center, rgba(255, 102, 0, 0.15) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.footer-cta {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.footer-cta .section-title {
    color: #ffffff;
}

.footer-cta .hero-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
    position: relative;
    z-index: 1;
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

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

.hero h1, .hero-subtitle, .hero .btn {
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-subtitle {
    animation-delay: 0.2s;
    opacity: 0; /* Star hidden */
}

.hero .btn {
    animation-delay: 0.4s;
    opacity: 0; /* Start hidden */
}

/* Mobile */
@media (max-width: 768px) {
    .hero {
        padding-top: 140px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}
