/* ==========================================================================
   CSS Variables & Resets
   ========================================================================== */
:root {
    /* Color Palette - Sleek Dark Theme with Vibrant Accents */
    --bg-color-main: #0a0a0c;
    --bg-color-alt: #121216;
    --text-color-main: #e0e0e0;
    --text-color-muted: #9ba1a6;
    --accent-color: #ff5e3a; /* A vibrant maple-leaf inspired orange/red */
    --accent-glow: rgba(255, 94, 58, 0.4);
    
    /* Layout */
    --max-width: 1200px;
    --navbar-height: 80px;

    /* Typography */
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Roboto', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 1px;
}

a {
    text-decoration: none;
    color: inherit;
}

.highlight {
    color: var(--accent-color);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
    text-transform: uppercase;
    position: relative;
}

.dark-bg {
    background-color: var(--bg-color-alt);
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.primary-btn {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.primary-btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--accent-color);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-fast);
}

.primary-btn:hover {
    color: var(--bg-color-main);
    box-shadow: 0 0 20px var(--accent-glow);
}

.primary-btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* ==========================================================================
   Particle Canvas Background
   ========================================================================== */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    pointer-events: none; /* Let clicks pass through */
}

/* ==========================================================================
   Navigation
   ========================================================================== */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--navbar-height);
    background: rgba(10, 10, 12, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-fast);
}

#navbar.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    height: 70px;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

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

.nav-links li a {
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-color-muted);
    transition: var(--transition-fast);
    position: relative;
}

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

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

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

/* ==========================================================================
   Hero Section
   ========================================================================== */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 0 2rem;
}

.hero-content {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.hero-logo {
    width: 150px;
    height: auto;
    margin-bottom: 1rem;
    /* Subtle breathing animation for the logo */
    animation: breathe 4s ease-in-out infinite alternate;
}

@keyframes breathe {
    0% { transform: scale(1) translateY(0); filter: drop-shadow(0 0 10px rgba(255, 94, 58, 0.2)); }
    100% { transform: scale(1.05) translateY(-10px); filter: drop-shadow(0 0 25px rgba(255, 94, 58, 0.6)); }
}

#hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

#hero p {
    font-size: 1.2rem;
    color: var(--text-color-muted);
    margin-bottom: 2rem;
    font-weight: 300;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 4rem;
    align-items: center;
}

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

.about-text strong {
    color: var(--text-color-main);
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
    backdrop-filter: blur(5px);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-color: rgba(255, 94, 58, 0.3);
}

.stat-card h3 {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stat-card p {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--text-color-muted);
    font-weight: 700;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-color-main);
    padding: 3rem 2rem;
    border-radius: 8px;
    border-top: 3px solid transparent;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(255,94,58,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition-fast);
    pointer-events: none;
}

.service-card:hover::after {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-10px);
    border-top-color: var(--accent-color);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

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

/* ==========================================================================
   Skills Section
   ========================================================================== */
.skills-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.skill-category h3 {
    font-size: 1.2rem;
    color: var(--text-color-muted);
    margin-bottom: 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 0.5rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.tag {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition-fast);
    cursor: default;
}

.tag:hover {
    background: var(--accent-color);
    color: var(--bg-color-main);
    border-color: var(--accent-color);
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--accent-glow);
}

/* ==========================================================================
   Footer
   ========================================================================== */
#footer {
    background: rgba(0,0,0,0.5);
    padding: 3rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo h2 {
    font-size: 1.5rem;
}

.footer-info {
    text-align: right;
    color: var(--text-color-muted);
    font-size: 0.9rem;
}

.footer-info .vat {
    margin-top: 0.5rem;
}

/* ==========================================================================
   Animations & Scroll Reveal Framework
   ========================================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-smooth), transform var(--transition-smooth);
}

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

.fade-in-up {
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Responsive Design (Mobile & Tablet)
   ========================================================================== */
@media screen and (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        display: none; /* In a full build, this would toggle to a hamburger menu. Keeping simple for static page */
    }
}

@media screen and (max-width: 600px) {
    .section {
        padding: 4rem 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 3rem;
    }

    #hero h1 {
        font-size: 2.5rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-info {
        text-align: center;
    }
}
