:root {
  --vintage-gold: #e3cba0;
  --soft-gold: #f0e6d2;
  --cream: #f9f5f0;
  --white: #ffffff;
  --muted-rose: #d4b89b;
  --dark-text: #4a4a4a;
  --light-text: #6b7280;
}

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

body {
  font-family: "DM Sans", sans-serif;
  line-height: 1.6;
  color: var(--dark-text);
  background-color: var(--white);
  overflow-x: hidden;
}

.serif {
  font-family: "Playfair Display", serif;
}

/* Header */
header {
  background: linear-gradient(135deg, var(--white) 0%, var(--cream) 100%);
  padding: 2rem 0;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--soft-gold) 0%, transparent 70%);
  opacity: 0.3;
  z-index: 0;
  animation: rotate 20s linear infinite;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  max-width: none;
  margin: 0;
  padding: 1.4rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  background-color: transparent;
}

nav.scrolled {
  background-color: rgba(227, 203, 160, 0.15);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px rgba(227, 203, 160, 0.2);
  border-bottom: 1px solid rgba(227, 203, 160, 0.3);
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dark-text);
  text-decoration: none;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--dark-text);
  font-weight: 400;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  color: var(--vintage-gold);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--vintage-gold);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  position: relative;
  z-index: 10;
  max-width: 1400px;
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 90vh;
  padding: 8rem 2rem 4rem;
}

/* Particles canvas background */
.particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Hero container with two columns */
.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 2;
}

/* Left content area */
.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Availability badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(227, 203, 160, 0.2);
  border: 1px solid var(--vintage-gold);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  width: fit-content;
  animation: fadeInUp 0.8s ease-out;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--vintage-gold);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.badge-text {
  font-size: 0.9rem;
  color: var(--dark-text);
  font-weight: 500;
}

/* Hero title */
.hero-title {
  font-size: 4.5rem;
  font-weight: 700;
  color: var(--dark-text);
  line-height: 1.1;
  margin: 0;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.title-line {
  display: inline;
  background: linear-gradient(135deg, var(--dark-text) 0%, var(--vintage-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero subtitle */
.hero-subtitle {
  font-size: 2rem;
  color: var(--vintage-gold);
  font-weight: 400;
  margin: 0;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Hero description */
.hero-description {
  font-size: 1.15rem;
  color: var(--light-text);
  line-height: 1.7;
  max-width: 550px;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* CTA Button with enhanced design */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.2rem 2.5rem;
  background: linear-gradient(135deg, var(--vintage-gold), var(--muted-rose));
  color: var(--white);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 500;
  font-size: 1.1rem;
  transition: all 0.4s ease;
  box-shadow: 0 8px 25px rgba(227, 203, 160, 0.4);
  position: relative;
  overflow: hidden;
  width: fit-content;
  animation: fadeInUp 0.8s ease-out 0.8s both;
}

.cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 35px rgba(227, 203, 160, 0.6);
}

.button-icon {
  font-size: 1.3rem;
  transition: transform 0.3s ease;
}

.cta-button:hover .button-icon {
  transform: translateX(5px);
}

/* Hero stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 1rem;
  animation: fadeInUp 0.8s ease-out 1s both;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--vintage-gold);
  font-family: "Playfair Display", serif;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--light-text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background-color: var(--soft-gold);
}

/* Right visual area */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInRight 1s ease-out 0.4s both;
}

.mockup-container {
  position: relative;
  width: 100%;
  max-width: 600px;
}

/* Glowing effect behind mockup */
.mockup-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, var(--vintage-gold) 0%, transparent 70%);
  opacity: 0.2;
  animation: pulse 4s ease-in-out infinite;
  z-index: 0;
}

/* Laptop mockup */
.laptop-mockup {
  position: relative;
  z-index: 1;
  animation: float 6s ease-in-out infinite;
}

.laptop-screen {
  background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
  border-radius: 12px 12px 0 0;
  padding: 1.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border: 8px solid #3a3a3a;
  border-bottom: none;
}

.laptop-base {
  height: 20px;
  background: linear-gradient(135deg, #4a4a4a 0%, #2d2d2d 100%);
  border-radius: 0 0 8px 8px;
  position: relative;
}

.laptop-base::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 8px;
  background: linear-gradient(135deg, #3a3a3a 0%, #2d2d2d 100%);
  border-radius: 0 0 4px 4px;
}

/* Code editor inside laptop */
.code-editor {
  background-color: #1e1e1e;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
}

.editor-header {
  background-color: #2d2d2d;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid #3a3a3a;
}

.editor-dots {
  display: flex;
  gap: 0.4rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red {
  background-color: #ff5f56;
}

.dot.yellow {
  background-color: #ffbd2e;
}

.dot.green {
  background-color: #27c93f;
}

.editor-title {
  font-size: 0.85rem;
  color: #888;
  font-family: "Courier New", monospace;
}

.editor-content {
  padding: 1.5rem;
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
  line-height: 1.8;
}

.code-line {
  color: #d4d4d4;
  animation: typeIn 0.5s ease-out both;
}

.code-line:nth-child(1) {
  animation-delay: 1.2s;
}
.code-line:nth-child(2) {
  animation-delay: 1.4s;
}
.code-line:nth-child(3) {
  animation-delay: 1.6s;
}
.code-line:nth-child(4) {
  animation-delay: 1.8s;
}
.code-line:nth-child(5) {
  animation-delay: 2s;
}

.code-keyword {
  color: #569cd6;
}

.code-variable {
  color: #9cdcfe;
}

.code-property {
  color: #9cdcfe;
}

.code-string {
  color: #ce9178;
}

/* Floating elements around mockup */
.floating-element {
  position: absolute;
  background: linear-gradient(135deg, var(--vintage-gold), var(--muted-rose));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(227, 203, 160, 0.4);
  z-index: 2;
}

.element-icon {
  font-size: 1.5rem;
}

.element-1 {
  width: 60px;
  height: 60px;
  top: 10%;
  right: -5%;
  animation: float 4s ease-in-out infinite;
}

.element-2 {
  width: 50px;
  height: 50px;
  bottom: 15%;
  left: -5%;
  animation: float 5s ease-in-out infinite reverse;
}

.element-3 {
  width: 55px;
  height: 55px;
  top: 50%;
  right: -8%;
  animation: float 4.5s ease-in-out infinite;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: fadeIn 1s ease-out 2s both;
  z-index: 2;
}

.scroll-text {
  font-size: 0.85rem;
  color: var(--light-text);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.scroll-arrow {
  width: 24px;
  height: 24px;
  border-left: 2px solid var(--vintage-gold);
  border-bottom: 2px solid var(--vintage-gold);
  transform: rotate(-45deg);
  animation: bounce 2s ease-in-out infinite;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0) rotate(-45deg);
  }
  50% {
    transform: translateY(10px) rotate(-45deg);
  }
}

@keyframes typeIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Sections */
section {
  padding: 4rem 2rem;
  margin: 0 auto;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--dark-text);
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--vintage-gold);
}

