/* CINEMATIC PORTFOLIO - BLACK & GOLD */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;400;600;700&display=swap');

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

html {
    scroll-behavior: smooth;
    background: #000;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: #000 !important;
    color: #fff;
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 215, 0, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.02) 0%, transparent 70%);
    z-index: 0;
    animation: pulseGlow 10s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

/* Remove canvas */
#canvas {
    display: none;
}

/* NAVIGATION */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5rem;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.nav-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    color: #d4af37;
    letter-spacing: 3px;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 2px;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #d4af37;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    width: 30px;
    height: 3px;
    background: #d4af37;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translateY(12px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translateY(-12px);
}

/* HERO SECTION */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 1;
}

.hero-content {
    animation: fadeInUp 1.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* GLITCH EFFECT */
.glitch-wrapper {
    margin-bottom: 2rem;
}

.glitch {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(3rem, 8vw, 8rem);
    font-weight: 900;
    color: #d4af37;
    letter-spacing: 5px;
    position: relative;
    animation: glitchAnim 5s infinite;
}

@keyframes glitchAnim {
    0%, 100% { text-shadow: 0 0 20px rgba(212, 175, 55, 0.8); }
    25% { text-shadow: -2px 0 20px rgba(255, 215, 0, 0.8), 2px 2px 20px rgba(212, 175, 55, 0.8); }
    50% { text-shadow: 2px 0 20px rgba(255, 215, 0, 0.8), -2px -2px 20px rgba(212, 175, 55, 0.8); }
    75% { text-shadow: 0 0 20px rgba(212, 175, 55, 0.8); }
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: #ccc;
    font-weight: 600;
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
}

.hero-desc {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: #999;
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* BUTTONS */
.btn {
    padding: 1rem 2.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-decoration: none;
    border-radius: 0;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.btn-gold {
    background: linear-gradient(135deg, #d4af37, #ffd700);
    color: #000;
    border: 2px solid #d4af37;
}

.btn-gold:hover {
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.6);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: #d4af37;
    border: 2px solid #d4af37;
}

.btn-outline:hover {
    background: #d4af37;
    color: #000;
    transform: translateY(-3px);
}

/* SCROLL DOWN */
.scroll-down {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #d4af37;
    animation: bounce 2s infinite;
}

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

.arrow {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, #d4af37, transparent);
    margin: 0.5rem auto;
}

/* SECTIONS */
section {
    position: relative;
    padding: 8rem 5rem;
    z-index: 1;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.5rem, 5vw, 5rem);
    font-weight: 900;
    text-align: center;
    color: #d4af37;
    letter-spacing: 5px;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: #999;
    font-size: 1.2rem;
    margin-bottom: 5rem;
}

/* ABOUT SECTION */
.about {
    background: rgba(10, 10, 10, 0.5);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
}

.skill-box {
    background: rgba(26, 26, 26, 0.8);
    border: 2px solid rgba(212, 175, 55, 0.3);
    padding: 2.5rem;
    transition: all 0.4s;
}

.skill-box:hover {
    border-color: #d4af37;
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.2);
}

.skill-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.svg-icon {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
    transition: all 0.4s ease;
}

.skill-box:hover .svg-icon {
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.6));
    transform: scale(1.1) rotate(5deg);
}

.skill-box h3 {
    color: #d4af37;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tags span {
    padding: 0.5rem 1rem;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: #d4af37;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.tags span:hover {
    background: #d4af37;
    color: #000;
}

/* EXPERIENCE TIMELINE */
.experience {
    margin-top: 5rem;
}

.exp-title {
    color: #d4af37;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    letter-spacing: 3px;
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 50px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #d4af37, transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-marker {
    position: absolute;
    left: -56px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: #d4af37;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.8);
}

.timeline-content {
    background: rgba(26, 26, 26, 0.6);
    border-left: 3px solid #d4af37;
    padding: 1.5rem;
}

.date {
    color: #d4af37;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 2px;
}

