:root {
  --bg-color: #0b0f19;
  --surface-color: rgba(255, 255, 255, 0.03);
  --surface-blur: blur(16px);
  --border-color: rgba(255, 255, 255, 0.08);
  --text-primary: #f0f2f5;
  --text-secondary: #a0aec0;
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --accent-cyan: #06b6d4;
  --gradient-primary: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  --font-main: 'Outfit', sans-serif;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.15), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.15), transparent 25%);
  background-attachment: fixed;
}

/* Glassmorphism utility */
.glass {
  background: var(--surface-color);
  backdrop-filter: var(--surface-blur);
  -webkit-backdrop-filter: var(--surface-blur);
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  border-radius: 20px;
}

/* Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: var(--transition);
}

header.scrolled {
  padding: 1rem 5%;
  background: rgba(11, 15, 25, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  cursor: pointer;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

nav a:hover, nav a.active {
  color: var(--text-primary);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition);
}

nav a:hover::after, nav a.active::after {
  width: 100%;
}

/* Sections */
section {
  min-height: 100vh;
  padding: 6rem 5% 4rem;
  display: none;
  animation: fadeIn 0.5s ease-out forwards;
}

section.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
}

.hero-content {
  flex: 1;
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-content .highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.hero-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

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

.detail-item i {
  color: var(--accent-cyan);
  font-size: 1.2rem;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
}

.hero-image::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: var(--gradient-primary);
  filter: blur(80px);
  opacity: 0.3;
  border-radius: 50%;
  z-index: -1;
}

.avatar-container {
  width: 350px;
  height: 350px;
  border-radius: 30px;
  overflow: hidden;
  border: 2px solid var(--border-color);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  position: relative;
}

.avatar-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.avatar-container:hover img {
  transform: scale(1.05);
}

/* Projects Section */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-secondary);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
}

.project-card {
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.5);
  border-color: rgba(255,255,255,0.2);
}

.project-img-wrapper {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.project-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.project-card:hover .project-img-wrapper img {
  transform: scale(1.1);
}

.project-info {
  padding: 1.5rem;
}

.project-tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-cyan);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.project-info h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.project-info p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.9);
  transition: var(--transition);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  transition: var(--transition);
  z-index: 10;
}

.close-btn:hover {
  background: rgba(255,255,255,0.2);
  transform: rotate(90deg);
}

.modal-body {
  padding: 3rem;
}

.modal-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 2rem;
}

.modal-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.modal-subtitle {
  color: var(--accent-cyan);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.modal-text {
  color: var(--text-secondary);
}

.modal-text ul {
  padding-left: 1.5rem;
  margin: 1rem 0;
}

.modal-text li {
  margin-bottom: 0.5rem;
}

/* Summary Section */
.summary-container {
  max-width: 900px;
  margin: 0 auto;
}

.summary-card {
  padding: 3rem;
  margin-bottom: 2rem;
}

.summary-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.summary-card h3 i {
  color: var(--accent-purple);
}

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.skill-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(255,255,255,0.02);
  padding: 1rem;
  border-radius: 10px;
  border-left: 4px solid var(--accent-cyan);
}

.skill-item i {
  color: var(--accent-cyan);
  margin-top: 0.2rem;
}

.download-btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: var(--gradient-primary);
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  transition: var(--transition);
}

.download-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.4);
  color: white;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  margin-top: 4rem;
}

/* Responsive */
@media (max-width: 992px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-details {
    align-items: center;
  }
  
  .modal-body {
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  nav ul {
    display: none; /* In a real app, implement hamburger menu */
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .avatar-container {
    width: 250px;
    height: 250px;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
}
