/* ========================================
   PIXEL BOX CG - Modern Visual Design
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #E9A026;
    --primary-dark: #D18E1F;
    --dark: #2D2D2D;
    --darker: #0F0F0F;
    --dark-light: #3D3D3D;
    --light: #F5F5F5;
    --white: #FFFFFF;
    --accent-cyan: #00FFFF;
    --accent-magenta: #FF00FF;
    --gradient: linear-gradient(135deg, #E9A026, #F0B84D);
    --gradient-dark: linear-gradient(135deg, #2D2D2D, #3D3D3D);
    --gradient-neon: linear-gradient(135deg, #E9A026, #00FFFF, #FF00FF);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    --shadow-soft: 0 5px 20px rgba(0, 0, 0, 0.1);
    --shadow-neon: 0 0 30px rgba(233, 160, 38, 0.5), 0 0 60px rgba(0, 255, 255, 0.3);
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --ease-spring: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--darker);
    color: var(--light);
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* Custom Cursor (desktop) */
@media (min-width: 769px) {
    body {
        cursor: none;
    }

    .cursor-dot {
        width: 8px;
        height: 8px;
        background: var(--primary);
        border-radius: 50%;
        position: fixed;
        pointer-events: none;
        z-index: 999999;
        transition: transform 0.1s ease-out;
        top: 0;
        left: 0;
        will-change: transform;
    }

    .cursor-follower {
        width: 40px;
        height: 40px;
        border: 2px solid var(--primary);
        border-radius: 50%;
        position: fixed;
        pointer-events: none;
        z-index: 999998;
        transition: all 0.15s ease-out;
        top: 0;
        left: 0;
        will-change: transform;
    }
}

/* Utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.accent {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Loading Screen */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--darker);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.6s ease-out, visibility 0.6s;
}

.loader-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    width: 150px;
    height: 150px;
    margin: 0 auto 30px;
    animation: pulse-loader 1.5s ease-in-out infinite;
}

.loader-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 30px var(--primary));
}

@keyframes pulse-loader {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.12); opacity: 0.7; }
}

.loader-bar {
    width: 180px;
    height: 6px;
    background: rgba(233, 160, 38, 0.15);
    border-radius: 3px;
    overflow: hidden;
    margin: 0 auto;
    border: 1px solid rgba(233, 160, 38, 0.3);
}

.loader-progress {
    width: 0%;
    height: 100%;
    background: var(--gradient);
    border-radius: 3px;
    transition: width 0.2s ease;
    box-shadow: 0 0 20px var(--primary);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    background: transparent;
}

.navbar.solid {
    background: var(--dark) !important;
    padding: 15px 0;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
}

.navbar.scrolled {
    background: var(--darker) !important;
    padding: 15px 0;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
}

.navbar.scrolled .nav-logo {
    filter: drop-shadow(0 0 15px rgba(233, 160, 38, 0.7));
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 2px;
    position: relative;
}

.logo::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 130%;
    height: 130%;
    background: radial-gradient(circle, rgba(233, 160, 38, 0.4) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
    filter: blur(20px);
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.3); }
}

.nav-logo {
    max-height: 45px;
    width: auto;
    transition: transform 0.3s, filter 0.3s;
    filter: drop-shadow(0 0 15px rgba(233, 160, 38, 0.6));
}

.nav-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 25px rgba(233, 160, 38, 0.9));
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    color: var(--light);
    text-decoration: none;
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    transition: all 0.3s var(--ease-out-expo);
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.4s var(--ease-out-expo);
    box-shadow: 0 0 15px var(--primary);
}

.nav-link:hover {
    color: var(--primary);
    text-shadow: 0 0 20px var(--primary);
    transform: translateY(-2px);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:focus {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
    border-radius: 4px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--light);
    transition: all 0.3s var(--ease-spring);
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, rgba(233, 160, 38, 0.08), transparent 70%),
                linear-gradient(180deg, var(--darker) 0%, #0a0a0a 100%);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(233, 160, 38, 0.04) 60deg,
        transparent 120deg,
        rgba(0, 255, 255, 0.04) 180deg,
        transparent 240deg,
        rgba(255, 0, 255, 0.04) 300deg,
        transparent 360deg
    );
    animation: rotate-slow 120s linear infinite;
    pointer-events: none;
    will-change: transform;
}

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

#particleCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    filter: blur(0.5px) contrast(1.1);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
    perspective: 1000px;
}

.hero-logo-container {
    position: relative;
    display: inline-block;
    animation: float-hero 4s ease-in-out infinite;
    z-index: 2;
    will-change: transform;
    perspective: 1000px;
    transition: transform 0.1s ease-out;
}

