@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", sans-serif;
    background-color:#d7d7d7;

}

.container{
    width: min(90%,1120px);
    margin-inline: auto;
}
/* ================= HERO ================= */

.hero{
    min-height: calc(100vh - 5rem);
    display:flex;
    align-items:center;
    justify-content:space-between;
    overflow:hidden;
}

.hero-left{
    width:50%;
    background:#d7d7d7;
    padding:80px;
    display:flex;
    align-items:center;
    min-height:90vh;
}

.hero-content h4{
    font-size:1.3rem;
    color:#555;
    margin-bottom:10px;
}

.hero-content h1{
    font-size:4rem;
    font-weight:700;
    margin-bottom:10px;
}

.hero-content h2{
    font-size:2rem;
    color:#555;
    margin-bottom:20px;
}

.hero-content p{
    max-width:500px;
    line-height:1.8;
    color:#444;
    margin-bottom:35px;
}

.contact-me{
    display:flex;
    gap:1.2rem;
}

.contact-me a{
    width:48px;
    height:48px;
    background:#C4C4C4;
    color:#000;
    border-radius:6px;
    text-decoration:none;
    display:flex;
    justify-content:center;
    align-items:center;
    transition:.3s;
}

.contact-me a:hover{
    background:#000;
    color:#fff;
}

.contact-me i{
    font-size:1.2rem;
}

.hero-right{
    width:50%;
    min-height:90vh;
    background:black;
    clip-path:polygon(15% 0,100% 0,100% 100%,0 100%);
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    align-items:center;
    padding:40px;
}

.hero-nav{
    display:flex;
    gap:35px;
    align-self:flex-end;
}

.hero-nav a{
    color:#fff;
    text-decoration:none;
    font-weight:500;
}

.person-img{
    flex:1;
    display:flex;
    justify-content:center;
    align-items:center;
}

.person-img img{
    width:420px;
    max-width:100%;
    height:auto;
}

/* Tablet fix: scale hero down instead of letting it overflow/squish */
@media (max-width: 1024px){
    .hero-left{
        padding:60px 40px;
    }
    .hero-content h1{
        font-size:3rem;
    }
    .hero-content h2{
        font-size:1.6rem;
    }
    .hero-content p{
        max-width:100%;
    }
    .person-img img{
        width:320px;
    }
    .hero-right{
        padding:30px;
    }
}

/* Mobile fix: stack hero-left/hero-right, remove clip-path, center content */
@media (max-width:768px){

.hero{
    flex-direction:column;
    min-height:auto;
}

.hero-left,
.hero-right{
    width:100%;
    min-height:auto;
    clip-path:none;
}

.hero-left{
    padding:50px 30px;
    text-align:center;
}

.hero-content h1{
    font-size:2.8rem;
}

.hero-content h2{
    font-size:1.6rem;
}

.hero-content p{
    margin:auto;
    margin-top:20px;
    margin-bottom:30px;
}

.contact-me{
    justify-content:center;
}

.hero-nav{
    justify-content:center;
    align-self:center;
    flex-wrap:wrap;
    margin-bottom:30px;
}

.person-img{
    margin-top:0;
}

.person-img img{
    width:250px;
}

}

.BERRIES{
    background-color: #1d1d1d;
    display:flex;
    flex-direction:column;
    align-items:self-start;
    padding:2rem 3rem;
    color:#fff;
    gap:1rem;
}

.BERRIES p{
    font-size:.6875rem;
    line-height:1rem;
    color:#909090;
}


.aboutme{
    margin-top:8.875rem;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:5rem;
}

.aboutme p{
    font-size:.6875rem;
    line-height:1rem;
    color:black;
}
.header-info{
    display: flex;
    flex-direction: column;
   text-align: center;
    align-items: center;
    gap:2rem ;
}
.header-info h4{
    font-size: 2rem;
    font-weight: 700;
    border: 4px solid #000;
    padding: 0.5rem 1rem;
}
.header-info h6{
    font-size: 1rem;
    font-weight: 600;
    border-inline: 2px solid #000;
    padding-inline: 1rem;
}
.grid-about{
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 2rem;
}
.grid-about h6{
    font-size: 1rem;
    font-weight: 700;
}
.grid-about .columns{
    display: flex;
    flex-direction: column;
    gap: 1rem;

}





