/* FILE: style-prototype.css */

/* General Resets & Typography */
:root {
    --primary-color: #00f0ff; /* Bright Cyan */
    --secondary-color: #a100ff; /* Bright Purple */
    
    --main-bg: #0d0d1a;        /* Very dark navy */
    --content-bg: #1a1a2e;    /* Dark purple-gray for cards/sections */
    
    --text-color: #e0e0e0;     /* Light gray text */
    --text-muted: #888;       /* Muted text */
    --text-on-light: #0d0d1a; /* Dark text for light/bright backgrounds */

    --border-color: #333;
    --spacing: 1.5rem;
    
    --nav-width-expanded: 280px; 

    /* --- Glow Effect (Dimmer) --- */
    --glow-shadow-primary: 0 0 8px var(--primary-color), 0 0 15px rgba(0, 240, 255, 0.3);
    --glow-shadow-secondary: 0 0 8px var(--secondary-color), 0 0 15px rgba(161, 0, 255, 0.3);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--main-bg);
    overflow-x: hidden; /* Prevent horizontal scroll */
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: #fff;
    text-shadow: 0 0 6px var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing);
}

.button {
    display: inline-block;
    padding: 0.8em 1.8em;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.button-primary {
    background-color: var(--primary-color);
    color: var(--text-on-light);
    box-shadow: 0 5px 15px rgba(0, 240, 255, 0.2);
}

.button-primary:hover {
    color: var(--text-on-light);
    background-color: #fff;
    box-shadow: var(--glow-shadow-primary);
    transform: translateY(-2px);
}

.button-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.7em 1.7em;
}

.button-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-on-light);
    box-shadow: var(--glow-shadow-primary);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

/* --- Main Content Wrapper --- */
main,
#site-footer {
    margin-left: 0;
    width: 100%;
    transition: none; 
}


/* --- Header & Navigation --- */
#site-header {
    background-color: rgba(26, 26, 46, 0.5); /* 50% of var(--content-bg) */
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px);
    
    border-right: 1px solid var(--border-color);
    box-shadow: 2px 0 15px rgba(0,0,0,0.2);
    
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    
    width: var(--nav-width-expanded); 
    
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    z-index: 1000;
    overflow-x: hidden;
    
    transform: translateX(calc(var(--nav-width-expanded) * -1 + 10px));
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

#site-header:hover {
    transform: translateX(0); 
}

#site-header .container {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    padding: 1.5rem;
    width: 100%;
    white-space: nowrap;
}

.logo a {
    color: #fff;
    text-shadow: 0 0 5px rgba(255,255,255,0.2);
}
.logo a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 6px var(--primary-color);
}

#main-nav {
    width: 100%;
}

#main-nav ul {
    list-style: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 0;
}

#main-nav li {
    width: 100%;
}

/* Links are hidden by default */
#main-nav a {
    color: var(--text-color);
    font-weight: 600;
    padding: 1rem 1.5rem;
    display: block;
    white-space: nowrap;
    
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

#main-nav a:not(.button)::after {
    display: none;
}

#main-nav a:not(.button):hover {
    color: #fff;
    background-color: rgba(0, 240, 255, 0.1);
    text-shadow: 0 0 6px var(--primary-color);
}

/* Links fade in when the menu is hovered (slid out) */
#site-header:hover #main-nav a {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.1s;
}

.menu-toggle {
    display: none;
}


/* --- Hero Section --- */
.hero-section {
    position: relative;
    color: var(--light-text);
    text-align: center;
    overflow: hidden;

    height: 100vh;
    min-height: 600px; /* Ensures it's not too short on wide screens */
    padding: 0; /* Remove padding */

    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Static Wallpaper */
    background-image: url('https://images.pexels.com/photos/956981/milky-way-starry-sky-night-sky-star-956981.jpeg');
    background-position: center center;
    background-size: cover;
    background-attachment: fixed; 
}

