/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #000;
    color: #fff;
    overflow-x: hidden;
    cursor: none;
}

/* ===== CUSTOM CURSOR ===== */
.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid #00ffff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.1s ease;
}

.cursor-trail {
    position: fixed;
    width: 6px;
    height: 6px;
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
}

/* ===== LOADING SCREEN ===== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #0a0a0a, #1a0a2e, #16213e);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 1s ease;
}

.loading-text {
    font-size: 2rem;
    font-weight: 300;
    background: linear-gradient(45deg, #00ffff, #ff00ff, #ffff00);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 2s ease-in-out infinite;
}

/* ===== ANIMATIONS ===== */
@keyframes gradientShift {
    0%, 100% { 
        background-position: 0% 50%; 
    }
    50% { 
        background-position: 100% 50%; 
    }
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ===== 3D SCENE CONTAINER ===== */
#scene-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* ===== UI OVERLAY ===== */
.ui-overlay {
    position: relative;
    z-index: 100;
    pointer-events: none;
}

/* ===== NAVIGATION ===== */
.nav {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 30px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 15px 30px;
    pointer-events: all;
    z-index: 1000;
}

.nav-item {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 16px;
    border-radius: 25px;
}

.nav-item:hover {
    background: linear-gradient(45deg, #00ffff22, #ff00ff22);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 255, 255, 0.3);
}

/* ===== HERO SECTION ===== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
    pointer-events: all;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 8rem);
    font-weight: 900;
    background: linear-gradient(45deg, #00ffff, #ff00ff, #ffff00, #00ff00);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease-in-out infinite;
    margin-bottom: 20px;
    text-shadow: 0 0 50px rgba(0, 255, 255, 0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    font-weight: 300;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    border: none;
    border-radius: 50px;
    color: #000;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 255, 255, 0.4);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

/* ===== CONTENT SECTIONS ===== */
.content-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 20px;
    position: relative;
}

.content-card {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 50px;
    max-width: 800px;
    margin: 0 auto;
    pointer-events: all;
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.8s ease;
}

.content-card.visible {
    transform: translateY(0);
    opacity: 1;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 30px;
}

.section-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

/* ===== PROJECTS GRID ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.project-card {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00ffff, #ff00ff, #ffff00);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 255, 255, 0.5);
    box-shadow: 0 20px 40px rgba(0, 255, 255, 0.2);
}

.project-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #00ffff;
    margin-bottom: 15px;
}

.project-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 20px;
}

.project-link {
    color: #ff00ff;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.project-link:hover {
    color: #00ffff;
    transform: translateX(5px);
}

/* ===== SOCIAL LINKS ===== */
.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.social-link {
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.4s ease;
    border: 2px solid rgba(0, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #00ffff22, #ff00ff22);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.social-link:hover::before {
    opacity: 1;
}

.social-link:hover {
    transform: translateY(-8px) scale(1.1);
    border-color: #00ffff;
    box-shadow: 
        0 15px 30px rgba(0, 255, 255, 0.4),
        0 0 20px rgba(0, 255, 255, 0.6),
        inset 0 0 20px rgba(0, 255, 255, 0.1);
}

.social-icon {
    width: 24px;
    height: 24px;
    fill: #fff;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 5px rgba(0, 255, 255, 0.5));
}

.social-link:hover .social-icon {
    fill: #00ffff;
    filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.8));
    transform: scale(1.1);
}

/* ===== FLOATING PARTICLES ===== */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    border-radius: 50%;
    pointer-events: none;
}

/* ===== CONTACT POPUP ===== */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.popup-content {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px;
    max-width: 400px;
    width: 90%;
    position: relative;
    transform: scale(0.8) translateY(50px);
    transition: all 0.3s ease;
}

.popup-overlay.active .popup-content {
    transform: scale(1) translateY(0);
}

.popup-title {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 30px;
    text-align: center;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.contact-item:hover {
    border-color: rgba(0, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 255, 255, 0.2);
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #00ffff, #ff00ff);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.contact-item:hover::before {
    transform: scaleX(1);
}

.contact-label {
    font-weight: 600;
    color: #00ffff;
    font-size: 0.9rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-value {
    color: #fff;
    font-size: 1.1rem;
    word-break: break-all;
}

.contact-value a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-value a:hover {
    color: #ff00ff;
}

.close-popup {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-popup:hover {
    background: rgba(255, 0, 255, 0.2);
    color: #ff00ff;
    transform: rotate(90deg);
}

/* ===== NOTIFICATIONS ===== */
.copy-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    color: #000;
    padding: 15px 25px;
    border-radius: 10px;
    font-weight: 600;
    transform: translateY(-100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10002;
}

.copy-notification.show {
    transform: translateY(0);
    opacity: 1;
}

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #00ffff, #ff00ff, #ffff00);
    transform-origin: left;
    z-index: 1001;
}

/* ===== MOBILE RESPONSIVENESS ===== */
@media (max-width: 768px) {
    .nav {
        top: 20px;
        gap: 20px;
        padding: 10px 20px;
    }

    .hero-title {
        font-size: clamp(2rem, 10vw, 4rem);
    }

    .content-card {
        padding: 30px 20px;
        margin: 0 20px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .popup-content {
        padding: 30px 20px;
        margin: 0 20px;
    }

    .popup-title {
        font-size: 1.5rem;
    }

    .contact-item {
        padding: 15px;
    }
}
        
/* TryHackMe Badge */
.tryhackme-badge {
    margin: 30px 0;
}

.tryhackme-badge iframe {
    pointer-events: none;
    cursor: none;
    display: block;
    width: 100%;
}

.cv-download {
    margin: 2rem 0;
}

.cv-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cv-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.cv-icon {
    flex-shrink: 0;
}