@keyframes float-hero {
    0%, 100% {
        transform: translateY(0) rotateX(0deg) rotateY(0deg);
    }
    25% {
        transform: translateY(-15px) rotateX(2deg) rotateY(2deg);
    }
    75% {
        transform: translateY(10px) rotateX(-2deg) rotateY(-2deg);
    }
}

.hero-logo-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 130%;
    height: 130%;
    z-index: -1;
    pointer-events: none;
    background: conic-gradient(from 0deg, var(--primary), var(--accent-cyan), var(--accent-magenta), var(--primary));
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.3;
    animation: rotate-gradient 12s linear infinite;
}

@keyframes rotate-gradient {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.hero-logo {
    max-width: 700px;
    width: 90%;
    height: auto;
    display: block;
    margin: 0 auto;
    animation: glow-beat 2s ease-in-out infinite alternate;
    transition: filter 0.3s;
}

@keyframes glow-beat {
    from {
        filter: drop-shadow(0 0 50px rgba(233, 160, 38, 0.6));
        transform: scale(1);
    }
    to {
        filter: drop-shadow(0 0 80px rgba(233, 160, 38, 0.9)) drop-shadow(0 0 120px rgba(0, 255, 255, 0.4));
        transform: scale(1.02);
    }
}

.hero-logo:hover {
    animation: glitch 0.3s ease-in-out;
    filter: drop-shadow(0 0 80px rgba(233, 160, 38, 0.8)) drop-shadow(0 0 120px rgba(0, 255, 255, 0.6));
}

@keyframes glitch {
    0% { transform: translate(0); filter: drop-shadow(0 0 80px rgba(233, 160, 38, 0.8)); }
    20% { transform: translate(-5px, 5px); filter: drop-shadow(0 0 80px rgba(0, 255, 255, 0.8)); }
    40% { transform: translate(5px, -5px); filter: drop-shadow(0 0 80px rgba(255, 0, 255, 0.8)); }
    60% { transform: translate(-5px, -5px); filter: drop-shadow(0 0 80px rgba(233, 160, 38, 0.8)); }
    80% { transform: translate(5px, 5px); filter: drop-shadow(0 0 80px rgba(0, 255, 255, 0.8)); }
    100% { transform: translate(0); filter: drop-shadow(0 0 80px rgba(233, 160, 38, 0.8)); }
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, var(--darker) 0%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2s infinite ease-in-out;
}

.scroll-indicator a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(15, 15, 15, 0.5);
    border: 1px solid rgba(233, 160, 38, 0.3);
    transition: all 0.3s;
    text-decoration: none;
}

.scroll-indicator a:hover {
    background: rgba(233, 160, 38, 0.2);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(233, 160, 38, 0.5);
}

.scroll-chevron {
    width: 30px;
    height: 30px;
    fill: var(--primary);
    transition: fill 0.3s;
}

.scroll-indicator a:hover .scroll-chevron {
    fill: var(--light);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

/* Section common styles */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-header::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gradient);
    margin: 20px auto 0;
    border-radius: 2px;
    box-shadow: 0 0 20px var(--primary);
    animation: expand-line 1s ease-out forwards;
}

@keyframes expand-line {
    from { width: 0; }
    to { width: 80px; }
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-tag {
    display: inline-block;
    padding: 10px 30px;
    background: linear-gradient(135deg, rgba(233, 160, 38, 0.2), rgba(0, 255, 255, 0.2));
    border: 1px solid rgba(233, 160, 38, 0.3);
    color: var(--light);
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    border-radius: 30px;
}

.section-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    to { left: 100%; }
}

/* About Section */
.about-section {
    background: var(--darker);
    position: relative;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-card {
    background: rgba(15, 15, 15, 0.8);
    padding: 40px;
    border-radius: 25px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(233, 160, 38, 0.2);
    transition: all 0.4s;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient);
    box-shadow: 0 0 20px var(--primary);
}

.about-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        transparent,
        transparent,
        transparent,
        var(--primary),
        var(--accent-cyan),
        var(--accent-magenta),
        var(--primary)
    );
    animation: rotate-border 4s linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
    filter: blur(20px);
    pointer-events: none;
}

.about-card:hover::after {
    opacity: 0.2;
}

.about-card:hover {
    border-color: transparent;
    box-shadow: 0 20px 40px rgba(233, 160, 38, 0.15);
}

.about-lead {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary);
    text-shadow: 0 0 20px rgba(233, 160, 38, 0.5);
}

