/* DevCreative | Main Stylesheet 2026
    Theme: Enterprise Logic meets Creative Vision
*/

:root {
    --primary: #3b82f6;        /* Electric Blue */
    --secondary: #10b981;      /* Emerald Green */
    --accent: #8b5cf6;         /* Roblox/Creative Purple */
    --bg-dark: #0f172a;        /* Deep Navy */
    --bg-card: rgba(30, 41, 59, 0.7);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- Global Resets --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* --- Layout & Alignment --- */
.section, .section-alt {
    padding: 100px 5%;
    max-width: 1400px;
    margin: 0 auto;
    text-align: center; /* Center aligns all headers and text */
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 50px;
    font-weight: 800;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    margin: 15px auto 0;
    border-radius: 2px;
}

/* --- Header / Navigation --- */
.main-nav {
    position: fixed;
    top: 0; 
    width: 100%;
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.logo { 
    font-size: 1.5rem; 
    font-weight: 800; 
    text-decoration: none; 
    color: white; 
    letter-spacing: -0.5px;
}
.logo span { color: var(--primary); }

.main-nav nav a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    transition: var(--transition);
}

.main-nav nav a:hover { color: var(--primary); }

/* --- Hero Section --- */
.hero-premium {
    padding: 180px 5% 100px;
    background: radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.15), transparent),
                radial-gradient(circle at 20% 80%, rgba(16, 185, 129, 0.1), transparent);
    text-align: center;
}

.badge-new {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    border: 1px solid rgba(59, 130, 246, 0.3);
    display: inline-block;
}

.hero-premium h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin: 1.5rem 0;
    line-height: 1.1;
    font-weight: 800;
}

.hero-premium h1 span {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-premium p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.hero-cta-group { 
    margin-top: 3rem; 
    display: flex; 
    gap: 15px; 
    justify-content: center; 
}

/* --- Hero Stats --- */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 80px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.stat-box {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.stat-box:hover { 
    transform: translateY(-10px); 
    border-color: var(--primary);
    background: rgba(30, 41, 59, 0.9);
}

.stat-icon { font-size: 2rem; display: block; margin-bottom: 10px; }

/* --- Carousels --- */
.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.carousel-container {
    display: flex;
    overflow-x: auto;
    gap: 25px;
    padding: 20px 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.carousel-container::-webkit-scrollbar { display: none; }

.carousel-item {
    flex: 0 0 calc(33.333% - 20px);
    min-width: 320px;
    scroll-snap-align: center;
}

/* --- Service & Portfolio Cards --- */
.card, .product-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    height: 100%;
    transition: var(--transition);
    text-align: left; /* Text inside cards remains left-aligned */
}

.card { padding: 2.5rem; }

.card:hover, .product-card:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.card .icon {
    font-size: 2.5rem;
    display: inline-block;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 5px 10px rgba(59, 130, 246, 0.2));
}
.service-list {
    list-style: none;
    margin-top: 1.5rem;
    color: var(--text-muted);
}

.service-list li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.service-list li::before {
    content: "→";
    color: var(--secondary);
    margin-right: 10px;
    font-weight: bold;
}

/* --- Portfolio Images --- */
.img-container {
    height: 220px;
    width: 100%;
    overflow: hidden;
    position: relative;
    background: #1b5e20; /* Your green as a fallback while loading */
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease;
}

.product-card:hover img { transform: scale(1.1); }

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(59, 130, 246, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
}

.product-card:hover .portfolio-img {
    transform: scale(1.1); /* Zoom effect on hover */
}

.product-info { padding: 20px; }

.img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(15, 23, 42, 0.4) 100%);
    pointer-events: none;
}
/* --- Badges & Buttons --- */
.badge {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 6px;
    margin-bottom: 12px;
    display: inline-block;
}
.badge.creative { background: var(--accent); color: white; }
.badge.pwa { background: #f59e0b; color: white; }

.btn-primary, .btn-secondary {
    padding: 14px 30px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: 0.3s;
}

.btn-primary { background: var(--primary); color: white; border: none; cursor: pointer; }
.btn-primary:hover { box-shadow: 0 10px 20px rgba(59, 130, 246, 0.4); opacity: 0.9; }

.btn-secondary { background: rgba(255,255,255,0.05); color: white; border: 1px solid var(--glass-border); }
.btn-secondary:hover { background: rgba(255,255,255,0.1); }

/* --- Carousel Controls --- */
.carousel-control {
    background: var(--bg-card);
    color: white;
    border: 1px solid var(--glass-border);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    position: absolute;
    z-index: 10;
    backdrop-filter: blur(5px);
    transition: 0.3s;
}

.carousel-control:hover { background: var(--primary); border-color: var(--primary); }
.carousel-control.prev { left: -20px; }
.carousel-control.next { right: -20px; }

/* --- Start a Project (Contact) Section Fix --- */
#contact {
    display: flex;
    flex-direction: column;
    align-items: center;      /* Centers items horizontally */
    justify-content: center;   /* Centers items vertically */
    text-align: center;        /* Centers text lines */
    
    background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    
    padding: 80px 40px;
    margin: 80px auto;        /* Centers the whole section box */
    max-width: 900px;         /* Keeps it from getting too wide */
    width: 90%;               /* Responsive width */
}

#contact .section-title {
    margin-bottom: 20px;
}