/* About Section */
.about {
  background: linear-gradient(135deg, var(--cream) 0%, var(--white) 50%, var(--cream) 100%);
  padding: 5rem 2rem;
  position: relative;
  overflow: hidden;
}

/* Added floating background shapes for visual interest */
.about-background-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
}

.shape-1 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--vintage-gold), transparent);
  top: 10%;
  left: -5%;
  animation: float 8s ease-in-out infinite;
}

.shape-2 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--muted-rose), transparent);
  top: 60%;
  right: 5%;
  animation: float 10s ease-in-out infinite reverse;
}

.shape-3 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, var(--vintage-gold), transparent);
  bottom: 10%;
  left: 50%;
  animation: float 9s ease-in-out infinite;
}

/* Simplified container to single centered column */
.about-container {
  padding: 0 30px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Content area with modern typography */
.about-content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-header {
  border-left: 4px solid var(--vintage-gold);
  padding-left: 1.5rem;
  text-align: left;
}

.about-greeting {
  font-size: 2.5rem;
  color: var(--dark-text);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.about-tagline {
  font-size: 1.2rem;
  color: var(--vintage-gold);
  font-weight: 400;
  line-height: 1.6;
}

.about-story {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.about-story p {
  color: var(--light-text);
  line-height: 1.8;
  font-size: 1.05rem;
}

/* Modern skills section with icon grid */
.skills-section {
  background: linear-gradient(135deg, var(--white), var(--soft-gold));
  border: 2px solid var(--vintage-gold);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(227, 203, 160, 0.2);
  position: relative;
  overflow: hidden;
  margin-top: 1rem;
}

.skills-section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--vintage-gold) 0%, transparent 70%);
  opacity: 0.05;
  animation: rotate 20s linear infinite;
}

.skills-title {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  color: var(--dark-text);
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
  text-align: center;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  padding: 1.5rem 1rem;
  background-color: var(--white);
  border-radius: 15px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  cursor: default;
}

