/* ===========================
   Google Fonts Import
   =========================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700;800&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* ===========================
   CSS Variables & Reset
   =========================== */
:root {
  /* Elegant Dark Theme - Beige, Violet & Bronze */
  --bg-primary: #1B1725;
  --bg-secondary: #0d0a10;
  --bg-card: rgba(27, 23, 37, 0.85);
  --text-primary: #F5F2B8;
  --text-secondary: #d4c5a0;
  --accent-primary: #8B7355;
  --accent-secondary: #F5F2B8;
  --accent-gradient: linear-gradient(135deg, #8B7355 0%, #F5F2B8 100%);
  --shadow: rgba(13, 10, 16, 0.6);
  --border: rgba(139, 115, 85, 0.3);

  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --font-accent: 'Space Grotesk', sans-serif;
}

body.light {
  /* Elegant Light Theme - White, Violet & Bronze */
  --bg-primary: #ffffff;
  --bg-secondary: #fafafa;
  --bg-card: rgba(255, 255, 255, 0.95);
  --text-primary: #1B1725;
  --text-secondary: #4a4350;
  --accent-primary: #8B7355;
  --accent-secondary: #1B1725;
  --accent-gradient: linear-gradient(135deg, #8B7355 0%, #1B1725 100%);
  --shadow: rgba(27, 23, 37, 0.1);
  --border: rgba(139, 115, 85, 0.3);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: background 0.3s ease, color 0.3s ease;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Animated Background Blobs */
body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(circle at 20% 30%, var(--accent-primary) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, var(--accent-secondary) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, var(--accent-primary) 0%, transparent 50%);
  opacity: 0.06;
  z-index: -1;
  animation: blob-rotate 40s linear infinite;
}

/* Light Theme Background - Subtle Shimmer */
body.light::before {
  background:
    radial-gradient(circle at 20% 30%, rgba(139, 115, 85, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(27, 23, 37, 0.03) 0%, transparent 50%);
  opacity: 0.5;
  animation: blob-rotate 50s linear infinite;
}

@keyframes blob-rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===========================
   Navigation
   =========================== */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav h1 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

nav a {
  font-family: var(--font-accent);
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
  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(--accent-gradient);
  transition: width 0.3s ease;
}

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

/* ===========================
   Main Content
   =========================== */
main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 5%;
}

section {
  margin-bottom: 6rem;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h2 {
  font-size: 2.8rem;
  margin-bottom: 2rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

p {
  font-family: var(--font-body);
  line-height: 1.8;
  font-weight: 400;
}

/* ===========================
   Cards
   =========================== */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 8px 32px var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 48px var(--shadow);
}

/* Light Theme Card Enhancements */
body.light .card {
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  box-shadow: 0 4px 20px rgba(139, 115, 85, 0.08);
}

body.light .card:hover {
  box-shadow: 0 8px 32px rgba(139, 115, 85, 0.15);
  border-color: var(--accent-primary);
}

/* ===========================
   Hero Section
   =========================== */
.hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-card {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.hero-image-wrapper {
  flex: 0 0 auto;
  width: 300px;
  height: 300px;
  position: relative;
}

.hero-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(139, 115, 85, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 3px solid rgba(139, 115, 85, 0.4);
}

.hero-portrait:hover {
  transform: scale(1.05);
  box-shadow: 0 25px 80px rgba(139, 115, 85, 0.5);
  border-color: var(--accent-primary);
}

/* Light Theme Portrait Styles */
body.light .hero-portrait,
body.light .about-portrait {
  border: 3px solid rgba(139, 115, 85, 0.5);
  box-shadow: 0 20px 60px rgba(139, 115, 85, 0.25);
}

body.light .hero-portrait:hover,
body.light .about-portrait:hover {
  box-shadow: 0 25px 80px rgba(139, 115, 85, 0.4);
  border-color: var(--accent-primary);
}

.hero-text {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.title {
  font-family: var(--font-heading);
  font-size: 4.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.subtitle {
  font-family: var(--font-accent);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* ===========================
   Buttons
   =========================== */
.btn {
  font-family: var(--font-accent);
  display: inline-block;
  padding: 1rem 2.2rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent-gradient);
  color: var(--bg-primary);
  box-shadow: 0 4px 20px rgba(139, 115, 85, 0.4);
  font-weight: 600;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139, 115, 85, 0.6);
  filter: brightness(1.1);
}

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

.btn-secondary:hover {
  background: var(--accent-primary);
  color: var(--bg-primary);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139, 115, 85, 0.4);
}

.btn-small {
  padding: 0.6rem 1.5rem;
  font-size: 0.9rem;
}

.nav-btn {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 2px solid var(--border);
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.nav-btn:hover {
  background: var(--accent-gradient);
  color: var(--bg-primary);
  border-color: var(--accent-primary);
}

/* Light Theme Button Styles */
body.light .btn-primary {
  background: var(--accent-gradient);
  color: var(--bg-primary);
  box-shadow: 0 4px 20px rgba(139, 115, 85, 0.3);
}

body.light .btn-primary:hover {
  box-shadow: 0 8px 30px rgba(139, 115, 85, 0.5);
}

body.light .btn-secondary {
  border: 2px solid var(--accent-primary);
  color: var(--accent-primary);
}

body.light .btn-secondary:hover {
  background: var(--accent-primary);
  color: white;
}

body.light .nav-btn {
  background: transparent;
  border: 2px solid var(--accent-primary);
  color: var(--accent-primary);
}

body.light .nav-btn:hover {
  background: var(--accent-gradient);
  color: var(--bg-primary);
  border-color: var(--accent-primary);
}

/* ===========================
   Project Grid
   =========================== */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
  padding: 0;
  overflow: hidden;
}

.project-image {
  width: 100%;
  height: 250px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-image {
  opacity: 0.8;
}

.project-card h3 {
  padding: 1.5rem 1.5rem 0.5rem;
  font-size: 1.5rem;
}

.project-card p {
  padding: 0 1.5rem 1rem;
  color: var(--text-secondary);
}

.project-card .btn {
  margin: 0 1.5rem 1.5rem;
}

/* ===========================
   Services Grid
   =========================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service-item {
  padding: 1.5rem;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.service-item:hover {
  background: rgba(99, 102, 241, 0.15);
  transform: translateY(-3px);
}

.service-item h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--accent-primary);
}

.service-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ===========================
   Footer
   =========================== */
footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    gap: 1rem;
  }

  nav ul {
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .hero-image-wrapper {
    width: 250px;
    height: 250px;
  }

  .hero-text {
    text-align: center;
  }

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

  .about-content {
    flex-direction: column;
    text-align: center;
  }

  .about-image-wrapper {
    width: 200px;
    height: 200px;
  }

  .title {
    font-size: 2.5rem;
  }

  .subtitle {
    font-size: 1rem;
  }

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

@media (max-width: 480px) {
  main {
    padding: 2rem 4%;
  }

  .card {
    padding: 2rem;
  }

  h2 {
    font-size: 2rem;
  }

  .title {
    font-size: 2rem;
  }

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

  .hero-content {
    gap: 1.5rem;
  }
}

/* ===========================
   About Page Styles
   =========================== */
.about-content {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.about-image-wrapper {
  flex: 0 0 auto;
  width: 250px;
  height: 250px;
}

.about-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(99, 102, 241, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 3px solid rgba(99, 102, 241, 0.2);
}

.about-portrait:hover {
  transform: scale(1.05);
  box-shadow: 0 25px 80px rgba(99, 102, 241, 0.4);
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-hero .intro-text {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.project-description {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 0.5rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.skill-card ul {
  list-style: none;
  margin-top: 1rem;
}

.skill-card li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  position: relative;
  padding-left: 1.5rem;
}

.skill-card li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-weight: bold;
}

.timeline {
  position: relative;
  margin-top: 2rem;
}

.timeline-item {
  margin-bottom: 2rem;
  padding-left: 3rem;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 10px;
}

.timeline-item::after {
  content: '';
  position: absolute;
  left: -6px;
  top: 10px;
  width: 15px;
  height: 15px;
  background: var(--accent-primary);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--bg-card);
}

.timeline-date {
  color: var(--accent-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.timeline-item h3 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.company {
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 1rem;
}

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

.philosophy .card p:last-child {
  margin-bottom: 0;
}

/* ===========================
   Projects Page Styles
   =========================== */
.projects-header .intro-text {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.filter-section {
  margin: 3rem 0;
}

.filters {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn {
  padding: 0.8rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: 12px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.filter-btn:hover {
  background: var(--accent-gradient);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
}

.filter-btn.active {
  background: var(--accent-gradient);
  color: white;
  border-color: transparent;
}

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

.project-detail-card {
  padding: 0;
  overflow: hidden;
  transition: opacity 0.3s ease;
}

.project-image-large {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center;
  opacity: 0.9;
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: block;
}

.project-detail-card:hover .project-image-large {
  opacity: 1;
  transform: scale(1.05);
}

.project-content {
  padding: 2rem;
}

.project-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.tag {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--accent-primary);
  font-weight: 600;
}

.project-detail-card h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.project-detail-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.project-meta {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.project-meta strong {
  color: var(--text-primary);
}

.cta-section {
  margin-top: 5rem;
}

.cta-card {
  text-align: center;
  padding: 4rem 3rem;
}

.cta-card h2 {
  margin-bottom: 1rem;
}

.cta-card p {
  color: var(--text-secondary);
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* Coming Soon Animation */
.coming-soon-animation {
  width: 100%;
  height: 300px;
  position: relative;
  background: linear-gradient(135deg, #1B1725 0%, #0d0a10 50%, #1B1725 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.code-rain {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.code-line {
  position: absolute;
  top: -50px;
  left: calc(var(--delay) * 14%);
  color: rgba(139, 115, 85, 0.3);
  font-family: 'Courier New', monospace;
  font-size: 14px;
  animation: fall var(--duration) linear infinite;
  animation-delay: var(--delay);
  white-space: nowrap;
}

@keyframes fall {
  0% {
    top: -50px;
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    top: 350px;
    opacity: 0;
  }
}

.coming-soon-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.pulse-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(139, 115, 85, 0.1);
  border: 3px solid #8B7355;
  margin: 0 auto 20px;
  position: relative;
  animation: pulse 2s ease-in-out infinite;
}

.pulse-circle::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8B7355 0%, #F5F2B8 100%);
  animation: innerPulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(139, 115, 85, 0.7);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 20px rgba(139, 115, 85, 0);
  }
}

@keyframes innerPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
  }
}

.coming-soon-text {
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, #8B7355 0%, #F5F2B8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textGlow 2s ease-in-out infinite;
}

@keyframes textGlow {
  0%, 100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.3);
  }
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .filters {
    justify-content: flex-start;
  }

  .filter-btn {
    font-size: 0.85rem;
    padding: 0.7rem 1.2rem;
  }

  .coming-soon-text {
    font-size: 24px;
  }

  .pulse-circle {
    width: 80px;
    height: 80px;
  }

  .pulse-circle::before {
    width: 50px;
    height: 50px;
  }
}

/* ===========================
   Contact Page Styles
   =========================== */
.contact-header .intro-text {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.contact-form-card {
  padding: 2.5rem;
}

.contact-form-card h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  padding: 0.9rem 1.2rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-message {
  padding: 1rem 1.5rem;
  border-radius: 10px;
  margin-top: 1rem;
  font-weight: 500;
}

.form-message.success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

.form-message.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.contact-info-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info-card,
.availability-card {
  padding: 2rem;
}

.contact-info-card h3,
.availability-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.info-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.info-item:last-child {
  border-bottom: none;
}

.info-icon {
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 10px;
  flex-shrink: 0;
}

.info-content {
  flex: 1;
}

.info-content h4 {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.info-content a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.info-content a:hover {
  color: var(--accent-primary);
}

.availability-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.availability-note {
  font-size: 0.9rem;
  font-style: italic;
}

.social-section {
  margin-top: 3rem;
}

.social-card {
  text-align: center;
  padding: 2.5rem;
}

.social-card h3 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

.social-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 2rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s ease;
  min-width: 120px;
}

.social-link:hover {
  background: var(--accent-gradient);
  color: white;
  border-color: transparent;
  transform: translateY(-5px);
  box-shadow: 0 8px 24px var(--shadow);
}

.social-icon {
  font-size: 2rem;
}

@media (max-width: 968px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .social-links {
    gap: 1rem;
  }

  .social-link {
    min-width: 100px;
    padding: 1.2rem 1.5rem;
  }
}

/* ===========================
   Hero Code Rain Background
   =========================== */
.hero-card {
  position: relative;
  overflow: hidden;
}

.hero-code-rain {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
}

body.light .hero-code-rain {
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-code-rain .code-line {
  position: absolute;
  top: -50px;
  left: var(--position);
  color: rgba(139, 115, 85, 0.5);
  font-family: 'Courier New', monospace;
  font-size: 16px;
  animation: fallHero var(--duration) linear infinite;
  animation-delay: var(--delay);
  white-space: nowrap;
}

@keyframes fallHero {
  0% {
    top: -50px;
    opacity: 0;
  }
  10% {
    opacity: 0.7;
  }
  90% {
    opacity: 0.7;
  }
  100% {
    top: calc(100% + 50px);
    opacity: 0;
  }
}

body.light .hero-code-rain .code-line {
  color: rgba(139, 115, 85, 0.4);
}

@media (max-width: 768px) {
  .hero-code-rain {
    opacity: 0.3;
  }

  .hero-code-rain .code-line {
    font-size: 12px;
  }
}

/* ===========================
   Skill Modal
   =========================== */
.skill-item {
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0.3rem 0;
  border-radius: 5px;
}

.skill-item:hover {
  color: var(--accent-primary);
  transform: translateX(5px);
  text-decoration: underline;
}

.skill-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(27, 23, 37, 0.85);
  backdrop-filter: blur(15px);
  align-items: center;
  justify-content: center;
  padding: 2rem;
  animation: fadeIn 0.3s ease;
}

body.light .skill-modal {
  background-color: rgba(255, 255, 255, 0.85);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.skill-modal-content {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 3px solid var(--accent-primary) !important;
  border-image: none !important;
  border-radius: 25px;
  padding: 0;
  max-width: 900px;
  width: 100%;
  max-height: 85vh;
  overflow: hidden;
  position: relative;
  box-shadow:
    0 25px 100px rgba(139, 115, 85, 0.4),
    0 10px 40px rgba(0, 0, 0, 0.3) !important;
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body.light .skill-modal-content {
  box-shadow:
    0 25px 100px rgba(139, 115, 85, 0.3),
    0 10px 40px rgba(27, 23, 37, 0.1);
}

@keyframes slideUp {
  from {
    transform: translateY(80px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* Modal Header */
.skill-modal-header {
  background: var(--accent-primary) !important;
  background-image: none !important;
  padding: 2.5rem 3rem;
  border-radius: 25px 25px 0 0;
  position: relative;
  overflow: hidden;
}

.skill-modal-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(27, 23, 37, 0.3);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  line-height: 1;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.skill-modal-close:hover {
  background: rgba(27, 23, 37, 0.6);
  transform: rotate(90deg) scale(1.1);
  color: rgba(255, 255, 255, 1);
}

.skill-modal-content h2 {
  font-family: var(--font-accent);
  color: #F5F2B8 !important;
  background: none !important;
  background-image: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: #F5F2B8 !important;
  background-clip: unset !important;
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Modal Body */
.skill-modal-body {
  padding: 2.5rem 3rem;
  overflow-y: auto;
  max-height: calc(85vh - 120px);
}

.skill-modal-body p {
  margin-bottom: 1.5rem;
  line-height: 1.9;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.skill-modal-body p:first-child {
  font-size: 1.15rem;
  color: var(--text-primary);
  font-weight: 500;
}

.skill-modal-body strong {
  color: var(--accent-primary);
  font-weight: 600;
  font-size: 1.05em;
}

/* Skill Tags */
.skill-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-primary), rgba(139, 115, 85, 0.8));
  color: var(--bg-primary);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Scrollbar styling for modal */
.skill-modal-body::-webkit-scrollbar {
  width: 10px;
}

.skill-modal-body::-webkit-scrollbar-track {
  background: rgba(139, 115, 85, 0.05);
  border-radius: 10px;
  margin: 10px 0;
}

.skill-modal-body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent-primary), rgba(139, 115, 85, 0.6));
  border-radius: 10px;
  border: 2px solid var(--bg-card);
}

.skill-modal-body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--text-primary), var(--accent-primary));
}

@media (max-width: 768px) {
  .skill-modal {
    padding: 1rem;
  }

  .skill-modal-content {
    max-height: 90vh;
    border-radius: 20px;
  }

  .skill-modal-header {
    padding: 2rem 1.5rem;
    border-radius: 20px 20px 0 0;
  }

  .skill-modal-content h2 {
    font-size: 1.6rem;
  }

  .skill-modal-close {
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    font-size: 1.3rem;
  }

  .skill-modal-body {
    padding: 2rem 1.5rem;
    max-height: calc(90vh - 100px);
  }

  .skill-modal-body p {
    font-size: 1rem;
  }

  .skill-modal-body p:first-child {
    font-size: 1.05rem;
  }
}

/* ===========================
   Scroll Animations
   =========================== */
.scroll-animate {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-animate.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Different animation delays for staggered effect */
.scroll-animate:nth-child(1) { transition-delay: 0.1s; }
.scroll-animate:nth-child(2) { transition-delay: 0.2s; }
.scroll-animate:nth-child(3) { transition-delay: 0.3s; }
.scroll-animate:nth-child(4) { transition-delay: 0.4s; }
.scroll-animate:nth-child(5) { transition-delay: 0.5s; }
.scroll-animate:nth-child(6) { transition-delay: 0.6s; }

/* Slide from left */
.scroll-animate-left {
  opacity: 0;
  transform: translateX(-80px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-animate-left.animate-in {
  opacity: 1;
  transform: translateX(0);
}

/* Slide from right */
.scroll-animate-right {
  opacity: 0;
  transform: translateX(80px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-animate-right.animate-in {
  opacity: 1;
  transform: translateX(0);
}

/* Scale up animation */
.scroll-animate-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-animate-scale.animate-in {
  opacity: 1;
  transform: scale(1);
}
