*{
  box-sizing: border-box;
  font-family:'Segoe UI';
  margin: 0;
  padding: 0;
  
}
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}
.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
}
.nav-links {
    list-style: none;
    display: flex;
}
.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #667eea;
}
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}
section {
    padding: 2rem 2rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;

}
.hero {
    display: flex;
    justify-content:space-between;
    align-items: center;
    flex-wrap: wrap;
    gap:30px;
}
.hero-content{
  flex:1 1 400px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content span {
    color: #764ba2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}


.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.btn:hover {
    background: #764ba2;
}

.hero-image{
  flex:1 1 300px;
  text-align:center;
}

.hero-image img {
    /* width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-right: 50px; */


    width:250px;
    height:250px;
    max-width:100%;
    border-radius:50%;
    object-fit:cover;
    box-shadow:0 10px 30px rgba(0,0,0,0.2);
}

.nav-links.active{
    display:flex;
}


#about{
  min-height: 50vh;
  align-items: center;
  line-height: 30px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
} 

.about-hero {
    min-height:40vh;
    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;
}

.about-hero .hero-content {
    max-width: 300px;
}

.about-hero h1 {
    font-size: 3rem;
}

.about-hero p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}
.about-hero {
    background: linear-gradient(135deg, #f5f7ff, #ffffff);
}


body{
  font-family: Arial;
  background-color: #F4F4F4;
  background-repeat: cover;

} 
.card{
  /* max-width: 1000px;
  margin-left: 100px; */
  max-width:1000px;
  margin:auto;
  padding:0 20px;
}

.box{
  /* margin: 2px;
  padding: 10px;
  border: none;
  line-height: 30px;
  align-items: center; */

  margin:20px 0;
  padding:20px;
  background:white;
  border-radius:10px;
  box-shadow:0 5px 15px rgba(0,0,0,0.05);
}
/* .index-box {
  margin: 2.5rem auto;
  padding: 2rem;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  line-height: 1.8;
  max-width: 900px;
} */

h2{
  padding-top: 0px;
  padding-bottom: 20px;
  margin-bottom: 10px;
  text-transform: uppercase;
  color: #111827;
}

.header-box{
  background-color: #4A90E2;
  color: white;
  text-align: center;
  transform: opacity 1s;
  transition: background-color 1s;
}

.header-box:hover{
  background-color: #357ABD;
  opacity: 0.9;
}

.role{
  font-style: italic;
}

.two-section{
  display: flex;
  gap: 30px;
  flex-wrap:wrap;
  /* padding: 0; */
  margin-top: 50px;
  margin-bottom: 50px;
  margin-left: 1px;
  margin-right: 1px;
}

img{
  border: 1px solid blue;
  border-style: none;
  border-radius: 50%;
  height: 130px;
  width: 120px;
  
}
img{
  max-width:100%;
  height:auto;
}

table{
  border-collapse: collapse;
  align-items: center;
}
th,td{
  border: 2px solid black;
  padding: 15px;
}

tr:nth-child(odd){
  background-color: rgb(212, 233, 248);
}
tr:nth-child(even){
  /* background-color: rgba(200, 200, 216, 0.986); */
  background-color: #eff6ff;
}
tr:hover{
  background-color: rgb(150, 227, 223);
  opacity: 0.9;
}

.project-box{
  margin: 20px;
  padding: 15px;
  border: 1px solid black;
  background-color: rgb(237, 244, 247);
}
.projects{
  text-decoration: none;
  color: rgba(70, 86, 224, 0.873);
  text-transform: uppercase;
  text-align: center;
}

.projects-grid {
    /* display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem; */

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: #edf4f7;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: left;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.project-card h3 {
    margin-bottom: 0.5rem;
    color: #333;
}

.project-card .tech {
    font-size: 0.9rem;
    font-style: italic;
    color: #667eea;
    margin-bottom: 1rem;
}

.project-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.github-btn {
    background: #24292e; 
}

.github-btn:hover {
    background: #000;
}


.links-box a{
  /* background-color: #10B981;
  padding: 10px;
  margin: 2px;
  font-weight: 15px;
  font-size: 17px;
  display: inline;
  gap: 30%;
  color: white;
  border-color: black;
  border-radius: 5px;
  text-decoration: none; */


  display:inline-block;
  margin:5px;
  padding:10px 15px;
  background:#10B981;
  color:white;
  border-radius:5px;
  text-decoration:none;
  font-size:15px;

}
.links-box a:hover{
  background-color: #059669;
  background:#059669;
  transform: translateY(-2px);
  /* font-weight: 60px;
  font-size: 17px; */
  /* opacity: 0.9; */
  
}

fieldset {
    padding: 25px;
    border: 2px solid #667eea;   
    border-radius: 15px;
    background: #f9fbff;
}

input#submit {
    background-color: #38c958; 
    color: white;
    padding: 10px 25px;
    margin-top: 10px;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

input#submit:hover {
    background-color: #2fa84b;
    transform: translateY(-2px);
}