.skill-item:hover {
  border-color: var(--vintage-gold);
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(227, 203, 160, 0.3);
}

.skill-icon {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--vintage-gold), var(--muted-rose));
  border-radius: 12px;
  color: var(--white);
  transition: transform 0.3s ease;
}

.skill-item:hover .skill-icon {
  transform: scale(1.1) rotate(5deg);
}

.skill-icon svg {
  width: 24px;
  height: 24px;
}

.skill-name {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--dark-text);
  text-align: center;
}

/* Services Section */
.services {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

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

.service-card {
  background-color: var(--white);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 2px solid var(--soft-gold);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(227, 203, 160, 0.1), transparent);
  transition: left 0.5s ease;
}

.service-card:hover::before {
  left: 100%;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  border-color: var(--vintage-gold);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
  transition: transform 0.4s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.05) rotate(5deg);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--dark-text);
}

.service-card p {
  color: var(--light-text);
  line-height: 1.6;
}

/* Portfolio Section */
.portfolio {
  padding: 5rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Added subtitle for portfolio section */
.portfolio-subtitle {
  text-align: center;
  color: var(--light-text);
  font-size: 1.1rem;
  max-width: 700px;
  margin: -1.5rem auto 2rem;
  line-height: 1.6;
}

/* Redesigned portfolio grid with better spacing */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 2rem;
  width: 95%;
}

/* Completely redesigned project cards with image covers */
.project-card {
  background-color: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  border: 2px solid var(--soft-gold);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(227, 203, 160, 0.95), rgba(212, 184, 155, 0.95));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
}

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

.project-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--vintage-gold), var(--muted-rose));
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-weight: 500;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.project-view-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.project-view-btn:hover::before {
  left: 100%;
}

.project-view-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.btn-arrow {
  font-size: 1.3rem;
  transition: transform 0.3s ease;
}

.project-view-btn:hover .btn-arrow {
  transform: translateX(5px);
}

.project-image {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  background-color: var(--soft-gold);
}

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

.project-card:hover .project-cover-img {
  transform: scale(1.08);
}

/* Added project content area */
.project-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.project-card h3 {
  font-size: 1.6rem;
  margin: 0;
  color: var(--dark-text);
  line-height: 1.3;
}

.project-card p {
  color: var(--light-text);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.tech-tag {
  background-color: var(--cream);
  color: var(--dark-text);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid var(--soft-gold);
  transition: all 0.3s ease;
}

.tech-tag:hover {
  background-color: var(--vintage-gold);
  color: var(--white);
  border-color: var(--vintage-gold);
}

/* Completely redesigned modal with premium aesthetic */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalFadeIn 0.3s ease;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(74, 74, 74, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1;
}

.modal-content {
  position: relative;
  z-index: 2;
  background-color: var(--white);
  border-radius: 25px;
  max-width: 900px;
  max-height: 90vh;
  width: 90%;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
  border: 3px solid var(--vintage-gold);
  animation: modalSlideUp 0.4s ease;
}

.modal-body {
  overflow-y: auto;
  max-height: 90vh;
  padding: 3rem;
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--white);
  border: 2px solid var(--vintage-gold);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.modal-close span {
  font-size: 2rem;
  color: var(--dark-text);
  line-height: 1;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: linear-gradient(135deg, var(--vintage-gold), var(--muted-rose));
  border-color: var(--vintage-gold);
  transform: rotate(90deg);
}

.modal-close:hover span {
  color: var(--white);
}

.modal-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--soft-gold);
}

.modal-header h3 {
  font-size: 2.5rem;
  color: var(--dark-text);
  margin: 0;
  padding-right: 3rem;
  line-height: 1.2;
}

.modal-section {
  margin-bottom: 2rem;
}

.modal-section-title {
  font-size: 1.5rem;
  color: var(--dark-text);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--soft-gold);
}

.modal-description {
  color: var(--light-text);
  line-height: 1.8;
  font-size: 1.05rem;
}

.modal-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.modal-tech-tag {
  background: linear-gradient(135deg, var(--vintage-gold), var(--muted-rose));
  color: var(--white);
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 4px 15px rgba(227, 203, 160, 0.3);
  transition: all 0.3s ease;
}

.modal-tech-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(227, 203, 160, 0.5);
}

.modal-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid var(--soft-gold);
  justify-content: center;
}

.modal-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--vintage-gold), var(--muted-rose));
  color: var(--white);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(227, 203, 160, 0.3);
}

