/**
 * Stateful Coders Website - CSS Styles
 * Contains all styling including glassmorphism effects, animations, and responsive design
 */

/* Base Styles */
body {
    background-color: #0f172a;
    color: #e2e8f0;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Glassmorphism Utilities */
.glass {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(148, 163, 184, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.15);
}

/* Canvas Background (Disabled) */
#bg-canvas {
    display: none;
}

/* Page Transition Wrapper */
.page-content {
    min-height: 100vh;
    padding-top: 80px;
}

/* Active Navigation State */
.active-nav {
    color: #38bdf8;
    position: relative;
}

.active-nav::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #38bdf8;
    box-shadow: 0 0 8px #38bdf8;
}

/* Loader */
#loader {
    position: fixed;
    inset: 0;
    background: #0f172a;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

/* 3D Tilt Effect Container */
.tilt-container {
    perspective: 1000px;
}

.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.1s ease;
}

/* Interactive Button Glow */
.btn-glow {
    position: relative;
}

/* Marquee Scroller */
.marquee-container {
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

/* Project Slideshow Styles */
.slideshow-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 1rem;
}

.slideshow-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slideshow-slide.active {
    opacity: 1;
}

.slideshow-nav {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.slideshow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slideshow-dot.active {
    background: #38bdf8;
    box-shadow: 0 0 10px #38bdf8;
}

.slideshow-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.slideshow-arrow:hover {
    background: rgba(56, 189, 248, 0.3);
    border-color: #38bdf8;
}

.slideshow-arrow.prev {
    left: 1rem;
}

.slideshow-arrow.next {
    right: 1rem;
}

/* Alternate Section Layout */
.alternate-section:nth-child(even) {
    flex-direction: row-reverse;
}

/* Responsive adjustments for alternate sections */
@media (max-width: 1024px) {

    .alternate-section,
    .alternate-section:nth-child(even) {
        flex-direction: column;
    }
}

/* Honeypot Spam Trap - Hidden from users but visible to bots */
.hidden-field {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 0;
    z-index: -1;
}

/* Project Brand Colors */
/* BJT Works: #00144F */
.text-bjt {
    color: #3366ff;
}

.bg-bjt {
    background-color: rgba(0, 20, 79, 0.2);
}

.border-bjt {
    border-color: rgba(0, 20, 79, 0.3);
}

/* DosthAdda: #3096EB */
.text-dosthadda {
    color: #3096EB;
}

.bg-dosthadda {
    background-color: rgba(48, 150, 235, 0.2);
}

.border-dosthadda {
    border-color: rgba(48, 150, 235, 0.3);
}

/* JPPL Sales: #009788 */
.text-jppl {
    color: #00c9b7;
}

.bg-jppl {
    background-color: rgba(0, 151, 136, 0.2);
}

.border-jppl {
    border-color: rgba(0, 151, 136, 0.3);
}

/* Xplooreze: Orange */
.text-xplooreze {
    color: #f97316;
}

.bg-xplooreze {
    background-color: rgba(249, 115, 22, 0.2);
}

.border-xplooreze {
    border-color: rgba(249, 115, 22, 0.3);
}

/* Trade Social: #3A7360 */
.text-tradesocial {
    color: #4ade80;
}

.bg-tradesocial {
    background-color: rgba(58, 115, 96, 0.2);
}

.border-tradesocial {
    border-color: rgba(58, 115, 96, 0.3);
}