*{
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    
}

html{
    scroll-behavior: smooth;
}

body {
    
    margin: 0;
    padding: 0;
    background-color: var(--bg-light);
    overflow-x: hidden;
}

:root{
--primary: #0A66C2;    
--text-dark: #000000;
--text-light: #666666;
--bg-light: #f3f2ef;
--card-white: #ffffff;
--border: #e0e0e0;
}

 :root.dark {
  --primary: #0A66C2;

  /* background layers */
  --bg-light: #0d1117;        /* deep base */
  --card-white: #161b22;      /* surfaces */
  --card-hover: #1c2128;

  /* text */
  --text-dark: #e6edf3;
  --text-light: #9da7b3;

  /* borders */
  --border: #2d333b;

  /* glow */
  --glow: rgba(10, 102, 194, 0.25);
}

.darkmode-toggle {
  font-size: 18px;
  cursor: pointer;
  margin-left: 20px;
  color: var(--text-dark);
  transition: 0.3s;
}

.darkmode-toggle:hover {
  transform: scale(1.2);
}

h1, h2, h3{
color: var(--text-dark);
}

p{
color:var(--text-light);
}

/* Navbar */
.navbar {
    top: 0;
    margin-bottom: 20px;
    z-index: 1000;
    position: sticky;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 12px 60px;
    background: var(--card-white);
    border: 1px solid var(--border);
    color: var(--text-light);
}

/* Logo */
.logo {
    font-size: 20px;
    font-weight: 600;
}