.timeline-content h4 {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

.timeline-content p {
    color: #999;
}

/* WORK SECTION */
.work {
    background: rgba(0, 0, 0, 0.8);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: rgba(26, 26, 26, 0.9);
    border: 2px solid rgba(212, 175, 55, 0.2);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s;
}

.project-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

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

.project-card:hover {
    border-color: #d4af37;
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(212, 175, 55, 0.3);
}

.project-content {
    position: relative;
    z-index: 1;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.project-tags span {
    padding: 0.4rem 0.8rem;
    background: linear-gradient(135deg, #d4af37, #ffd700);
    color: #000;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.project-card h3 {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.project-card p {
    color: #999;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.project-btn {
    color: #d4af37;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 2px;
    transition: all 0.3s;
    display: inline-block;
}

.project-btn:hover {
    color: #ffd700;
    transform: translateX(10px);
}

/* CONTACT SECTION */
.contact {
    background: rgba(10, 10, 10, 0.8);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1.2rem;
    background: rgba(26, 26, 26, 0.8);
    border: 2px solid rgba(212, 175, 55, 0.3);
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-box {
    background: rgba(26, 26, 26, 0.6);
    border-left: 3px solid #d4af37;
    padding: 1.5rem;
}

.info-box h4 {
    color: #d4af37;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.info-box a,
.info-box p {
    color: #999;
    text-decoration: none;
    transition: color 0.3s;
}

.info-box a:hover {
    color: #d4af37;
}

.social {
    display: flex;
    gap: 1rem;
}

.social a {
    padding: 0.5rem 1rem;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.4);
    transition: all 0.3s;
}

.social a:hover {
    background: #d4af37;
    color: #000;
}

/* FOOTER */
.footer {
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.95);
    border-top: 2px solid rgba(212, 175, 55, 0.3);
    padding: 4rem 5rem 2rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: #d4af37;
    margin-bottom: 1rem;
    letter-spacing: 3px;
}

.footer-left p {
    color: #999;
    line-height: 1.8;
}

.footer-tagline {
    color: #666 !important;
    font-style: italic;
    margin-top: 1rem;
}

.footer-center h4,
.footer-right h4 {
    color: #d4af37;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 600;
}

.footer-links a:hover {
    color: #d4af37;
    transform: translateX(5px);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-btn {
    padding: 0.8rem 1.5rem;
    background: rgba(212, 175, 55, 0.1);
    border: 2px solid rgba(212, 175, 55, 0.3);
    color: #d4af37;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 2px;
    transition: all 0.3s;
    text-align: center;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.social-icon {
    width: 24px;
    height: 24px;
    fill: #d4af37;
    transition: all 0.3s;
}

.social-btn span {
    flex: 1;
}

.social-btn:hover {
    background: #d4af37;
    color: #000;
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}

.social-btn:hover .social-icon {
    fill: #000;
    transform: scale(1.2) rotate(5deg);
}

.footer-bottom {
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    padding-top: 2rem;
    text-align: center;
    color: #666;
}

.footer-bottom p {
    margin: 0.5rem 0;
    letter-spacing: 2px;
    font-size: 0.85rem;
}

/* PROJECTS PAGE HERO */
.projects-hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 8rem 2rem 4rem;
}

.projects-hero-tag {
    color: #d4af37;
    font-weight: 700;
    letter-spacing: 4px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.projects-hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 900;
    color: #d4af37;
    letter-spacing: 8px;
    margin-bottom: 2rem;
    text-shadow: 0 0 40px rgba(212, 175, 55, 0.5);
}

.projects-hero-desc {
    max-width: 800px;
    margin: 0 auto 4rem;
    color: #999;
    font-size: 1.1rem;
    line-height: 1.8;
}

.stats-row {
    display: flex;
    gap: 4rem;
    justify-content: center;
    flex-wrap: wrap;
}

.stat-box {
    text-align: center;
}

.stat-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    color: #d4af37;
    line-height: 1;
}

.stat-label {
    color: #666;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* PROJECT DETAIL CARDS */
.projects-detail-section {
    padding: 4rem 2rem 8rem;
    position: relative;
    z-index: 1;
}

.project-detail-card {
    background: rgba(26, 26, 26, 0.9);
    border: 2px solid rgba(212, 175, 55, 0.2);
    padding: 3rem;
    margin-bottom: 4rem;
    transition: all 0.4s;
}

.project-detail-card:hover {
    border-color: #d4af37;
    box-shadow: 0 20px 60px rgba(212, 175, 55, 0.2);
}

.project-header {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.project-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    color: rgba(212, 175, 55, 0.2);
    line-height: 1;
}

.project-header-content {
    flex: 1;
}

.project-header-content h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: #d4af37;
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
}

.project-tagline {
    color: #999;
    font-size: 1.1rem;
}

.project-status {
    padding: 0.6rem 1.5rem;
    background: rgba(212, 175, 55, 0.1);
    border: 2px solid #d4af37;
    color: #d4af37;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.75rem;
}

/* PROJECT MEDIA GRID */
.project-media-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.media-main {
    height: 400px;
}

.media-secondary {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.media-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.8);
    border: 2px dashed rgba(212, 175, 55, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.3s;
    overflow: hidden;
    position: relative;
}

.media-placeholder:hover {
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.05);
}

.media-placeholder.small {
    height: 190px;
}

/* Image styling within placeholder */
.media-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.media-placeholder:hover img {
    transform: scale(1.05);
}

.placeholder-text {
    color: #d4af37;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

/* When image exists, hide text */
.placeholder-text:has(img) {
    margin: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.media-placeholder p {
    text-align: center;
    line-height: 1.8;
}

/* PROJECT VIDEO */
.project-video {
    margin-bottom: 3rem;
}

.video-placeholder {
    height: 450px;
    background: rgba(10, 10, 10, 0.9);
    border: 2px dashed rgba(212, 175, 55, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.video-placeholder:hover {
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.05);
}

.play-icon {
    font-size: 4rem;
    color: #d4af37;
    margin-bottom: 1rem;
}

.video-placeholder p {
    color: #d4af37;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.video-placeholder span {
    color: #666;
}

/* PROJECT DETAILS */
.project-details {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
}

.detail-col h3 {
    color: #d4af37;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.detail-col h3:first-child {
    margin-top: 0;
}

.detail-col p {
    color: #999;
    line-height: 1.8;
}

.feature-list {
    list-style: none;
    color: #999;
}

.feature-list li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.feature-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: #d4af37;
    font-weight: 700;
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tech-badge {
    padding: 0.6rem 1.2rem;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: #d4af37;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.project-link-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.project-link-btn {
    padding: 1rem 2rem;
    background: #d4af37;
    color: #000;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 2px;
    transition: all 0.3s;
    border: 2px solid #d4af37;
}

.project-link-btn:hover {
    background: #ffd700;
    transform: translateY(-3px);
}

.project-link-btn.outline {
    background: transparent;
    color: #d4af37;
}

.project-link-btn.outline:hover {
    background: #d4af37;
    color: #000;
}

/* ADD PROJECT NOTE */
.add-project-note {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(26, 26, 26, 0.5);
    border: 2px dashed rgba(212, 175, 55, 0.3);
}

.note-icon {
    font-size: 4rem;
    color: rgba(212, 175, 55, 0.3);
    margin-bottom: 1rem;
}

.add-project-note h3 {
    color: #d4af37;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.add-project-note p {
    color: #666;
}

/* Active nav link */
.nav-link.active {
    color: #d4af37;
}

/* Timeline improvements */
.timeline-content ul {
    list-style: none;
    margin-top: 1rem;
    padding-left: 0;
}

.timeline-content li {
    color: #999;
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.timeline-content li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: #d4af37;
}

/* ANIMATED SQUARES - TOP RIGHT */
.square-loader-container {
    position: absolute;
    top: 20%;
    right: 15%;
    z-index: 10;
    width: 100px;
    height: 100px;
}

.square-loader-container .square {
    width: 10px;
    height: 35px;
    background: linear-gradient(135deg, #c084fc, #fbbf24);
    border-radius: 12px;
    display: block;
    animation: turn 2.5s ease infinite;
    box-shadow: 0 2px 20px rgba(192, 132, 252, 0.8);
}

.square-loader-container .top {
    position: absolute;
    left: 40%;
    top: 50%;
    transform: rotate(90deg);
}

.square-loader-container .bottom {
    position: absolute;
    left: 40%;
    top: 50%;
    transform: rotate(-90deg);
}

.square-loader-container .left {
    position: absolute;
    left: 40%;
    top: 50%;
}

.square-loader-container .right {
    position: absolute;
    left: 40%;
    top: 50%;
    transform: rotate(-180deg);
}

@keyframes turn {
    0% {
        transform: translateX(0) translateY(0) rotate(0);
    }
    70% {
        transform: translateX(400%) translateY(100%) rotate(90deg);
    }
    100% {
        transform: translateX(0) translateY(0) rotate(0);
    }
}

/* ANIMATED TOOLTIP - BOTTOM LEFT */
.loading {
    position: absolute;
    bottom: 15rem;
    left: 10rem;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.9;
}

.loading-wide {
    width: 180px;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.color {
    background: linear-gradient(135deg, #c084fc, #fbbf24);
    box-shadow: 0 0 20px rgba(192, 132, 252, 0.6);
}

.l1 {
    width: 15px;
    height: 65px;
    position: absolute;
    animation: move-h 1.2s infinite cubic-bezier(0.65, 0.05, 0.36, 1);
}

.l2 {
    width: 15px;
    height: 60px;
    position: absolute;
    transform: rotate(90deg);
    animation: move-v 1.2s infinite cubic-bezier(0.65, 0.05, 0.36, 1);
}

@keyframes move-h {
    0% {
        top: 0;
        opacity: 0;
    }
    25% {
        opacity: 1;
    }
    50% {
        top: 30%;
        opacity: 1;
    }
    75% {
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

@keyframes move-v {
    0% {
        left: 0;
        opacity: 0;
    }
    25% {
        opacity: 1;
    }
    50% {
        left: 45%;
        opacity: 1;
    }
    75% {
        opacity: 1;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

.animation-effect-light {
    animation: effect 0.2s 0.1s infinite linear;
}

.animation-effect-light-d {
    animation: effect 0.3s 0.2s infinite linear;
}

.animation-effect-rot {
    animation: rot 0.8s infinite cubic-bezier(0.65, 0.05, 0.36, 1);
}

.animation-effect-scale {
    animation: scale 0.8s infinite cubic-bezier(0.65, 0.05, 0.36, 1);
}

@keyframes effect {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@keyframes rot {
    0% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(180deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes scale {
    0% {
        scale: 1;
    }
    50% {
        scale: 1.9;
    }
    100% {
        scale: 1;
    }
}

.e1 {
    width: 1px;
    height: 40px;
    opacity: 0.3;
    position: absolute;
    top: 0;
    left: 8%;
}

.e2 {
    width: 60px;
    height: 1px;
    opacity: 0.8;
    position: absolute;
    top: 8%;
    left: 0;
}

.e3 {
    position: absolute;
    top: 10%;
    left: 12%;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 18px;
    background: linear-gradient(135deg, #a855f7, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.8));
}

.e4 {
    width: 1px;
    height: 40px;
    opacity: 0.5;
    position: absolute;
    top: 90%;
    right: 10%;
}

.e5 {
    width: 40px;
    height: 1px;
    opacity: 0.5;
    position: absolute;
    top: 100%;
    right: 0;
}

.e6 {
    position: absolute;
    top: 100%;
    right: 0;
    font-family: 'Orbitron', sans-serif;
    font-size: 32px;
    background: linear-gradient(135deg, #a855f7, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.8));
}

.e7 {
    width: 1px;
    height: 20px;
    position: absolute;
    bottom: 0;
    left: 0;
    transform: rotate(45deg);
    animation: height 1s infinite cubic-bezier(0.65, 0.05, 0.36, 1);
}

@keyframes height {
    0% {
        bottom: 0%;
        left: 0%;
        height: 0px;
    }
    25% {
        height: 90px;
    }
    50% {
        bottom: 100%;
        left: 100%;
        height: 90px;
    }
    75% {
        height: 0px;
    }
    100% {
        bottom: 0%;
        left: 0%;
        height: 0px;
    }
}

.e8 {
    width: 20px;
    height: 1px;
    position: absolute;
    bottom: 50%;
    left: 0;
    animation: width 1.5s infinite cubic-bezier(0.65, 0.05, 0.36, 1);
}

@keyframes width {
    0% {
        left: 0%;
        width: 0px;
    }
    50% {
        left: 100%;
        width: 90px;
    }
    100% {
        left: 0%;
        width: 0px;
    }
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .navbar {
        padding: 1.5rem 2rem;
    }
    
    section {
        padding: 6rem 2rem;
    }
    
    .hero {
        padding: 4rem 2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .project-media-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .media-main {
        height: 300px;
    }
    
    .media-secondary {
        flex-direction: row;
        gap: 1rem;
    }
    
    .media-placeholder.small {
        height: 150px;
    }
    
    .project-details {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .square-loader-container {
        right: 5%;
        top: 15%;
    }
    
    .loading {
        left: 5%;
        bottom: 10rem;
    }
}

@media (max-width: 768px) {
    /* Navigation */
    .navbar {
        padding: 1rem 1.5rem;
    }
    
    .nav-brand {
        font-size: 1.2rem;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 75%;
        max-width: 300px;
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        padding: 2rem;
        transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        border-left: 2px solid rgba(212, 175, 55, 0.3);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
        opacity: 0;
        transform: translateX(50px);
        animation: slideIn 0.5s forwards;
    }
    
    .nav-menu.active li:nth-child(1) {
        animation-delay: 0.1s;
    }
    
    .nav-menu.active li:nth-child(2) {
        animation-delay: 0.2s;
    }
    
    .nav-menu.active li:nth-child(3) {
        animation-delay: 0.3s;
    }
    
    .nav-menu.active li:nth-child(4) {
        animation-delay: 0.4s;
    }
    
    @keyframes slideIn {
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    .nav-menu a {
        font-size: 1.2rem;
        display: block;
        padding: 1rem;
        border-bottom: 1px solid rgba(212, 175, 55, 0.1);
        width: 100%;
    }
    
    .nav-menu a:hover {
        background: rgba(212, 175, 55, 0.1);
    }
    
    /* Hero Section */
    .hero {
        padding: 2rem 1.5rem;
        min-height: 100vh;
    }
    
    .hero-greeting {
        font-size: 0.9rem;
    }
    
    .hero-title,
    .glitch {
        font-size: clamp(2.5rem, 12vw, 4rem) !important;
    }
    
    .hero-subtitle {
        font-size: clamp(0.9rem, 3vw, 1.2rem);
    }
    
    .hero-desc {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        padding: 1rem 2rem;
    }
    
    /* Hide animated elements on mobile */
    .square-loader-container {
        display: none;
    }
    
    .loading {
        display: none;
    }
    
    .scroll-down {
        bottom: 2rem;
    }
    
    /* Section Titles */
    .section-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .section-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    /* About Section */
    .about {
        padding: 4rem 1.5rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .skill-box {
        padding: 2rem 1.5rem;
    }
    
    .skill-icon {
        width: 80px;
        height: 80px;
    }
    
    .tags {
        gap: 0.5rem;
    }
    
    .tags span {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    
    /* Timeline */
    .timeline {
        padding-left: 30px;
    }
    
    .timeline::before {
        left: 0;
    }
    
    .timeline-marker {
        left: -36px;
        width: 10px;
        height: 10px;
    }
    
    .timeline-content {
        padding: 1rem;
    }
    
    .timeline-content h4 {
        font-size: 1.1rem;
    }
    
    /* Projects Page */
    .projects-hero {
        padding: 6rem 1.5rem 3rem;
        min-height: 60vh;
    }
    
    .projects-hero-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
        letter-spacing: 4px;
    }
    
    .stats-row {
        gap: 2rem;
        flex-direction: column;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .projects-detail-section {
        padding: 2rem 1rem 4rem;
    }
    
    .project-detail-card {
        padding: 1.5rem;
    }
    
    .project-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .project-number {
        font-size: 2.5rem;
    }
    
    .project-header-content h2 {
        font-size: 1.8rem;
    }
    
    .project-status {
        align-self: flex-start;
    }
    
    .project-media-grid {
        grid-template-columns: 1fr;
    }
    
    .media-main {
        height: 250px;
    }
    
    .media-secondary {
        flex-direction: column;
        gap: 1rem;
    }
    
    .media-placeholder.small {
        height: 200px;
    }
    
    .video-placeholder {
        height: 300px;
    }
    
    .project-details {
        grid-template-columns: 1fr;
    }
    
    .tech-grid {
        gap: 0.5rem;
    }
    
    .tech-badge {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
    }
    
    .project-link-buttons {
        flex-direction: column;
    }
    
    .project-link-btn {
        width: 100%;
        text-align: center;
    }
    
    /* Contact Section */
    .contact {
        padding: 4rem 1.5rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    .contact-form input,
    .contact-form textarea {
        font-size: 0.9rem;
    }
    
    /* Footer */
    .footer {
        padding: 3rem 1.5rem 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-brand {
        font-size: 1.5rem;
    }
    
    .footer-links {
        align-items: center;
    }
    
    .social-links {
        align-items: center;
    }
    
    .social-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .footer-bottom p {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    /* Extra small devices */
    .hero-title,
    .glitch {
        font-size: 2.5rem !important;
        letter-spacing: 2px;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
        letter-spacing: 1px;
    }
    
    .section-title {
        font-size: 2rem;
        letter-spacing: 2px;
    }
    
    .skill-box h3 {
        font-size: 1.1rem;
    }
    
    .project-header-content h2 {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }
    
    .projects-hero-title {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .btn {
        font-size: 0.85rem;
        padding: 0.9rem 1.5rem;
    }
}