/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "JetBrains Mono", monospace;
  background-color: #111827;
  color: #4ade80;
  overflow-x: hidden;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.header.scrolled {
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(34, 197, 94, 0.2);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo-icon {
  width: 2rem;
  height: 2rem;
  background: linear-gradient(135deg, #22d3ee, #a855f7);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  padding: 0.25rem;
}

.logo-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0.25rem;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: #22d3ee;
}

.nav-desktop {
  display: none;
  gap: 2rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #d1d5db;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-radius: 0.5rem;
}

.nav-link:hover {
  color: #22d3ee;
  transform: scale(1.1);
}

.mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  color: #22d3ee;
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.mobile-menu-btn:hover {
  transform: scale(1.1);
}

.nav-mobile {
  display: none;
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(34, 197, 94, 0.2);
}

.nav-mobile.active {
  display: block;
  animation: slideDown 0.3s ease;
}

.nav-mobile-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-mobile-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #d1d5db;
  text-decoration: none;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.nav-mobile-link:hover {
  color: #22d3ee;
  background: rgba(31, 41, 55, 0.5);
}

/* Background Effects */
.background-effects {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.floating-symbols {
  position: absolute;
  inset: 0;
}

.floating-symbol {
  position: absolute;
  color: rgba(34, 197, 94, 0.2);
  font-size: 2rem;
  font-weight: 700;
  animation: float 6s ease-in-out infinite;
}

.code-snippets {
  position: absolute;
  inset: 0;
}

.code-snippet {
  position: absolute;
  color: rgba(107, 114, 128, 0.3);
  font-size: 0.875rem;
  animation: parallax 8s ease-in-out infinite;
}

.grid-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: linear-gradient(rgba(34, 197, 94, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 197, 94, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* Hero Section - Fixed spacing */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  padding-top: 6rem;
  padding-bottom: 4rem;
  position: relative;
  z-index: 10;
}

.hero-container {
  max-width: 64rem;
  width: 100%;
}

.hero-content {
  text-align: center;
  margin-bottom: 3rem;
  animation: fadeInUp 0.8s ease;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #22d3ee, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 3vw, 1.5rem);
  color: #d1d5db;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 0.875rem;
}

.cta-button.primary {
  background: linear-gradient(135deg, #22d3ee, #a855f7);
  color: white;
}

.cta-button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(34, 197, 94, 0.3);
}

.cta-button.secondary {
  background: transparent;
  color: #22d3ee;
  border: 2px solid #22d3ee;
}

.cta-button.secondary:hover {
  background: #22d3ee;
  color: #111827;
  transform: translateY(-2px);
}

.terminal {
  background: #1f2937;
  border-radius: 0.5rem;
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(34, 197, 94, 0.2);
  animation: fadeInScale 0.8s ease 0.5s both;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #22d3ee;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.terminal-body {
  min-height: 100px;
}

.terminal-output {
  margin-bottom: 1rem;
}

.terminal-line {
  color: #4ade80;
  margin-bottom: 0.5rem;
}

.cursor {
  animation: blink 1s infinite;
}

.terminal-input {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #22d3ee;
}

.terminal-input input {
  background: transparent;
  border: none;
  outline: none;
  color: #4ade80;
  flex: 1;
  font-family: inherit;
}

.terminal-input input::placeholder {
  color: #6b7280;
}

/* About Section - Fixed spacing */
.about-section {
  padding: 6rem 0;
  background: rgba(31, 41, 55, 0.3);
  margin-top: 2rem;
}

.section-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 4rem;
  color: #a855f7;
}

.about-grid {
  display: grid;
  gap: 3rem;
  align-items: start;
}

.code-block {
  background: rgba(17, 24, 39, 0.5);
  border-radius: 0.75rem;
  padding: 2rem;
  border: 1px solid rgba(34, 197, 94, 0.3);
  margin-bottom: 2rem;
}

.code-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #22d3ee;
  margin-bottom: 1.5rem;
}

.code-content {
  margin-left: 1rem;
}

.code-line {
  color: #d1d5db;
  margin-bottom: 1rem;
}

.code-key {
  color: #a855f7;
}

.code-value {
  color: #4ade80;
}

.achievements {
  background: rgba(17, 24, 39, 0.5);
  border-radius: 0.75rem;
  padding: 2rem;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.achievements-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #a855f7;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.achievements-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.achievement-item {
  color: #d1d5db;
  display: flex;
  align-items: center;
  animation: fadeInLeft 0.6s ease;
}

.education-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #4ade80;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.education-item {
  background: rgba(17, 24, 39, 0.5);
  border-radius: 0.75rem;
  padding: 1.5rem;
  border: 1px solid rgba(74, 222, 128, 0.3);
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.education-item:hover {
  border-color: rgba(74, 222, 128, 0.5);
  transform: translateY(-2px);
}

.education-content {
  display: flex;
  gap: 1rem;
  align-items: start;
}

.education-logo {
  flex-shrink: 0;
  width: 4rem;
  height: 4rem;
  background: #1f2937;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4ade80;
  font-size: 1.5rem;
  padding: 0.5rem;
}

.education-logo-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0.25rem;
}