input {
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 8px;
    /* width: 60%; */
    margin-top: 5px;

    width:100%;
    max-width:500px;
}

.footer{
  text-align: center;
  padding: 10px;
  color: rgba(138, 143, 143, 0.872);

}
.explanation{
    /* display: flex;
    align-items: center;
    margin: 2px;
    width: 400px;
    padding: 100px;
    background-image: url(explanation.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid black;
    border-radius: 2px; */
    width:100%;
    max-width:400px;
    height:200px;
    margin:auto;
    background-image:url(explanation.png);
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
    border:1px solid black;
}
.dark-mode{
    background-color: #111;
    color: white;
}
.dark-mode h2{
    color: white;
}
.dark-mode .about-hero{
    background: black;
}
.dark-mode .box{
    background-color: black;
    color: white;
}
.dark-mode th{
    background-color: black;
    border-color: white;
}
.dark-mode td{
    background-color: black;
    border-color: white;
}
.dark-mode .dark-para{
    color: black;
}
.dark-mode label{
    color: black;
}
.dark-mode legend{
    color: black;
}
#toggleid{
    background-color: white;
    border-style: none;
    cursor: pointer;
    font-size: 16px;
    color: #333;
}
#toggleid:hover{
    color: blue;
}
.edu-timeline {
  list-style: none;
  padding-left: 0;
}

.edu-timeline li {
  /* padding: 10px 0;
  border-left: 3px solid #667eea;
  padding-left: 15px;
  margin-bottom: 30px; */

  padding:15px;
  border-left:3px solid #667eea;
  margin-bottom:20px;
}

.edu-timeline span {
  display: block;
  font-size: 0.9rem;
  color: #6b7280;
}
.footer {
  background: linear-gradient(135deg, #f5f7ff, #ffffff);
  padding: 40px 20px;
  text-align: center;
  margin-top: 50%;
}
.footer-dark {
  background: #111;
  color: #e5e7eb;
  padding: 60px 20px 30px;
}
.footer-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}


.footer-col h3 {
  margin-bottom: 15px;
  color: #fff;
}

.footer-logo {
  font-size: 1.8rem;
  color: #fff;
}

.footer-col p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #9ca3af;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
  color: #9ca3af;
}

.footer-col ul li a {
  text-decoration: none;
  color: #9ca3af;
}

.footer-col ul li a:hover {
  color: #60a5fa;
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-icons a {
  width: 38px;
  height: 38px;
  background: #1f2937;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  font-weight: bold;
}

.social-icons a:hover {
  background: #2563eb;
}

.footer-dark hr {
  border: none;
  border-top: 1px solid #374151;
  margin: 40px auto 20px;
  max-width: 1200px;
}

.footer-bottom {
  text-align: center;
  font-size: 0.9rem;
  color: #9ca3af;
}

.footer-content h3 {
  margin: 0;
  font-size: 1.4rem;
  color: #111827;
}

.footer-content p {
  margin: 8px 0;
  color: #4b5563;
}

.footer-links,
.footer-social {
  margin: 15px 0;
}

.footer-links a,
.footer-social a {
  margin: 0 10px;
  text-decoration: none;
  color: #667eea;
  font-weight: 500;
}

.footer-links a:hover,
.footer-social a:hover {
  text-decoration: underline;
}

.footer hr {
  margin: 25px auto;
  max-width: 500px;
  border: none;
  border-top: 1px solid #dbeafe;
}

.footer .copyright {
  font-size: 0.9rem;
  color: #6b7280;
}

/* Dark mode support */
.dark-mode .footer {
  background: #111;
}

.dark-mode .footer-content h3,
.dark-mode .footer-content p,
.dark-mode .footer-links a,
.dark-mode .footer-social a {
  color: #e5e7eb;
}

.dark-mode .footer-links a:hover,
.dark-mode .footer-social a:hover {
  color: #93c5fd;
}
.social-icons a {
  font-size: 18px;
}

#theme-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: #333;
}

