*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

:root{
    --dark-bg: #0a0a0a;
    --darker-bg: #050505;
    --accent: #2ecc71;
    --accent-glow: rgba(46,204,113,0.4);
    --text: #ffffff;

}
body{
    background-color: var(--dark-bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px;
    letter-spacing: 0.3px;
}

/* navigation bar */
.navbar{
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.3rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgb(255, 255, 255,0.1);
}
/* Hamburger hidden by default */
.hamburger {
    display: none;
    font-size: 1.8rem;
    color: var(--text);
    cursor: pointer;
}

/* Responsive styles */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        background-color: rgba(10, 10, 10, 0.98);
        position: absolute;
        top: 100%;
        right: 0;
        width: 100%;
        text-align: center;
        padding: 1rem 0;
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 1rem 0;
    }

    .hamburger {
        display: block;
    }
}

.logo{
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    position: relative;
    padding-left: 2.5rem;
}
.nav-links{
    display: flex;
    gap: 2rem;
    list-style: none;
    cursor: pointer;
}

.nav-links a{
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}
.nav-links a::after{
    content:'';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background:var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after{
    width: 100%;

}

/* hero section */
.hero{
    min-height: 100vh;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 9% 5%;
    background: radial-gradient(circle at 75% 30%, var(--accent-glow) 0%, transparent 30%);
}

.hero-content{
    flex: 1;
    padding-right: 5rem;
}

.hero-image{
    flex: 1;
    text-align: center;
    position: relative;
}
.profile-img{
width: 400px;
height: 400px;
border-radius: 50%;
object-fit: cover;
border: 3px solid var(--accent);
box-shadow: 0 0 50px var(--accent-glow);
animation: float 3s ease-in-out infinite;
filter: grayscale(0.2) contrast(1.1);

}

@keyframes float {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

.hero h1{
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg ,var(--accent) 30%, #ffffff 70%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

}

.hero p{
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    max-width: 600px;

}

.cta-button{
    display: inline-block;
    padding: 1rem 2rem ;
    background:linear-gradient(45deg ,var(--accent), #27ae60);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

/* skills section */
.skills {
    padding: 5rem 5%;
    background: var(--darker-bg);
    text-align: center; /* Center the text like in projects */
}

.skills h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.skills{
    padding: 5rem 5%;
    background: var(--darker-bg);

}

.skills-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.skill-card{
    padding: 2rem;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.skill-card:hover{
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px var(--accent-glow);
}

.skill-card i{
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

/* projects */
/* Projects Section */
.projects {
    padding: 5rem 5%;
    background-color: var(--dark-bg);
    text-align: center;
}

.projects h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

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

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(4px);
    text-align: left;
}

.project-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px var(--accent-glow);
}

.project-card h3 {
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.project-card p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.project-link {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background-color: var(--accent);
    color: var(--dark-bg);
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.project-link:hover {
    background-color: #27ae60;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px var(--accent-glow);
}



/* footer */
footer{
    background: var(--darker-bg);
    padding: 3rem 5%;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);

}

.social-links{
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 2rem;

}
.social-links a{
    color: var(--text);
    font-size: 1.5rem;
    transition: all 0.3s ease;

}

.social-links a:hover{
    color: var(--accent);
    transform: translateY(-3px);

}
/* Contact Section */
/* Contact Section */
.contact {
    padding: 3.5rem 5%; /* ↓ Reduced padding */
    background: var(--darker-bg);
    text-align: center;
}

.contact h2 {
    font-size: 2.2rem; /* ↓ Slightly smaller heading */
    margin-bottom: 0.8rem; /* ↓ Less space below */
}

.contact-subtext {
    font-size: 1rem; /* ↓ Slightly smaller font */
    margin-bottom: 1.5rem; /* ↓ Tighter spacing */
    opacity: 0.85;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem; /* ↓ Reduced vertical spacing between fields */
}

.contact-form input,
.contact-form textarea {
    padding: 0.75rem; /* ↓ Smaller input field height */
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    font-size: 0.95rem; /* ↓ Slightly smaller text */
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow); /* ↓ Slightly reduced glow */
}

.contact-form .cta-button {
    border: none;
    cursor: pointer;
    padding: 0.8rem 2rem; /* ↓ Slightly smaller button */
    font-size: 1rem;
}
#contact {
    scroll-margin-top: 80px; /* Adjust based on navbar height */
}



@media (max-width: 768px) {
    .hero{
        flex-direction: column;
        text-align: center;
        padding-top: 8rem;
    }
    .hero-content{
        padding-right: 0;
        margin-bottom: 3rem;
    }
    .profile-img{
        width: 280px;
        height: 280px;
    }
    .nav-links{
        display: none;

    }
    .logo{
        font-size: 1.5rem;
        padding-left: 2rem;
    }
}
/* chatbot */
/* Floating Chat Button */
#chat-toggle {
  position: fixed; bottom: 20px; right: 20px;
  background: #007bff; color: white;
  border: none; padding: 12px;
  border-radius: 50%; cursor: pointer;
  font-size: 18px; box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  z-index: 9999; /* Always on top */
}

/* Chat Window */
#chatbot {
  position: fixed; bottom: 70px; right: 20px;
  width: 300px; height: 380px;  /* Fixed height for better visibility */
  background: #fff;
  border: 1px solid #ccc; border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  display: none; flex-direction: column;
  overflow: hidden;
  z-index: 9999;
}

#chat-header {
  background: #007bff; color: white;
  padding: 12px; text-align: center;
  font-weight: bold; cursor: pointer;
  font-size: 16px;
}

