/* Global Styles */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  transition: background 0.3s, color 0.3s;
  scroll-behavior: smooth;
  line-height: 1.6;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

body.dark {
  background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 100%);
  color: #eee;
}

/* Scroll to top button */
#topBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(45deg, #00d4ff, #00b4d8);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#topBtn:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}

/* Container improvements */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 1rem;
}
/* Header and Footer improvements */
header, footer {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #3b82f6 100%);
  color: white;
  padding: 0.5rem 0;
  text-align: center;
  box-shadow: 0 2px 20px rgba(30, 58, 138, 0.2);
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.nav-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo:hover {
  transform: scale(1.1) rotate(5deg);
  border-color: #60a5fa;
  box-shadow: 0 0 20px rgba(96, 165, 250, 0.4);
}

.nav-top h1 {
  margin: 0;
  font-size: 1.8rem;
  background: linear-gradient(45deg, #60a5fa, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hamburger {
  background: none;
  color: white;
  font-size: 1.8rem;
  border: none;
  cursor: pointer;
  display: none;
  padding: 0.5rem;
  border-radius: 8px;
  transition: background 0.3s;
}

.hamburger:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Navigation improvements */
nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  transition: max-height 0.3s ease;
}

nav a {
  color: #ffffff;
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
}

nav a:hover {
  background: rgba(96, 165, 250, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(96, 165, 250, 0.3);
}

nav button {
  background: linear-gradient(45deg, #3b82f6, #1d4ed8);
  color: white;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

nav button:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
  background: linear-gradient(45deg, #2563eb, #1e40af);
}

nav.open {
  display: flex !important;
}
/* Main content and sections */
main {
  min-height: 80vh;
  padding: 3rem 0;
}

section {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 2rem;
}

body.dark section {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

section h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(45deg, #1e40af, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
}

section p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  text-align: center;
  opacity: 0.8;
}

/* Button improvements */
.button {
  display: inline-block;
  padding: 1rem 2rem;
  background: linear-gradient(45deg, #1e40af, #3b82f6);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
}

.button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(30, 64, 175, 0.4);
  background: linear-gradient(45deg, #1d4ed8, #2563eb);
}
/* Projects grid improvements */
.projects {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  margin-top: 2rem;
}

.card {
  padding: 2rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s;
}

.card:hover::before {
  left: 100%;
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: rgba(59, 130, 246, 0.5);
}

.card h3 {
  color: #1e40af;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

body.dark .card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark .card:hover {
  border-color: rgba(59, 130, 246, 0.3);
}
/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  
  nav {
    flex-direction: column;
    display: none;
    margin-top: 1rem;
    gap: 1rem;
  }
  
  nav.open {
    display: flex;
  }
  
  .container {
    padding: 1rem;
  }
  
  section {
    padding: 2rem 1.5rem;
  }
  
  section h2 {
    font-size: 2rem;
  }
  
  .projects {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .nav-top h1 {
    font-size: 1.5rem;
  }
  
  .logo {
    width: 50px;
    height: 50px;
  }
  
  .brand {
    gap: 1rem;
  }
}

@media (min-width: 1200px) {
  .container {
    padding: 3rem;
  }
  
  .projects {
    grid-template-columns: repeat(3, 1fr);
  }
  
  section {
    padding: 4rem;
  }
}

/* Contact page specific styles */
.contact-info {
  text-align: center;
}

.contact-info ul {
  list-style: none;
  padding: 0;
  display: inline-block;
  text-align: left;
}

.contact-info li {
  margin: 1rem 0;
  padding: 1rem;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 10px;
  border-left: 4px solid #3b82f6;
}

.contact-info a {
  color: #1e40af;
  text-decoration: none;
  font-weight: 600;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* About page specific styles */
.about-content ul {
  list-style: none;
  padding: 0;
}

.about-content li {
  margin: 1rem 0;
  padding: 1rem 1rem 1rem 3rem;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 10px;
  position: relative;
}

.about-content li::before {
  content: '✓';
  position: absolute;
  left: 1rem;
  color: #1e40af;
  font-weight: bold;
  font-size: 1.2rem;
}