/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
    scroll-behavior: smooth;
}

/* ===== BODY BACKGROUND ===== */
body {
    color: white;
    background: linear-gradient(-45deg, #000000, #1a001f, #3b0066, #000000);
    background-size: 400% 400%;
    animation: gradientBG 10s ease infinite;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== NAVBAR ===== */

.navbar{
    position: fixed;
    top:0;
    width:100%;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:15px 40px;
    background:rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
    z-index:1000;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    font-size: 18px;
    color: #ffcc00;
}

/* Profile Image */
.nav-profile-pic {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    border: 2px solid #8000ff;
    box-shadow: 0 0 10px #8000ff;
}

/* Search */

.search-container input{
    flex:1;
    max-width:350px;
    margin:0 auto;
    padding:8px 15px;
    border-radius:20px;
    border:none;
    outline:none;
}

.highlight {
    background: yellow;
    color: black;
    padding: 2px 4px;
    border-radius: 3px;
    }
    
/* Search Suggestions */
#suggestions{
    position:absolute;
    background:#111;
    list-style:none;
    width:200px;
    border-radius:8px;
    margin-top:5px;
    padding:5px 0;
    display:none;
}

#suggestions li{
    padding:8px 12px;
    cursor:pointer;
    color:white;
}

#suggestions li:hover{
    background:#8000ff;
}

/* ===== HAMBURGER ===== */

.hamburger{
    width:30px;
    height:22px;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    cursor:pointer;
}

.hamburger span{
    display:block;
    height:3px;
    width:100%;
    background:#ffcc00;
    border-radius:3px;
    transition:0.3s;
}

/* Hamburger Animation */

.hamburger.active span:nth-child(1){
    transform: rotate(45deg) translate(5px,5px);
}

.hamburger.active span:nth-child(2){
    opacity:0;
}

.hamburger.active span:nth-child(3){
    transform: rotate(-45deg) translate(6px,-6px);
}

/* ===== MENU ===== */

.nav-menu{
    position:absolute;
    top:70px;
    right:40px;
    width:250px;
    background:#111;
    border-radius:10px;
    padding:20px;
    display:none;
    box-shadow:0 0 20px #8000ff;
}

.nav-menu.active{
    display:block;
}

/* Links */

.nav-links{
    list-style:none;
    display:flex;
    flex-direction:column;
    gap:15px;
}

.nav-links a{
    color:white;
    text-decoration:none;
    font-size:16px;
    transition:0.3s;
}

.nav-links a:hover{
    color:#ffcc00;
}
/* ===== SCROLL FIX FOR NAVBAR ===== */
section{
    scroll-margin-top:120px;
}


/* ===== MOBILE ===== */
@media (max-width:768px){
.navbar{
    padding:15px 20px;
}
.nav-menu{
    right:20px;
    width:90%;
}
.search-container input{
    width:130px;
}
}
/* 🔥 FINAL MOBILE FIX FOR CERTIFICATION */
@media (max-width: 768px) {

    .cert-timeline::after {
        right: 15px;  /* closer on mobile */
    }

    .cert-content {
        width: calc(100% - 50px);
    }
}
/* ===== HERO ===== */
.hero {
    text-align: center;
    padding-top: 150px;
    padding-bottom: 80px;
}

.hero-name {
    font-size: 48px;
    font-weight: bold;
    text-shadow: 0 0 20px #8000ff;
}

.typing-text {
    color: #ffcc00;
    font-size: 22px;
    margin-top: 10px;
}

/* Profile Image */
.profile-container {
    margin: 30px 0;
}

.profile-pic {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 5px solid #8000ff;
    object-fit: cover;
    object-position: top;
    transition: 0.4s;
}

.profile-pic:hover {
    transform: scale(1.05);
}

/* Download Button */
.download-btn {
    padding: 14px 30px;
    background: #ffcc00;
    color: black;
    border: none;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.4s;
    box-shadow: 0 0 20px #ffcc00;
}

.download-btn:hover {
    transform: scale(1.08);
}

/* ===== SECTION ===== */
.section {
    padding: 100px 50px;
    text-align: center;
}

.section h2 {
    margin-bottom: 30px;
    font-size: 32px;
    color: #ffcc00;
}

/* ===== ABOUT ===== */
.about-text {
    max-width: 700px;
    margin: auto;
    line-height: 1.6;
    color: #ccc;
}

/* ===== SKILLS ===== */
.skill {
    margin: 20px auto;
    max-width: 500px;
    text-align: left;
}

.skill p {
    margin-bottom: 5px;
    font-weight: 500;
}

.progress {
    width: 100%;
    background: #222;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 10px;
    border-radius: 10px;
    box-shadow: 0 0 10px #8000ff;
}