#chat-messages {
  flex: 1;  /* Take remaining space */
  overflow-y: auto;
  padding: 10px;
  font-size: 14px;
  background: #3b7cf5;
  line-height: 1.4;   /* Better readability */
}

.msg { 
  margin: 6px 0; padding: 8px 12px; 
  border-radius: 10px; max-width: 80%; 
  word-wrap: break-word; 
  font-size: 14px;
}
.user { background: #165fad; text-align: right; margin-left: auto; }
.bot { background: #16afe7; text-align: left; margin-right: auto; }

#chat-input {
  display: flex; border-top: 1px solid #ccc;
  background: #fff;
}

#chat-input input {
  flex: 1; padding: 10px;
  border: none; outline: none;
  font-size: 14px;
}

#chat-input button {
  padding: 10px; border: none;
  background: #007bff; color: white;
  cursor: pointer;
  font-size: 14px;
}

/* 🔹 Responsive Design */
@media (max-width: 768px) {  /* Tablets */
  #chatbot {
    width: 260px; height: 350px;
    bottom: 70px; right: 15px;
  }
}

@media (max-width: 480px) {  /* Mobile */
  #chatbot {
    width: 95%; height: 65%; 
    bottom: 80px; left: 2.5%; right: 2.5%; /* Center horizontally */
  }

  #chat-header { font-size: 14px; padding: 10px; }

  .msg { font-size: 13px; padding: 6px 10px; }

  #chat-input input, 
  #chat-input button {
    font-size: 12px;
    padding: 8px;
  }
}
/* 🔹 Internships Section */
#internships {
  padding: 5rem 5%;
  background: var(--darker-bg);
  text-align: center;
}

#internships h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  
}

.internship-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.internship-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 2rem;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(5px);
}

.internship-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px var(--accent-glow);
  border-color: var(--accent);
}

.internship-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.internship-card p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.internship-card .date {
  display: block;
  font-size: 0.85rem;
  font-style: italic;
  color: #aaa;
  margin-bottom: 1rem;
}

.internship-card .buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.internship-card .btn {
  flex: 1;
  text-align: center;
  text-decoration: none;
  background: var(--accent);
  color: var(--dark-bg);
  padding: 10px 15px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.2s ease;
}

.internship-card .btn:hover {
  background: #27ae60;
  transform: scale(1.05);
}

/* 📱 Media Queries */

/* Tablets */
@media (max-width: 768px) {
  .internship-grid {
    grid-template-columns: 1fr; /* Stack cards */
  }

  .internship-card {
    text-align: center;
    padding: 1.8rem;
  }

  .internship-card .buttons {
    flex-direction: column;
    align-items: center;
  }

  .internship-card .btn {
    width: 100%;
    max-width: 240px;
  }
}

/* Mobiles */
@media (max-width: 480px) {
  #internships h2 {
    font-size: 2rem;
  }

  .internship-card {
    padding: 1.5rem;
  }

  .internship-card h3 {
    font-size: 1.1rem;
  }

  .internship-card p {
    font-size: 0.85rem;
  }

  .internship-card .btn {
    font-size: 0.85rem;
    padding: 8px 10px;
  }
}
/* Certificates Section */
.certificates {
    padding: 5rem 5%;
    background: var(--dark-bg);
    text-align: center;
}

.certificates h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

/* Grid Layout */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

/* Card Style */
.certificate-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(4px);
    text-align: center;
}

.certificate-card h3 {
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.certificate-card p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

/* Button Link */
.certificate-link {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background-color: var(--accent);
    color: var(--dark-bg);
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.certificate-link:hover {
    background-color: #27ae60;
}

/* Hover Effect */
.certificate-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px var(--accent-glow);
}

/* Responsive Fix */
@media (max-width: 768px) {
    .certificates h2 {
        font-size: 2rem;
    }
    .certificate-card {
        padding: 1.5rem;
    }
}