.about-card p {
    line-height: 1.8;
    margin-bottom: 15px;
    opacity: 0.9;
}

.about-visual {
    position: relative;
    height: 500px;
}

.geometric-showcase {
    position: relative;
    width: 100%;
    height: 100%;
}

.geo-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary), transparent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.3;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--accent-cyan), transparent);
    top: 20%;
    right: 20%;
    opacity: 0.2;
    filter: blur(35px);
    animation-delay: 2s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--accent-magenta), transparent);
    bottom: 20%;
    left: 20%;
    opacity: 0.2;
    filter: blur(30px);
    animation-delay: 4s;
}

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

.floating-element {
    position: absolute;
    font-size: 48px;
    animation: float-element 4s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(233, 160, 38, 0.5));
    transition: transform 0.3s;
    cursor: default;
}

.floating-element:hover {
    transform: scale(1.3) rotate(15deg) !important;
    filter: drop-shadow(0 0 40px rgba(233, 160, 38, 0.8));
}

.fe-1 {
    top: 20%;
    left: 30%;
    animation-delay: 0s;
}

.fe-2 {
    top: 60%;
    right: 25%;
    animation-delay: 1.5s;
}

.fe-3 {
    bottom: 20%;
    left: 40%;
    animation-delay: 3s;
    width: 50px;
    height: 50px;
}

@keyframes float-element {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(10deg); }
}

/* Projects Section */
.projects-section {
    background: var(--dark);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 30px;
    background: rgba(233, 160, 38, 0.05);
    border: 2px solid transparent;
    background-clip: padding-box;
    color: var(--light);
    font-family: 'Exo 2', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 50px;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--accent-cyan));
    z-index: -2;
    opacity: 0;
    transition: opacity 0.3s;
}

.filter-btn:hover::before,
.filter-btn.active::before {
    opacity: 1;
}

.filter-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    z-index: -1;
    clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%);
    transition: clip-path 0.4s var(--ease-out-expo);
}

.filter-btn:hover::after,
.filter-btn.active::after {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

.filter-btn:hover,
.filter-btn.active {
    border-color: transparent;
    box-shadow: 0 10px 30px rgba(233, 160, 38, 0.4);
    transform: none !important;
}

.btn-count {
    background: var(--dark-light);
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 12px;
    transition: all 0.3s;
}

.filter-btn:hover .btn-count,
.filter-btn.active .btn-count {
    background: rgba(255, 255, 255, 0.2);
}

.filter-btn:focus {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.project-card {
    background: rgba(15, 15, 15, 0.9);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.6s var(--ease-out-expo);
    border: 1px solid rgba(233, 160, 38, 0.1);
    animation: fadeInUp 0.8s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px) rotateX(-10deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

.project-card:hover {
    transform: translateY(-20px) rotateY(2deg) scale(1.02);
    box-shadow: var(--shadow-neon), 0 40px 80px rgba(0, 0, 0, 0.5);
    border-color: var(--primary);
}

.project-image {
    position: relative;
    aspect-ratio: 365 / 250;
    width: 100%;
    overflow: hidden;
}

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.6s var(--ease-out-expo);
}

.project-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-card:hover .project-placeholder {
    transform: scale(1.15) translateZ(20px);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(233, 160, 38, 0.95), rgba(0, 255, 255, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.5s var(--ease-out-expo);
    transform: translateY(30px);
    z-index: 2;
}

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

.project-view {
    padding: 14px 35px;
    border: 2px solid var(--white);
    color: var(--white);
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: all 0.3s;
    transform: translateY(30px);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border-radius: 50px;
    background: rgba(0,0,0,0.2);
}

.project-card:hover .project-view {
    transform: translateY(0);
}

.project-view::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transition: left 0.3s;
    z-index: -1;
}

.project-view:hover::before {
    left: 0;
}

.project-info {
    padding: 25px;
}

.project-tag-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: linear-gradient(135deg, rgba(15,15,15,0.8), rgba(233, 160, 38, 0.9));
    backdrop-filter: blur(5px);
    border: 1px solid rgba(233, 160, 38, 0.5);
    color: var(--white);
    font-family: 'Orbitron', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transition: all 0.3s;
}

.project-tag-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 3s infinite;
}

.project-card:hover .project-tag-badge {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 160, 38, 0.5);
    border-color: var(--primary);
}

.project-info h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 22px;
    margin-bottom: 10px;
    transition: color 0.3s, text-shadow 0.3s;
}

.project-card:hover .project-info h3 {
    color: var(--primary);
    text-shadow: 0 0 20px var(--primary);
}

.project-info p {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.8;
}