.modal-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(227, 203, 160, 0.5);
}

/* Added image zoom modal styles */
.image-zoom-modal {
  display: none;
  position: fixed;
  z-index: 3000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.image-zoom-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalFadeIn 0.3s ease;
}

.image-zoom-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1;
}

.image-zoom-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: var(--white);
  border: 2px solid var(--vintage-gold);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.image-zoom-close span {
  font-size: 2.5rem;
  color: var(--dark-text);
  line-height: 1;
  transition: all 0.3s ease;
}

.image-zoom-close:hover {
  background: linear-gradient(135deg, var(--vintage-gold), var(--muted-rose));
  border-color: var(--vintage-gold);
  transform: rotate(90deg);
}

.image-zoom-close:hover span {
  color: var(--white);
}

.image-zoom-container {
  position: relative;
  z-index: 2;
  max-width: 95vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalSlideUp 0.4s ease;
}

.zoomed-image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5);
}

@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-visual {
    order: -1;
  }

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

  .hero-title {
    font-size: 3.5rem;
  }

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

  .hero-description {
    max-width: 100%;
  }

  .mockup-container {
    max-width: 500px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero {
    padding: 6rem 1.5rem 8rem;
    min-height: auto;
  }

  .hero-container {
    gap: 2rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

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

  .hero-description {
    font-size: 1rem;
  }

  .hero-stats {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .mockup-container {
    max-width: 100%;
  }

  .laptop-screen {
    padding: 1rem;
    border: 4px solid #3a3a3a;
  }

  .editor-content {
    padding: 1rem;
    font-size: 0.75rem;
  }

  .floating-element {
    width: 40px !important;
    height: 40px !important;
  }

  .element-icon {
    font-size: 1.2rem;
  }

  .about {
    padding: 4rem 1.5rem;
  }

  .about-container {
    max-width: 100%;
  }

  .about-header {
    padding-left: 1rem;
  }

  .about-greeting {
    font-size: 2rem;
  }

  .about-tagline {
    font-size: 1.05rem;
  }

  .about-story p {
    font-size: 1rem;
  }

  .skills-section {
    padding: 1.5rem;
  }

  .skills-title {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
  }

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

  .skill-item {
    padding: 1.2rem 0.8rem;
  }

  .skill-icon {
    width: 40px;
    height: 40px;
  }

  .skill-icon svg {
    width: 22px;
    height: 22px;
  }

  .skill-name {
    font-size: 0.85rem;
  }

  .portfolio {
    padding: 4rem 1.5rem;
  }

  .portfolio-subtitle {
    font-size: 1rem;
    margin: -1rem auto 2rem;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .project-image {
    height: 220px;
  }

  .project-icon {
    font-size: 4rem;
  }

  .project-content {
    padding: 1.5rem;
  }

  .project-card h3 {
    font-size: 1.4rem;
  }

  .project-view-btn {
    padding: 0.9rem 2rem;
    font-size: 1rem;
  }

  .modal-body {
    padding: 2rem 1.5rem;
  }

  .modal-header h3 {
    font-size: 1.8rem;
  }

  .modal-gallery {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .modal-image {
    aspect-ratio: 16 / 10;
  }

  .image-zoom-close {
    top: 1rem;
    right: 1rem;
    width: 45px;
    height: 45px;
  }

  .image-zoom-close span {
    font-size: 2rem;
  }

  .image-zoom-container {
    max-width: 100vw;
    max-height: 100vh;
    padding: 1rem;
  }

  .zoomed-image {
    max-height: 85vh;
  }
}

/* --- Gallery (flex-based, no CSS Grid) --- */
/* Container that holds main images (carousel-like) */
.modal-gallery {
  display: flex;
  flex-direction: row;
  gap: 1.25rem;
  align-items: center;
  width: 100%;
  margin: 0.5rem 0 1.5rem;
}

/* Wrapper for the visible image(s) */
.modal-image {
  width: 100%;
  max-width: 820px; /* keeps images from growing too wide inside modal-content */
  height: auto;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(249, 245, 240, 0.6), rgba(243, 238, 231, 0.3));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(227, 203, 160, 0.18);
  transition: transform 0.32s cubic-bezier(0.2, 0.9, 0.2, 1), box-shadow 0.32s ease;
  cursor: zoom-in; /* indicates click-to-zoom behavior */
}

/* Small transform on hover to suggest interactivity */
.modal-image:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 65px rgba(0, 0, 0, 0.22);
}

/* Actual image inside wrapper: responsive and centered */
.modal-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 62vh; /* avoids extending beyond modal height */
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.28s ease;
  -webkit-user-drag: none;
  user-select: none;
}

/* Thumbnail row (horizontal, scrollable) */
.modal-thumbs {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  width: 100%;
  max-width: 820px;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

/* Individual thumbnail */
.modal-thumb {
  flex: 0 0 auto;
  width: 110px;
  height: 70px;
  border-radius: 10px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(240, 230, 210, 0.6);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(244, 239, 232, 0.5));
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

/* Thumbnail image fills container */
.modal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Active thumbnail visual state (to be toggled via JS) */
.modal-thumb.active {
  border-color: var(--vintage-gold);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 14px 30px rgba(227, 203, 160, 0.18);
}

/* Focus state for keyboard accessibility */
.modal-thumb:focus,
.modal-thumb:focus-visible {
  outline: 3px solid rgba(227, 203, 160, 0.25);
  outline-offset: 3px;
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .modal-image {
    max-width: 45%;
  }
  .modal-image img {
    max-height: 48vh;
  }
  .modal-thumbs {
    gap: 0.5rem;
  }
  .modal-thumb {
    width: 88px;
    height: 56px;
  }

  .modal-gallery {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Optional: subtle loading placeholder for images */
.modal-image.loading,
.modal-thumb.loading {
  background: linear-gradient(90deg, rgba(240, 240, 240, 0.9), rgba(245, 245, 245, 0.7));
  animation: shimmer 1.2s linear infinite;
}

@keyframes shimmer {
  0% {
    background-position: -320px 0;
  }
  100% {
    background-position: 320px 0;
  }
}

/* When zoom modal opens, change cursor on the underlying modal-image to indicate close */
.image-zoom-modal.active + .modal-content .modal-image,
.modal-image.zoomed {
  cursor: zoom-out;
}

/* Contact Section - Redesigned */
.contact {
  background: linear-gradient(135deg, var(--cream) 0%, var(--white) 50%, var(--cream) 100%);
  padding: 5rem 2rem;
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--soft-gold) 0%, transparent 70%);
  opacity: 0.15;
  z-index: 0;
  animation: rotate 20s linear infinite;
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 3rem;
}

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

.contact-methods-header {
  margin-bottom: 1rem;
}

.contact-methods-title {
  font-size: 2rem;
  color: var(--dark-text);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.contact-methods-subtitle {
  color: var(--light-text);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.title-decoration {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.decoration-line {
  height: 3px;
  width: 80px;
  background: linear-gradient(90deg, var(--vintage-gold), var(--muted-rose));
  border-radius: 2px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.8rem 2rem;
  background: var(--white);
  border: 2px solid var(--soft-gold);
  border-radius: 18px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(227, 203, 160, 0.1), transparent);
  transition: left 0.5s ease;
}

.contact-card:hover::before {
  left: 100%;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
  border-color: var(--vintage-gold);
}

.contact-card-visual {
  width: 70px;
  height: 70px;
  min-width: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: 16px;
  padding: 0.6rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid var(--soft-gold);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.contact-card:hover .contact-card-visual {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.contact-card-visual svg {
  width: 100%;
  height: 100%;
}

.contact-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.contact-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.contact-card-title {
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  color: var(--dark-text);
  margin: 0;
}

.contact-card-text {
  font-size: 0.95rem;
  color: var(--light-text);
  margin: 0;
}

.contact-card-arrow {
  font-size: 1.5rem;
  color: var(--vintage-gold);
  transition: transform 0.3s ease;
}

.contact-card:hover .contact-card-arrow {
  transform: translateX(5px);
}

/* Social Links Section */
.contact-social {
  margin-top: 1rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--soft-gold), var(--cream));
  border-radius: 15px;
  border: 2px solid var(--vintage-gold);
  text-align: center;
}

.contact-social-text {
  font-size: 0.95rem;
  color: var(--light-text);
  margin-bottom: 1rem;
}

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

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  background: var(--white);
  color: var(--dark-text);
  text-decoration: none;
  border-radius: 25px;
  font-weight: 500;
  font-size: 0.95rem;
  border: 2px solid var(--soft-gold);
  transition: all 0.3s ease;
}

.social-link svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.social-link:hover {
  background: linear-gradient(135deg, var(--vintage-gold), var(--muted-rose));
  color: var(--white);
  border-color: var(--vintage-gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(227, 203, 160, 0.3);
}

.social-link:hover svg {
  transform: scale(1.1);
}

/* Contact Form Styles */
.contact-form-wrapper {
  background: var(--white);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 2px solid var(--soft-gold);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  height: fit-content;
}

.contact-form-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--vintage-gold), var(--muted-rose), var(--vintage-gold));
}

.contact-form-wrapper:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  border-color: var(--vintage-gold);
}

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

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