/* Moving Wallpaper */
.hero-background {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(45deg, #3a1c71, #a100ff, #00f0ff);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    opacity: 0.6; 
    z-index: 1;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-content {
    position: relative; z-index: 2; max-width: 800px; margin: 0 auto;
}
.hero-content h1 {
    font-size: 4rem; margin-bottom: 1.5rem; font-weight: 700; line-height: 1.1; color: #fff;
    text-shadow: 0 0 15px rgba(255,255,255,0.3);
}
.hero-content p {
    font-size: 1.3rem; margin-bottom: 2.5rem; opacity: 0.9;
}

/* --- Modules (Sections) --- */
.module {
    padding: 6rem 0;
    border-bottom: 1px solid var(--border-color);
}
.module:last-of-type {
    border-bottom: none;
}
.module:nth-child(even) {
    background-color: var(--content-bg);
}

/* --- Services Section --- */
.services-section { text-align: center; }
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.service-item {
    background-color: var(--content-bg);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.service-item:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.3);
}
.service-item h3 {
    font-size: 1.8rem; margin-bottom: 1rem; color: var(--primary-color);
}
.service-item .icon {
    font-size: 2.2rem; margin-right: 0.5rem; vertical-align: middle;
}

/* --- Portfolio Section --- */
.portfolio-section {
    background-color: var(--main-bg); color: var(--text-color);
}
.portfolio-section .section-title { color: #fff; }
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}
.portfolio-item {
    position: relative; border-radius: 12px; overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    border: 1px solid var(--border-color);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.portfolio-item img {
    width: 100%; height: 250px; object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
    filter: grayscale(30%);
}
.item-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 240, 255, 0.85);
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    opacity: 0; transition: opacity 0.4s ease;
    padding: 1.5rem; text-align: center;
}
.portfolio-item:hover {
    transform: scale(1.02);
    box-shadow: var(--glow-shadow-primary);
}
.portfolio-item:hover img {
    transform: scale(1.05); filter: grayscale(0%);
}
.portfolio-item:hover .item-overlay { opacity: 1; }
.item-overlay h3 {
    font-size: 2rem; margin-bottom: 0.5rem; color: var(--text-on-light);
}
.item-overlay p {
    color: var(--text-on-light); margin-bottom: 1rem; font-weight: 500;
}
.view-project {
    color: var(--text-on-light); font-weight: 600;
    border-bottom: 2px solid var(--text-on-light);
    padding-bottom: 0.3rem; transition: border-color 0.3s ease;
}
.view-project:hover {
    color: var(--text-on-light);
    text-shadow: 0 0 5px rgba(13, 13, 26, 0.3);
    border-color: var(--text-on-light);
}

/* --- About Section --- */
.about-section { background-color: var(--content-bg); }
.about-section .container {
    display: flex; align-items: center; gap: 4rem; flex-wrap: wrap;
}
.about-content { flex: 2; min-width: 300px; }
.about-content p {
    margin-bottom: var(--spacing); font-size: 1.1rem; color: var(--text-color);
}
.about-image {
    flex: 1; min-width: 250px; height: 350px;
    background: url('https://via.placeholder.com/600x800/8a2be2/ffffff?text=Our+Team') center center / cover no-repeat;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}
.about-image:hover { box-shadow: var(--glow-shadow-secondary); }

/* --- Blog Section --- */
.blog-section { background-color: var(--main-bg); }
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.blog-post-item {
    background-color: var(--content-bg); border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.blog-post-item:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
    box-shadow: 0 0 20px rgba(161, 0, 255, 0.3);
}
.blog-post-item img {
    width: 100%; height: 200px; object-fit: cover;
    filter: grayscale(40%); transition: filter 0.3s ease;
}
.blog-post-item:hover img { filter: grayscale(0%); }
.blog-post-item h3 {
    font-size: 1.5rem; margin: 1.5rem 1.5rem 0.5rem;
}
.blog-post-item h3 a {
    color: #fff; transition: color 0.3s ease, text-shadow 0.3s ease;
}
.blog-post-item h3 a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 6px var(--primary-color);
}
.blog-post-item .post-meta {
    font-size: 0.9rem; color: var(--text-muted); margin: 0 1.5rem 1rem;
}
.blog-post-item p {
    padding: 0 1.5rem 1.5rem; color: var(--text-color);
}

