/* Reset and Base Styles */
:root {
  --primary: #00f2ff; /* Neon Cyan */
  --accent: #39ff14; /* Neon Green */
  --bg-dark: #0a0b10;
  --bg-card: #161b22;
  --text-primary: #e6edf3;
  --text-secondary: #8b949e;
  --header-gradient: linear-gradient(135deg, #0d1117 0%, #010409 100%);
  --button-gradient: linear-gradient(135deg, #00f2ff 0%, #39ff14 100%);
  --cyber-gradient: linear-gradient(90deg, var(--primary), var(--accent));
}

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

/* Remove focus outlines for mouse users but keep for keyboard navigation */
*:focus:not(:focus-visible) {
  outline: none;
}

*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

body {
  font-family:
    "Inter",
    "Segoe UI",
    system-ui,
    -apple-system,
    sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-dark);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
header {
  background: var(--header-gradient);
  color: white;
  padding: 2rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  border-bottom: 2px solid var(--primary);
}

.logo h1 {
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  letter-spacing: -1px;
  background: var(--button-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.logo-subtitle {
  display: block;
  font-size: 1.1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  text-align: center;
  opacity: 0.9;
}

/* Navigation Styles */
.navbar {
  background-color: #0d1117;
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.nav-links {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.nav-links li {
  margin: 0;
}

.nav-links a {
  display: block;
  color: var(--text-primary);
  text-decoration: none;
  padding: 1rem 1.5rem;
  transition: all 0.3s ease;
  font-weight: 600;
}

.nav-links a:hover,
.nav-links a.active {
  background-color: rgba(0, 242, 255, 0.1);
  color: var(--primary);
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  justify-content: space-around;
  width: 2.5rem;
  height: 2.5rem;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  /* Make sure the button is visible */
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.hamburger {
  width: 25px;
  height: 3px;
  background-color: white;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
  transform-origin: 1px;
  /* Ensure the hamburger is visible */
  display: block;
  margin: 4px 0;
}

.mobile-menu-toggle.active .hamburger:nth-child(1) {
  transform: rotate(45deg);
}

.mobile-menu-toggle.active .hamburger:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger:nth-child(3) {
  transform: rotate(-45deg);
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  text-align: center;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn i {
  font-size: 1rem;
}

.btn-primary {
  background: var(--button-gradient);
  color: white;
  box-shadow: 0 0 15px rgba(0, 242, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(0, 242, 255, 0.5);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background-color: var(--primary);
  color: #000;
}

.btn-outline {
  background-color: transparent;
  color: var(--text-primary);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
  background-color: white;
  color: black;
}

/* Hero Section */
.hero {
  background: radial-gradient(circle at top right, #161b22 0%, #0a0b10 100%);
  padding: 6rem 0;
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200%;
  height: 200%;
  background: repeating-linear-gradient(
    rgba(0, 0, 0, 0) 0,
    rgba(0, 0, 0, 0) 1px,
    rgba(0, 242, 255, 0.03) 1px,
    rgba(0, 242, 255, 0.03) 2px
  );
  transform: translate(-50%, -50%) rotate(45deg);
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-text h2 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: white;
  font-weight: 800;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.hero-description {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-social {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
}

.hero-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: #161b22;
  color: var(--primary);
  border: 1px solid rgba(0, 242, 255, 0.3);
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
}

.hero-social a:hover {
  background: var(--primary);
  color: #000;
  box-shadow: 0 0 15px var(--primary);
}

.hero-social a i {
  font-size: 1.2rem;
}

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

.image-container {
  position: relative;
  display: inline-block;
}

.image-overlay {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 0;
  transition: all 0.3s ease;
}

.image-container:hover .image-overlay {
  opacity: 1;
}

.overlay-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.overlay-content i {
  color: #667eea;
}

/* Hero Image Styling */
.hero-image img {
  width: 320px;
  height: 320px;
  border-radius: 20px; /* Rectangular with rounded corners for cyber look */
  object-fit: cover;
  object-position: center;
  box-shadow: 0 0 30px rgba(0, 242, 255, 0.2);
  border: 2px solid var(--primary);
  background-color: #161b22;
}

/* Quick Stats Section */
.quick-stats {
  background-color: #0d1117;
  padding: 6rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.stat-item {
  text-align: center;
  padding: 3rem 2rem;
  background: #161b22;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.stat-item:hover {
  border-color: var(--primary);
  transform: translateY(-10px);
}

.stat-item i {
  font-size: 3.5rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 10px var(--accent));
}

.stat-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
}

/* Featured Project Section */
.featured-project {
  background: var(--header-gradient);
  color: white;
  padding: 8rem 0;
  position: relative;
  border-top: 1px solid rgba(0, 242, 255, 0.1);
  border-bottom: 1px solid rgba(0, 242, 255, 0.1);
}

.featured-project h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

/* Glassmorphism for containers */
.project-preview {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: center;
  background: rgba(22, 27, 34, 0.7);
  padding: 4rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.project-image {
  text-align: center;
  font-size: 5rem;
  color: rgba(255, 255, 255, 0.8);
}

.project-content h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.project-content p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.tech-stack {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1.8rem;
}

.tech-tag {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0.4rem 0.9rem;
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(102, 126, 234, 0.3);
}

/* About Page Styles */
.about-hero,
.projects-hero,
.contact-hero {
  background: var(--header-gradient);
  color: white;
  padding: 5rem 0;
  text-align: center;
  border-bottom: 1px solid rgba(0, 242, 255, 0.1);
}

.about-hero h2,
.projects-hero h2,
.contact-hero h2 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  background: var(--button-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* Personal Story Section */
.personal-story {
  background-color: var(--bg-dark);
  padding: 6rem 0;
}

.story-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.story-text h3 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.story-text p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.profile-placeholder-large {
  background: var(--bg-card);
  color: var(--primary);
  padding: 5rem 2rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 0 20px rgba(0, 242, 255, 0.1);
  border: 1px solid rgba(0, 242, 255, 0.2);
}

.profile-placeholder-large i {
  font-size: 6rem;
  margin-bottom: 1rem;
}

.profile-placeholder-large p {
  font-size: 1.2rem;
  font-weight: 600;
}

/* Skills Section */
.skills-section {
  background-color: #0d1117;
  padding: 6rem 0;
}

.skills-section h3 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 4rem;
  color: white;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3rem;
}

.skill-category h4 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.skill-category i {
  color: var(--accent);
}

.skill-item {
  margin-bottom: 1.5rem;
}

.skill-item span {
  display: block;
  margin-bottom: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
}

.skill-bar {
  background-color: rgba(255, 255, 255, 0.05);
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
}

.skill-progress {
  background: var(--button-gradient);
  height: 100%;
  transition: width 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
}

/* Education Section */
.education-section {
  background-color: var(--bg-dark);
  padding: 6rem 0;
}

.education-section h3 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 4rem;
  color: white;
}

.education-timeline {
  max-width: 800px;
  margin: 0 auto;
}

.timeline-item {
  display: flex;
  margin-bottom: 2rem;
  position: relative;
}

.timeline-marker {
  width: 16px;
  height: 16px;
  background: var(--primary);
  border-radius: 50%;
  margin-right: 2.5rem;
  margin-top: 0.6rem;
  flex-shrink: 0;
  box-shadow: 0 0 10px var(--primary);
}

.timeline-content h4 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.timeline-date {
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.8rem;
  display: block;
}

.timeline-content p {
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Interests Section */
.interests-section {
  background-color: #0d1117;
  padding: 6rem 0;
}

.interests-section h3 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 4rem;
  color: white;
}

.interests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.interest-item {
  background: #161b22;
  padding: 2.5rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.interest-item:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 0 25px rgba(0, 242, 255, 0.2);
}

.interest-item i {
  font-size: 3.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 10px rgba(0, 242, 255, 0.3));
}

.interest-item h4 {
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
  color: var(--text-primary);
}

.interest-item p {
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Projects Page Styles */
.featured-projects {
  background-color: var(--bg-dark);
  padding: 6rem 0;
}

.featured-projects h3 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 4rem;
  color: white;
}

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

.project-card {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  transform: translateY(0);
  will-change: transform, box-shadow, border-color;
  /* Prevent content from being cut off during animation */
  backface-visibility: hidden;
  -webkit-font-smoothing: subpixel-antialiased;
}

.project-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--button-gradient);
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.project-card:hover {
  transform: translateY(-12px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(0, 242, 255, 0.1);
}

.project-card:hover::after {
  opacity: 1;
}

.project-card.featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 2px solid rgba(102, 126, 234, 0.2);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.project-card.featured::before {
  content: "MASTER PROJECT";
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--button-gradient);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1px;
  z-index: 10;
}

.project-image {
  position: relative;
  height: 220px;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 3rem;
  overflow: hidden;
  transition: all 0.4s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.project-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 50%
  );
  pointer-events: none;
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 242, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  opacity: 0;
  transition:
    opacity 0.3s ease,
    background 0.3s ease;
  /* Ensure overlay is above content but below any interactive elements */
  z-index: 1;
}

.project-card:hover .project-overlay {
  opacity: 1;
  background: rgba(0, 242, 255, 0.9);
}

.project-card .project-image i {
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  transform: scale(1);
}

.project-card:hover .project-image i {
  transform: scale(1.1);
  color: white;
}

.project-card:hover .project-image {
  background: var(--bg-card);
}

.project-card .project-overlay a {
  transform: translateY(20px);
  opacity: 0;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease,
    background 0.2s ease,
    color 0.2s ease;
  /* Ensure buttons are above the overlay */
  position: relative;
  z-index: 2;
}

.project-card:hover .project-overlay a {
  transform: translateY(0);
  opacity: 1;
}

.project-card .project-overlay a:first-child {
  transition-delay: 0.1s;
}

.project-card .project-overlay a:last-child {
  transition-delay: 0.2s;
}

.project-link,
.project-github {
  color: white;
  font-size: 2rem;
  text-decoration: none;
  padding: 1rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: background 0.3s ease;
}

.project-link:hover,
.project-overlay a:hover {
  background: white;
  color: var(--bg-dark);
  transform: scale(1.1) !important;
}

.project-content {
  padding: 2rem;
  position: relative;
}

.project-content h4 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: var(--primary);
  font-weight: 700;
  line-height: 1.3;
}

.project-content p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.7;
  font-size: 0.95rem;
}

.project-details {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.8rem;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border-left: 4px solid var(--primary);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 500;
}

.detail-item i {
  color: var(--accent);
  width: 18px;
  text-align: center;
  font-size: 0.9rem;
}

.project-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.project-links .btn {
  flex: 1;
  min-width: 120px;
  text-align: center;
  font-size: 0.9rem;
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.project-links .btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.project-links .btn-primary:hover {
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.project-links .btn-outline {
  border: 2px solid #667eea;
  color: #667eea;
  background: transparent;
}

.project-links .btn-outline:hover {
  background: #667eea;
  color: white;
}

/* Lab Assignments */
.lab-assignments {
  background-color: #0d1117;
  padding: 6rem 0;
}

.lab-assignments h3 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 4rem;
  color: white;
}

.assignments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.assignment-item {
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.assignment-item h4 {
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
  color: var(--primary);
}

.assignment-item p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.assignment-status {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

.assignment-status.completed {
  background-color: rgba(57, 255, 20, 0.1);
  color: var(--accent);
  border: 1px solid var(--accent);
}

.assignment-status.in-progress {
  background-color: #fff3cd;
  color: #856404;
}

.assignment-status.pending {
  background-color: #f8d7da;
  color: #721c24;
}

/* Project Statistics */
.project-stats {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 4rem 0;
}

.project-stats h3 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: white;
}

.project-stats .stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.stat-card {
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: 16px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.stat-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
  filter: drop-shadow(0 0 10px rgba(0, 242, 255, 0.3));
}

.stat-content h4 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: white;
}

.stat-content p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin: 0;
}

/* Skills Showcase */
.skills-showcase {
  background-color: var(--bg-dark);
  padding: 6rem 0;
}

.skills-showcase h3 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 4rem;
  color: white;
}

.tech-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
}

.tech-logo {
  text-align: center;
  padding: 2.5rem;
  background: var(--bg-card);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.tech-logo:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
}

.tech-logo i {
  font-size: 3.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 10px rgba(0, 242, 255, 0.3));
}

.tech-logo span {
  display: block;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Contact Page Styles */
.contact-content {
  background-color: var(--bg-dark);
  padding: 6rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info h3,
.contact-form-container h3 {
  font-size: 2.5rem;
  margin-bottom: 2.5rem;
  color: white;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.contact-item i {
  font-size: 2rem;
  color: var(--accent);
  margin-right: 1.5rem;
  width: 40px;
  text-align: center;
  filter: drop-shadow(0 0 5px var(--accent));
}

.contact-item h4 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-item p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.social-contact {
  margin-top: 2rem;
}

.social-contact h4 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: white;
}

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

.social-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.8rem;
  background: var(--bg-card);
  color: var(--primary);
  text-decoration: none;
  border-radius: 30px;
  border: 1px solid var(--primary);
  font-weight: 700;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--primary);
  color: var(--bg-dark);
  box-shadow: 0 0 20px rgba(0, 242, 255, 0.4);
}

/* Contact Form */
.contact-form {
  background: var(--bg-card);
  padding: 3rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 1rem;
  background-color: #0d1117;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 1rem;
  color: white;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #667eea;
}

.checkbox-group {
  display: flex;
  align-items: center;
}

.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin-right: 0.5rem;
}

.error-message {
  color: #dc3545;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  display: block;
}

.form-status {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 5px;
  text-align: center;
  font-weight: 600;
}

.form-status.success {
  background-color: rgba(57, 255, 20, 0.1);
  color: var(--accent);
  border: 1px solid var(--accent);
}

.form-status.error {
  background-color: rgba(220, 53, 69, 0.1);
  color: #ff4d4d;
  border: 1px solid #ff4d4d;
}

.btn-submit {
  width: 100%;
  font-size: 1.2rem;
  padding: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Additional Contact Methods */
.additional-contact {
  background-color: #0d1117;
  padding: 6rem 0;
}

.additional-contact h3 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 4rem;
  color: white;
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.contact-method {
  background: var(--bg-card);
  padding: 3rem 2rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.contact-method:hover {
  border-color: var(--primary);
  transform: translateY(-10px);
}

.contact-method i {
  font-size: 3.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 10px rgba(0, 242, 255, 0.3));
}

.contact-method h4 {
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
  color: var(--text-primary);
}

.contact-method p {
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Response Info */
.response-info {
  background-color: var(--bg-dark);
  padding: 4rem 0;
}

.response-card {
  background: var(--header-gradient);
  color: white;
  padding: 3rem;
  border-radius: 20px;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  border: 1px solid var(--primary);
  box-shadow: 0 0 30px rgba(0, 242, 255, 0.1);
}

.response-card i {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  color: var(--accent);
  filter: drop-shadow(0 0 10px var(--accent));
}

.response-card h4 {
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.response-card p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Footer Styles */
footer {
  background: var(--header-gradient);
  color: white;
  padding: 5rem 0 2rem;
  border-top: 2px solid var(--primary);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 1rem;
  color: #ecf0f1;
}

.footer-section p {
  color: var(--text-secondary);
  line-height: 1.8;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: var(--primary);
}

.footer-section .social-links {
  display: flex;
  gap: 1rem;
}

.footer-section .social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  text-align: center;
  line-height: 40px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.footer-section .social-links a:hover {
  background: #667eea;
}

.footer-bottom {
  border-top: 1px solid #34495e;
  padding-top: 1rem;
  text-align: center;
  color: #bdc3c7;
}

/* Responsive Design */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }
  .container {
    padding: 0 15px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text h2 {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .hero-image img {
    width: 200px;
    height: 200px;
  }

  .story-content {
    grid-template-columns: 1fr;
  }

  .project-preview {
    grid-template-columns: 1fr;
  }

  .project-card.featured {
    grid-column: span 1;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-dark);
    border-bottom: 2px solid var(--primary);
    flex-direction: column;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 2rem;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 1.5rem 2rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.2rem;
    font-weight: 600;
    width: 100%;
    max-width: 300px;
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background-color: rgba(102, 126, 234, 0.2);
  }

  .nav-links a:last-child {
    border-bottom: none;
    margin-bottom: 0;
  }

  .hero-buttons {
    justify-content: center;
  }

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

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .interests-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .project-card.featured {
    grid-column: span 1;
    display: block;
  }

  .project-image {
    height: 120px;
    font-size: 3rem;
    padding: 2rem;
  }

  .project-content {
    padding: 1.5rem;
  }

  .project-links {
    flex-direction: column;
  }

  .project-links .btn {
    width: 100%;
  }

  .assignments-grid {
    grid-template-columns: 1fr;
  }

  .tech-logos {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-methods {
    grid-template-columns: 1fr;
  }

  .project-stats .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .hero-text h2 {
    font-size: 2rem;
  }

  .hero-image img {
    width: 160px;
    height: 160px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .interests-grid {
    grid-template-columns: 1fr;
  }

  .tech-logos {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }

  .project-stats .stats-grid {
    grid-template-columns: 1fr;
  }
}

.skill-progress {
  transition: width 1s ease;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus styles for accessibility */
button:focus,
input:focus,
textarea:focus,
select:focus,
a:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .navbar,
  footer,
  .hero-buttons,
  .project-links,
  .social-links {
    display: none;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
  }

  .hero-text h2 {
    font-size: 24pt;
  }
}
