/* =======================================
   CSS Reset & Base Styles
======================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Dark Theme Colors */
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2a2a2a;

    /* Green/Yellow Accent Colors */
    --accent-green: #00ff88;
    --accent-yellow: #ffeb3b;
    --accent-green-dim: #00cc6a;
    --accent-yellow-dim: #ffc107;

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #888888;

    /* Gradient Effects */
    --gradient-primary: linear-gradient(135deg, var(--accent-green), var(--accent-yellow));
    --gradient-dark: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));

    /* Fonts */
    --font-primary: 'Inter', sans-serif;
    --font-display: 'Orbitron', monospace;

    /* Shadows & Effects */
    --shadow-glow: 0 0 20px rgba(0, 255, 136, 0.3);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
    --border-glow: 1px solid rgba(0, 255, 136, 0.5);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
    --transition-slow: 0.6s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

/* =======================================
   Navigation Styles
======================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: var(--border-glow);
    z-index: 1000;
    transition: var(--transition-medium);
}

.navbar.scrolled {
    background: rgba(26, 26, 26, 0.98);
    box-shadow: var(--shadow-card);
}

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

.nav-logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    transition: var(--transition-fast);
}

.nav-logo a:hover {
    color: var(--accent-green);
    text-shadow: var(--shadow-glow);
}

.nav-logo i {
    font-size: 1.8rem;
    color: var(--accent-green);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 8px;
    transition: var(--transition-fast);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-green);
    background: rgba(0, 255, 136, 0.1);
    transform: translateY(-2px);
}

.nav-link i {
    font-size: 1.1rem;
}

/* Mobile Navigation */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle .bar {
    width: 25px;
    height: 3px;
    background: var(--accent-green);
    transition: var(--transition-fast);
    border-radius: 2px;
}

.nav-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* =======================================
   Typography & Layout
======================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

/* Special padding for first section after hero to accommodate extended legs */
#coverage-area {
    padding-top: 200px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* =======================================
   Hero Section
======================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    overflow: visible;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/herosection.jpeg') center/cover no-repeat;
    opacity: 0.1;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: left;
    max-width: 100%;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content .hero-cta {
    justify-content: flex-start;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 30px;
    font-weight: 300;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* =======================================
   Hero Image Styles
======================================= */
.hero-image {
    position: absolute;
    right: 0;
    bottom: 20px;
    display: flex;
    justify-content: center;
    height: calc(90%);
    z-index: 1.5;
}

.hero-img {
    width: auto;
    height: 100%;
    max-height: none;
    border-radius: 0;
    filter:
        drop-shadow(0 20px 40px rgba(0, 0, 0, 0.8)) contrast(1.15) brightness(1.08) saturate(1.12) hue-rotate(2deg) blur(0px);
    transition: none;
    position: relative;
    z-index: 1.5;
    object-fit: cover;
    object-position: center bottom;
    transform: perspective(1000px) rotateY(-5deg) translateZ(50px);
}

.hero-image-glow {
    display: none;
}



.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: var(--transition-medium);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-primary);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-green);
    border: 2px solid var(--accent-green);
}

.btn-secondary:hover {
    background: var(--accent-green);
    color: var(--bg-primary);
    transform: translateY(-3px);
}

/* =======================================
   Card Components
======================================= */
.card {
    background: var(--gradient-dark);
    border: var(--border-glow);
    border-radius: 15px;
    padding: 30px;
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.1), transparent);
    transition: var(--transition-slow);
}

.card:hover::before {
    left: 100%;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-card);
    border-color: var(--accent-green);
}

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

.card-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.card-description {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* =======================================
   Grid Layout
======================================= */
.grid {
    display: grid;
    gap: 30px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* =======================================
   Gallery Styles
======================================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    aspect-ratio: 1;
    cursor: pointer;
    transition: var(--transition-medium);
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-card);
}

.gallery-item img {

    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-medium);
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-medium);
}

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

.gallery-overlay i {
    font-size: 2rem;
    color: var(--accent-green);
}

/* =======================================
   Contact Styles
======================================= */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.contact-item {
    text-align: center;
    padding: 30px;
    background: var(--gradient-dark);
    border: var(--border-glow);
    border-radius: 15px;
    transition: var(--transition-medium);
}

.contact-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-green);
}

.contact-item i {
    font-size: 2.5rem;
    color: var(--accent-green);
    margin-bottom: 15px;
}

.contact-item h3 {
    font-family: var(--font-display);
    margin-bottom: 10px;
    color: var(--text-primary);
}

.contact-item a {
    color: var(--accent-green);
    text-decoration: none;
    transition: var(--transition-fast);
}

.contact-item a:hover {
    color: var(--accent-yellow);
    text-shadow: var(--shadow-glow);
}

/* =======================================
   Footer Styles
======================================= */
.footer {
    background: var(--bg-secondary);
    border-top: var(--border-glow);
    padding: 60px 0 30px;
    margin-top: 100px;
}

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

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-family: var(--font-display);
    color: var(--accent-green);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section p {
    color: var(--text-secondary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-section a:hover {
    color: var(--accent-green);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border: var(--border-glow);
    border-radius: 50%;
    color: var(--accent-green);
    font-size: 1.2rem;
    transition: var(--transition-fast);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--bg-tertiary);
    color: var(--text-muted);
}

/* =======================================
   Scroll to Top Button
======================================= */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: var(--bg-primary);
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-medium);
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

/* =======================================
   3D Scene Container
======================================= */
.scene-container {
    position: relative;
    height: 500px;
    border: var(--border-glow);
    border-radius: 15px;
    overflow: hidden;
    margin: 40px 0;
}

.scene-container canvas {
    width: 100%;
    height: 100%;
}

/* Override box styling for hero background animation */
#snake-animation {
    border: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
    margin: 0 !important;
    box-shadow: none !important;
    pointer-events: none;
    /* allow clicks to pass through */
    /* Make the animation cover the entire hero section */
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* behind hero content (z-index: 2) */
    opacity: 0.45;
    /* increased visibility for bigger impact */
}

/* Ensure the WebGL canvas scales with the container */
#snake-animation canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

/* =======================================
   Animations
======================================= */
@keyframes glow {
    from {
        text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
    }

    to {
        text-shadow: 0 0 30px rgba(0, 255, 136, 0.8);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.animate-slide-in {
    animation: slideIn 0.8s ease forwards;
}

/* =======================================
   Responsive Design
======================================= */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(26, 26, 26, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: start;
        padding-top: 50px;
        transition: var(--transition-medium);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 20px;
        width: 100%;
        padding: 0 20px;
    }

    .nav-link {
        width: 100%;
        justify-content: center;
        padding: 15px;
        font-size: 1.2rem;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-title {
        margin-top: 75px;
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-content {
        text-align: center;
    }

    .hero-content .hero-cta {
        justify-content: center;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-image {
        position: relative;
        right: auto;
        bottom: auto;
        width: 100%;
        height: 60vh;
        margin-top: 30px;
        z-index: 1;
    }

    .hero-img {
        height: 100%;
        transform: none;
        filter:
            drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5)) contrast(1.1) brightness(1.05) saturate(1.1);
    }

    .hero .grid-2 {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }

    .contact-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
}

@media (max-width: 480px) {

    .container,
    .nav-container,
    .footer-container {
        padding: 0 15px;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

    .section {
        padding: 60px 0;
    }

    .card {
        padding: 20px;
    }

    .btn {
        margin-top: 10px;
        padding: 12px 24px;
        font-size: 1rem;
    }
}