.form-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--dark-text);
  margin-left: 0.5rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid var(--soft-gold);
  border-radius: 12px;
  font-size: 1rem;
  font-family: "DM Sans", sans-serif;
  color: var(--dark-text);
  background-color: var(--white);
  transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--vintage-gold);
  box-shadow: 0 0 0 4px rgba(227, 203, 160, 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--light-text);
  opacity: 0.6;
}

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

.form-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1.2rem 2.5rem;
  background: linear-gradient(135deg, var(--vintage-gold), var(--muted-rose));
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-weight: 500;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: 0 8px 25px rgba(227, 203, 160, 0.4);
  position: relative;
  overflow: hidden;
  font-family: "DM Sans", sans-serif;
}

.form-submit-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.form-submit-btn:hover::before {
  left: 100%;
}

.form-submit-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 35px rgba(227, 203, 160, 0.6);
}

.form-submit-btn:active {
  transform: translateY(-1px) scale(0.98);
}

.form-submit-btn .button-icon {
  font-size: 1.3rem;
  transition: transform 0.3s ease;
}

.form-submit-btn:hover .button-icon {
  transform: translateX(5px);
}

.form-submit-btn:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(227, 203, 160, 0.3), 0 12px 35px rgba(227, 203, 160, 0.6);
}