.education-degree {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
}

.education-university {
  color: #4ade80;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.education-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  color: #9ca3af;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.education-location,
.education-period {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.education-description {
  color: #d1d5db;
  font-size: 0.875rem;
}

/* Skills Section */
.skills-section {
  padding: 6rem 0;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.skill-category {
  background: rgba(31, 41, 55, 0.5);
  backdrop-filter: blur(4px);
  border-radius: 0.75rem;
  padding: 1.5rem;
  border: 1px solid #374151;
  transition: all 0.3s ease;
  height: 100%;
  animation: fadeInUp 0.6s ease;
}

.skill-category:hover {
  border-color: rgba(34, 197, 94, 0.5);
  transform: scale(1.02);
}

.skill-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.skill-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.skill-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
}

.skill-line {
  height: 4px;
  width: 4rem;
  margin: 0 auto;
  border-radius: 2px;
}

.skill-line-cyan {
  background: linear-gradient(135deg, #22d3ee, #3b82f6);
}

.skill-line-purple {
  background: linear-gradient(135deg, #a855f7, #ec4899);
}

.skill-line-green {
  background: linear-gradient(135deg, #4ade80, #10b981);
}

.skill-line-orange {
  background: linear-gradient(135deg, #fb923c, #ef4444);
}

.skill-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.skill-item {
  background: rgba(17, 24, 39, 0.5);
  border-radius: 0.5rem;
  padding: 0.75rem;
  text-align: center;
  color: #d1d5db;
  border: 1px solid #4b5563;
  transition: all 0.3s ease;
  font-size: 0.875rem;
}

.skill-item:hover {
  color: white;
  border-color: #6b7280;
  transform: translateY(-2px);
}

.floating-code {
  position: relative;
  margin-top: 4rem;
  overflow: hidden;
}

.floating-element {
  position: absolute;
  font-size: 3rem;
  font-weight: 700;
  opacity: 0.2;
  animation: floatAround 20s linear infinite;
}

.floating-element:nth-child(1) {
  color: #22d3ee;
  top: 0;
  left: 0;
}

.floating-element:nth-child(2) {
  color: #a855f7;
  top: 2.5rem;
  right: 0;
  animation-duration: 15s;
  animation-direction: reverse;
}

/* Projects Section */
.projects-section {
  padding: 6rem 0;
  background: rgba(31, 41, 55, 0.5);
}

.tech-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.filter-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #22d3ee;
  font-size: 1.125rem;
  margin-bottom: 1rem;
  width: 100%;
  justify-content: center;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.filter-btn {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(168, 85, 247, 0.3);
  background: transparent;
  color: #a855f7;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  font-size: 0.875rem;
}

.filter-btn:hover,
.filter-btn.active {
  background: #a855f7;
  border-color: #a855f7;
  color: white;
  transform: scale(1.05);
}

.filter-footer {
  color: #22d3ee;
  width: 100%;
  text-align: center;
  margin-top: 1rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.project-card {
  background: #111827;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid rgba(34, 197, 94, 0.3);
  transition: all 0.3s ease;
  animation: fadeInUp 0.6s ease;
}

.project-card:hover {
  border-color: #22d3ee;
  transform: scale(1.05);
  box-shadow: 0 25px 50px -12px rgba(34, 197, 94, 0.2);
}

.project-card.hidden {
  display: none;
}

.project-image {
  position: relative;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 12rem;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #111827, transparent, transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-content {
  padding: 1.5rem;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #22d3ee;
  margin-bottom: 0.5rem;
}

.project-description {
  color: #d1d5db;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tech-tag {
  padding: 0.25rem 0.5rem;
  background: rgba(168, 85, 247, 0.2);
  color: #a855f7;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.project-links {
  display: flex;
  gap: 1rem;
}

.project-link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: #22d3ee;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.875rem;
}

.project-link:hover {
  color: #06b6d4;
  transform: scale(1.1);
}

.project-link:last-child {
  color: #a855f7;
}

.project-link:last-child:hover {
  color: #9333ea;
}

/* Enhanced Contact Section */
.contact-section {
  padding: 6rem 0;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* Contact Info Side */
.contact-info {
  position: sticky;
  top: 6rem;
}

.contact-card {
  background: rgba(31, 41, 55, 0.5);
  backdrop-filter: blur(8px);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid rgba(34, 197, 94, 0.3);
  box-shadow: 0 25px 50px -12px rgba(34, 197, 94, 0.1);
}

.contact-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(74, 222, 128, 0.2);
}

.contact-avatar {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #22d3ee, #a855f7);
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.contact-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.25rem;
}

.contact-role {
  color: #22d3ee;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #4ade80;
  font-size: 0.875rem;
}

.status-indicator {
  width: 0.5rem;
  height: 0.5rem;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.contact-methods {
  margin-bottom: 2rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(55, 65, 81, 0.5);
}

.contact-method:last-child {
  border-bottom: none;
}

.method-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(34, 197, 94, 0.2);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4ade80;
  font-size: 1rem;
}

.method-info {
  flex: 1;
}

.method-label {
  display: block;
  color: #9ca3af;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.method-value {
  color: white;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.method-value:hover {
  color: #22d3ee;
}

.social-connect {
  margin-bottom: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(74, 222, 128, 0.2);
}

.social-title {
  color: #a855f7;
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.social-btn.github {
  background: rgba(55, 65, 81, 0.5);
  color: #d1d5db;
  border-color: rgba(55, 65, 81, 0.5);
}

.social-btn.github:hover {
  background: #374151;
  transform: translateY(-2px);
}

.social-btn.linkedin {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
  border-color: rgba(59, 130, 246, 0.3);
}

.social-btn.linkedin:hover {
  background: rgba(59, 130, 246, 0.3);
  transform: translateY(-2px);
}

.social-btn.twitter {
  background: rgba(34, 211, 238, 0.2);
  color: #22d3ee;
  border-color: rgba(34, 211, 238, 0.3);
}

.social-btn.twitter:hover {
  background: rgba(34, 211, 238, 0.3);
  transform: translateY(-2px);
}

.collaboration-info {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(74, 222, 128, 0.2);
}

.collab-title {
  color: #4ade80;
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.collab-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.collab-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #d1d5db;
  font-size: 0.875rem;
}

.collab-item i {
  color: #a855f7;
  width: 1rem;
}

/* Contact Form Side */
.contact-form-container {
  max-width: none;
}

.api-headers {
  margin-bottom: 1.5rem;
}

.api-header {
  color: #22d3ee;
  margin-bottom: 0.5rem;
}

.api-header:last-child {
  color: #a855f7;
}

.contact-form {
  background: #1f2937;
  border-radius: 0.5rem;
  border: 1px solid rgba(74, 222, 128, 0.3);
  padding: 2rem;
  box-shadow: 0 25px 50px -12px rgba(74, 222, 128, 0.2);
}

.json-bracket {
  color: #4ade80;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 1.5rem 0;
}

.form-group {
  margin: 1.5rem 0;
  margin-left: 1rem;
}

.form-label {
  display: block;
  color: #22d3ee;
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
  width: 100%;
  background: #111827;
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 0.25rem;
  padding: 0.5rem 1rem;
  color: #4ade80;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #a855f7;
}

.form-textarea {
  resize: none;
  height: 6rem;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #6b7280;
}

.submit-btn {
  width: 100%;
  background: linear-gradient(135deg, #22d3ee, #a855f7);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  border: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.submit-btn:hover:not(:disabled) {
  transform: scale(1.02);
  background: linear-gradient(135deg, #06b6d4, #9333ea);
}

.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.response-message {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 0.5rem;
  display: none;
}

.response-message.success {
  background: rgba(74, 222, 128, 0.2);
  border: 1px solid rgba(74, 222, 128, 0.5);
  color: #4ade80;
  display: block;
}

/* Footer */
.footer {
  background: rgba(17, 24, 39, 0.8);
  backdrop-filter: blur(4px);
  border-top: 1px solid rgba(34, 197, 94, 0.2);
  padding: 3rem 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  align-items: center;
}

.footer-brand {
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-tagline {
  color: #9ca3af;
  font-size: 0.875rem;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.social-link {
  color: #9ca3af;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-link:hover {
  transform: scale(1.2) translateY(-2px);
}

.social-link:nth-child(1):hover {
  color: #9ca3af;
}

.social-link:nth-child(2):hover {
  color: #3b82f6;
}

.social-link:nth-child(3):hover {
  color: #22d3ee;
}

.social-link:nth-child(4):hover {
  color: #4ade80;
}

.footer-copyright {
  text-align: center;
}

.copyright-text {
  color: #9ca3af;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 0.25rem;
}

.copyright-text i {
  color: #ef4444;
}

.copyright-small {
  color: #6b7280;
  font-size: 0.75rem;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #1f2937;
  text-align: center;
}

.footer-code {
  color: #6b7280;
  font-size: 0.75rem;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, #22d3ee, #a855f7);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 10px 25px rgba(34, 197, 94, 0.3);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

@keyframes parallax {
  0%,
  100% {
    transform: translateY(0px);
    opacity: 0.1;
  }
  50% {
    transform: translateY(-30px);
    opacity: 0.3;
  }
}

@keyframes floatAround {
  0% {
    transform: translateX(0px) translateY(0px);
  }
  25% {
    transform: translateX(100px) translateY(-50px);
  }
  50% {
    transform: translateX(0px) translateY(-100px);
  }
  75% {
    transform: translateX(-100px) translateY(-50px);
  }
  100% {
    transform: translateX(0px) translateY(0px);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Enhanced Responsive Design */
@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }

  .mobile-menu-btn {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1fr 1fr;
  }

  .education-meta {
    flex-direction: row;
    gap: 1rem;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .footer-brand {
    text-align: left;
  }

  .footer-copyright {
    text-align: right;
  }

  .terminal {
    padding: 2rem;
  }

  .contact-form {
    padding: 2.5rem;
  }

  .hero-cta {
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .skills-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .container {
    padding: 0 2rem;
  }

  .contact-container {
    gap: 4rem;
  }
}

@media (min-width: 1200px) {
  .hero-container {
    max-width: 80rem;
  }

  .contact-form-container {
    max-width: none;
  }
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-info {
    position: static;
  }

  .contact-header {
    flex-direction: column;
    text-align: center;
  }

  .collab-items {
    grid-template-columns: 1fr;
  }

  .social-links {
    flex-direction: column;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .cta-button {
    width: 100%;
    max-width: 250px;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .filter-buttons {
    flex-direction: column;
    align-items: center;
  }

  .filter-btn {
    width: 200px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .terminal {
    padding: 1rem;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
  }

  .about-grid {
    gap: 2rem;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .education-content {
    flex-direction: column;
    text-align: center;
  }

  .education-logo {
    align-self: center;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-brand,
  .footer-copyright {
    text-align: center;
  }

  .contact-card {
    padding: 1.5rem;
  }

  .contact-methods {
    margin-bottom: 1.5rem;
  }

  .hero-section {
    padding-top: 5rem;
    padding-bottom: 3rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }

  .header-container {
    padding: 0 0.75rem;
  }

  .hero-section {
    padding: 0.75rem;
    padding-top: 5rem;
    padding-bottom: 2rem;
  }

  .terminal-input {
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  .terminal-input input {
    min-width: 0;
    flex: 1;
  }

  .project-content {
    padding: 1rem;
  }

  .form-group {
    margin-left: 0.5rem;
  }

  .json-bracket {
    font-size: 1.25rem;
  }

  .contact-avatar {
    width: 4rem;
    height: 4rem;
  }

  .contact-name {
    font-size: 1.25rem;
  }
}

/* Ultra-wide screen support */
@media (min-width: 1600px) {
  .header-container,
  .container {
    max-width: 1400px;
  }

  .hero-container {
    max-width: 90rem;
  }
}

/* Print styles */
@media print {
  .header,
  .back-to-top,
  .background-effects {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .section-title {
    color: black;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .nav-link:hover,
  .nav-mobile-link:hover {
    background: rgba(255, 255, 255, 0.2);
  }

  .skill-item:hover {
    background: rgba(255, 255, 255, 0.1);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .floating-symbol,
  .code-snippet,
  .floating-element {
    animation: none;
  }
}

/* Additional utility classes */
.form-input.error,
.form-textarea.error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

@keyframes fadeOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(20px); }
}

.animate-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
}