/* Main Body */

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

:root {
    --dark-bg: #0a0a0a;
    --darker-bg: #050505;
    --accent: #219adb;
    --accent-glow: rgba(58, 127, 240, 0.4);
    --text: #ffffff;
}

body{
    background-color: var(--dark-bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}


/* Navbar */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f9f9ff;
  padding: 12px 40px;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  opacity: 95%;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  width: 45px;
  height: 45px;
  border-radius: 50%;
}

.brand {
  font-size: 1.4rem;
  font-weight: 600;
  color: #003b7a;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 30px;
}

.auth-links a {
  text-decoration: none;
  font-weight: 600;
  color: #004080;
  margin: 0 8px;
  transition: color 0.3s ease;
}

.auth-links a:hover {
  color: #007bff;
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: 25px;
}

.nav-icons a {
  color: #004080;
  font-size: 1.4rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-icons a:hover {
  color: #007bff;
}

.icon-wrapper {
  position: relative;
}

.icon-wrapper::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  background: #004080;
  color: white;
  font-size: 0.75rem;
  padding: 5px 8px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.icon-wrapper:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.nav-toggle {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #ffffff;
  color: #004080;
  border: none;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  padding: 10px 12px;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease;
  z-index: 1100; /* stays above everything */
  opacity: 40%;
}

.nav-toggle:hover {
  transform: scale(1.1);
  background: #f0f4ff;
  opacity: 100%;
}

.nav-toggle i {
  font-size: 1.2rem;
}

.header.hide {
  transform: translateY(-100%);
  opacity: 0;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 12% 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%, 100% { transform: translateY(0); }
    50% {transform: translateY(-20px);}
}

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

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

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

/* My Skill Section */
.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: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

/* 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);
}

/* About AI Section */
.about-ai {
  padding: 6rem 8%;
  background: var(--dark-bg);
}

.about-ai-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}

.about-ai-text {
  flex: 1;
  color: rgba(255, 255, 255, 0.85);
}

.about-ai-text h2 {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.about-ai-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.2rem;
  max-width: 600px;
}

.about-ai-image {
  flex: 1;
  text-align: center;
}

.about-ai-image img {
  width: 100%;
  max-width: 450px;
  border-radius: 20px;
  box-shadow: 0 0 40px var(--accent-glow);
  object-fit: cover;
}

/* Responsive stuff */
@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;
    }
    .about-ai-container {
        flex-direction: column;
        text-align: center;
    }
    .about-ai-text h2 {
        font-size: 2rem;
    }
    .about-ai-text p {
        font-size: 1rem;
    }
    .about-ai-image img {
        max-width: 320px;
        margin-top: 2rem;
  }
  .navbar {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: block;
  }

  .nav-right {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    background: #0d3b66;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideDown 0.4s ease;
  }

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

  .auth-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .nav-icons {
    gap: 20px;
  }
}
