*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
html{
    font-size: 60%;
    overflow-x: hidden;
}
:root{
    --bg-color:#080808;
    --second-bg-color:#001005;
    --text-color:white;
    --main-color:#00ff51;
}
body{
    background-color: var(--bg-color);
    color: var(--text-color);
}
.header{
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    padding: 4rem 12%;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}
#menu-icon{
    font-size: 3.6rem;
    color: var(--main-color);
    display: none;
}
.logo{
    font-size: 3rem;
    color: var(--text-color);
    font-weight: 800;
    cursor: pointer;
}
.logo:hover{
    transform: scale(1.1);
}
span{
    color: var(--main-color);
}
.navbar a{
    font-size: 1.9rem;
    color: var(--text-color);
    margin-left: 4rem;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: 0.3s ease;
}
.navbar a:hover{
    border-bottom: 3px solid var(--main-color);
    color: var(--main-color);
}

/*--------------------------*/

section{
    min-height: 100vh;
    padding: 10rem 12%;
}
.home{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15rem;
}
.home-content{
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;

}
.style{
    display: inline-block;
    color: transparent;
    -webkit-text-stroke: .7px var(--main-color);
    animation: display-text 16s linear infinite; 
    animation-delay: calc(-4s * var(--i));
}
@keyframes display-text{
    25%,100%{
        display: none;

    }
}
.home-content h1{
    font-size: 8rem;
    font-weight: 800;
    margin-top: 1.5rem;
    line-height: 1;
}
.home-content h3{
    font-size: 4rem;
    margin: 1rem 0;
}
.home-content p{
    font-size: 1.5 rem;
    font-weight: 500;
    line-height: 1.8;
}
.home-image img{
    width: 50vh;
    border-radius: 50%;
    box-shadow: 0 0 20px var(--main-color);
    transition: 0.4s ease-in-out;

}
.home-image img:hover{
    box-shadow: 0 0 25px var(--main-color),
                0 0 50px var(--main-color),
                0 0 70px var(--main-color); 
}
.social a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    padding: 1rem;
    background: transparent;
    border: 2px solid var(--main-color);
    border-radius: 50%;
    color: #00ff51;
    margin: 3rem 0.5rem;
    transition: 0.4s ease;
}
.social a:hover{
    color: var(--text-color);
    background-color: #00ff51;
    transform: scale(1.2) translateY(-5px);
    box-shadow: 0 0 25px var(--main-color),
}
.btn-grp{
    display: flex;
    gap: 1.5rem;
}
.btn{
    display: inline-block;
    padding: 1rem 3rem;
    background: var(--main-color);
    box-shadow: 0 0 25px var(--main-color);
    border-radius: 3rem;
    font-size: 1.8rem;
    color: black;
    border: 2px solid transparent;
    font-weight: 600;
    transition: 0.3s;
}
.btn:hover{
    transform: scale(1.05);
    box-shadow: 0 0 25px var(--main-color),
                0 0 50px var(--main-color),
}

/*--------------------------*/

.about{
    display: flex;
    justify-content: center;
    gap:10rem;
    background-color: var(--second-bg-color);
}

.about img{
    width: 32vw;
    border-radius: 50%;
    box-shadow: 0 0 25px var(--main-color);
    transition: 0.4s ease-in-out;
}
.about img:hover{
    box-shadow: 0 0 25px var(--main-color),
    0 0 50px var(--main-color),
    0 0 70px var(--main-color);
}
.about-content h2{
    font-size: 7rem;
    text-align: left;

}
.about-content p{
    font-size: 1.8rem;
}
.about-content .btn{
    margin: 3rem 0;
}
::-webkit-scrollbar{
    width: 10px;
    
}
::-webkit-scrollbar-thumb{
    background-color: var(--main-color);
}
::-webkit-scrollbar-track{
    background-color: var(--bg-color)
}

/*--------------------------*/

/* .heading{
    text-align: center;
    font-size: 7rem;
    margin: 5rem 0;
}
.skills{
    background-color: var(--bg-color);
    color: black;
}
.skills h2{
    color: var(--text-color);
}
.skill-container{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
    align-items: center;
    gap: 2.5rem;
}
.skill-box{
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--main-color);
    height: 500px;
    border-radius: 3rem;
    cursor: pointer;
    border: 5px solid transparent;
    transition: 0.4s ease-in-out;
}
.skill-box:hover{
    background-color: var(--second-bg-color);
    color: var(--main-color);
    border: 5px solid;
    transform: scale(1.03);
}
.skill-info{
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    align-items: center;
    padding: 5rem;
}
.skill-info i{
    font-size: 8rem;
}
.skill-info h4{
    font-size: 4rem;
    margin: 2rem 0 ;
    font-weight: 800;
}
.skill-info p{
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.7;
} */

/*--------------------------*/

 .heading{
    text-align: center;
    font-size: 7rem;
    margin: 5rem 0;
}
#contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    max-width: 500px;
    margin: auto;
}

#contact-form input,
#contact-form textarea {
    padding: 1rem;
    border-radius: 6px;
    border: none;
    outline: none;
}

#contact-form button {
    background: #00ff59;
    color: #000;
    padding: 1rem;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

#form-status {
    margin-top: 1rem;
    text-align: center;
    color: #edf3f3;
}


/*--------------------------*/

.footer{
    background-color: var(--bg-color);
    padding: 50px 0;
}
.footer .social{
    text-align: center;
}
.footer ul{
    text-align: center;
    font-size: 1.8rem;
}
.footer ul li{
    display: inline-block;
    margin-left: 20px;
}
.footer ul li a{
    color: white;
    border-bottom: 3px solid transparent;
    transition: 0.3s ease-in-out;
}
.footer ul li a:hover{
    border-bottom: 3px solid var(--main-color);
}
.footer .copyright{
    text-align: center;
    margin: 40px;
    font-size: 16px;
}


