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

body {
    font-family: 'Inter', sans-serif;
    background-color: #050b14;
    color: #eef5ff;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Custom Cursor Glow */
.cursor-glow {
    position: fixed;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.15) 0%, rgba(0, 255, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    filter: blur(40px);
    transition: transform 0.05s linear;
    will-change: transform;
}

/* Scanline overlay */
.scan-line {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg, rgba(0, 255, 255, 0.02) 0px, rgba(0, 255, 255, 0.02) 2px, transparent 2px, transparent 6px);
    pointer-events: none;
    z-index: 10000;
}

/* loading screen */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #03060c;
    z-index: 20000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    backdrop-filter: blur(20px);
    transition: opacity 1.2s cubic-bezier(0.23, 1, 0.32, 1);
    font-family: 'Space Mono', monospace;
}
.loader-content {
    text-align: center;
}
.loader h1 {
    font-size: 2.2rem;
    background: linear-gradient(135deg, #0ff, #a0f);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 4px;
}
.loader-bar {
    width: 240px;
    height: 3px;
    background: rgba(0, 255, 255, 0.2);
    margin-top: 20px;
    border-radius: 10px;
    overflow: hidden;
}
.loader-progress {
    width: 0%;
    height: 100%;
    background: #0ff;
    box-shadow: 0 0 12px cyan;
    transition: width 0.2s ease;
}

/* global glass & neon */
.glass-card {
    background: rgba(10, 20, 35, 0.45);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 255, 255, 0.25);
    border-radius: 28px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 255, 255, 0.05);
    transition: all 0.4s ease;
}
.glass-card:hover {
    border-color: #0ff;
    box-shadow: 0 20px 40px rgba(0, 255, 255, 0.2), inset 0 0 20px rgba(0, 255, 255, 0.2);
}

/* navbar */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    max-width: 1200px;
    z-index: 1000;
    background: rgba(5, 15, 25, 0.65);
    backdrop-filter: blur(18px);
    border-radius: 60px;
    border: 1px solid rgba(0, 255, 255, 0.4);
    padding: 0.8rem 2rem;
    transition: all 0.3s;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-weight: 800;
    font-size: 1.5rem;
    background: linear-gradient(120deg, #0ff, #d0f);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.nav-links {
    display: flex;
    gap: 1.8rem;
    list-style: none;
}
.nav-links a {
    text-decoration: none;
    color: #ccf4ff;
    font-weight: 500;
    transition: 0.2s;
    position: relative;
}
.social-card{
    text-decoration: none;
    color: inherit;
}
.nav-links a:hover {
    color: #0ff;
    text-shadow: 0 0 8px cyan;
}
.nav-links a.active {
    color: #0ff;
}
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: #0ff;
    transition: 0.3s;
    box-shadow: 0 0 6px cyan;
}
.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}
.menu-icon {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #0ff;
}
@media (max-width: 880px) {
    .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    flex-direction: column;
    background: rgba(0, 10, 20, 0.95);
    backdrop-filter: blur(20px);
    width: 70%;
    height: auto;
    border-radius: 28px;
    padding: 2rem;
    transition: 0.4s;
    border: 1px solid cyan;
    gap: 1.5rem;
    }
    .nav-links.active {
    left: 5%;
    }
    .menu-icon {
    display: block;
    }
    .navbar {
    width: 92%;
    padding: 0.6rem 1.2rem;
    }
}

/* sections general */
section {
    padding: 120px 5% 100px;
    position: relative;
    z-index: 5;
}
.section-title {
    font-size: 3.3rem;
    font-weight: 800;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #fff, #0ff, #a55eff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -1px;
    text-align: center;
}

