* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: #e0f2ff;
    
    /* Modern animated gradient background */
    background: linear-gradient(270deg, #0a0a2a, #1a1a3a, #0a0a2a, #16213e);
    background-size: 400% 400%;
    animation: gradientShift 25s ease infinite;
    min-height: 100vh;
}

/* Animated Background Keyframes */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 42, 0.95);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo span {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(90deg, #00d4ff, #00ffaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    color: #e0f2ff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: #00d4ff;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hamburger */
.menu-toggle {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: #00d4ff;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 2rem 100px; 
}
.hero-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    width: 100%;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1;
    min-width: 300px;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.highlight {
    background: linear-gradient(90deg, #00d4ff, #00ffaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tagline {
    font-size: 1.4rem;
    color: #00d4ff;
    margin-bottom: 1rem;
    font-weight: 500;
}

.intro {
    font-size: 1.2rem;
    max-width: 480px;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(90deg, #00d4ff, #00ffaa);
    color: #0a0a2a;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.4);
}

.btn-secondary {
    border: 2px solid #00d4ff;
    color: #e0f2ff;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #00d4ff;
    color: #0a0a2a;
}

.quote {
    margin-top: 3rem;
    font-style: italic;
    opacity: 0.8;
    font-size: 1.1rem;
    border-left: 4px solid #00d4ff;
    padding-left: 1rem;
}

.hero-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

.image-wrapper {
    position: relative;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 60px rgba(0, 212, 255, 0.5);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.4s ease;
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent, rgba(0, 212, 255, 0.15), transparent);
    animation: overlayGlow 8s linear infinite;
}

@keyframes overlayGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 20px; 
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    opacity: 0.6;
}

.arrow {
    width: 20px;
    height: 20px;
    border-right: 3px solid #00d4ff;
    border-bottom: 3px solid #00d4ff;
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20% { transform: translateY(0) rotate(45deg); }
    50% { transform: translateY(12px) rotate(45deg); }
    100% { transform: translateY(0) rotate(45deg); }
}

/* Section Styles */
.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 2rem 80px;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #00d4ff, #00ffaa);
    margin: 0 auto;
    border-radius: 50px;
}

.bg-alt {
    background: rgba(10, 10, 42, 0.6);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text p {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.about-info {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.info-item {
    flex: 1;
    min-width: 200px;
}

.info-item strong {
    display: block;
    color: #00d4ff;
    margin-bottom: 0.4rem;
}

/* About Stats */
.about-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stat {
    background: rgba(255,255,255,0.08);
    padding: 1.5rem;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.stat:hover {
    transform: scale(1.05);
}

.stat h3 {
    font-size: 2.5rem;
    background: linear-gradient(90deg, #00d4ff, #00ffaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* TIMELINE EDUCATION */
.timeline {
    position: relative;
    margin: 0 auto;
    padding-left: 30px;
    border-left: 3px solid #00d4ff;
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}

.timeline-dot {
    position: absolute;
    left: -40px;
    top: 70px;
    width: 18px;
    height: 18px;
    background: #00d4ff;
    border-radius: 50%;
    box-shadow: 0 0 10px #00d4ff;
}

.timeline-content {
    background: rgba(255,255,255,0.07);
    padding: 1.2rem 1.5rem;
    border-radius: 15px;
    transition: 0.3s;
}

.timeline-content:hover {
    transform: translateX(8px);
}

.edu-year {
    color: #00d4ff;
    font-weight: 600;
    font-size: 0.9rem;
}

.timeline-content h3 {
    margin: 0.4rem 0;
}

.timeline-content p {
    opacity: 0.9;
}

.timeline-content small {
    opacity: 0.7;
}

/* MOBILE */
@media (max-width: 768px) {
    .timeline {
        padding-left: 20px;
    }
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 2rem;
}

.project-card {
    background: rgba(255,255,255,0.07);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.project-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
}

.project-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
}

.project-desc {
    margin-bottom: 1.2rem;
    opacity: 0.9;
}

.project-tags {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
}

.project-tags span {
    background: rgba(0, 212, 255, 0.15);
    color: #00d4ff;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-link {
    color: #00d4ff;
    text-decoration: none;
    font-weight: 600;
}

/* Skills */
.skills-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.skills-category h3 {
    margin-bottom: 1.5rem;
    color: #00d4ff;
    font-size: 1.5rem;
}

.skill-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.4rem;
    gap: 1rem;
}

.skill-name {
    width: 180px;
    font-weight: 600;
}

.skill-bar {
    flex: 1;
    height: 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 50px;
    overflow: hidden;
    position: relative;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #00d4ff, #00ffaa);
    border-radius: 50px;
    position: relative;
    transition: width 1.5s ease-in-out;
}

.progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    animation: shine 3s linear infinite;
}
@keyframes shine {
    0% { left: -150%; }
    100% { left: 150%; }
}

.skill-percent {
    font-size: 0.95rem;
    font-weight: 700;
    color: #00d4ff;
    width: 50px;
    text-align: right;
}

/* Soft skills */
.soft-skills-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.soft-skills-list li {
    background: rgba(255,255,255,0.1);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 500;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.contact-link {
    display: block;
    padding: 1rem 0;
    color: #e0f2ff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: #00d4ff;
    padding-left: 10px;
}

.social-links {
    margin-top: 2rem;
    display: flex;
    gap: 1.5rem;
}

.social-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #e0f2ff;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #00d4ff;
    color: #0a0a2a;
    transform: scale(1.15);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 16px 20px;
    border: none;
    border-radius: 12px;
    background: rgba(255,255,255,0.1);
    color: #e0f2ff;
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.3);
}

.contact-form button {
    margin-top: 1rem;
    align-self: flex-start;
}

.form-note {
    font-size: 0.85rem;
    opacity: 0.6;
    margin-top: 0.5rem;
}

/* Footer */
footer {
    background: rgba(10, 10, 42, 0.9);
    text-align: center;
    padding: 3rem 2rem;
    font-size: 0.95rem;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-grid,
    .contact-grid,
    .skills-container {
        grid-template-columns: 1fr;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
}

/* ===== MOBILE FIX (768px and below) ===== */
@media (max-width: 768px) {

    /* Navigation */
    .nav-links {
        position: fixed;
        top: 80px; /* nav height */
        left: 0;
        width: 100%;
        background: rgba(10, 10, 42, 0.98);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transform: translateY(-120%);
        transition: transform 0.4s ease;
        z-index: 999;
    }

    .menu-toggle:checked ~ .nav-links {
        transform: translateY(0);
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 4px;
        cursor: pointer;
    }

    .hamburger span {
        width: 28px;
        height: 3px;
        background: #00d4ff;
        transition: all 0.3s ease;
    }

    /* Hero Section */
    .hero {
        padding: 100px 1.2rem 50px;
        text-align: center;
    }

    .hero-content {
        flex-direction: column;
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .intro {
        font-size: 1rem;
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        margin-top: 2rem;
    }

    .image-wrapper {
        width: 250px;
        height: 250px;
    }

    /* Sections */
    .section {
        padding: 80px 1.2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .scroll-indicator {
        display: none;
    }

    /* Grids */
    .about-grid,
    .contact-grid,
    .skills-container,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    /* Skills */
    .skill-item {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .skill-name {
        width: 100%;
    }

    .skill-bar {
        width: 100%;
    }

    .skill-percent {
        align-self: flex-end;
        width: auto;
    }
}