.logo h2 {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.logo span {
    background-color: var(--primary);
    color: var(--card-white);
    padding: 2px 8px;
    font-size: 16px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: 0.3s ease;
}

.logo:hover span{
    background-color: var(--primary);
}

/* nav center */
.nav-center {
    display: flex;
    gap: 30px;
}

.nav-center a {
    display: flex;
    gap: 6px;
    text-decoration: none;
    color: var(--text-light);
    font-size: 14px;
    transition: 0.3s;
    position: relative;
}

.nav-center a::after{
content:"";
position:absolute;
left:0;
bottom:-4px;
width:0%;
height:2px;
background: var(--primary);
transition:0.6s;
}

.nav-center a i{
    opacity: 0.7;
}

.nav-center a:hover{
    color: var(--text-dark);
}

.nav-center a:hover::after{
width:100%;
}

.nav-right{
  display: flex;
  align-items: center;
  gap: 10px;
}


.menu-toggle {
  font-size: 22px;
  cursor: pointer;
  display: none;
}


@media (max-width:768px){
    .navbar {
        padding: 12px 20px;
    }

    .nav-center a {
        justify-content: center;
    }

     .menu-toggle {
    display: block;
    color: var(--text-light);
  }

  .nav-center {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    align-items: center;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s ease;
  }

  .nav-right{
    margin-left: auto;
  }

  .nav-center.active {
    max-height: 300px;
    padding: 20px 0;
  }

}

.page{
width:95%;
max-width:1200px;
margin:0 auto;
display: flex;
flex-direction: column;
gap: 16px;
}

section{
border-radius: 4px;
background: var(--card-white);
padding: 64px 40px;
border: 1px solid var(--border);
box-shadow:none;
scroll-margin-top: 80px;
}


/* hero */
.hero {
    position: relative;
    width: 100%;
    background: none;
    padding: 0;
}

/* banner */
.hero-banner {
    height: 320px;
    background: url("/images/download.jpg") center/cover no-repeat;
    display: flex;
    padding-top: 40px;
    justify-content: center;
    align-items: center;
    position: relative;
    color: var(--card-white);
}

/* hero text */
.hero-text {
    width: 518px;
    max-width: 90%;
    transform: translateY(-40px);
    line-height: 5px;
    text-align: center;
}

.hero-text h1 {
    font-size: 32px;
    font-weight: 400;
    color: var(--card-white);
}
.hero-text h2 {
    font-weight: 400;
    margin-top: 5px;
    color: var(--card-white);
}

.hero-text p{
    color: var(--card-white);
}

:root.dark .hero-text h1,
:root.dark .hero-text h2 {
  color: #e6edf3; 
}

:root.dark .hero-text p {
  color: #9da7b3;
}

/* right avatar */ 
.right-avatar {
    position: absolute;
    right: 80px;
    bottom: -4px;
    width: 240px;
}

.right-avatar img{
    width: 100%;
}

.left-avatar {
    position: absolute;
    left: 120px;
    bottom: -60px; /*craetes overlap*/
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 6px solid white;
    background: rgb(52, 48, 48);
    top: 185px;
    left: 41px;
    overflow: hidden;
}

.left-avatar img {
    width:100%;
}

.badge {
    position: absolute;
    background:rgba(40,40,40,0.85);
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 13px;
    color: #fff;
    box-shadow:0 5px 10px rgba(0,0,0,0.4);
    display: flex;
    gap: 6px;
}

.badge img {
    width: 15px;
    height: 15px;
    top: 8px;
    opacity: 0.9;
    object-fit: contain;
}

.html{
top:20px;
left:18px;
}

.css{
top: 31px;
right:16px;
}

.js{
top:100px;
left: 250px;
}

.python{
top: 265px;
left:313px;
}

@media (max-width:768px){
    .hero-banner {
        height: 220px;
        padding-top: 20px;
    }

    .hero-text {
        width: 85%;
        margin: 0 auto;
        margin-top: 40px;
        margin-right: 40px;
        transition: none;
    }

    .hero-text h1{
        font-size: 20px;
    }

    .hero-text h2{
        font-size: 16px;
    }

    .right-avatar{
        width: 110px;
        right: 10px;
        bottom: 0;
    }

    .left-avatar {
        width: 100px;
        height: 100px;
        left: 20px;
        top: 170px;
        border-width: 4px;
    }

    .bottom-banner{
        padding: 60px 20px 20px 20px;
    }

    .bottom-banner h2{
        font-size: 20px;
        margin-top: 20px;
    }

    .badge {
        display: none;
    }

    /* displays 3 badges */
    .html,
    .css,
    .js{
        display: flex;
    }

    .js {
      margin-top: 35px;
      left: 42px;
    }

    .about {
        padding: 40px 20px;
    }
}

/* bottom banner */
.bottom-banner{
    background: var(--card-white);
    padding:80px 40px 30px 40px;
}

.bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
}

.left-info{
    flex: 1;
    min-width: 0;
}