/* home */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}
.hero-content {
    flex: 1;
}
.hero-img {
    flex: 0.8;
    text-align: center;
}
.profile-pic {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #0ff;
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.5);
    background: rgba(0,0,0,0.4);
}
.glow-text {
    font-size: 1rem;
    color: #7df9ff;
}
.role-changer {
    font-size: 2rem;
    font-weight: 700;
    margin: 15px 0;
    background: linear-gradient(135deg, #0ff, #bf5eff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.stats-row {
    display: flex;
    gap: 2rem;
    margin: 30px 0;
}
.stat-card {
    background: rgba(0, 20, 40, 0.5);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 1rem 1.6rem;
    text-align: center;
    border-left: 2px solid cyan;
}
.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0ff;
}
.btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.btn-neon {
    background: transparent;
    border: 1.5px solid #0ff;
    padding: 12px 28px;
    border-radius: 40px;
    color: #0ff;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 0 8px rgba(0,255,255,0.3);
}
.btn-neon:hover {
    background: #0ff;
    color: #000;
    box-shadow: 0 0 20px cyan;
    transform: scale(1.02);
}
/* skills grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.skill-category {
    background: rgba(12, 25, 45, 0.55);
    backdrop-filter: blur(12px);
    border-radius: 32px;
    padding: 1.5rem;
    transition: transform 0.3s;
}
.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}
.skill-badge {
    background: rgba(0, 255, 255, 0.1);
    border-radius: 30px;
    padding: 8px 18px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(0,255,255,0.3);
    transition: 0.2s;
}
.skill-badge i {
    margin-right: 8px;
    color: #0ff;
}
.progress-bar-bg {
    height: 6px;
    background: #1f2a3e;
    border-radius: 10px;
    margin-top: 8px;
    width: 100%;
}
.progress-fill {
    width: 85%;
    height: 6px;
    background: linear-gradient(90deg, #0ff, #a55eff);
    border-radius: 10px;
    box-shadow: 0 0 5px cyan;
}

/* project cards */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}
.project-card {
    background: rgba(8, 18, 32, 0.6);
    backdrop-filter: blur(14px);
    border-radius: 32px;
    overflow: hidden;
    transition: all 0.4s;
    transform-style: preserve-3d;
}
.carousel {
    position: relative;
    height: 200px;
    overflow: hidden;
}
.carousel-images {
    display: flex;
    transition: transform 0.4s ease;
}
.carousel-img {
    min-width: 100%;
    height: 200px;
    object-fit: cover;
}
.carousel-btn {
    position: absolute;
    top: 50%;
    background: rgba(0,0,0,0.6);
    color: cyan;
    border: none;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 30px;
}
.tech-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 1rem 0;
}
.project-card h3 {
    font-size: 1.6rem;
    margin: 0.6rem 0;
}

/* certificates 3D flip */
.certs-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}
.flip-card {
    width: 280px;
    height: 340px;
    perspective: 1500px;
}
.flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    border-radius: 24px;
}
.flip-card:hover .flip-inner {
    transform: rotateY(180deg);
}
.flip-front, .flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 24px;
    background: rgba(20, 30, 50, 0.7);
    backdrop-filter: blur(16px);
    border: 1px solid cyan;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.flip-back {
    transform: rotateY(180deg);
    background: rgba(0, 15, 30, 0.9);
}

/* journey timeline */
.journey-container {
    position: relative;
    max-width: 900px;
    margin: auto;
}
.timeline {
    position: relative;
    padding-left: 30px;
    border-left: 3px solid cyan;
}
.timeline-node {
    margin-bottom: 40px;
    position: relative;
}
.timeline-node::before {
    content: '';
    position: absolute;
    left: -41px;
    top: 0;
    width: 18px;
    height: 18px;
    background: #0ff;
    border-radius: 50%;
    box-shadow: 0 0 15px cyan;
}

/* contact social cards */
.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}
.social-card {
    background: rgba(0, 30, 50, 0.5);
    backdrop-filter: blur(10px);
    width: 120px;
    padding: 1.2rem;
    text-align: center;
    border-radius: 40px;
    transition: 0.3s;
}
.social-card i {
    font-size: 2.5rem;
    color: #0ff;
}

footer {
    text-align: center;
    padding: 2rem;
    background: rgba(0,0,0,0.6);
    border-top: 1px solid cyan;
}
@media (max-width: 780px) {
    .section-title{ font-size: 2.2rem; }
}