/* Google Font */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
    scroll-behavior:smooth;
}

html,
body{
    width:100%;
    overflow-x:hidden;
}

body{
    background:#f8fafc;
    color:#1e293b;
    overflow-x:hidden;
}

/* Navbar */

nav{
    position:fixed;
    top:0;
    width:100%;
    background:white;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 10%;
    box-shadow:0 2px 10px rgba(0,0,0,0.1);
    z-index:1000;
}

.logo{
    font-size:24px;
    font-weight:700;
    color:#2563eb;
}

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

nav ul li a{
    position:relative;
    text-decoration:none;
    color:#1e293b;
    font-weight:500;
    transition:.3s;
}

nav ul li a:hover{
    color:#2563eb;
}

nav ul li a::after{
    content:'';
    position:absolute;
    left:0;
    bottom:-5px;
    width:0;
    height:2px;
    background:#2563eb;
    transition:0.3s;
}

nav ul li a:hover::after{
    width:100%;
}

/* Sections */

section{
    width:100%;
    max-width:100%;
    padding:100px 8%;
}

/* Hero Section */

#home{
    min-height:100vh;
    display:flex;
    flex-direction:column;
    justify-content:center;
}

#home h1{
    font-size:70px;
    color:#0f172a;
}

#home h2{
    font-size:32px;
    margin-top:10px;
    color:#2563eb;
}

#home p{
    max-width:700px;
    margin-top:20px;
    font-size:18px;
    line-height:1.8;
}

#home button{
    width:220px;
    margin-top:30px;
    padding:15px;
    border:none;
    border-radius:10px;
    background:#2563eb;
    color:white;
    font-size:16px;
    cursor:pointer;
    transition:.3s;
}

#home button:hover{
    transform:translateY(-3px);
}

/* Section Titles */

section h2{
    font-size:40px;
    margin-bottom:30px;
    color:#0f172a;
}

/* Footer */

footer{
    background:#0f172a;
    color:white;
    text-align:center;
    padding:25px;
}

/* Hero Layout */

.hero-content{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:50px;
}

.hero-text{
    flex:1;
}

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

.hero-image img{
    width:400px;
    height:400px;
    object-fit:cover;
    object-position:center 5%;
    border-radius:50%;
    border:8px solid #2563eb;
    box-shadow:0 10px 30px rgba(0,0,0,0.15);
}

.greeting{
    color:#2563eb;
    font-size:20px;
    font-weight:600;
}

.hero-tagline{
    color:#64748b;
    font-size:18px;
    margin:15px 0;
}

.hero-buttons{
    display:flex;
    gap:15px;
    margin-top:30px;
}

.secondary-btn{
    background:white !important;
    color:#2563eb !important;
    border:2px solid #2563eb !important;
}

.social-icons{
    margin-top:30px;
    display:flex;
    gap:25px;
}

.social-icons a{
    color:#1e293b;
    text-decoration:none;
    transition:0.3s;
}

.social-icons i{
    font-size:30px;
}

.social-icons a:hover{
    color:#2563eb;
    transform:translateY(-5px);
}

/* ABOUT SECTION */

.section-title{
    text-align:center;
    margin-bottom:50px;
}

.about-container{
    display:flex;
    justify-content:center;
    align-items:center;
}

.about-card{
    max-width:900px;
    background:#ffffff;
    padding:40px;
    border-radius:20px;
    box-shadow:0 10px 25px rgba(0,0,0,0.08);
    transition:0.3s;
}

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

.about-card h3{
    font-size:28px;
    margin-bottom:20px;
    color:#2563eb;
}

.about-card p{
    font-size:18px;
    line-height:1.8;
    color:#475569;
    margin-bottom:30px;
}

.about-highlights{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:15px;
}

.highlight{
    background:#f8fafc;
    padding:15px;
    border-radius:10px;
    font-weight:500;
    border-left:4px solid #2563eb;
}

/* SKILLS SECTION */

.skills-container{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:30px;
}

.skill-card{
    background:white;
    padding:35px;
    border-radius:20px;
    box-shadow:0 10px 25px rgba(0,0,0,0.08);
    transition:0.3s;
}

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

.skill-card i{
    font-size:40px;
    color:#2563eb;
    margin-bottom:20px;
}

.skill-card h3{
    margin-bottom:20px;
    color:#0f172a;
}

.skill-tags{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
}

.skill-tags span{
    background:#eff6ff;
    color:#2563eb;
    padding:10px 16px;
    border-radius:25px;
    font-weight:500;
}

/* PROJECTS SECTION */