.left-info h2 {
    font-size: 26px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.left-info p {
    font-size: 14px;
    margin-top: 6px;
    max-width: 500px;
    line-height: 1.4;
}

/* verification badge */
.verify-badge a{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    text-decoration: none;
    color: var(--primary);
    background: transparent;
    border: 1px;
    border-style: dashed;
    padding: 4px 10px;
    border-radius: 20px;
    cursor: pointer;
}

.verify-badge a:hover {
    background-color: rgb(180, 205, 213);     /* LinkedIn blue */
    color: var(--primary);
    border: 1px solid;
    border-style: dashed;
    cursor: pointer;
}

.right-info {
    display: flex;
    gap: 6px;
    margin-top: 30px;
}

.right-info a{
display: flex;
align-items: center;
justify-content: center;
width: 36px;
height: 36px;
border-radius: 50%;
background: var(--bg-light);
color: var(--text-light);
cursor: pointer;
transition: all 0.3s ease;
}

.right-info a:hover{
transform: translateY(-4px);
background: var(--primary);
color: var(--card-white);
box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* About section */
.about{
padding:60px 40px;
background-color: var(--card-white);
}

.about h2 {
    font-size: 30px;
    font-weight: 400;
    margin-bottom: 20px;
}
.h2-text{
    color: var(--primary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch;
}

.about-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 18px;
}

.about-text p {
    margin-bottom: 15px;
}

.about-text,
.about-img {
    flex: 1;
}

.resume-btn{
display:inline-flex;
align-items:center;
justify-content: center;
width: 90px;
gap:6px;
margin-top:18px;
padding:8px 14px;
border-radius:8px;
text-decoration:none;
font-size:10px;
font-weight:400;
background: var(--primary);
color: white;
transition:0.3s ease;
}

.resume-btn:hover{
transform: translateY(-2px);
opacity:0.9;
}


.about-img{
position:relative;
flex: 1;
width:320px;
height: auto;
overflow:hidden;
border-radius:32px 90px 32px 90px;
background: gainsboro;
padding:8px;
box-shadow:0 20px 40px rgba(0,0,0,.12);
}

.about-img img{
width:100%;
height:100%;
object-fit:cover;
display:block;
border-radius:28px 80px 28px 80px;
}

@media (max-width: 786px) {
    .about {
        padding: 40px 20px;
    }

    .about-content {
        flex-direction: column;
        grid-template-columns: 1fr;
    }


    .right-info {
        display: block;
    }
}

/* services */
.services-timeline {
  border: none;
  background: none;
  padding: 100px 40px;
  position: relative;
}

.service-title {
  text-align: center;
  margin-bottom: 60px;
  font-size: 32px;
  font-weight: 400;
}

.service-line {
  position: relative;
  max-width: 900px;
  margin: auto;
}

.service-line::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 4px;
  height: 100%;
  background: #dcdcdc;
  transform: translateX(-50%) scaleY(0);
  transform-origin: top;
  transition: transform 1s ease;
}

/* when active */
.service-line.animate::before {
  transform: translateX(-50%) scaleY(1);
}

.service-row {
  position: relative;
  display: flex;
  margin-bottom: 60px;
}

/* odd rows align left of line */
.service-row:nth-child(odd) .service-card {
  margin-right: auto;
}

/* even rows align right of line */
.service-row:nth-child(even) .service-card {
  margin-left: auto;
}

.service-card {
  width: 42%;
  background: var(--card-white);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  opacity: 0;
  transition: all 0.6s ease;
}

.service-card.show {
  opacity: 1;
  transform: translateX(0);
}

.service-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 14px;
}

.dot {
  position: absolute;
  left: 50%;
  top: 40%;
  width: 18px;
  height: 18px;
  background: var(--primary);
  border-radius: 50%;
  transform: translate(-50%) scale(0);
  transition: 0.4s;
}

.service-card.show + .dot {
  transform: translate(-50%) scale(1);
}

/* mobile */
@media (max-width: 768px) {
  .services-timeline {
    padding: 80px 20px;
  }

  .service-line {
    max-width: 100%;
  }

  .service-line::before {
    left: 20px;
    top: 0;
    width: 4px;
    height: 100%;
    transform: scaleY(1);
  }

  .service-row {
    display: flex;
    justify-content: flex-start;
    padding-left: 40px; /* tighter space for line */
    margin-bottom: 50px;
  }

  .service-card {
    width: 100%;
    max-width: 100%;
    padding-right: 20px; /* reduced so it doesn’t push away */
  }

  .dot {
    left: 20px;
    top: 24px;
    transform: translate(-50%, 0) scale(1);
  }
}


/* TECH STACK */
.tech-stack{
padding:80px 40px;
text-align:center;
background: var(--card-white);
}

.tech-stack h2{
font-size:34px;
margin-bottom:10px;
font-weight: 400;
}

.stack-sub{
max-width:600px;
margin:0 auto 40px;
line-height:1.6;
color: var(--text-light);
}

/* GRID */
.stack-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
gap:20px;
margin-top:30px;
}

/* CARD */
.stack-card{
display:flex;
flex-direction:column;
align-items:center;
justify-content:center;
gap:12px;
padding:24px 18px;
border-radius:18px;
background: var(--card-white);
border:1px solid var(--border);
transition:0.35s ease;
box-shadow:0 8px 20px rgba(0,0,0,0.04);
}

