/* =========================================
   1. GLOBAL VARIABLES & RESET
   ========================================= */
:root {
    --bg-dark: #050505;
    /* Deepest Black */
    --bg-light: #0f0f11;
    /* Slightly Lighter Dark */
    --accent: #a855f7;
    /* Purple */
    --text-main: #ffffff;
    --text-muted: #aaaaaa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    /* Prevents side scrollbar */
}

/* =========================================
   2. AESTHETIC UPGRADES (Scanlines & Scrollbar)
   ========================================= */

/* The CRT Scanline Effect (Covers entire screen) */
.global-scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Faint WHITE lines for visibility on dark backgrounds */
    background: repeating-linear-gradient(to bottom,
            transparent 0px,
            transparent 2px,
            rgba(255, 255, 255, 0.03) 3px,
            rgba(255, 255, 255, 0.03) 4px);
    pointer-events: none;
    /* Lets you click through it */
    z-index: 9999;
}

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

::-webkit-scrollbar-track {
    background: #050505;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* =========================================
   3. NAVIGATION BAR
   ========================================= */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.85);
    /* Dark Glass */
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-left,
.nav-right {
    width: 100px;
}

/* Dropdown Menu */
.drop-btn {
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s;
}

.drop-btn:hover {
    color: var(--accent);
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--bg-light);
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.5);
    z-index: 1;
    border-radius: 4px;
    border: 1px solid #333;
}

.dropdown-content a {
    color: var(--text-main);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a:hover {
    background-color: var(--accent);
}

/* Center Logo */
.nav-center {
    flex-grow: 1;
    text-align: center;
}

.nav-logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text-main);
    transition: all 0.5s ease;
}

/* Discord Icon */
.discord-icon {
    color: var(--text-main);
    font-size: 1.5rem;
    float: right;
    transition: color 0.3s;
}

.discord-icon:hover {
    color: #5865F2;
}