.projects-container{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(350px,1fr));
    gap:30px;
}

.project-card{
    background:white;
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 10px 25px rgba(0,0,0,0.08);
    transition:0.3s;
}

.project-card:hover{
    transform:translateY(-8px);
}

.project-card img{
    width:100%;
    height:220px;
    object-fit:cover;
}

.project-card h3{
    padding:20px 20px 10px;
    color:#0f172a;
}

.project-card p{
    padding:0 20px;
    color:#64748b;
    line-height:1.6;
}

.project-tech{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    padding:20px;
}

.project-tech span{
    background:#eff6ff;
    color:#2563eb;
    padding:8px 14px;
    border-radius:20px;
    font-size:14px;
    font-weight:500;
}

.project-link{
    text-decoration:none;
    color:inherit;
}

.project-link:hover{
    color:inherit;
}

.project-buttons{
    padding:0 20px 20px;
}

.project-buttons a{
    text-decoration:none;
    background:#2563eb;
    color:white;
    padding:10px 20px;
    border-radius:8px;
    display:inline-block;
}

/* EXPERIENCE SECTION */

.experience-container{
    max-width:1000px;
    margin:auto;
}

.experience-card{
    background:white;
    padding:30px;
    border-radius:20px;
    box-shadow:0 10px 25px rgba(0,0,0,0.08);
    display:flex;
    gap:30px;
}

.experience-year{
    min-width:170px;
    font-size:24px;
    font-weight:700;
    color:#2563eb;
}

.experience-content h3{
    font-size:28px;
    margin-bottom:10px;
}

.experience-content h4{
    color:#64748b;
    margin-bottom:15px;
}

.experience-content p{
    line-height:1.8;
    margin-bottom:15px;
    color:#475569;
}

.experience-content ul{
    padding-left:20px;
}

.experience-content li{
    margin-bottom:10px;
}

.experience-link{
    text-decoration:none;
    color:inherit;
    display:block;
}

.experience-link:hover .experience-card{
    transform:translateY(-8px);
}

.view-details{
    display:inline-block;
    margin-top:20px;
    color:#2563eb;
    font-weight:600;
}

/* EDUCATION SECTION */

.education-container{
    max-width:1000px;
    margin:auto;
    display:flex;
    flex-direction:column;
    gap:25px;
}

.education-card{
    background:white;
    padding:25px;
    border-radius:20px;
    display:flex;
    gap:25px;
    box-shadow:0 10px 25px rgba(0,0,0,0.08);
    transition:0.3s;
}

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

.education-year{
    min-width:100px;
    font-size:24px;
    font-weight:700;
    color:#2563eb;
}

.education-content h3{
    margin-bottom:10px;
    color:#0f172a;
}

.education-content p{
    color:#64748b;
    margin-bottom:10px;
}

.education-content span{
    background:#eff6ff;
    color:#2563eb;
    padding:6px 12px;
    border-radius:20px;
    font-size:14px;
}

/* CERTIFICATIONS */

.certifications-container{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(350px,1fr));
    gap:30px;
}

.certificate-card{
    background:white;
    padding:35px;
    border-radius:20px;
    text-align:center;
    box-shadow:0 10px 25px rgba(0,0,0,0.08);
    transition:0.3s;
    cursor:pointer;
}

.certificate-card:hover{
    transform:translateY(-8px);
}

.certificate-card i{
    font-size:50px;
    color:#2563eb;
    margin-bottom:20px;
}

.certificate-card h3{
    margin-bottom:15px;
}

.certificate-card p{
    color:#64748b;
    line-height:1.6;
}

.certificate-link{
    text-decoration:none;
    color:inherit;
    display:block;
}

.certificate-link:hover .certificate-card{
    transform:translateY(-8px);
}

/* CONTACT SECTION */

.contact-container{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:40px;
}

.contact-info,
.contact-form{
    background:white;
    padding:35px;
    border-radius:20px;
    box-shadow:0 10px 25px rgba(0,0,0,0.08);
}

.contact-info h3{
    margin-bottom:15px;
}

.contact-info p{
    color:#64748b;
    line-height:1.6;
    margin-bottom:25px;
}

.contact-item{
    display:flex;
    align-items:center;
    gap:15px;
    margin-bottom:20px;
}

.contact-item i{
    color:#2563eb;
    font-size:20px;
}

.contact-form form{
    display:flex;
    flex-direction:column;
    gap:15px;
}

.contact-form input,
.contact-form textarea{

    width:100%;
    max-width:100%;

    padding:15px;

    border:1px solid #dbeafe;

    border-radius:10px;

    font-size:16px;

}