#theme-toggle:hover {
  color: #2563eb;
}

/* Dark mode icon color */
.dark-mode #theme-toggle {
  color: #facc15;
}
.image-box {
  width: 300px;
  max-width: 180px;        /* controls size on large screens */
  aspect-ratio: 1 / 1;    /* makes it square */
  overflow: hidden;       /* hides zoom overflow */
  border-radius: 10px; 

  
}

/* Hover Zoom Effect */
.image-box:hover .project-images {
  transform: scale(1.15);
}
.project-images{
  width: 650px;
  max-width: 180px;
  height: 120px; 
  object-fit: cover;
  aspect-ratio: 1 / 1;
  /* border-radius: 1px; */
  border-color: black;
  /* margin-bottom: 5px; */
  box-shadow: 0 2px 1px rgba(0,0,0,0.12);
  border-radius:5px;
  margin-bottom:10px;
}


@media (max-width:768px){

.nav-links{
    position:absolute;
    right:0;
    top:70px;
    background:white;
    width:100%;
    flex-direction:column;
    align-items:center;
    display:none;
}

.nav-links li{
    margin:15px 0;
}

.hamburger{
    display:flex;
}

.hero{
    flex-direction:column;
    text-align:center;
    padding-top:100px;
    gap:15px;
}

.hero-content{
    order:1;
}

.hero-content h1{
    font-size:2rem;
}

.hero-content p{
    font-size:1rem;
}

.hero-image{
    order:2;
    margin-top:10px;
}

.hero-image img{
    width:180px;
    height:180px;
}

.hero-content a.btn{
    display:block;
    width:70%;
    margin:10px auto;
}

.contact-section{
  padding-bottom:10px;
  min-height:auto;
}

.explanation-section{
  padding-top:10px;
  min-height:auto;
}

.about-hero{
  min-height:120px;
  padding:20px 15px;
  display:flex;
  justify-content:center;
  align-items:center;
}

.about-hero h1{
  font-size:1.6rem;
  margin:0;
  padding-top: 190px;
  line-height:1.3;
}

/* .about-hero h1{
  font-size:2.2rem;
} */

.two-section{
  flex-direction:column;
}

.box{
  padding:15px;
}

.links-box{
  text-align:center;
}
.projects-grid{
    grid-template-columns: repeat(2, 1fr);
}

.project-card{
    padding: 18px;
}

.project-images{
    height:160px;
}
fieldset{
    padding:20px;
}

input,
select,
textarea{
    width:100%;
    max-width:100%;
}

#submit{
    width:40%;
}

}

@media (max-width:480px){

nav{
  padding:0 1rem;
}

.hero-content h1{
  font-size:1.7rem;
}

.btn{
  padding:0.6rem 1.2rem;
  font-size:0.9rem;
}

.hero-content .btn{
  margin:5px;
}

.footer-container{
  text-align:center;
}

.social-icons{
  justify-content:center;
}
.about-hero h1{
  font-size:1.8rem;
}

h2{
  font-size:1.3rem;
}

.box{
  padding:12px;
}

.edu-timeline li{
  padding:10px;
}
.projects-grid{
    grid-template-columns: 1fr;
}

.project-card{
    padding:15px;
}

.project-images{
    height:140px;
}

.project-card h3{
    font-size:1.2rem;
}

.project-card p{
    font-size:0.95rem;
}
fieldset{
    padding:15px;
}

label{
    display:block;
    margin-bottom:5px;
}

input,
select,
textarea{
    width:100%;
}

#submit{
    width:60%;
}

}