.skills{
    margin-top: 8.875rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5rem;
}
.using-now, .learning-now, .other-skills{
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.using-now, .learning-now, .other-skills h4{
    font-size: 1.5rem;
}
.grid-skills{
    display: grid;
    grid-template-columns: repeat(3,1fr);
    row-gap: 3rem;
    column-gap: 10rem;
}
.grid-item{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    align-items: center;
}
.grid-item img{
    width: 90px;
    height: 100px;
}


.contact{
    margin-top: 8.875rem;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}
form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
}
form input{
    padding: .5rem  1rem;
    background-color: transparent;
    color: black;
    border: none;
    border-bottom: 4px solid black;
    border-left: 4px solid black;
    width: 60%;
}
form button{
    background-color: transparent;
    padding: .5rem  1.5rem;
    border: none;
    border-inline: 2px solid black;
    font-size: 1.5rem;
}
form #comment{
    height: 100px;
}
footer a{
    text-decoration: none;
    color:#fff;
}
footer{
    margin-top: 3rem;
    background-color: #1c1918;
    color: #fff;
    padding: 2rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}
.footer-info{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 1rem;
}
.social{
    display: flex;
    gap: 1rem;
}
.footer-info p{
    font-size: 0.6875rem;
    line-height: 1rem;
    color: #d7d7d7;
}

@media (max-width: 480px){
    .grid-about{
        grid-template-columns: 1fr;
    }
    .grid-skills{
        grid-template-columns: 1fr;
    }
    .grid-port{
        grid-template-columns: 1fr;
    }
    form input{
        width: 100%;
    }
}

/*==========================================
      PROJECT SECTION — GRID + MODAL
==========================================*/

.projects{
    margin-top:1rem;
    display:flex;
    flex-direction:column;
    gap:3rem;
}

.projects .header-info p{
    width:70%;
    margin:auto;
    text-align:center;
    line-height:1.6;
    color:#000;
}


/*=========================
        GRID
==========================*/

.project-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:2rem;
}


/*=========================
        TILE
==========================*/

.project-tile{
    position:relative;
    background:#fff;
    border:1px solid #000;
    display:flex;
    flex-direction:column;
    overflow:hidden;
    cursor:pointer;
    transition:.3s ease;
}

.project-tile:hover{
    transform:translateY(-6px);
    box-shadow:0 16px 32px rgba(0,0,0,.15);
}

.tile-index{
    position:absolute;
    top:0;
    left:0;
    background:#000;
    color:#fff;
    font-size:.7rem;
    letter-spacing:.1em;
    padding:.4rem .75rem;
    z-index:2;
}

.project-tile img{
    width:100%;
    height:190px;
    object-fit:cover;
    transition:.4s;
}

.project-tile:hover img{
    transform:scale(1.04);
}

.tile-body{
    padding:1.2rem 1.2rem .4rem;
    flex:1;
}

.tile-body h3{
    font-size:1.15rem;
    margin-bottom:.9rem;
}



.tile-view{
    margin:1rem 1.2rem 1.2rem;
    padding:.7rem;
    border:none;
    background:#000;
    color:#fff;
    font-size:.8rem;
    font-weight:600;
    letter-spacing:.02em;
    cursor:pointer;
    transition:.3s;
}

.tile-view:hover{
    background:#333;
}


/*=========================
        MODAL
==========================*/

.project-modal{
    position:fixed;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:2rem;
    z-index:999;
    opacity:0;
    pointer-events:none;
    transition:opacity .3s ease;
}

.project-modal.open{
    opacity:1;
    pointer-events:auto;
}

.modal-backdrop{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.78);
}

.modal-panel{
    position:relative;
    background:#fff;
    width:min(920px,100%);
    max-height:88vh;
    overflow-y:auto;
    display:grid;
    grid-template-columns:1fr 1fr;
    transform:translateY(30px);
    transition:.35s ease;
}

.project-modal.open .modal-panel{
    transform:translateY(0);
}

.modal-close{
    position:absolute;
    top:1rem;
    right:1rem;
    width:36px;
    height:36px;
    border:none;
    background:#000;
    color:#fff;
    font-size:1.3rem;
    line-height:1;
    cursor:pointer;
    z-index:3;
}