.contact-form button{

    width:100%;

    padding:15px;

    border:none;

    border-radius:10px;

    background:#2563eb;

    color:white;

    cursor:pointer;

    font-size:16px;

}

.footer-icons{
    margin:20px 0;
    display:flex;
    justify-content:center;
    gap:25px;
}

.footer-icons a{
    color:white;
    text-decoration:none;
    transition:0.3s;
}

.footer-icons a:hover{
    color:#2563eb;
    transform:translateY(-5px);
}

.footer-icons i{
    font-size:24px;
}

/* Scroll to top button */

#topBtn{
    position:fixed;
    bottom:30px;
    right:30px;
    width:55px;
    height:55px;
    border:none;
    border-radius:50%;
    background:#2563eb;
    color:white;
    font-size:22px;
    cursor:pointer;
    display:none;
    z-index:9999;
    box-shadow:0 10px 25px rgba(0,0,0,0.2);
}

/* Modal */

.modal{
    display:none;
    position:fixed;
    z-index:10000;
    left:0;
    top:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.7);
}

.modal-content{
    background:white;
    width:80%;
    max-width:800px;
    margin:50px auto;
    padding:30px;
    border-radius:20px;
    position:relative;
    max-height:90vh;
    overflow-y:auto;
}

.modal-content img{
    width:100%;
    border-radius:10px;
    margin:20px 0;
}

.close{
    position:absolute;
    right:20px;
    top:15px;
    font-size:30px;
    cursor:pointer;
}

/* ========================= */
/* PROJECT DETAILS PAGES */
/* ========================= */

.project-page{
    max-width:1000px;
    margin:100px auto;
    padding:0 20px;
}

.project-page h1{
    font-size:48px;
    color:#0f172a;
    margin-bottom:20px;
}

.project-page h2{
    margin-top:40px;
    margin-bottom:15px;
    color:#2563eb;
}

.project-page p{
    line-height:1.8;
    color:#475569;
    font-size:18px;
}

.project-page ul{
    padding-left:25px;
}

.project-page li{
    margin-bottom:10px;
    color:#475569;
}

.project-page img{
    width:100%;
    max-width:900px;
    border-radius:20px;
    margin:25px 0;
    box-shadow:0 10px 25px rgba(0,0,0,0.1);
}

.project-overview{
    background:white;
    padding:30px;
    border-radius:20px;
    box-shadow:0 10px 25px rgba(0,0,0,0.08);
    margin-top:20px;
}

/* ===========================
   PROJECT ACTION BUTTONS
=========================== */

.project-actions{
    margin-top:40px;
    display:flex;
    gap:20px;
    flex-wrap:wrap;
}

.project-actions a{
    text-decoration:none;
    background:#2563eb;
    color:white;
    padding:12px 20px;
    border-radius:10px;
    transition:0.3s;
}

.project-actions a:hover{
    background:#1d4ed8;
    transform:translateY(-3px);
}

.back-btn{
    display:inline-block;
    margin-bottom:30px;
    text-decoration:none;
    color:white;
    background:#2563eb;
    padding:12px 20px;
    border-radius:10px;
    transition:0.3s;
}

.back-btn:hover{
    background:#1d4ed8;
    transform:translateY(-4px);
}

.github-btn{
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding:15px 25px;
    background:#24292e;
    color:white;
    text-decoration:none;
    border-radius:10px;
    font-size:16px;
    font-weight:600;
    transition:all .3s ease;
    box-shadow:0 8px 20px rgba(0,0,0,.15);
}

.github-btn:hover{
    background:#0d1117;
    transform:translateY(-4px);
    box-shadow:0 12px 25px rgba(0,0,0,.25);
}

.github-btn i{
    font-size:22px;
}

/* =======================================
   EXPERIENCE PAGE
======================================= */

.experience-page{
    max-width:1000px;
    margin:100px auto;
    padding:0 20px;
}

.experience-header{
    text-align:center;
    margin-bottom:40px;
}

.experience-header h1{
    font-size:48px;
    color:#0f172a;
}

.experience-header p{
    color:#64748b;
    font-size:20px;
    margin-top:10px;
}

.experience-box{
    background:#fff;
    padding:40px;
    border-radius:20px;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
    margin-bottom:35px;
}

.experience-box h2{
    color:#2563eb;
    margin-bottom:20px;
}

.experience-box p{
    line-height:1.8;
    color:#475569;
}

.experience-box ul{
    padding-left:25px;
}

.experience-box li{
    margin-bottom:12px;
    color:#475569;
}

