/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --blur-amount: 10px;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    margin: 0;
    overflow-x: hidden; /* Prevent horizontal scrollbar */
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease;
}

html{
    scroll-behavior: smooth;
}

#background-video {
  position: fixed;
  top: 0;
  left: 0;
  min-width: 100vw;
  min-height: 100vh;
  object-fit: cover;
  z-index: -1;
  pointer-events: none;
}

#video-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4); /* Adjust opacity as needed */
  z-index: -1; 
  pointer-events: none;
}
/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0.25rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* Subtle shadow */
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.nav-link {
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover {
    color: #A8DADC;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #A8DADC;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

/* ======= Mobile Menu Styles ======= */
#mobile-menu {
  transition: all 0.3s ease;
  transform: translateX(100%);
}

#mobile-menu:not(.hidden) {
  transform: translateX(0);
  background: rgba(30, 41, 59, 0.9);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.nav-link-mobile {
  color: rgba(255, 255, 255, 0.8);
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link-mobile:hover {
  color: white;
  transform: translateX(-5px);
}

.nav-link-mobile::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #A8DADC;
  transition: width 0.3s ease;
}

.nav-mob {
    background: rgba(30, 41, 59, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    color: #fff;
    z-index: 1;
    padding: 0 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
}

.hero-description {
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: both;
}

/* About Section */
.about-section {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.about-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #333;
}

.about-section p {
    font-size: 1.1rem;
    color: #666;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* ======= Social Icons ======= */
.social-icon {
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.social-icon:hover {
  color: #3b82f6;
  transform: translateY(-3px);
}

/* Desktop vertical icons */
.md\:flex .social-icon {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border-radius: 50%;
  margin: 0.5rem 0;
}

/* Mobile horizontal icons */
.md\:hidden .social-icon {
  margin: 0 0.5rem;
}

/* CV Button styles */
.cv-button {
  position: relative;
  overflow: hidden;
}

.cv-button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

.cv-button:focus:not(:active)::after {
  animation: ripple 1s ease-out;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Glassmorphism Cards - Works in both dark/light modes */
.glass-card {
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  background-color: rgba(17, 24, 39, 0.5); /* Base transparency */
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

/* Hover effects */
.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.25);
}

/* Section Styles */
section {
  min-height: calc(100vh - 4rem);
  padding-top: 4rem;
}

/* Experience Section */
#experience h2 {
  position: relative;
}

#experience h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: #3b82f6;
  border-radius: 3px;
}

/* Education Card */
.education-item {
  position: relative;
  padding-left: 1.5rem;
}

.education-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 2px;
  background: linear-gradient(to bottom, #3b82f6, transparent);
}

/* Research Timeline */
.research-item {
  position: relative;
  padding-left: 1.5rem;
}

.research-item::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 10px;
  width: 12px;
  height: 12px;
  border: 2px solid #3b82f6;
  border-radius: 50%;
  background: #1e293b;
  z-index: 1;
}

.research-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 11px;
  top: 22px;
  width: 2px;
  height: calc(100% - 20px);
  background: #3b82f6;
}

/* Skill Icons - Color Adjustments */
.skill-item i.fab.fa-python { color: #3776AB; }
.skill-item i.fas.fa-database { color: #00758F; }
.skill-item i.fab.fa-matlab { color: #FF6C00; }
.skill-item i.fas.fa-brain { color: #7E4DD2; }
.skill-item i.fas.fa-robot { color: #3D85C6; }
.skill-item i.fas.fa-fire { color: #EE4B2B; }
.skill-item i.fas.fa-project-diagram { color: #FF6F00; }

/* Hover effects */
.skill-item:hover i {
  transform: scale(1.2);
  transition: transform 0.3s ease;
}

/* Achievements Section */
#achievements h2 span {
  transition: all 0.3s ease;
}

#achievements h2:hover span {
  transform: translateY(-2px);
}

#achievements h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: #3b82f6;
  border-radius: 3px;
}

/* Award Items */
.award-item {
  transition: all 0.3s ease;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.award-item:last-child {
  border-bottom: none;
}

.award-item:hover {
  transform: translateY(-3px);
}

::-webkit-scrollbar {
  width: 0.6rem;
  border-radius: 0.5rem;
  background-color: rgba(255, 255, 255, 0.18);
}

::-webkit-scrollbar-thumb {
    background-color: #3b82f6;
    border-radius: 0.5rem;
}

/* Connections Section */
#contact h2 span {
  transition: all 0.3s ease;
}

#contact h2:hover span {
  transform: translateY(-2px);
}

#contact h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: #3b82f6;
  border-radius: 3px;
}

/* Contact Form */
form input, form textarea {
  transition: all 0.3s ease;
}

form input:focus, form textarea:focus {
  background: rgba(255,255,255,0.05);
}

/* Social Icons */
.social-icon {
  position: relative;
  overflow: hidden;
}

.social-icon::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(255,255,255,0.2) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.social-icon:hover::after {
  opacity: 1;
}

/* Footer */
footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.1); /* Light background with transparency */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* Subtle shadow */
  transition: background-color 0.3s ease, border-color 0.3s ease;
  z-index: 1000;
}

.footer-link {
  color: #93c5fd;
  transition: all 0.3s ease;
  position: relative;
  padding-bottom: 2px;
}

.footer-link:hover {
  color: #A8DADC;
  width: 100%;
}

.footer-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #A8DADC;
  transition: width 0.3s ease;
}

.footer-hidden {
  display: none;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.footer-hidden.visible {
  display: inline;
  opacity: 1;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    /* Navigation */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 1.5rem;
    }

    /* Hero Section */
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 0.9rem;
    }

    .about-section h2 {
        font-size: 2rem;
    }
}