/* Skill Levels */
.html { width: 90%; background: #ffcc00; }
.css { width: 85%; background: #8000ff; }
.javascript { width: 75%; background: #ffcc00; }
.aiml { width: 70%; background: #8000ff; }
.python { width: 80%; background: #ffcc00; }
.cloudcomputing { width: 55%; background: #8000ff; }
.cybersecurity{ width: 60%; background: #ffcc00; }

/* ===== PROJECTS ===== */
.projects-container{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:30px;
    max-width:900px;
    margin:auto;
    padding-top:20px;
    }

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 25px #8000ff;
}

.btn-small {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 20px;
    background: #8000ff;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    transition: 0.3s;
}

.btn-small:hover {
    background: #ffcc00;
    color: black;
}

/* ===== EXPERIENCE SECTION ===== */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 50px auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: #8000ff;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px; /* SAME AS EXPERIENCE */
}
.timeline-item {
    padding: 20px 30px;
    position: relative;
    width: 50%;
    box-sizing: border-box; /* 🔥 FIX */
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-content {
    background: #111;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(128, 0, 255, 0.3);
    transition: 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px #8000ff;
}

.cert-content h3 {
    margin-bottom: 5px;
}

.timeline-content span {
    font-size: 14px;
    color: #aaa;
}

.timeline-content p {
    font-size: 14px;
    color: #ccc;
}

/* Optional link (same style feel) */
.timeline-content a {
    display: inline-block;
    margin-top: 10px;
    color: #a855f7;
    text-decoration: none;
    font-size: 14px;
}

.timeline-content a:hover {
    text-decoration: underline;
}

/* Keep heading simple like experience */
#experiences h2 {
    text-align: center;
    margin-bottom: 30px;
}

/* Scroll fix */
section {
    scroll-margin-top: 100px;
}

/* ===== CERTIFICATION (RIGHT SIDE LINE, LEFT CONTENT) ===== */

.cert-timeline {
    position: relative;
    max-width: 900px;
    margin: 50px auto;
}

/* 🔥 LINE ON RIGHT */
.cert-timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: #8000ff;
    top: 0;
    bottom: 0;
    right: 20px;   /* 👈 adjust distance from right */
}

/* 🔥 ALL ITEMS LEFT */
.cert-item {
    padding: 20px 40px;
    position: relative;
    width: 100%;   /* full width */
}

/* 🔥 CONTENT BOX */
.cert-content {
    width: calc(100% - 60px);  /* 👈 keeps space for line */
    background: #111;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(128, 0, 255, 0.3);
    transition: 0.3s ease;
}

.cert-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px #8000ff;
}

/* TEXT */
.cert-content h3 {
    margin-bottom: 5px;
}

.cert-content span {
    font-size: 14px;
    color: #aaa;
}

.cert-content p {
    font-size: 14px;
    color: #ccc;
}

/* LINK */
.cert-content a {
    display: inline-block;
    margin-top: 10px;
    color: #a855f7;
    text-decoration: none;
}

.cert-content a:hover {
    text-decoration: underline;
}

/* Keep heading simple like experience */
#certifications h2 {
    text-align: center;
    margin-bottom: 30px;
}
/* Scroll fix */
section {
    scroll-margin-top: 100px;
}

/* ===== CONTACT ===== */
#contact p {
    margin: 10px 0;
}

/* ===== FOOTER ===== */
footer {
    text-align: center;
    padding: 20px;
    background: rgba(0,0,0,0.7);
    margin-top: 40px;
}

    /* Hero */
    .hero {
        padding-top: 120px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero-name {
        font-size: 28px;
    }

    .typing-text {
        font-size: 16px;
    }

    .profile-pic {
        width: 180px;
        height: 180px;
    }

    /* Sections */
    .section{
        max-width:900px;
        margin:auto;
        }

    /* Skills */
    .skill {
        max-width: 100%;
    }

    /* Timeline Fix */
    .timeline::after {
        left: 15px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 15px;
    }

    .timeline-item:nth-child(even) {
        left: 0%;
    }

    form{
        display:flex;
        flex-direction:column;
        gap:10px;
        max-width:400px;
        margin:auto;
        }
        
        input,textarea{
        padding:10px;
        border:none;
        border-radius:5px;
        }
        
        button{
        padding:10px;
        background:#ffcc00;
        border:none;
        cursor:pointer;
        }

    /* Project Cards */
    .project-card {
        padding: 20px;
        margin: 15px 10px;
    }


/* ===== FINAL NAV FIX ===== */

/* Hamburger always visible */
.hamburger {
    font-size: 28px;
    cursor: pointer;
    color: #ffcc00;
    display: block;
}

/* Menu hidden by default */
.nav-menu {
    position: absolute;
    top: 80px;
    right: 50px;
    width: 250px;
    background: rgba(0,0,0,0.95);
    padding: 20px;
    border-radius: 10px;
    display: none;
}

/* Show when active */
.nav-menu.active {
    display: block;
}

/* Vertical links */
.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

