/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #0f0f0f;
    color: #fff;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* ===== LOADER ===== */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0f0f0f;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loader.hidden {
    opacity: 0;
    visibility: hidden;
}

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

.spinner-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.spinner {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #00ffff;
    animation: bounce 0.6s infinite alternate;
}

.spinner:nth-child(2) { animation-delay: 0.2s; }
.spinner:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
    to { transform: translateY(-15px); }
}

.loading-text {
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 10px;
    color: #00ffff;
}

.loading-progress {
    width: 200px;
    height: 5px;
    background: #222;
    margin: 0 auto;
    border-radius: 5px;
    overflow: hidden;
}

.loading-bar {
    width: 0%;
    height: 100%;
    background: #00ffff;
    animation: load 2s forwards;
}

@keyframes load {
    to { width: 100%; }
}

/* ===== NAVBAR ===== */
nav {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(10px);
    padding: 15px 50px;
    display: flex;
    justify-content: center;
    transition: all 0.3s ease;
}

nav.scrolled {
    background: rgba(15, 15, 15, 0.95);
    padding: 10px 50px;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #00ffff;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links li {
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #00ffff;
}

/* Hamburger Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    background: #00ffff33;
    animation: float 12s infinite alternate;
}

.orb-1 { width: 200px; height: 200px; top: 20%; left: 10%; animation-delay: 0s; }
.orb-2 { width: 300px; height: 300px; top: 40%; left: 70%; animation-delay: 2s; }
.orb-3 { width: 150px; height: 150px; top: 60%; left: 30%; animation-delay: 4s; }

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-50px) rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid #00ffff;
    margin-bottom: 15px;
    transition: transform 0.3s;
}

.hero-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px #00ffff;
}

.hero-badge {
    background: #00ffff;
    display: inline-block;
    padding: 5px 15px;
    border-radius: 50px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #000;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 10px;
}

.gradient-text {
    background: linear-gradient(90deg, #00ffff, #002bff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #ccc;
}

.hero-description {
    font-size: 1rem;
    margin-bottom: 25px;
    line-height: 1.6;
}

.btn {
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary {
    background: #00ffff;
    color: #000;
}

.btn-primary:hover {
    background: #002bff;
    color: #fff;
}

.btn-secondary {
    background: transparent;
    border: 2px solid #00ffff;
    color: #fff;
}

.btn-secondary:hover {
    background: #00ffff;
    color: #000;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator span {
    display: block;
    width: 3px;
    height: 30px;
    background: #00ffff;
    animation: scroll 1.5s infinite;
    border-radius: 2px;
}

@keyframes scroll {
    0%, 20% { transform: translateY(0); }
    50%, 70% { transform: translateY(15px); }
    100% { transform: translateY(0); }
}

/* ===== SECTIONS ===== */
section {
    padding: 100px 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
}

/* Glass Card */
.glass-card {
    background: rgba(0, 43, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 20px;
    padding: 25px;
    backdrop-filter: blur(15px);
    transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
}

.glass-card:hover {
    transform: translateY(-10px);
    background: rgba(0, 255, 255, 0.15);
    box-shadow: 0 0 20px #00ffff;
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.skill-card {
    text-align: center;
}

.skill-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.skill-name {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #00ffff;
}

.skill-description {
    font-size: 0.95rem;
    color: #ccc;
}

/* Tech Stack */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.tech-item {
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: bold;
    background: rgba(0, 255, 255, 0.2);
    color: #fff;
}

/* Experience */
.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.experience-card h3 {
    color: #00ffff;
    margin-bottom: 5px;
}

.experience-card p {
    color: #ccc;
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.project-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.project-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 2px solid #00ffff;
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px #00ffff;
}

.project-title {
    font-size: 1.5rem;
    color: #00ffff;
    margin-bottom: 10px;
}

.project-description {
    font-size: 0.95rem;
    margin-bottom: 10px;
    color: #ccc;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: rgba(0, 255, 255, 0.2);
    color: #fff;
    padding: 5px 10px;
    border-radius: 25px;
    font-size: 0.8rem;
}

/* Contact */
.contact-container {
    text-align: center;
}

.contact-description {
    font-size: 1rem;
    margin-bottom: 20px;
    color: #ccc;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    padding: 10px 15px;
    border-radius: 15px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s;
}

.social-link:hover {
    background: #00ffff;
    color: #000;
}

/* Footer */
footer {
    text-align: center;
    padding: 25px 0;
    background: #111;
    color: #666;
}

/* ===== FADE-IN ANIMATION ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100%;
        width: 250px;
        background: rgba(15, 15, 15, 0.95);
        flex-direction: column;
        padding-top: 80px;
        transition: right 0.3s;
    }

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

    .menu-toggle { display: flex; }
}