.project-more-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    color: var(--primary);
    text-decoration: none;
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.project-more-link .arrow {
    transition: transform 0.3s var(--ease-out-expo);
    display: inline-block;
}

.project-more-link:hover {
    color: var(--white);
    text-shadow: 0 0 10px var(--primary);
}

.project-more-link:hover .arrow {
    transform: translateX(5px);
}

.project-card.hidden {
    display: none;
}

/* Social Section */
.social-section {
    background: var(--darker);
}

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

.social-card {
    background: rgba(15, 15, 15, 0.7);
    padding: 40px 30px;
    border-radius: 25px;
    text-align: center;
    text-decoration: none;
    color: var(--light);
    transition: all 0.5s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    transform-style: preserve-3d;
}

.social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 0;
    border-radius: 25px;
}

.social-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: 0;
}

.social-card.instagram::before { background: linear-gradient(135deg, #833ab4, #fd1f1f, #fcb045); }
.social-card.facebook::before { background: #1877F2; }
.social-card.twitter::before { background: #000000; }
.social-card.youtube::before { background: #FF0000; }

.social-card:hover::before { opacity: 0.15; }
.social-card:hover::after {
    width: 300px;
    height: 300px;
}
.social-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    border-color: var(--primary);
}

.social-icon-wrap {
    width: 85px;
    height: 85px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(233, 160, 38, 0.2), rgba(0, 255, 255, 0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    transition: all 0.5s var(--ease-out-expo);
    border: 2px solid rgba(233, 160, 38, 0.3);
}

.social-icon-wrap::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: conic-gradient(from 0deg, var(--primary), var(--accent-cyan), var(--accent-magenta), var(--primary));
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
    animation: rotate-border 3s linear infinite;
}

@keyframes rotate-border {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.social-card:hover .social-icon-wrap::before {
    opacity: 1;
}

.social-card:hover .social-icon-wrap {
    transform: scale(1.15) rotate(360deg);
    border-color: transparent;
    box-shadow: 0 0 30px rgba(233, 160, 38, 0.5);
}

.social-svg {
    width: 40px;
    height: 40px;
    fill: var(--light);
    transition: fill 0.3s, filter 0.3s;
}

.social-card.instagram:hover .social-svg {
    fill: #E4405F;
    filter: drop-shadow(0 0 10px #E4405F);
}

.social-card.facebook:hover .social-svg {
    fill: #1877F2;
    filter: drop-shadow(0 0 10px #1877F2);
}

.social-card.twitter:hover .social-svg {
    fill: #1DA1F2;
    filter: drop-shadow(0 0 10px #1DA1F2);
}

.social-card.youtube:hover .social-svg {
    fill: #FF0000;
    filter: drop-shadow(0 0 10px #FF0000);
}

.social-name {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
    position: relative;
    z-index: 1;
}

.social-handle {
    font-size: 14px;
    opacity: 0.7;
    position: relative;
    z-index: 1;
}

/* Team Section */
.team-section {
    background: var(--dark);
}

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

.team-card {
    background: rgba(15, 15, 15, 0.85);
    border-radius: 25px;
    overflow: hidden;
    transition: all 0.5s var(--ease-out-expo);
    border: 1px solid rgba(233, 160, 38, 0.1);
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(233, 160, 38, 0.1), rgba(0, 255, 255, 0.1));
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 0;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(233, 160, 38, 0.1), rgba(0, 255, 255, 0.1));
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 0;
}

.team-card:hover::before {
    opacity: 1;
}

.team-card:hover {
    transform: translateY(-20px) rotateX(5deg) rotateY(5deg) scale(1.03);
    box-shadow: var(--shadow-neon), 0 40px 80px rgba(0, 0, 0, 0.6);
    border-color: var(--primary);
}

.team-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: skewX(-25deg);
    transition: left 0.7s;
    z-index: 2;
    pointer-events: none;
}

.team-card:hover::after {
    left: 150%;
}

.card-visual {
    padding: 40px 20px 20px;
    text-align: center;
    position: relative;
}

.member-avatar {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    transition: transform 0.4s var(--ease-out-expo);
}

.team-card:hover .member-avatar {
    transform: scale(1.1) translateY(-5px);
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.3);
}

.avatar-placeholder img {
    width: 90%;
    height: 90%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.5s;
}

.team-card:hover .avatar-placeholder img {
    transform: scale(1.1);
}

.avatar-ring {
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 4px solid transparent;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent-cyan), var(--accent-magenta)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: rotate-ring 8s linear infinite;
    filter: drop-shadow(0 0 15px rgba(233, 160, 38, 0.7));
}

@keyframes rotate-ring {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotate-border {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.card-content {
    padding: 20px 25px 30px;
    text-align: center;
}

.card-content h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    margin-bottom: 5px;
}

.member-role {
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.member-bio {
    font-size: 13px;
    line-height: 1.6;
    opacity: 0.8;
    margin-bottom: 20px;
}

.member-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    position: relative;
    z-index: 10;
    pointer-events: none;
}

.member-social .ms-link {
    pointer-events: auto;
}

.ms-link {
    width: 40px;
    height: 40px;
    background: var(--dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    border: 1px solid rgba(233, 160, 38, 0.2);
    position: relative;
    z-index: 20;
}

.ms-link:hover {
    background: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(233, 160, 38, 0.4);
}

.ms-link svg {
    width: 20px;
    height: 20px;
    fill: var(--light);
    transition: fill 0.3s;
}

.ms-link:hover svg {
    fill: var(--white);
}

/* Contact Section */
.contact-section {
    background: var(--darker);
    padding: 100px 0;
}

.contact-form {
    background: rgba(15, 15, 15, 0.85);
    padding: 50px;
    border-radius: 25px;
    border: 1px solid rgba(233, 160, 38, 0.2);
    position: relative;
    overflow: hidden;
    max-width: 600px;
    margin: 0 auto;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(233, 160, 38, 0.03), rgba(0, 255, 255, 0.03));
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.contact-form:hover::before {
    opacity: 1;
}

.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 18px 0;
    background: rgba(61, 61, 61, 0.2);
    border: 2px solid transparent;
    border-bottom: 2px solid var(--dark-light);
    color: var(--light);
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    font-weight: 500;
    transition: all 0.3s var(--ease-out-expo);
    outline: none;
    border-radius: 10px 10px 0 0;
    background-clip: padding-box;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: var(--primary);
    background: rgba(233, 160, 38, 0.05);
}

.form-group label {
    position: absolute;
    top: 18px;
    left: 0;
    font-size: 18px;
    opacity: 0.6;
    transition: all 0.3s var(--ease-out-expo);
    pointer-events: none;
    font-weight: 500;
    color: var(--light);
}

.form-group input:focus~label,
.form-group input:valid~label,
.form-group textarea:focus~label,
.form-group textarea:valid~label {
    top: -10px;
    font-size: 12px;
    color: var(--primary);
    opacity: 1;
    text-shadow: 0 0 10px var(--primary);
}

.input-highlight {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient);
    transition: width 0.4s var(--ease-out-expo);
    box-shadow: 0 0 20px var(--primary);
}

.form-group input:focus~.input-highlight,
.form-group textarea:focus~.input-highlight {
    width: 100%;
}

.submit-btn {
    padding: 16px 40px;
    background: var(--gradient);
    border: none;
    color: var(--white);
    font-family: 'Exo 2', sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(233, 160, 38, 0.3), inset 0 0 0 2px rgba(255,255,255,0.1);
    margin: 0 auto;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.4), rgba(255,255,255,0.1));
    transition: left 0.5s;
}

.submit-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, rgba(255,255,255,0.1), transparent 30%);
    animation: rotate-border 3s linear infinite;
    pointer-events: none;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 50px rgba(233, 160, 38, 0.6), inset 0 0 0 2px rgba(255,255,255,0.2);
}

