* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a0033 0%, #2d0052 50%, #1a0033 100%);
    color: #fff;
    overflow-x: hidden;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(26, 0, 51, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    animation: slideDown 0.8s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.logo {
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(45deg, #00fff2, #00a8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(0, 255, 242, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(0, 255, 242, 0.8));
    }
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00fff2, #00a8ff);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: #00fff2;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8%;
    margin-top: 80px;
}

.hero-content {
    flex: 1;
    animation: fadeInLeft 1s ease;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero h1 .name {
    display: inline-block;
    animation: continuousColorChange 3s linear infinite;
}

@keyframes continuousColorChange {
    0% { color: #00fff2; text-shadow: 0 0 20px rgba(0, 255, 242, 0.8); }
    14% { color: #00d4ff; text-shadow: 0 0 20px rgba(0, 212, 255, 0.8); }
    28% { color: #0099ff; text-shadow: 0 0 20px rgba(0, 153, 255, 0.8); }
    42% { color: #6b5fff; text-shadow: 0 0 20px rgba(107, 95, 255, 0.8); }
    56% { color: #a855f7; text-shadow: 0 0 20px rgba(168, 85, 247, 0.8); }
    70% { color: #ff6ec7; text-shadow: 0 0 20px rgba(255, 110, 199, 0.8); }
    84% { color: #ff5757; text-shadow: 0 0 20px rgba(255, 87, 87, 0.8); }
    100% { color: #00fff2; text-shadow: 0 0 20px rgba(0, 255, 242, 0.8); }
}

.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background-color: currentColor;
    margin-left: 5px;
    animation: blink 0.7s infinite, cursorColorChange 3s linear infinite;
    vertical-align: middle;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes cursorColorChange {
    0% { background-color: #00fff2; }
    14% { background-color: #00d4ff; }
    28% { background-color: #0099ff; }
    42% { background-color: #6b5fff; }
    56% { background-color: #a855f7; }
    70% { background-color: #ff6ec7; }
    84% { background-color: #ff5757; }
    100% { background-color: #00fff2; }
}

.subtitle {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 25px;
    min-height: 45px;
    animation: subtitleColorChange 4s linear infinite;
}

@keyframes subtitleColorChange {
    0% { color: #00fff2; text-shadow: 0 0 15px rgba(0, 255, 242, 0.8); }
    12.5% { color: #00d4ff; text-shadow: 0 0 15px rgba(0, 212, 255, 0.8); }
    25% { color: #0099ff; text-shadow: 0 0 15px rgba(0, 153, 255, 0.8); }
    37.5% { color: #6b5fff; text-shadow: 0 0 15px rgba(107, 95, 255, 0.8); }
    50% { color: #a855f7; text-shadow: 0 0 15px rgba(168, 85, 247, 0.8); }
    62.5% { color: #ff6ec7; text-shadow: 0 0 15px rgba(255, 110, 199, 0.8); }
    75% { color: #ff5757; text-shadow: 0 0 15px rgba(255, 87, 87, 0.8); }
    87.5% { color: #ffa500; text-shadow: 0 0 15px rgba(255, 165, 0, 0.8); }
    100% { color: #00fff2; text-shadow: 0 0 15px rgba(0, 255, 242, 0.8); }
}

.hero p {
    font-size: 16px;
    line-height: 1.8;
    color: #ccc;
    max-width: 600px;
}

.hero-image {
    flex: 0;
    display: flex;
    justify-content: center;
    animation: fadeInRight 1s ease;
}

.circle-container {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 5px solid #000;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 40px rgba(0, 150, 255, 0.8);
}

.circle-container img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.image-container {
    position: relative;
    width: 500px;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.rotating-border {
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #00fff2, #00d4ff, #0099ff, #6b5fff, #a855f7, #ff6ec7, #ff5757, #ffa500, #00fff2);
    animation: rotateGradient 4s linear infinite;
    filter: blur(3px);
}

@keyframes rotateGradient {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ========== FIXED: Profile Image - Background Completely Hidden ========== */
.profile-img {
    width: 500px;           /* ✅ Increased from 480px */
    height: 500px;          /* ✅ Increased from 480px */
    border-radius: 50%;
    object-fit: cover;
    object-position: center center;
    position: relative;
    z-index: 2;
    border: 10px solid rgba(26, 0, 51, 0.95);
    animation: zoomInOut 4s ease-in-out infinite;
    box-shadow: 0 0 50px rgba(0, 255, 242, 0.6);
    filter: brightness(1.05) contrast(1.1);
    transform: scale(1.1);  /* ✅ NEW: Image ko zoom karke background hide kiya */
}

@keyframes zoomInOut {
    0%, 100% { transform: scale(1.1); }    /* ✅ Updated */
    50% { transform: scale(1.18); }        /* ✅ Updated */
}

/* Sections */
section {
    padding: 100px 8%;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

h2 {
    font-size: 42px;
    text-align: center;
    margin-bottom: 60px;
}

h2 span {
    background: linear-gradient(45deg, #00fff2, #00a8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    border: 3px solid #00fff2;
    transition: transform 0.5s ease;
}

.about-image img:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 10px 40px rgba(0, 255, 242, 0.5);
}

.about-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.info-box {
    background: rgba(0, 255, 242, 0.1);
    padding: 20px;
    border-radius: 10px;
    border-left: 3px solid #00fff2;
    transition: all 0.3s ease;
    cursor: pointer;
}

.info-box:hover {
    background: rgba(0, 255, 242, 0.2);
    transform: translateX(10px);
}

.info-box h3 {
    color: #00fff2;
    margin-bottom: 10px;
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.skill-category {
    background: rgba(0, 255, 242, 0.05);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid rgba(0, 255, 242, 0.2);
    transition: all 0.5s ease;
}

.skill-category:hover {
    border-color: #00fff2;
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 255, 242, 0.3);
}

.skill-category h3 {
    color: #00fff2;
    margin-bottom: 20px;
}

.skill-bar {
    margin-bottom: 20px;
}

.skill-bar span {
    display: block;
    margin-bottom: 8px;
    color: #ccc;
}

.progress {
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00fff2 0%, #00d4ff 20%, #0099ff 40%, #6b5fff 60%, #a855f7 80%, #ff6ec7 100%);
    background-size: 200% 100%;
    border-radius: 10px;
    width: 0%;
    animation: continuousSkillAnimation 3s ease-in-out infinite, shimmerEffect 2s linear infinite;
}

@keyframes continuousSkillAnimation {
    0%, 100% { width: 50%; }
    50% { width: var(--max-width); }
}

@keyframes shimmerEffect {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.project-card {
    background: rgba(0, 255, 242, 0.05);
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid rgba(0, 255, 242, 0.2);
    transition: all 0.5s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: #00fff2;
    box-shadow: 0 15px 40px rgba(0, 255, 242, 0.4);
}

.project-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #00fff2, #00a8ff);
    position: relative;
}

.project-image::after {
    content: 'View Project';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 18px;
    font-weight: bold;
}

.project-card:hover .project-image::after {
    opacity: 1;
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    color: #00fff2;
    margin-bottom: 15px;
}

.project-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.tag {
    background: rgba(0, 255, 242, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    color: #00fff2;
    border: 1px solid #00fff2;
    transition: all 0.3s;
}

.tag:hover {
    background: #00fff2;
    color: #1a0033;
    transform: scale(1.1);
}

/* Work Experience Section */
.experience-timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #00fff2 0%, #00a8ff 50%, #6b5fff 100%);
    box-shadow: 0 0 15px rgba(0, 255, 242, 0.6);
}

.experience-item {
    display: flex;
    margin-bottom: 80px;
    position: relative;
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.experience-item.left {
    justify-content: flex-start;
}

.experience-item.right {
    justify-content: flex-end;
}

.experience-card {
    width: 45%;
    background: rgba(30, 15, 60, 0.7);
    border: 2px solid rgba(0, 255, 242, 0.25);
    border-radius: 20px;
    padding: 35px;
    transition: all 0.5s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.experience-item.left .experience-card {
    margin-right: 5%;
}

.experience-item.right .experience-card {
    margin-left: 5%;
}

.experience-card:hover {
    transform: translateY(-10px) scale(1.03);
    border-color: #00fff2;
    box-shadow: 0 15px 50px rgba(0, 255, 242, 0.4);
    background: rgba(30, 15, 60, 0.9);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.experience-header h3 {
    color: #00fff2;
    font-size: 26px;
    font-weight: 700;
}

.experience-date {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 255, 242, 0.15);
    padding: 8px 18px;
    border-radius: 25px;
    border: 1px solid rgba(0, 255, 242, 0.4);
    color: #00fff2;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.calendar-icon {
    font-size: 16px;
}

.company-name {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.95;
}

.experience-details {
    list-style: none;
    padding: 0;
}

.experience-details li {
    color: #b8d4ff;
    line-height: 1.9;
    margin-bottom: 14px;
    padding-left: 30px;
    position: relative;
    font-size: 15px;
}

.experience-details li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: #00fff2;
    font-size: 22px;
    font-weight: bold;
    line-height: 1.4;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 35px;
    transform: translateX(-50%);
    width: 18px;
    height: 18px;
    background: #00fff2;
    border-radius: 50%;
    border: 5px solid #1a0033;
    z-index: 10;
    animation: pulseDot 2s infinite;
    box-shadow: 0 0 25px rgba(0, 255, 242, 0.8);
}

@keyframes pulseDot {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 242, 0.8),
                    0 0 25px rgba(0, 255, 242, 0.8);
    }
    50% {
        box-shadow: 0 0 0 18px rgba(0, 255, 242, 0),
                    0 0 35px rgba(0, 255, 242, 1);
    }
}

/* Education Section */
.education-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.education-card {
    background: rgba(0, 255, 242, 0.05);
    padding: 30px;
    border-radius: 15px;
    border-left: 4px solid #00fff2;
    transition: all 0.5s ease;
    overflow: hidden;
    position: relative;
}

.education-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 242, 0.1), transparent);
    transition: left 0.5s;
}

.education-card:hover::before {
    left: 100%;
}

.education-card:hover {
    transform: translateX(10px);
    box-shadow: -5px 5px 20px rgba(0, 255, 242, 0.3);
}

.education-card h3 {
    color: #00fff2;
    margin-bottom: 10px;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(0, 255, 242, 0.05);
    border-radius: 10px;
    border-left: 3px solid #00fff2;
    transition: all 0.3s;
}

.contact-item:hover {
    background: rgba(0, 255, 242, 0.1);
    transform: translateX(10px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(0, 255, 242, 0.05);
    border: 2px solid rgba(0, 255, 242, 0.2);
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00fff2;
    box-shadow: 0 0 15px rgba(0, 255, 242, 0.3);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    padding: 15px 40px;
    background: linear-gradient(45deg, #00fff2, #00a8ff);
    border: none;
    border-radius: 30px;
    color: #1a0033;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 255, 242, 0.5);
}

/* Particles */
.particles {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #00fff2;
    border-radius: 50%;
    animation: particleFloat 15s infinite;
    opacity: 0.3;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10%, 90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

/* Scroll to Top */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #00fff2, #00a8ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s;
    z-index: 1000;
    font-size: 24px;
    color: #1a0033;
    font-weight: bold;
}

.scroll-top.visible {
    opacity: 1;
}

.scroll-top:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 255, 242, 0.5);
}

/* Responsive */
@media (max-width: 968px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero h1 {
        font-size: 36px;
    }

    .subtitle {
        font-size: 24px;
    }

    .image-container {
        width: 350px;
        height: 350px;
    }

    .rotating-border {
        width: 370px;
        height: 370px;
    }

    .profile-img {
        width: 360px;
        height: 360px;
    }

    .about-content,
    .skills-container,
    .contact-container,
    .education-grid {
        grid-template-columns: 1fr;
    }

    .experience-timeline::before {
        left: 20px;
    }

    .experience-item.left,
    .experience-item.right {
        justify-content: flex-start;
        padding-left: 50px;
    }

    .experience-card {
        width: 100%;
        margin: 0 !important;
    }

    .timeline-dot {
        left: 20px;
        transform: translateX(0);
    }

    .experience-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