/* ICONS */
.stack-card i{
font-size:42px;
color: var(--primary);
}

.stack-card img{
width:42px;
height:42px;
object-fit:contain;
}

/* TEXT */
.stack-card span{
font-size:14px;
font-weight:600;
color: var(--text-dark);
}

/* HOVER */
.stack-card:hover{
transform:translateY(-8px);
border-color: var(--primary);
box-shadow:0 12px 30px var(--glow);
}

.tool-card {
  display:grid;
grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
gap:20px;
margin-top:30px;
}

.tools{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card-white);
  transition:0.35s ease;
  box-shadow:0 8px 20px rgba(0,0,0,0.04);
}

.tool-card span{
font-size:14px;
font-weight:600;
color: var(--text-dark);
}

.tools:hover{
transform:translateY(-8px);
border-color: var(--primary);
box-shadow:0 12px 30px var(--glow);
}

.tools i{
  font-size: 42px;
}

.tools img{
width:42px;
height:42px;
object-fit:contain;
}

/* MOBILE */
@media(max-width:768px){

.tech-stack{
padding:70px 20px;
}

.tech-stack h2{
font-size:28px;
}

.stack-grid{
grid-template-columns:repeat(2,1fr);
}

}


/* Projects */
.projects{
  padding:100px 40px;
  background: var(--card-white);
}

.projects h2{
  font-size:34px;
  font-weight: 400;
  margin-bottom:10px;
  text-align:center;
}

.project-sub{
  text-align:center;
  color:#666;
  max-width:600px;
  margin:0 auto 45px;
  line-height:1.5;
}

/* GRID */
.project-row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:28px;
}

/* CARD */
.project-card{
  background: var(--card-white);
  border:1px solid #e8e8e8;
  border-radius:22px;
  overflow:hidden;
  box-shadow:0 10px 30px rgba(0,0,0,0.06);
  transition:0.4s ease;
  cursor:pointer;
}

.project-card:hover{
  transform:translateY(-10px);
  box-shadow:0 18px 45px rgba(0,0,0,0.12);
}

/* IMAGE */
.project-card img{
  width:100%;
  height:220px;
  object-fit:cover;
  display:block;
}

/* CONTENT */
.overlay{
  padding:22px;
}

.tag{
  display:inline-block;
  padding:6px 12px;
  background: var(--bg-light);
  color: var(--primary);
  font-size:12px;
  border-radius:30px;
  margin-bottom:12px;
  font-weight:600;
}

.overlay h3{
  font-size:22px;
  margin-bottom:10px;
}

.overlay p{
  font-size:14px;
  color: var(--text-light);
  line-height:1.5;
  margin-bottom:18px;
}