.skills {
    padding: 80px 10%;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.skill-box {
    background: #1f242d;
    padding: 25px;
    border-radius: 14px;
    transition: 0.3s ease;
}

.skill-box:hover {
    transform: translateY(-6px);
}

.skill-box h3 {
    font-size: 20px;
    color: #0ef;
    margin-bottom: 12px;
}

.skill-box p {
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.9;
}
.skill-icons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 2.8rem;
    color: #00ffee;
}

.skill-icons i {
    transition: 0.3s ease;
    cursor: pointer;
}

.skill-icons i:hover {
    transform: translateY(-6px) scale(1.1);
    color: #ffffff;
}

/* Laravel brand color */
.si-laravel {
    color: #ff2d20;
}



.projects {
    padding: 80px 10%;
}

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

.project-card {
    background: #1f242d;
    padding: 25px;
    border-radius: 15px;
    transition: 0.3s ease;
}

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

.project-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.project-card p {
    font-size: 15px;
    opacity: 0.9;
    margin-bottom: 15px;
}

.tech-stack span {
    display: inline-block;
    background: #323946;
    padding: 5px 10px;
    margin: 5px 5px 10px 0;
    border-radius: 5px;
    font-size: 13px;
}

.project-links a {
    display: inline-block;
    margin-top: 10px;
    color: #0ef;
    font-weight: 600;
    text-decoration: none;
}

.project-links a i {
    margin-right: 6px;
}

/* =========================
   MOBILE RESPONSIVE STYLES
   ========================= */

/* =========================
   MOBILE FIX (IMPORTANT)
   ========================= */

@media (max-width: 768px) {

    /* Remove forced heights */
    section {
        min-height: auto;
        height: auto;
        padding: 3rem 1.5rem;
    }

    /* Headings */
    .heading {
        font-size: 2.4rem;
        text-align: center;
    }

    /* ===== SKILLS ===== */

    .skills-container {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .skill-box {
        width: 100%;
        text-align: center;
    }

    .skill-icons {
        justify-content: center;
        font-size: 2.2rem;
        gap: 1rem;
    }

    /* ===== PROJECTS ===== */

    .projects-container {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .project-card {
        width: 100%;
        padding: 1.8rem;
    }

    .project-icons {
        justify-content: center;
        font-size: 2rem;
    }

    .project-desc {
        text-align: center;
    }

    /* ===== CONTACT ===== */

    #contact-form {
        width: 100%;
        max-width: 100%;
    }

    #contact-form input,
    #contact-form textarea {
        width: 100%;
        font-size: 1.4rem;
    }

    /* ===== NAVBAR ===== */

    .navbar {
        width: 100%;
        flex-direction: column;
        align-items: center;
    }

}

.skill-icons i,
.project-icons i {
    padding: 0.5rem;
}

/* =========================
   THEME TOGGLE
   ========================= */
.theme-toggle {
    font-size: 2.6rem;
    color: var(--main-color);
    cursor: pointer;
    margin-left: 2rem;
    user-select: none;
}

/* =========================
   LIGHT MODE VARIABLES
   ========================= */
body.light-theme {
    --bg-color: #f2f4f8;        /* page background */
    --second-bg-color: #ffffff; /* sections/cards */
    --text-color: #1f2933;      /* primary text */
    --main-color: #16a34a;      /* accent green */
}


/* Fix cards in light mode */
body.light-theme .skill-box,
body.light-theme .project-card {
    background: #ffffff;
    color: #111;
}

/* Header background fix */
body.light-theme .header {
    background-color: rgba(255, 255, 255, 0.85);
}
body.light-theme .skill-icons i,
body.light-theme .project-icons i {
    color: var(--main-color);
}

body.light-theme .btn {
    background: var(--main-color);
    color: #ffffff;
}
body.light-theme .header {
    background-color: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid #e5e7eb;
}

body.light-theme .navbar  a {
    color: #1f2933;
}

body.light-theme .navbar a:hover {
    color: var(--main-color);
}
/* =========================
   FOOTER - LIGHT MODE FIX
   ========================= */

body.light-theme .footer {
    background-color: #ffffff;
    border-top: 1px solid #e5e7eb;
}

body.light-theme .footer,
body.light-theme .footer p,
body.light-theme .footer li,
body.light-theme .footer a {
    color: #1f2933;
}

body.light-theme .footer a:hover {
    color: var(--main-color);
}

/* Footer social icons */
body.light-theme .footer .social a {
    border-color: var(--main-color);
    color: var(--main-color);
}

body.light-theme .footer .social a:hover {
    background-color: var(--main-color);
    color: #ffffff;
}
/* =========================
   PROJECT MODAL
   ========================= */

.project-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.project-modal.active {
    display: flex;
}

.modal-content {
    background: var(--second-bg-color);
    color: var(--text-color);
    padding: 3.5rem;
    border-radius: 16px;
    width: 92%;
    max-width: 800px;   /* ⬅ bigger modal */
    position: relative;
    max-height: 85vh;   /* prevents overflow */
    overflow-y: auto;   /* scroll if content is long */
}

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

.modal-content h2 {
    margin-bottom: 1rem;
}

.modal-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.modal-image-wrapper {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
}

#modal-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    transition: transform 0.4s ease;
}

#modal-image:hover {
    transform: scale(1.02);
}

@keyframes scaleIn {
    from {
        transform: scale(0.85);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Light mode compatibility */
body.light-theme .modal-content {
    background: #ffffff;
    color: #1f2933;
}
