:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --accent-color: #e74c3c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
html, body {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
}

.hero, .container, .about-me {
  position: relative;
  z-index: 2;
}

body {
    overflow-x: hidden;
    color: var(--dark-color);
    background-color: var(--light-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
     position: relative;
  z-index: 1;
}

/* Enhanced Navigation Bar */
.navbar {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    padding: 15px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 999;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    background-size: 200% 200%;
     background: linear-gradient(to right, #2c3e50, #3498db); /* Or your background */
    animation: gradientBG 15s ease infinite;
    padding: 0px 0;
}

@keyframes gradientBG {
    0% { background-position: 0% 50% }
    50% { background-position: 100% 50% }
    100% { background-position: 0% 50% }
}

.logo {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.logo span {
    color: #2ecc71;
    margin-left: 5px;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo:hover span {
    color: #f1c40f;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin-left: 25px;
    position: relative;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 5px;
    display: flex;
    align-items: center;
}

.nav-links a i {
    margin-right: 8px;
}

.nav-links a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.login-btn {
    padding: 10px 25px;
    background-color: #2ecc71;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
    display: flex;
    align-items: center;
}

.login-btn:hover {
    background-color: #27ae60;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
}

.logout-btn {
    padding: 10px 25px;
    background-color: #e74c3c;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
    display: flex;
    align-items: center;
    color: white;
    cursor: pointer;
    border: none;
    font-size: 1.1rem;
    font-weight: 500;
    font-family: inherit;
}

.logout-btn:hover {
    background-color: #c0392b;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.logout-btn i {
    margin-right: 8px;
}

/* Mobile Menu */
.hamburger {
    display: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hamburger .line {
    width: 30px;
    height: 3px;
    background-color: white;
    margin: 6px 0;
    transition: all 0.3s ease;
}

.hamburger:hover {
    transform: scale(1.1);
}

/* Auth State Indicator */
.auth-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #2ecc71;
    margin-left: 8px;
    display: inline-block;
    animation: pulse 2s infinite;
}

/* Dropdown Menu */
.user-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: white;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 5px;
    overflow: hidden;
    top: 50px;
}

.dropdown-content a {
    color: #2c3e50;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: all 0.3s;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
    color: #3498db;
}

.user-dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.3s;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: 10px;
    border: 2px solid white;
    cursor: pointer;
    transition: all 0.3s;
}

.user-avatar:hover {
    transform: scale(1.1);
    border-color: #2ecc71;
}

/* Hero Section */
.hero {
  padding-top: 140px; /* Increased padding to avoid navbar overlap */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding-left: 1rem;
  padding-right: 1rem;
  min-height: auto;
  overflow: visible;
  position: relative;
  z-index: 2;
}

.hero-content {
    flex: 1;
    z-index: 1;
}

.hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.hero-content h1 span {
    color: var(--primary-color);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.social-icons {
    display: flex;
    margin: 20px 0;
}

.social-icons a {
    margin-right: 15px;
    transition: transform 0.3s ease;
}

.social-icons a:hover {
    transform: translateY(-5px);
}

.social-icons img {
    width: 30px;
    height: 30px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    z-index: 1;
}

.profile-img {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Background Animation */
.bg-animation {
      position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0; /* Keep it behind everything */
  pointer-events: none;
  overflow: hidden;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/bg-coding.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.8;
}

/* Sections Common Styles */
section {
    padding: 0px 0;
    position: relative;
    background-color: white;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
    color: var(--dark-color);
    position: relative;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}
.education {
  padding: 80px 0;
  color: #fff;
  text-align: center;
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  justify-items: center;
}

.education-item {
  background-color: #fff;
  color: #000;
  padding: 20px 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 500px;
  transition: transform 0.3s ease;
}

.education-item:hover {
  transform: translateY(-5px);
}

.education-item h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #007bff;
}

.edu-date {
  font-size: 14px;
  color: #555;
}


/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.project-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: unset;
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    margin-bottom: 10px;
    color: var(--dark-color);
}

.project-info p {
    color: #666;
    margin-bottom: 15px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.tag {
    padding: 5px 10px;
    background-color: var(--light-color);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--dark-color);
}

.project-links {
    display: flex;
    gap: 10px;
}

.project-links a {
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.project-links .demo {
    background-color: var(--primary-color);
    color: white;
}

.project-links .code {
    background-color: var(--dark-color);
    color: white;
}

.project-links a:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.tech-stack {
  padding: 80px 0;
  background-color: #ffffff; /* match your dark theme */
  text-align: center;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 30px;
  margin-top: 40px;
  justify-items: center;
}

.stack-item {
  background-color: #fff;
  color: #000;
  padding: 20px 10px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  width: 120px;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stack-item:hover {
  transform: translateY(-5px);
}

.stack-item i {
  font-size: 36px;
  color: #007bff; /* blue icons */
  margin-bottom: 10px;
}

.stack-item p {
  font-size: 14px;
  font-weight: bold;
  color: #000; /* black text */
  margin: 0;
}


/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.skill-item {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.skill-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.skill-item h3 {
    margin-bottom: 10px;
}

.skill-item p {
    color: #666;
    font-size: 0.9rem;
}

/* Activities Section */
.activities-list {
    max-width: 800px;
    margin: 50px auto 0;
}

.activity-item {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

.activity-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.activity-item h3 {
    margin-bottom: 10px;
    color: var(--dark-color);
}

.activity-item .date {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.activity-item p {
    color: #666;
    line-height: 1.6;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 30px 0;
    text-align: center;
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    z-index: 100;
    transition: all 0.3s ease;
}

.fab:hover {
    transform: scale(1.1) rotate(15deg);
    background-color: #2980b9;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 5px;
    color: white;
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    transform: translateX(200%);
    animation: slideIn 0.5s forwards;
}

.notification.success {
    background-color: #2ecc71;
}

.notification.error {
    background-color: #e74c3c;
}

.notification.info {
    background-color: #3498db;
}

.notification.warning {
    background-color: #f39c12;
}

/* User Dropdown Styles */
.user-dropdown {
    position: relative;
    display: inline-block;
}

.user-avatar-container {
    display: flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.user-avatar-container:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    transition: all 0.3s ease;
}

.auth-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #2ecc71;
    margin-left: 8px;
    box-shadow: 0 0 10px #2ecc71;
    animation: pulse 1.5s infinite;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 5px;
    overflow: hidden;
    top: 50px;
    animation: fadeIn 0.3s;
}

.dropdown-content a {
    color: #2c3e50;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.dropdown-content a i {
    margin-right: 8px;
    width: 20px;
    text-align: center;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
    color: #3498db;
    padding-left: 20px;
}

.user-dropdown:hover .dropdown-content {
    display: block;
}

/* Login/Logout Buttons */
.login-btn, .logout-btn {
    padding: 10px 20px;
    border-radius: 30px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    font-size: 1rem;
    font-weight: 500;
}

.login-btn {
    background-color: #2ecc71;
    color: white;
}

.logout-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.login-btn:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4);
}

.logout-btn:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

.login-btn i, .logout-btn i {
    margin-right: 8px;
}
/* Darken the fadeInDown animation text */
.animate__fadeInDown {
    color: #333 !important;
}

/* Darken the typing animation text */
.typing-animation {
  .typing-animation {
  display: inline-block;
  font-size: 1.2rem;
  color: #333;
  white-space: normal; /* allow text to wrap */
  overflow-wrap: break-word;
  word-wrap: break-word;
  width: 100%;
  max-width: 100%;
  line-height: 1.5;
  text-align: center;
}

}

/* Darken the pulsing name */
.animate__pulse {
    color: #222 !important;

}
h2,
.section-title,
.about-me h2,
.education h2 {
  text-align: center;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
/* Contact Section */
.contact {
    padding: 60px 0;
  }
  .contact .section-title {
    text-align: center;
    margin-bottom: 2rem;
  }
  .contact-form .form-group {
    margin-bottom: 1.5rem;
  }
  .contact-form label {
    display: block;
    margin-bottom: 0.5rem;
  }
  .contact-form input,
  .contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    font: inherit;
  }
  .contact-form .btn {
    display: block;
    margin: 1rem auto 0;
    padding: 0.75rem 2rem;
  }
  /* About Me Section */
.about-me {
  background: #fff;
  padding: 60px 20px; /* Increased vertical padding */
  text-align: center;
  max-width: 800px;
  margin: 40px auto 0;
}
  
  .about-me h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
  }
  
  .about-me p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
  }
  
/* Pulse Animation for Auth Indicator */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}
@keyframes slideIn {
    to { transform: translateX(0) }
}

.fade-out {
    animation: fadeOut 0.5s forwards;
}

@keyframes fadeOut {
    to { opacity: 0 }
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
        height: auto;
    }

    .hero-content {
        margin-bottom: 50px;
    }

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

    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: all 0.5s ease;
        backdrop-filter: blur(10px);
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 25px 0;
        opacity: 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .line:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.active .line:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .line:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    section {
        padding: 80px 0;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .profile-img {
        width: 250px;
        height: 250px;
    }

    section h2 {
        font-size: 2rem;
    }
     
  .typing-animation {
    font-size: 1rem;
    text-align: center;
  }

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