.modal-close:hover{
    background:#333;
}

.modal-media{
    background:#000;
    min-height:220px;
}

.modal-media img{
    width:100%;
    height:contain;
    object-fit:contain;
}

.modal-content{
    padding:2.5rem 2rem;
    display:flex;
    flex-direction:column;
}

.modal-index{
    font-size:.75rem;
    letter-spacing:.15em;
    color:#888;
    margin-bottom:.5rem;
}

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

.modal-content p{
    color:#555;
    line-height:1.7;
    margin-bottom:1.5rem;
}

.detail-stack{
    display:flex;
    flex-wrap:wrap;
    gap:.6rem;
    margin-bottom:1.5rem;
}

.detail-stack span{
    background:#000;
    color:#fff;
    padding:.4rem .85rem;
    border-radius:20px;
    font-size:.75rem;
}

.modal-content h4{
    margin-bottom:.6rem;
}

.modal-content ul{
    padding-left:20px;
    line-height:1.9;
    margin-bottom:1.5rem;
}

.project-links{
    display:flex;
    gap:1rem;
    margin-top:auto;
}

.project-links a{
    text-decoration:none;
    padding:.7rem 1.3rem;
    border:2px solid #000;
    border-radius:6px;
    color:#000;
    font-weight:600;
    transition:.3s;
}

.project-links a:hover{
    background:#000;
    color:#fff;
}


/*=========================
      RESPONSIVE
==========================*/

@media(max-width:900px){

.project-grid{
    grid-template-columns:1fr;
}

.modal-panel{
    grid-template-columns:1fr;
}

.modal-media{
    height:220px;
}

.projects .header-info p{
    width:100%;
}

}


.projects-footer {
  margin-top: 1rem;
  text-align: center;
}

.projects-footer h4 {
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
}

.projects-footer p {
  max-width: 700px;
  margin: 0 auto 1.8rem;
  line-height: 1.7;
  color: #000;
}

.github-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 50px;
  background: #24292e;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s ease;
}

.github-btn:hover {
  background: #000;
  transform: translateY(-2px);
}

.github-btn i {
  font-size: 1.3rem;
}




/* ===========================
   CERTIFICATIONS
=========================== */

.certifications {
    padding: 100px 0;
}

.cert-grid {
    margin-top: 40px;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));

    gap: 28px;

    justify-items: center;
    align-items: center;
}

.cert-card {

    width: 150px;
    height: 150px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;

    border-radius: 16px;

    transition: transform .25s ease;
}

.cert-card:hover {
    transform: translateY(-6px) scale(1.04);
}

.cert-card img {

    width: 100%;
    height: 100%;

    object-fit: contain;

    user-select: none;
    pointer-events: none;
}
@media (max-width:768px){

    .cert-grid{

        grid-template-columns: repeat(2,1fr);

        gap:20px;

    }

    .cert-card{

        width:130px;
        height:130px;

    }

}





.skill-card{
    text-align:center;
}

.icon-wrapper{
    position:relative;
    display:inline-block;
}

.skill-tooltip{
    position:absolute;

    left:50%;
    bottom:calc(100% + 18px);

    transform:translateX(-10%) translateY(15px);

    width:260px;
    padding:16px 20px;

    background:rgba(255,255,255,.22);
    backdrop-filter:blur(14px);

    border:1px solid rgba(255,255,255,.35);
    border-radius:16px;

    box-shadow:0 15px 35px rgba(0,0,0,.18);

    opacity:0;
    visibility:hidden;

    transition:.35s ease;

    pointer-events:none;

    z-index:100;
}

.skill-card:hover .skill-tooltip{
    opacity:1;
    visibility:visible;

    transform:translateX(-10%) translateY(0);
}

.skill-tooltip::after{

    content:"";

    position:absolute;

    left:22px;
    bottom:-8px;

    width:16px;
    height:16px;

    background:inherit;

    border-right:1px solid rgba(255,255,255,.35);
    border-bottom:1px solid rgba(255,255,255,.35);

    transform:rotate(45deg);
}

.skill-tooltip p{
    margin:0;
    line-height:1.6;
    font-size:.9rem;
}