.submit-btn:focus {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

.send-icon {
    width: 24px;
    height: 24px;
    fill: var(--white);
    transition: transform 0.3s;
}

.submit-btn:hover .send-icon {
    transform: translateX(5px);
}

/* Footer */
.footer {
    padding: 60px 0;
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.95), rgba(15, 15, 15, 0.95));
    border-top: 1px solid rgba(233, 160, 38, 0.3);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(233, 160, 38, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo .logo-pixel {
    color: var(--white);
}

.footer-logo .logo-box {
    color: var(--primary);
}

.footer-logo .logo-cg {
    color: var(--light);
    font-size: 16px;
    font-weight: 400;
}

.footer-text {
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--light);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    position: relative;
    padding: 5px 0;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gradient);
    transition: width 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

.footer-links a:hover::after {
    width: 100%;
}

/* Notification */
.notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.95), rgba(56, 142, 60, 0.95));
    color: var(--white);
    padding: 20px 35px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 20px 60px rgba(76, 175, 80, 0.4);
    transform: translateX(500px) scale(0.8);
    transition: all 0.5s var(--ease-spring);
    z-index: 9999;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.notification.show {
    transform: translateX(0) scale(1);
}

.notif-icon {
    font-size: 24px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
    animation: heartbeat 1s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.notif-text {
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.5px;
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border: none;
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 9997;
    box-shadow: 0 10px 30px rgba(233, 160, 38, 0.4);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.scroll-top:not(.visible) {
    transform: translateY(50px) scale(0.8);
}

.scroll-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 40px rgba(233, 160, 38, 0.6);
}

.scroll-icon {
    width: 28px;
    height: 28px;
    fill: currentColor;
    transition: transform 0.3s;
}

.scroll-top:hover .scroll-icon {
    transform: translateY(-3px);
}

.scroll-top:focus {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.scroll-top:not(.visible) {
    transform: translateY(50px) scale(0.8);
}

.scroll-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 40px rgba(233, 160, 38, 0.6);
}

.scroll-icon {
    width: 28px;
    height: 28px;
    fill: currentColor;
    transition: transform 0.3s;
}

.scroll-top:hover .scroll-icon {
    transform: translateY(-3px);
}

.scroll-top:focus {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

/* Click ripple effect */
.click-ripple {
    pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: rgba(15, 15, 15, 0.98);
        flex-direction: column;
        padding: 100px 40px;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        border-left: 1px solid rgba(233, 160, 38, 0.2);
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-visual {
        display: none;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .social-grid,
    .team-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cursor-dot,
    .cursor-follower {
        display: none !important;
    }

    .scroll-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }

    .notification {
        left: 20px;
        right: auto;
        bottom: 20px;
    }
}

@media (max-width: 480px) {
    .social-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .filter-buttons {
        flex-direction: column;
        align-items: center;
    }

    .filter-btn {
        width: 100%;
        justify-content: center;
    }

    .section-title {
        font-size: 28px;
    }

    .contact-form {
        padding: 30px 20px;
    }

    .loader-logo {
        width: 120px;
        height: 120px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .hero-logo-container,
    .geo-shape,
    .floating-element,
    .social-icon-wrap,
    .avatar-ring,
    .loader-logo,
    .loader-progress,
    .project-card,
    .team-card,
    .social-card,
    .filter-btn,
    .submit-btn,
    .nav-link,
    .click-ripple {
        animation: none !important;
    }
}

/* Debug: hidden class for project filter */
.project-card.hidden {
    display: none;
}

/* ========================================
   COOKIE CONSENT BANNER
   ======================================== */
.cookie-banner {
    position: fixed;
    bottom: 30px;
    left: 30px;
    right: 30px;
    max-width: 600px;
    background: rgba(30, 30, 30, 0.9);
    border: 1px solid rgba(233, 160, 38, 0.3);
    border-radius: 16px;
    padding: 20px 25px;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(150px);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.5s;
    pointer-events: none;
}

@media (min-width: 769px) {
    .cookie-banner {
        left: 40px;
        right: auto;
    }
}

.cookie-banner.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.cookie-content {
    font-family: 'Rajdhani', sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: rgba(245, 245, 245, 0.9);
}

.cookie-content p {
    margin: 0;
}

.cookie-content a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.cookie-content a:hover {
    text-shadow: 0 0 10px var(--primary);
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 22px;
    border-radius: 30px;
    font-family: 'Exo 2', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s;
}

.cookie-btn-accept {
    background: var(--gradient);
    border: none;
    color: var(--darker);
}

.cookie-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(233, 160, 38, 0.4);
}

.cookie-btn-decline {
    background: transparent;
    border: 1px solid rgba(245, 245, 245, 0.3);
    color: var(--light);
}

.cookie-btn-decline:hover {
    background: rgba(245, 245, 245, 0.08);
    border-color: var(--light);
}

@media (max-width: 576px) {
    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
        bottom: 20px;
        left: 20px;
        right: 20px;
        padding: 20px;
        gap: 15px;
    }
    .cookie-buttons {
        justify-content: flex-end;
    }
}

/* ========================================
   MEMBER MORE LINK (Saiba Mais nos Cards)
   ======================================== */
.member-more-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    text-decoration: none;
    font-family: 'Exo 2', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 10px 0 14px;
    transition: all 0.3s ease;
    position: relative;
}
.member-more-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width 0.3s ease;
}
.member-more-link:hover::after { width: 100%; }
.member-more-link:hover { gap: 10px; text-shadow: 0 0 10px rgba(233,160,38,0.5); }
.member-more-link .arrow { transition: transform 0.3s ease; }
.member-more-link:hover .arrow { transform: translateX(4px); }

