/* Modern Reset and Variables */
:root {
  --primary-color: #2563eb;
  --secondary-color: #1e40af;
  --dark: #1f2937;
  --light: #f3f4f6;
  --transition: all 0.3s ease;
  --heading-font: 'Playfair Display', serif;
  --body-font: 'DM Sans', -apple-system, sans-serif;
}

body {
  font-family: var(--body-font);
  line-height: 1.7;
  font-size: 1.1rem;
  margin: 0;
  padding: 0;
  color: var(--dark);
}

/* Header Styles */
header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 10;
  z-index: 50;
  display: flex;
  justify-content:  space-between;
  align-items: center;
}

h4 {
  font-family: var(--heading-font);
  font-size: 2rem;
  margin: 0;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  padding: 0.5rem;
  
}

.nav-links{
  max-width: max-content;
}

h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), transparent);
  transform: scaleX(0.7);
  transform-origin: left;
  transition: transform 0.3s ease;
}

h4:hover::after {
  transform: scaleX(1);
}

nav {
  flex: 1;
}

nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 1rem 0;
  margin: 0;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  font-family: var(--body-font);
  font-size: 1.05rem;
  color: var(--dark);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1.5rem;
  border-radius: 6px;
  transition: var(--transition);
}

nav ul li a:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Hero Section */
#home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #0a1930 0%, #1a365d 100%);
  color: white;
  text-align: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

#home::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(56, 189, 248, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 1;
}

#home h1 {
  font-size: 4.5rem;
  margin-bottom: 1rem;
  font-family: var(--heading-font);
  position: relative;
  z-index: 2;
  text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
  background: linear-gradient(to right, #ffffff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#home p {
  font-size: 1.8rem;
  font-family: var(--body-font);
  position: relative;
  z-index: 2;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  opacity: 0.9;
}

/* Section Styles */
section {
  padding: 5rem 2rem;
}

#about {
  background: linear-gradient(135deg, #0a1930 0%, #1a365d 100%);
  position: relative;
  overflow: hidden;
}

#about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(56, 189, 248, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 1;
}

#about p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#projects {
  background: linear-gradient(135deg, #0a1930 0%, #1a365d 100%);
  position: relative;
}

#projects::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(56, 189, 248, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 1;
  animation: subtleFloat 15s ease-in-out infinite;
}

#contact {
  background: linear-gradient(135deg, #0a1930 0%, #1a365d 100%);
  position: relative;
}

#contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(56, 189, 248, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 1;
  animation: subtleFloat 15s ease-in-out infinite;
}

section > * {
  position: relative;
  z-index: 2;
}

form {
  clear: both;
  max-width: 600px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(59, 130, 246, 0.3);
  box-shadow: 
    0 8px 32px -1px rgba(37, 99, 235, 0.2),
    0 0 16px rgba(56, 189, 248, 0.2),
    inset 0 0 8px rgba(255, 255, 255, 0.2);
  padding: 3rem;
  border-radius: 20px;
  transform: translateX(-20px);
}

input, textarea {
  font-family: var(--body-font);
  font-size: 1.1rem;
  width: calc(100% - 2rem);
  padding: 1rem;
  margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  color: #1f2937;
  transition: all 0.3s ease;
  font-weight: 500;
  box-shadow: 
    0 2px 6px rgba(37, 99, 235, 0.1),
    inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

input:focus, textarea:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.8);
  box-shadow: 
    0 0 0 4px rgba(59, 130, 246, 0.15),
    0 0 12px rgba(59, 130, 246, 0.2);
  background: rgba(255, 255, 255, 1);
  transform: translateX(10px);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

button {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

button:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

button:active {
  transform: translateY(0);
}

h2 {
  font-family: var(--heading-font);
  font-size: 2.8rem;
  margin-bottom: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#contact h2 {
  font-size: 3.2rem;
  margin-bottom: 3rem;
  background: linear-gradient(45deg, #ffffff, #94a3b8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  text-align: right;
  margin-right: 43%;
  position: relative;
  display: block;
  margin-left: auto;
}

#contact h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  right: 0;
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #2563eb);
  transform: none;
  border-radius: 2px;
}

#contact h2::before {
  content: '';
  position: absolute;
  right: -20px;
  top: 50%;
  width: 4px;
  height: 50px;
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  transform: translateY(-50%);
  border-radius: 2px;
}

#contact p {
  color: rgba(255, 255, 255, 0.9);
}

/* Project Styles */
.project-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.project-item {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  transition: var(--transition);
  transform: translateY(0);
}

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

.project-item h3 {
  font-family: var(--heading-font);
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.95);
}

.project-item p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
}

.project-links {
  display: flex;
  gap: 1rem;
}

.project-link {
  padding: 0.5rem 1rem;
  border: 2px solid var(--primary-color);
  border-radius: 6px;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.project-link:hover {
  background: var(--primary-color);
  color: white;
}

.skill-tag {
  padding: 0.5rem 1rem;
  background: rgba(37, 99, 235, 0.1);
  color: white;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.skill-tag:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Skills Section */
.skills {
  max-width: 800px;
  margin: 2rem auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 0 1rem;
}

.skills p {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
}

/* Social Links */
.social-links {
    position: fixed;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 1000;
}

.social-link {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.social-link:hover {
    transform: translateY(-3px);
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

/* Media Query for Mobile */
@media (max-width: 768px) {
    .social-links {
        left: 1rem;
    }
    
    .social-link {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.2rem;
    }
}
.navUl li .navLink {
  display: block;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}