/* Success state for form button */
.form-submit-btn.success {
  background: linear-gradient(135deg, #27c93f, #20a037);
}

.form-submit-btn.success .button-text::after {
  content: " ✓";
}

/* Responsive Design for Contact Section */
@media (max-width: 968px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contact-form-wrapper {
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .contact {
    padding: 4rem 1.5rem;
  }

  .contact-grid {
    gap: 2rem;
  }

  .contact-methods-title {
    font-size: 1.6rem;
  }

  .contact-methods-subtitle {
    font-size: 1rem;
  }

  .contact-form-wrapper {
    padding: 1.8rem;
  }

  .form-input,
  .form-textarea {
    padding: 0.9rem 1rem;
    font-size: 0.95rem;
  }

  .form-submit-btn {
    padding: 1.1rem 2rem;
    font-size: 1rem;
  }

  .contact-card {
    padding: 1.5rem;
    gap: 1.2rem;
  }

  .contact-card-visual {
    width: 60px;
    height: 60px;
    min-width: 60px;
  }

  .contact-card-title {
    font-size: 1.2rem;
  }

  .contact-card-text {
    font-size: 0.9rem;
  }

  .contact-social {
    padding: 1.2rem;
  }

  .contact-social-links {
    gap: 1rem;
  }

  .social-link {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  .skill-item:hover,
  .skill-item:active {
    border-color: var(--vintage-gold);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(227, 203, 160, 0.3);
  }
}

/* Enhanced Footer */
footer {
  background: linear-gradient(135deg, var(--dark-text) 0%, #2c2c2c 100%);
  color: var(--white);
  padding: 3rem 2rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--vintage-gold), var(--muted-rose), var(--vintage-gold));
}

footer::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -10%;
  width: 120%;
  height: 100%;
  background: radial-gradient(ellipse, var(--vintage-gold) 0%, transparent 70%);
  opacity: 0.05;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.footer-copyright {
  color: var(--vintage-gold);
  font-size: 0.9rem;
}

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

/* Decorative elements */
.decorative-element {
  position: absolute;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, var(--vintage-gold) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0.1;
  z-index: -1;
}

.decorative-element:nth-child(1) {
  top: 10%;
  left: 5%;
  animation: float 6s ease-in-out infinite;
}

.decorative-element:nth-child(2) {
  top: 60%;
  right: 10%;
  animation: float 8s ease-in-out infinite reverse;
}

/* Contact Form Title */
.contact-form-title {
  font-size: 1.8rem;
  color: var(--dark-text);
  margin-bottom: 1.5rem;
  font-weight: 600;
}


@media (max-width: 390px) {
  .contact-card-arrow{
    display: none;
  }
}

@media (max-width: 330px) {
  .contact-card{
    flex-direction: column;
  }
}

@media (max-width: 360px) {
  .skills-grid {
      grid-template-columns: repeat(1, 1fr);
  }
}