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

body {
    background: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
}

/* NAVBAR */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10%;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 22px;
    font-weight: 600;
    color: #6366f1;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

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

.nav-links a:hover {
    color: #06b6d4;
}

/* HAMBURGER MENU */

.menu-toggle {
    display: none;
    font-size: 26px;
    cursor: pointer;
    color: #6366f1;
}

/* MOBILE NAVBAR */

@media(max-width:768px) {

    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 20px 0;
        display: none;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

}

/* HERO */

.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    /* reduced from 60 */
    max-width: 1100px;
    width: 100%;
}

.hero-text {
    flex: 1;
    text-align: left;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 260px;
    /* smaller image */
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    padding: 20px;
    background: white;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    animation: float 4s ease-in-out infinite;
}

.hero h1 {
    font-size: 44px;
    margin-bottom: 10px;
}

.hero span {
    color: #6366f1;
}

.typing {
    font-size: 26px;
    color: #06b6d4;
    margin-bottom: 20px;
}

.hero p {
    max-width: 520px;
    margin: auto;
    margin-bottom: 30px;
    color: #475569;
}

/* BUTTONS */

.btn {
    padding: 12px 28px;
    border: none;
    border-radius: 30px;
    background: linear-gradient(45deg, #6366f1, #06b6d4);
    color: white;
    text-decoration: none;
    margin-right: 10px;
    transition: 0.3s;
}

.btn:hover {
    transform: scale(1.07);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.btn-outline {
    padding: 12px 28px;
    border-radius: 30px;
    border: 2px solid #6366f1;
    color: #6366f1;
    text-decoration: none;
    transition: 0.3s;
}

.btn-outline:hover {
    background: #6366f1;
    color: white;
}

/* SECTION */

.section {
    padding: 90px 10%;
    text-align: center;
}

.section h2 {
    font-size: 34px;
    margin-bottom: 20px;
    color: #6366f1;
}

.section p {
    max-width: 700px;
    margin: auto;
    color: #475569;
}

/* SKILLS GRID */

/* Skills Section */

/* Skills Section */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 25px;
    margin-top: 40px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* Skill Card */

.skill-card {
    background: white;
    border-radius: 12px;
    padding: 25px 15px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Hover effect */

.skill-card:hover {
    transform: translateY(-5px);
}

/* Icon */

.skill-card i {
    font-size: 32px;
    color: #6366f1;
    margin-bottom: 10px;
}

/* Skill Text */

.skill-card p {
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

/* Skill Card */

.skill-card {
    background: white;
    border-radius: 12px;
    padding: 25px 15px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Hover effect */

.skill-card:hover {
    transform: translateY(-5px);
}

/* Icon */

.skill-card i {
    font-size: 32px;
    color: #6366f1;
    margin-bottom: 10px;
}

/* Skill Text */

.skill-card p {
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

.bar {
    background: #e2e8f0;
    height: 10px;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 5px;
}

.bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #06b6d4);
    animation: loadbar 2s ease;
}

@keyframes loadbar {
    from {
        width: 0;
    }
}

/* PROJECTS */

.projects-grid {
    margin-top: 40px;
    display: grid;
    /* grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); */
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;

}

.project-card {
    background: white;
    padding: 30px;
    border-radius: 14px;
    transition: 0.3s;
    border: 1px solid #e2e8f0;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* EXPERIENCE */

.experience-grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.experience-card {
    background: white;
    padding: 30px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    text-align: left;
    transition: 0.3s;
}

.experience-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.experience-card h3 {
    color: #6366f1;
    margin-bottom: 5px;
}

.company {
    font-weight: 500;
    color: #334155;
}

.date {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 15px;
}

.experience-card h4 {
    margin-bottom: 10px;
    color: #06b6d4;
}

.experience-card ul {
    padding-left: 18px;
}

.experience-card li {
    margin-bottom: 8px;
    color: #475569;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.tech-stack span {
    background: #eef2ff;
    color: #4f46e5;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.project-card ul {
    margin-top: 12px;
    padding-left: 18px;
}

.project-card li {
    margin-bottom: 6px;
    color: #475569;
}

.project-arch {
    width: 100%;
    max-height: 180px;
    object-fit: contain;
    margin: 15px 0;
    border-radius: 8px;
    background: #f8fafc;
    padding: 10px;
}

.project-links {
    margin-top: 20px;
}

.project-links a {
    display: inline-block;
    padding: 10px 22px;
    background: #4f46e5;
    color: white;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: 0.3s;
}

.project-links a:hover {
    background: #4338ca;
    transform: translateY(-2px);
}

/* DEVOPS TOOLS */

.tools {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}


.tool {
    background: white;
    padding: 12px 22px;
    border-radius: 30px;
    border: 1px solid #e2e8f0;
    transition: 0.3s;
    cursor: pointer;
}

.tool:hover {
    background: linear-gradient(135deg, #6366f1, #06b6d4);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}


/* CONTACT */

.contact-icons {
    margin-top: 20px;
}

.contact-icons a {
    color: #6366f1;
    font-size: 28px;
    margin: 0 15px;
    transition: 0.3s;
}

.contact-icons a:hover {
    color: #06b6d4;
}

/* FOOTER */

footer {
    margin-top: 60px;
    padding: 20px;
    text-align: center;
    background: white;
    color: #64748b;
    border-top: 1px solid #e2e8f0;
}

/* PARTICLES BACKGROUND */

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    opacity: 0.3;
}

/* DEVOPS PIPELINE */

.pipeline {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 50px;
}

.stage {
    background: white;
    padding: 20px 25px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: 0.3s;
    min-width: 120px;
}

.stage i {
    font-size: 28px;
    color: #6366f1;
    margin-bottom: 8px;
}

.stage:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.line {
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #06b6d4);
    border-radius: 2px;
}

@media(max-width:768px) {

    .pipeline {
        flex-direction: column;
    }

    .line {
        width: 3px;
        height: 40px;
    }

}

/* Tablet */
@media (max-width: 992px) {

    .projects-grid,
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 576px) {

    .projects-grid,
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

.devops-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    opacity: 0.08;
}

.devops-bg img {
    position: absolute;
    width: 60px;
    animation: float 25s linear infinite;
}

.devops-bg img:nth-child(1) {
    left: 10%;
    top: 20%;
}

.devops-bg img:nth-child(2) {
    left: 30%;
    top: 70%;
}

.devops-bg img:nth-child(3) {
    left: 60%;
    top: 40%;
}

.devops-bg img:nth-child(4) {
    left: 80%;
    top: 10%;
}

.devops-bg img:nth-child(5) {
    left: 50%;
    top: 80%;
}

.devops-bg img:nth-child(6) {
    left: 15%;
    top: 60%;
}

@keyframes float {
    0% {
        transform: translateY(0px)
    }

    50% {
        transform: translateY(-40px)
    }

    100% {
        transform: translateY(0px)
    }
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
    display: inline-block;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}


/* Primary button */
.primary-btn {
    background: linear-gradient(135deg, #6366f1, #06b6d4);
    color: white;
}

/* Secondary button */
/* .secondary-btn {
    border: 2px solid #6366f1;
    color: #6366f1;
} */
.secondary-btn {
    border: 2px solid #6366f1;
    color: #6366f1;
    padding: 12px 28px;
    border-radius: 30px;
    width: 220px;
    /* match primary feel */
    text-align: center;
}

/* Hover effect */
.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}



.hero-image img {
    width: 320px;
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@media (max-width:768px) {

    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero-text {
        text-align: center;
    }

    .hero-image img {
        width: 220px;
        margin-top: 20px;
    }


    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        /* important for spacing */
    }

    .btn {
        width: 50%;
        /* makes buttons consistent */
        text-align: center;
    }
    .skill-card {
        padding: 10px 10px;
        
    }
}