/* ========================================
   PORTFOLIO PAGES (Páginas dos Membros)
   ======================================== */
.portfolio-hero {
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    padding-bottom: 60px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #0F0F0F 0%, #1a1a2e 50%, #0F0F0F 100%);
}
.portfolio-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 30% 50%, rgba(123, 47, 190, 0.18) 0%, transparent 70%),
                radial-gradient(ellipse 50% 50% at 80% 30%, rgba(233, 160, 38, 0.12) 0%, transparent 70%);
}
.portfolio-hero-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}
@media (max-width: 768px) {
    .portfolio-hero-grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    .portfolio-hero { min-height: auto; padding: 120px 0 50px; }
}
.portfolio-avatar-wrap {
    position: relative;
    display: flex;
    justify-content: center;
}
.portfolio-avatar-wrap::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: conic-gradient(var(--primary), #7B2FBE, #00FFFF, var(--primary));
    animation: spin-ring 6s linear infinite;
    z-index: 0;
}
.portfolio-avatar-wrap::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: var(--darker);
    z-index: 1;
}
@keyframes spin-ring { to { transform: rotate(360deg); } }
.portfolio-avatar {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    border: 4px solid var(--darker);
}
.portfolio-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: var(--gradient);
    color: var(--darker);
    font-family: 'Orbitron', sans-serif;
    font-size: 10px;
    font-weight: 900;
    padding: 6px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 3;
    white-space: nowrap;
}
.portfolio-hero-info h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 900;
    color: var(--white);
    margin-bottom: 6px;
    line-height: 1.1;
}
.portfolio-hero-info h1 span { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.portfolio-role-tag {
    display: inline-block;
    background: rgba(233,160,38,0.12);
    border: 1px solid rgba(233,160,38,0.35);
    color: var(--primary);
    font-family: 'Exo 2', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 6px 18px;
    border-radius: 30px;
    margin-bottom: 20px;
}
.portfolio-hero-bio {
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    line-height: 1.7;
    color: rgba(245,245,245,0.8);
    max-width: 580px;
    margin-bottom: 28px;
}
.portfolio-social-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
@media (max-width: 768px) { .portfolio-social-row { justify-content: center; } }
.portfolio-social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 8px;
    background: rgba(45,45,45,0.7);
    border: 1px solid rgba(233,160,38,0.25);
    color: var(--light);
    text-decoration: none;
    font-family: 'Exo 2', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}