.experience-image{
    width:100%;
    max-width:850px;
    display:block;
    margin:30px auto;
    border-radius:15px;
    box-shadow:0 10px 30px rgba(0,0,0,.12);
}

/* Internship Information */

.info-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
}

.info-card{
    background:#f8fafc;
    border-left:5px solid #2563eb;
    padding:20px;
    border-radius:12px;
}

.info-card h3{
    color:#2563eb;
    margin-bottom:10px;
    font-size:18px;
}

.info-card p{
    color:#475569;
    font-size:16px;
}

/* Skills Tags */

.skill-list{
    display:flex;
    flex-wrap:wrap;
    gap:15px;
    margin-top:20px;
}

.skill-list span{
    background:#eff6ff;
    color:#2563eb;
    padding:10px 18px;
    border-radius:30px;
    font-weight:500;
}

/* Buttons */

.action-buttons{
    display:flex;
    gap:20px;
    margin-top:40px;
    flex-wrap:wrap;
}

.action-buttons a{
    display:inline-flex;
    align-items:center;
    gap:10px;
    text-decoration:none;
    padding:15px 25px;
    border-radius:10px;
    font-weight:600;
    transition:.3s;
}

/* Responsive Images */

img{
    max-width:100%;
    height:auto;
}

/* Mobile */

@media(max-width:768px){

    .experience-header h1{
        font-size:36px;
    }

    .experience-box{
        padding:25px;
    }

    .action-buttons{
        flex-direction:column;
    }

}

/* =======================================
   HAMBURGER MENU
======================================= */

.logo-link{
    text-decoration:none;
}

.menu-toggle{

    display:none;

    font-size:28px;

    color:#2563eb;

    cursor:pointer;

    transition:.3s;

}

.menu-toggle i{

    transition:.3s ease;

}

/* FIX: changed breakpoint from 768px to 992px so tablets
   (e.g. iPad portrait, small laptop windows) also get the
   collapsible hamburger menu instead of squeezing 8 nav
   links into one row and breaking layout. */
@media(max-width:992px){

    nav{

        display:flex;

        justify-content:space-between;

        align-items:center;

        padding:18px 5%;

    }

    .menu-toggle{

        display:block;

    }

    nav ul{

        position:absolute;

        top:80px;

        left:0;

        width:100%;

        background:white;

        display:flex;

        flex-direction:column;

        align-items:center;

        gap:0;

        max-height:0;

        overflow:hidden;

        transition:max-height .4s ease;

        box-shadow:0 10px 25px rgba(0,0,0,.1);

    }

    nav ul.active{

        max-height:600px;

        animation:slideDown .4s ease;

    }

    nav ul li{

        width:100%;

    }

    nav ul li a{

        display:block;

        width:100%;

        padding:18px;

        text-align:center;

    }

    nav ul li a:hover{

        background:#eff6ff;

    }

}

.menu-toggle:hover{

    transform:rotate(90deg);

}

@keyframes slideDown{

    from{

        opacity:0;

        transform:translateY(-20px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

img{
    max-width:100%;
    display:block;
}

footer{
    width:100%;
    background:#0f172a;
    color:#fff;
    padding:50px 20px;
    text-align:center;
    overflow:hidden;
}

footer h3{
    font-size:42px;
    margin-bottom:15px;
}

footer p{
    font-size:18px;
    line-height:1.8;
}

.footer-icons{
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    gap:25px;
    margin:25px 0;
}

.footer-icons a{
    color:#fff;
    text-decoration:none;
    font-size:34px;
    transition:.3s;
}

.footer-icons a:hover{
    color:#2563eb;
    transform:translateY(-4px);
}

.contact-item p,
.contact-item a{
    overflow-wrap:anywhere;
    word-break:break-word;
}

.youtube-btn{
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding:15px 25px;
    background:#FF0000;
    color:white;
    text-decoration:none;
    border-radius:10px;
    font-size:16px;
    font-weight:600;
    transition:0.3s;
    box-shadow:0 8px 20px rgba(255,0,0,0.25);
}

.youtube-btn:hover{
    background:#cc0000;
    transform:translateY(-4px);
    box-shadow:0 12px 25px rgba(255,0,0,0.35);
}

.youtube-btn i{
    font-size:22px;
}

.experience-container a{
    display:block;
    text-decoration:none;
    color:inherit;
}

.experience-card{
    background:white;
    padding:30px;
    border-radius:20px;
    box-shadow:0 10px 25px rgba(0,0,0,0.08);
    display:flex;
    gap:30px;
    margin-bottom:30px;
}