#contact p {
    max-width: 550px;
    margin: 0 auto 40px auto; /* Centers the paragraph block */
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Ensure the button is a block-level element for centering */
#contact .btn-primary {
    display: inline-block;
    min-width: 250px;
    font-size: 1.1rem;
    padding: 18px 45px;
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.2);
}

.footer-note {
    margin-top: 50px !important;
    display: inline-block;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 30px;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Roblox Modal --- */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(15px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-slide img {
    max-height: 80vh;
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.close-modal {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
}

/* --- Scroll Reveal Classes --- */
.reveal-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
/* --- Mobile Styles --- */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        z-index: 1001;
    }

    /* Transform Nav into a Full-Screen Overlay */
    .nav-links {
        position: fixed;
        left: -100%; /* Hidden off-screen */
        top: 0;
        flex-direction: column;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(15px);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s;
        justify-content: center;
        display: flex;
        gap: 2rem;
    }

    .nav-links.active {
        left: 0; /* Slide in */
    }

    .nav-links a {
        margin-left: 0;
        font-size: 1.5rem;
    }

    /* Animate Hamburger into an 'X' when active */
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    
    /* Hero Adjustments */
    .hero-premium h1 { font-size: 2.2rem; }
    .hero-stats { grid-template-columns: 1fr; }
    .carousel-item { flex: 0 0 90%; }
}

/* --- Tech Ecosystem Styling --- */
.tech-ecosystem {
    margin: 40px 0;
    width: 100%;
}

.tech-stack-label {
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: var(--text-muted);
    margin-bottom: 30px;
    font-weight: 700;
    opacity: 0.8;
}

.tech-stack-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto 50px;
}

.stack-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.stack-item img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* Logic items hover Blue */
.stack-item.logic:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
    transform: translateY(-5px);
}

/* Creative items hover Purple */
.stack-item.creative:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
    transform: translateY(-5px);
}

/* Special styling for the Roblox icon to make it pop */
.stack-item.creative img {
    filter: drop-shadow(0 0 5px var(--accent));
}
/* --- Team Section --- */
.team-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
}

.team-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    width: 320px;
    transition: var(--transition);
}

.member-image {
    height: 350px;
    position: relative;
    overflow: hidden;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease;
}

.team-card:hover .member-image img {
    transform: scale(1.05);
}

.member-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
}

.team-card:hover .member-overlay { opacity: 1; }

.social-link {
    background: var(--primary);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
}

.member-info {
    padding: 25px;
    text-align: left;
}

.member-info h4 {
    font-size: 1.25rem;
    margin-bottom: 5px;
}

.member-info .role {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.member-info .bio {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Placeholder card styling */
.team-card.placeholder {
    opacity: 0.5;
    border-style: dashed;
}

.plus-icon {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-muted);
}
/* --- Desktop Nav --- */
.menu-toggle {
    display: none; /* Hidden on desktop */
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background: white;
}

/* --- Mobile Styles --- */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        z-index: 1001;
    }

    /* Transform Nav into a Full-Screen Overlay */
    .nav-links {
        position: fixed;
        left: -100%; /* Hidden off-screen */
        top: 0;
        flex-direction: column;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(15px);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s;
        justify-content: center;
        display: flex;
        gap: 2rem;
    }

    .nav-links.active {
        left: 0; /* Slide in */
    }

    .nav-links a {
        margin-left: 0;
        font-size: 1.5rem;
    }

    /* Animate Hamburger into an 'X' when active */
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    
    /* Hero Adjustments */
    .hero-premium h1 { font-size: 2.2rem; }
    .hero-stats { grid-template-columns: 1fr; }
    .carousel-item { flex: 0 0 90%; }
}
.img-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.zoom-icon {
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(59, 130, 246, 0.8);
    padding: 8px 15px;
    border-radius: 50px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.img-container:hover .img-overlay {
    background: rgba(15, 23, 42, 0.4);
}

.img-container:hover .zoom-icon {
    opacity: 1;
    transform: translateY(0);
}
#portfolioLightbox {
    cursor: zoom-out; /* Click anywhere outside the image to close */
}

#portfolioLightbox .modal-content {
    cursor: default; /* Don't show zoom-out cursor on the actual image */
    max-width: 85vw;
}

#portfolioLightbox img {
    border: 2px solid var(--glass-border);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}
/* Ensure the grid container allows for spacing */
.tech-stack-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    padding: 20px 0;
}

/* Style the individual item containers */
.stack-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 100px;
    transition: transform 0.3s ease;
    filter: grayscale(20%);
}

/* CRITICAL: This makes the <img> tags visible */
.stack-item img {
    width: 48px;  /* Control the size of your tech logos */
    height: 48px;
    margin-bottom: 10px;
    object-fit: contain; /* Prevents stretching */
    display: block;
}

.stack-item span {
    font-size: 0.9rem;
    color: #ffffff; /* Adjust based on your background */
    font-weight: 500;
}

.stack-item:hover {
    transform: translateY(-5px);
    filter: grayscale(0%);
}

#contact {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers the button and text */
    text-align: center;
    gap: 20px; /* Space between the grid, button, and payments */
    padding: 60px 20px;
}

/* Ensure the button and footer take up their own row */
.btn-primary {
    display: inline-block;
    width: fit-content;
    margin: 20px auto;
}

.footer-note {
    width: 100%;
    margin-top: 10px;
    font-size: 0.9rem;
}