/* --- Contact Section --- */
.contact-section {
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-on-light);
}
.contact-section .section-title, .contact-section p {
    color: var(--text-on-light);
    text-shadow: 0 0 10px rgba(0,0,0,0.2);
}
.contact-form {
    max-width: 600px; margin: 3rem auto 0;
    display: flex; flex-direction: column; gap: var(--spacing);
}
.contact-form input, .contact-form textarea {
    width: 100%; padding: 1rem 1.2rem; border: none; border-radius: 8px;
    font-family: 'Poppins', sans-serif; font-size: 1rem;
    background-color: rgba(0,0,0,0.15);
    color: #fff; outline: none;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
}
.contact-form input::placeholder, .contact-form textarea::placeholder {
    color: rgba(255,255,255,0.7);
}
.contact-form input:focus, .contact-form textarea:focus {
    background-color: rgba(0,0,0,0.25);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
}
.contact-form .button-primary {
    align-self: flex-start; width: auto; margin-top: 1rem;
    background-color: #fff; color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.contact-form .button-primary:hover {
    background-color: var(--main-bg); color: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

/* --- Footer --- */
#site-footer {
    background-color: #000;
    color: var(--text-muted);
    padding: 4rem 0;
    font-size: 0.9rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem; margin-bottom: 3rem;
    border-bottom: 1px solid #333;
    padding-bottom: 3rem;
}
.footer-col h4 {
    color: #fff; font-size: 1.2rem; margin-bottom: 1.5rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.8rem; }
.footer-col a {
    color: var(--text-muted);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}
.footer-col a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 6px var(--primary-color);
}
/* Footer Social Icons */
.footer-col .social-icons {
    display: flex; /* Arrange icons horizontally */
    gap: 1.5rem;   /* Space them out */
}
.footer-col .social-icons li {
    margin-bottom: 0;
}
.footer-col .social-icons a {
    font-size: 1.8rem;
}
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
}


/* --- Animations (JavaScript-controlled) --- */
.fade-in-up {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in-up.animate { opacity: 1; transform: translateY(0); }
.fade-in-up.delay-1 { transition-delay: 0.2s; }
.fade-in-up.delay-2 { transition-delay: 0.4s; }
.fade-in-up.delay-3 { transition-delay: 0.6s; }
.fade-in-up.delay-4 { transition-delay: 0.8s; }

.reveal-on-scroll {
    opacity: 0; transform: translateY(50px) scale(0.95);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal-on-scroll.animate { opacity: 1; transform: translateY(0) scale(1); }
.reveal-on-scroll.delay-1 { transition-delay: 0.15s; }
.reveal-on-scroll.delay-2 { transition-delay: 0.3s; }
.reveal-on-scroll.delay-3 { transition-delay: 0.45s; }
.reveal-on-scroll.delay-4 { transition-delay: 0.6s; }


/* --- Responsive Adjustments --- */
@media (max-width: 900px) {

    /* --- Reset Header to Top Bar --- */
    #site-header {
        position: sticky;
        height: auto;
        width: 100%;
        flex-direction: row;
        
        transform: none !important; 
        
        background-color: rgba(26, 26, 46, 0.5); 
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    #site-header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0 var(--spacing);
    }
    
    .logo {
        padding: 1rem 0;
        width: auto;
    }

    /* --- Reset Nav Menu to original mobile version --- */
    #main-nav {
        width: auto;
    }
    
    #main-nav ul {
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--content-bg);
        box-shadow: 0 10px 20px rgba(0,0,0,0.3);
        border-top: 1px solid var(--border-color);
        padding: 1rem 0;
        
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    }

    #main-nav ul.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    #main-nav li {
        text-align: center;
        width: 100%;
    }
    
    #main-nav a {
        display: block;
        padding: 0.8rem var(--spacing);
        color: var(--text-color);
        opacity: 1; 
        transform: none;
    }
    
    #main-nav a:not(.button):hover {
        background-color: transparent;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    /* --- Other Responsive Tweaks --- */
    
    .hero-section { 
        height: auto; /* Reset 100vh */
        padding: 8rem 0; /* Restore padding */
        display: block; /* Reset flexbox */
        background-attachment: scroll; /* Turn off fixed bg on mobile */
    }
    
    .hero-content h1 { font-size: 2.5rem; }
    
    .module { padding: 4rem 0; }
    .section-title { font-size: 1.8rem; }
    .service-item, .portfolio-item, .blog-post-item {
        margin-bottom: 1.5rem;
    }
    .about-section .container { flex-direction: column; text-align: center; }
    .about-image { width: 100%; max-width: 400px; height: 300px; }
    .about-content { min-width: unset; }
    .contact-form .button-primary { align-self: center; }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
}