/* TECH STACKS */
.stack{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.stack span{
  padding:7px 10px;
  font-size:12px;
  background:var(--bg-light);
  border-radius:20px;
  color:var(--text-dark);
}

/* MOBILE */
@media(max-width:768px){

.projects{
  padding:70px 20px;
}

.projects h2{
  font-size:28px;
}

.project-row{
  grid-template-columns:1fr;
}

.project-card img{
  height:200px;
}

}

.project-links{
display:flex;
gap:12px;
margin-top:18px;
}

.project-links a{
text-decoration:none;
padding:10px 14px;
border-radius:10px;
font-size:14px;
font-weight:600;
transition:0.3s ease;
}

/* blue button */
.live-btn{
background: var(--primary);
color: var(--card-white);
}

.live-btn:hover{
background: var(--primary);
}

/* outline button */
.git-btn{
border:1px solid #ddd;
color:#333;
}

.git-btn:hover{
background:#f5f5f5;
}

/* contacts */
.contact{
padding:100px 40px;
background: var(--card-white);
}

.contact h2{
text-align:center;
font-size:34px;
margin-bottom:10px;
}

.contact-sub{
text-align:center;
color:#666;
margin-bottom:50px;
}

/* layout */
.contact-wrapper{
display:grid;
grid-template-columns:1fr 1fr;
gap:40px;
max-width:1000px;
margin:auto;
}

/* left */
.contact-info h3{
font-size:22px;
margin-bottom:20px;
}

.contact-info p{
margin-bottom:12px;
color:#555;
}

.contact-info span{
color:#0A66C2;
font-weight:600;
}

.socials{
margin-top:20px;
display:flex;
gap:10px;
}

.socials a{
text-decoration:none;
padding:8px 12px;
border:1px solid #ddd;
border-radius:20px;
font-size:13px;
transition:0.3s;
}

.socials a:hover{
background:#0A66C2;
color:#fff;
border-color:#0A66C2;
}

/* form */
.contact-form{
display:flex;
flex-direction:column;
gap:14px;
}

.contact-form input,
.contact-form textarea{
padding:12px;
border:1px solid #ddd;
border-radius:10px;
outline:none;
font-size:14px;
transition:0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus{
border-color: var(--primary);
box-shadow:0 0 0 3px rgba(10,102,194,0.1);
}

.contact-form button{
padding:12px;
border:none;
background: var(--primary);
color: var(--card-white);
border-radius:10px;
cursor:pointer;
font-weight:600;
transition:0.3s;
}

.contact-form button:hover{
background: var(--primary);
}

/* mobile */
@media(max-width:768px){
.contact-wrapper{
grid-template-columns:1fr;
}
}

/* back-to-top button */
.back-to-top{
position:fixed;
bottom:30px;
right:30px;
width:45px;
height:45px;
border-radius:50%;
border:none;
background:#0A66C2;
color:#fff;
font-size:18px;
cursor:pointer;
box-shadow:0 10px 25px rgba(0,0,0,0.2);
opacity:0;
visibility:hidden;
transform:translateY(20px);
transition:0.4s ease;
z-index:999;
}

.back-to-top.show{
opacity:1;
visibility:visible;
transform:translateY(0);
}

.back-to-top:hover{
background:#004182;
transform:translateY(-4px);
}

/* FOOTER */
.footer {
  width: 100%;
  background: #0B1B32;
  border-top: 1px solid #e0e0e0;
  padding-top: 60px;
}

/* container */
.footer-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  padding: 0 20px;
}

/* brand */
.footer-brand h2 {
  font-size: 22px;
}

.footer-brand span {
  background: #0A66C2;
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
}

.footer-brand p {
  margin-top: 10px;
  font-size: 14px;
  color: #b8c1cc;
  line-height: 1.5;
}

/* headings */
.footer h4 {
  font-size: 14px;
  margin-bottom: 14px;
  color: #fff;
}

/* links */
.footer-links a {
  display: block;
  text-decoration: none;
  color: #b8c1cc;
  font-size: 14px;
  margin-bottom: 8px;
  transition: 0.3s;
}

.footer-links a:hover {
  color: #0A66C2;
  transform: translateX(4px);
}

/* contact */
.footer-contact p {
  font-size: 14px;
  color: #b8c1cc;
  margin-bottom: 6px;
}

/* socials */
.social-icons {
  display: flex;
  gap: 10px;
}

.social-icons a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 50%;
  border: 1px solid #ddd;
  color: #333;
  transition: 0.3s;
}

.social-icons a:hover {
  background: #0A66C2;
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* bottom bar */
.footer-bottom {
  margin-top: 40px;
  padding: 20px;
  text-align: center;
  border-top: 1px solid #e0e0e0;
}

.footer-bottom p {
  font-size: 13px;
  color: #b8c1cc;
}

/* MOBILE */
@media (max-width:768px) {
  .footer {
    padding-top: 40px;
  }

  .footer-container {
    gap: 30px;
  }

  .footer-bottom {
    padding: 15px;
  }
}

.project-card:hover,
.service-card:hover {
  background: var(--card-hover);
  box-shadow: 0 10px 30px var(--glow);
}