.portfolio-social-btn:hover {
    background: rgba(233,160,38,0.15);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(233,160,38,0.2);
}
.portfolio-social-btn svg { flex-shrink: 0; }

/* Seções de Conteúdo do Portfólio */
.portfolio-section {
    padding: 70px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.portfolio-section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 36px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.portfolio-section-title::before {
    content: '';
    display: block;
    width: 4px;
    height: 28px;
    background: var(--gradient);
    border-radius: 2px;
    flex-shrink: 0;
}

/* Timeline de Trajetória */
.timeline {
    position: relative;
    padding-left: 36px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), rgba(123,47,190,0.3));
}
.timeline-item {
    position: relative;
    margin-bottom: 38px;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.5s ease;
}
.timeline-item.visible { opacity: 1; transform: translateX(0); }
.timeline-dot {
    position: absolute;
    left: -36px;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--darker);
    box-shadow: 0 0 12px rgba(233,160,38,0.6);
}
.timeline-year {
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    color: var(--primary);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.timeline-card {
    background: rgba(45,45,45,0.5);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 20px 24px;
    backdrop-filter: blur(8px);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.timeline-card:hover {
    border-color: rgba(233,160,38,0.3);
    box-shadow: 0 4px 20px rgba(233,160,38,0.1);
}
.timeline-card h3 {
    font-family: 'Exo 2', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}
.timeline-card p {
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    color: rgba(245,245,245,0.75);
    line-height: 1.7;
    margin: 0;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
}
.skill-tag {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(45,45,45,0.6);
    border: 1px solid rgba(233,160,38,0.2);
    border-radius: 10px;
    padding: 12px 16px;
    font-family: 'Exo 2', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--light);
    transition: all 0.3s ease;
    cursor: default;
}
.skill-tag:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(233,160,38,0.08);
    transform: translateY(-3px);
}
.skill-icon { font-size: 20px; }

/* Projects Showcase no portfólio */
.portfolio-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}
.portfolio-project-card {
    background: rgba(45,45,45,0.5);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 24px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--light);
    display: block;
}
.portfolio-project-card:hover {
    border-color: rgba(233,160,38,0.35);
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}
.portfolio-project-card .proj-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    margin-bottom: 16px;
    object-fit: cover;
}
.portfolio-project-card h3 {
    font-family: 'Exo 2', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}