/* =========================================
   4. HOME PAGE SECTIONS
   ========================================= */

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background: radial-gradient(circle at center, #2a1b3d 0%, var(--bg-dark) 80%);
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.hero-content {
    text-align: center;
    z-index: 2;
    pointer-events: none;
}

.main-title {
    font-size: 8rem;
    font-weight: 900;
    letter-spacing: -5px;
    background: linear-gradient(180deg, #d8b4fe 0%, #7e22ce 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 30px rgba(168, 85, 247, 0.4));
    margin-bottom: 0px;
}

.tagline {
    font-size: 1.1rem;
    letter-spacing: 6px;
    color: var(--text-muted);
    margin-top: -10px;
}

/* Project Sections Setup */
.project-section {
    padding: 100px 10%;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

/* Backgrounds */
.dark-bg {
    background: radial-gradient(circle at center, #1a1a1e 0%, #050505 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.light-bg {
    background-color: #0f0f11;
    background-image: radial-gradient(#333 1px, transparent 1px);
    /* Grid Pattern */
    background-size: 30px 30px;
    border-top: 1px solid rgba(168, 85, 247, 0.1);
    border-bottom: 1px solid rgba(168, 85, 247, 0.1);
}

/* Container & Animation */
.container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 80px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease-out;
}

.container.active {
    opacity: 1;
    transform: translateY(0);
}

.reverse {
    flex-direction: row-reverse;
}

/* 3D Warped Images */
.project-visual {
    perspective: 1000px;
    flex: 1;
    display: flex;
    justify-content: center;
}

.project-render {
    width: 100%;
    max-width: 600px;
    border-radius: 15px;
    transform: rotateY(15deg) rotateX(5deg) scale(0.95);
    box-shadow: 20px 20px 60px rgba(168, 85, 247, 0.3);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
}

.project-visual:hover .project-render {
    transform: rotateY(0deg) rotateX(0deg) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

/* Reverse Tilt logic */
.container.reverse .project-render {
    transform: rotateY(-15deg) rotateX(5deg) scale(0.95);
    box-shadow: -20px 20px 60px rgba(168, 85, 247, 0.3);
}

.container:hover .project-render,
.container.reverse:hover .project-render {
    transform: rotateY(0deg) rotateX(0deg) scale(1.02);
}

/* Project Info Text */
.project-details {
    flex: 0.8;
}

.category {
    font-size: 0.8rem;
    color: var(--accent);
    letter-spacing: 3px;
    font-weight: bold;
}

.client-logo-text {
    font-size: 3.5rem;
    font-weight: 900;
    margin: 10px 0 20px 0;
    line-height: 1;
    letter-spacing: -2px;
    color: #fff;
    text-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
}

.client-logo-svg {
    display: block;
    width: 100%;
    max-width: 220px;
    height: auto;
    margin: 15px 0 25px 0;
}

/* White Filter for Black SVGs */
.make-white {
    filter: brightness(0) invert(1);
}

.description {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 30px;
    font-size: 1.05rem;
}

/* Buttons */
.visit-btn {
    display: inline-block;
    padding: 14px 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.visit-btn:hover {
    border-color: var(--accent);
    background: rgba(168, 85, 247, 0.1);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.4);
}

/* CTA Section (Bottom) */
.cta-section {
    background: linear-gradient(-45deg, #2e1065, #7e22ce, #a855f7, #4c1d95);
    background-size: 400% 400%;
    animation: gradientFlow 10s ease infinite;
    padding: 120px 20px;
    text-align: center;
    position: relative;
    border-top: 1px solid #333;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.cta-content h2 {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 40px;
    color: #ffffff;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.cta-btn {
    display: inline-block;
    padding: 20px 60px;
    background-color: #ffffff;
    color: #581c87;
    font-weight: 900;
    font-size: 1.2rem;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* =========================================
   5. ABOUT PAGE STYLES
   ========================================= */

/* Main Container: Pushes content down so it doesn't hide behind Nav */
.about-page-container {
    padding-top: 120px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    /* Ensures full width */
    background: radial-gradient(circle at top center, #1a1a1e 0%, #050505 80%);
}

.about-hero {
    text-align: center;
    margin-bottom: 60px;
}

.glow-text {
    font-size: 3rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 5px;
    text-shadow: 0 0 20px rgba(168, 85, 247, 0.6);
}

/* Glass Profile Card */
.profile-card {
    display: flex;
    flex-direction: row;
    width: 90%;
    max-width: 1000px;
    margin-left: auto;
    /* Centering Fix */
    margin-right: auto;
    /* Centering Fix */
    background: rgba(255, 255, 255, 0.03);
    /* Glass effect */
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    /* Clips image corners */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    margin-bottom: 60px;
}

/* Profile Image Area */
.profile-visual {
    flex: 1;
    min-height: 400px;
    background-color: #111;
    /* Fallback color if image breaks */
    position: relative;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.profile-visual:hover .profile-img {
    transform: scale(1.05);
}

/* Profile Text Area */
.profile-info {
    flex: 1.5;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.profile-info h2 {
    color: var(--accent);
    margin-bottom: 20px;
    font-size: 2rem;
    font-weight: 800;
}

.profile-info p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

/* Skill Chips */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.skill-tag {
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #d8b4fe;
    padding: 8px 16px;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    cursor: default;
    transition: all 0.3s;
}

.skill-tag:hover {
    background: rgba(168, 85, 247, 0.4);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
}

/* =========================================
   6. WORK / PROJECT PAGE STYLES
   ========================================= */

/* Header Adjustments */
.work-header {
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background: radial-gradient(circle at center, #2a1b3d 0%, var(--bg-dark) 80%);
}

.project-title {
    font-size: 5rem;
}

.category-tag {
    color: var(--accent);
    letter-spacing: 4px;
    font-weight: bold;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

/* Main Content Container */
.work-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 50px 20px;
}

/* The Scope of Work List */
.work-info {
    text-align: center;
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.work-info h2,
.media-gallery h3 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 30px;
    text-transform: uppercase;
    font-weight: 800;
}

.work-list {
    list-style: none;
    display: inline-block;
    text-align: left;
}

.work-list li {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #ccc;
}

.work-list li i {
    color: var(--accent);
    margin-right: 15px;
}

/* YouTube Embeds (Responsive Wrapper) */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 40px;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Image Grid for Thumbnails */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 80px;
}

.gallery-img {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.gallery-img:hover {
    transform: scale(1.03);
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
}

/* Navigation Button at Bottom */
.next-project-nav {
    text-align: center;
    margin-bottom: 50px;
}


/* =========================================
   7. FOOTER
   ========================================= */
footer {
    padding: 50px;
    text-align: center;
    background-color: #000;
    border-top: 1px solid #222;
}

footer p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.socials a {
    color: var(--text-main);
    margin: 0 15px;
    font-size: 1.3rem;
    transition: color 0.3s;
}

.socials a:hover {
    color: var(--accent);
}


/* =========================================
   8. MOBILE RESPONSIVENESS
   ========================================= */
@media (max-width: 768px) {

    /* Home Page Mobile */
    .container,
    .container.reverse {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .main-title {
        font-size: 5rem;
    }

    .nav-left,
    .nav-right {
        width: auto;
    }

    .project-render {
        transform: none !important;
        /* Remove 3D on phone */
        box-shadow: 0 10px 20px rgba(168, 85, 247, 0.2) !important;
        max-width: 100%;
    }

    .cta-content h2 {
        font-size: 2.5rem;
    }

    .client-logo-svg {
        margin: 15px auto;
    }

    /* Centers logos */

    /* About Page Mobile */
    .profile-card {
        flex-direction: column;
        /* Stacks image on top of text */
    }

    .profile-visual {
        min-height: 250px;
        /* Smaller image height */
    }

    .profile-info {
        padding: 30px;
    }

    .glow-text {
        font-size: 2rem;
    }

    /* Work Page Mobile */
    .project-title {
        font-size: 3rem;
    }

    .work-header {
        height: 50vh;
    }
}

/* --- Work Page Header Logo Overrides (HUGE VERSION) --- */

/* 1. Allow the header container to hold a massive image */
.work-header .hero-content {
    width: 100%;
    /* Ensure the container spans the full width */
    max-width: 100%;
    /* Remove any container limits */
    padding: 0 20px;
    /* Keep a tiny bit of padding on the edges */
}

/* 2. The Logo Itself */
.work-header .client-logo-svg {
    max-width: 1200px !important;
    /* Allow it to get massive (was 500px) */
    width: 30vw !important;
    /* Force it to be 80% of the screen width */
    margin: 30px auto !important;
    /* Center it */
    height: auto;
}

/* 3. Mobile Adjustment (So it doesn't break phone screens) */
@media (max-width: 768px) {
    .work-header .client-logo-svg {
        max-width: 90% !important;
        /* Safe size on mobile */
        width: 90% !important;
    }
}