/* --- 1. FONTS & VARIABLES --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&display=swap');

:root {
    --bg-color: #050505;       /* Deep Black */
    --card-bg: #111111;        /* Slightly lighter for cards */
    --text-white: #ffffff;
    --text-grey: #888888;
    --accent: #FF4400;         /* Leonardo Orange */
    --gradient-start: #FF4400; 
    --gradient-end: #FF9900;   
}

/* --- 2. GLOBAL RESET --- */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

a { 
    text-decoration: none; 
    color: inherit; 
    transition: 0.3s; 
}

/* --- 3. ENTRANCE ANIMATIONS --- */
.animate-on-load {
    opacity: 0;
    transform: translateY(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

body.loaded .animate-on-load {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.6s; }

/* --- 4. HEADER --- */
header {
    position: fixed;
    top: 0; 
    left: 50%;
    transform: translateX(-50%); 
    width: 100%; 
    z-index: 1000;
    padding: 25px 50px;
    background: transparent;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header.scrolled {
    top: 20px; 
    width: 90%; 
    max-width: 1200px;
    border-radius: 50px; 
    background: rgba(15, 15, 15, 0.85); 
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 30px; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.08);
}

.header-logo {
    opacity: 0; 
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.4s ease;
}

header.scrolled .header-logo {
    opacity: 1; 
    transform: translateY(0);
    pointer-events: auto;
}

.header-logo img {
    height: 50px; 
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.btn-discord {
    border: 1px solid rgba(255,255,255,0.3);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    background: rgba(0,0,0,0.5); 
}

.btn-discord:hover {
    background: #fff;
    color: #000;
    box-shadow: 0 0 20px rgba(255,255,255,0.4);
}

/* --- 5. HERO SECTION --- */
.hero {
    min-height: 100vh; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 150px 20px 50px 20px; 
    background: radial-gradient(circle at center, #1a1a1a 0%, #000000 70%);
}

.hero-main-logo {
    height: 300px; 
    margin-bottom: 40px;
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.3));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-grey);
    max-width: 650px;
    margin: 0 auto 50px auto;
}

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

.btn-cta, .btn-gradient {
    padding: 18px 50px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.2rem;
    display: inline-block;
}

.btn-cta { background: var(--text-white); color: #000; }
.btn-cta:hover {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 0 40px rgba(255, 68, 0, 0.5);
    transform: translateY(-5px);
}

.btn-gradient {
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    color: #fff;
    box-shadow: 0 10px 30px rgba(255, 68, 0, 0.3);
}

.btn-gradient:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 153, 0, 0.4);
    filter: brightness(1.1);
}

/* --- 6. SERVICES GRID --- */
.services {
    padding: 100px 50px;
    max-width: 1400px;
    margin: 0 auto;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.card {
    background: var(--card-bg);
    padding: 50px;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.1s ease-out, border-color 0.3s, box-shadow 0.3s;
    transform-style: preserve-3d;
}

.card:hover {
    border-color: var(--accent);
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

.card h3 { font-size: 1.8rem; margin-bottom: 20px; color: #fff; }
.card p { font-size: 1.1rem; color: var(--text-grey); }

/* --- 7. EXAMPLE SHOWCASE SECTION (Black to White Edition) --- */
.showcase {
    padding: 100px 50px;
    max-width: 1400px;
    margin: 100px auto;
    text-align: center;
}

.showcase-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.project-grid {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

.project-card {
    max-width: 900px;
    width: 100%;
    background: var(--card-bg);
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: block;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.project-image-container {
    position: relative;
    height: 500px;
    overflow: hidden;
    /* Black to White Background Gradient */
    background: linear-gradient(to right, #000000, #ffffff);
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.project-overlay {
    position: absolute;
    inset: 0;
    /* Subtle Dark Glass Overlay */
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.project-overlay span {
    background: #ffffff;
    color: #000000;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.project-info {
    padding: 40px;
    text-align: left;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.project-card:hover {
    transform: translateY(-15px);
    border-color: #ffffff;
    box-shadow: 0 30px 60px rgba(255, 255, 255, 0.05);
}

.project-card:hover .project-img { transform: scale(1.05); }
.project-card:hover .project-overlay { opacity: 1; }
.project-card:hover .project-overlay span { transform: translateY(0); }

/* --- 8. VISUAL EFFECTS GALLERY --- */
.effects-section {
    padding: 100px 50px;
    max-width: 1400px;
    margin: 150px auto;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.subtitle {
    font-size: 1rem;
    color: var(--text-grey);
    margin-bottom: 60px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

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

.effect-box {
    height: 200px;
    background: #111;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05); 
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Gallery Hover Animations */
.effect-glow:hover { box-shadow: 0 0 50px rgba(255, 68, 0, 0.4); border-color: var(--accent); transform: translateY(-5px); }
.effect-shimmer:hover::before { animation: shimmerMove 1.5s infinite; }
.effect-pulse:hover { animation: pulse-ring 2s infinite; border-color: #ff2a2a; }

@keyframes shimmerMove { 0% { left: -100%; } 100% { left: 200%; } }
@keyframes pulse-ring { 
    0% { box-shadow: 0 0 0 0 rgba(255, 42, 42, 0.7); } 
    70% { box-shadow: 0 0 0 15px rgba(255, 42, 42, 0); } 
    100% { box-shadow: 0 0 0 0 rgba(255, 42, 42, 0); } 
}

/* --- 9. MOBILE RESPONSIVENESS --- */
@media (max-width: 900px) {
    header { padding: 20px 30px; }
    header.scrolled { width: 95%; }
    .hero-main-logo { height: 180px; } 
    .hero-buttons { flex-direction: column; align-items: center; }
    .project-image-container { height: 300px; }
    .showcase { padding: 50px 20px; }
    .showcase-title { font-size: 2.2rem; }
}