.portfolio-project-card p {
    font-family: 'Rajdhani', sans-serif;
    font-size: 15px;
    color: rgba(245,245,245,0.7);
    line-height: 1.6;
    margin: 0;
}
.portfolio-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-family: 'Exo 2', sans-serif;
    font-size: 13px;
    font-weight: 700;
    position: relative;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 28px;
    transition: all 0.3s ease;
}
.portfolio-back-btn:hover { gap: 12px; opacity: 0.8; }
.portfolio-back-btn svg { transition: transform 0.3s ease; }
.portfolio-back-btn:hover svg { transform: translateX(-4px); }

/* ========================================
   HISTORY PAGE (Nossa História)
   ======================================== */
.history-hero {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(160deg, #0F0F0F 0%, #1f0d2d 50%, #0F0F0F 100%);
    overflow: hidden;
    padding-top: 100px;
    padding-bottom: 60px;
    text-align: center;
}
.history-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(123, 47, 190, 0.2) 0%, transparent 60%);
}
.history-hero-content {
    position: relative;
    z-index: 2;
}
.history-hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 900;
    color: var(--white);
    margin-bottom: 15px;
}
.history-hero-title span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.history-hero-subtitle {
    font-family: 'Rajdhani', sans-serif;
    font-size: 22px;
    color: rgba(245,245,245,0.8);
    max-width: 600px;
    margin: 0 auto;
}

.history-timeline-section {
    padding: 80px 0;
    background: #0F0F0F;
    position: relative;
}

.history-timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}
.history-timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    background: linear-gradient(to bottom, var(--primary), rgba(123,47,190,0.3), var(--primary));
    border-radius: 2px;
}
@media (max-width: 768px) {
    .history-timeline-container::before {
        left: 30px;
    }
}

.history-event {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 80px;
    position: relative;
    width: 100%;
}
.history-event:nth-child(even) {
    flex-direction: row-reverse;
}
@media (max-width: 768px) {
    .history-event, .history-event:nth-child(even) {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 70px;
        margin-bottom: 60px;
    }
}

.history-event-marker {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    background: var(--primary);
    border: 4px solid var(--darker);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(233,160,38,0.6);
    z-index: 2;
}
@media (max-width: 768px) {
    .history-event-marker {
        left: 30px;
    }
}

.history-event-content {
    width: 45%;
    background: rgba(45,45,45,0.4);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 30px;
    backdrop-filter: blur(10px);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.history-event-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    border-color: rgba(233,160,38,0.3);
}
@media (max-width: 768px) {
    .history-event-content {
        width: 100%;
    }
}

.history-event-date {
    display: inline-block;
    font-family: 'Orbitron', sans-serif;
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
    background: rgba(233,160,38,0.1);
    padding: 4px 12px;
    border-radius: 20px;
}

.history-event-title {
    font-family: 'Exo 2', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 15px;
}

.history-event-desc {
    font-family: 'Rajdhani', sans-serif;
    font-size: 17px;
    color: rgba(245,245,245,0.8);
    line-height: 1.6;
    margin-bottom: 20px;
}

.history-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 20px;
}
.history-media-grid.single-image {
    grid-template-columns: 1fr;
}
.history-media-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: zoom-in;
    border: 1px solid rgba(255,255,255,0.1);
}
.history-media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 4/3;
    transition: transform 0.4s ease;
}
.history-media-grid.single-image img {
    aspect-ratio: 16/9;
}
.history-media-item:hover img {
    transform: scale(1.05);
}
.history-media-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 10px 10px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: var(--white);
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}
.history-media-item:hover .history-media-caption {
    opacity: 1;
    transform: translateY(0);
}

.history-video-wrap {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 20px;
    border: 1px solid rgba(255,255,255,0.1);
}
.history-video-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ========================================
   LIGHTBOX CAROUSEL
   ======================================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content-wrap {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    user-select: none;
    transition: transform 0.3s ease;
}

.lightbox-caption {
    color: var(--white);
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    margin-top: 15px;
    text-align: center;
    letter-spacing: 1px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--white);
    font-size: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    z-index: 10000;
}

.lightbox-close:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--white);
    font-size: 36px;
    background: rgba(255,255,255,0.1);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    z-index: 10000;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover, .lightbox-next:hover {
    background: var(--primary);
    color: var(--darker);
    box-shadow: 0 0 20px rgba(233,160,38,0.5);
}

@media (max-width: 768px) {
    .lightbox-prev, .lightbox-next {
        width: 45px;
        height: 45px;
        font-size: 24px;
    }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
    .lightbox-img { max-height: 70vh; }
}