@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Caveat:wght@400;500;600;700&display=swap');

/* Minimal Color Palette & Variables */
:root {
  /* Primary Colors - Muted and Subtle */
  --sage-gray:       #8a9a9a;    /* muted sage green-gray */
  --soft-blue:       #7a8ba3;    /* gentle blue-gray */
  --warm-gray:       #9d9d9d;    /* neutral warm gray */
  --dust-pink:       #c4a5a5;    /* very subtle pink-gray */

  /* Gradients - Minimal and Understated */
  --gradient-sage:     linear-gradient(135deg, #8a9a9a 0%, #a8b8b8 100%);
  --gradient-blue:     linear-gradient(135deg, #7a8ba3 0%, #9aabb8 100%);
  --gradient-neutral:  linear-gradient(135deg, #9d9d9d 0%, #b8b8b8 100%);
  --gradient-soft:     linear-gradient(135deg, #8a9a9a 0%, #c4a5a5 100%);
  --gradient-subtle:   linear-gradient(135deg, #7a8ba3 0%, #a8b8b8 100%);

  /* Neutrals - Clean and Minimal */
  --white:        #ffffff;
  --light-gray:   #f8f9fa;      /* very light neutral */
  --medium-gray:  #6c757d;
  --dark-gray:    #343a40;
  --glass-bg:     rgba(255,255,255,0.10);
  --glass-border: rgba(255,255,255,0.15);

  /* Shadows - Softer and More Subtle */
  --shadow-soft:   0 2px 20px rgba(0,0,0,0.05);
  --shadow-medium: 0 4px 25px rgba(0,0,0,0.08);
  --shadow-strong: 0 8px 35px rgba(0,0,0,0.10);

  /* Typography */
  --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-accent: 'Playfair Display', serif;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  padding-top: 80px;
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--dark-gray);
  background: linear-gradient(135deg, #fafbfc 0%, #f1f3f4 50%, #f8f9fa 100%);
  overflow-x: hidden;
}

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

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--light-gray);
  z-index: 1000;
  transition: all 0.3s ease;
  height: 80px;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  font-family: var(--font-accent);
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient-coral);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-menu a {
  text-decoration: none;
  color: var(--dark-gray);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-coral);
  transition: width 0.3s ease;
}

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

.nav-menu a:hover {
  color: var(--coral-red);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--dark-gray);
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  background: 
    radial-gradient(circle at 20% 80%, rgba(138, 154, 154, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(122, 139, 163, 0.04) 0%, transparent 50%),
    linear-gradient(135deg, #fafbfc 0%, #f1f3f4 100%);
}

.hero-content {
  background: var(--glass-bg);
  backdrop-filter: blur(30px);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  padding: 3rem;
  box-shadow: var(--shadow-medium);
  max-width: 600px;
  width: 100%;
}

.profile-photo {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto 2rem;
}

.profile-photo::before {
  content: '';
  position: absolute;
  inset: -3px;
  background: var(--gradient-sunset);
  border-radius: 50%;
  z-index: -1;
  animation: rotate 3s linear infinite;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--white);
  box-shadow: var(--shadow-soft);
}

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

.hero-content h3 {
  font-family: var(--font-accent);
  font-size: 1.5rem;
  color: var(--teal-green);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.hero-content h1 {
  font-family: var(--font-accent);
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: var(--gradient-ocean);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content h2 {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--medium-gray);
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--medium-gray);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

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

/* Modern Buttons */
.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn.primary {
  background: var(--gradient-soft);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}

.btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

.btn.secondary {
  background: var(--white);
  color: var(--sage-gray);
  border: 2px solid var(--sage-gray);
}

.btn.secondary:hover {
  background: var(--sage-gray);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.btn.view-project {
  background: rgba(255, 255, 255, 0.95);
  color: var(--lavender-purple);
  padding: 0.7rem 1.5rem;
  font-size: 0.9rem;
  backdrop-filter: blur(10px);
}

/* Projects Section */
.projects {
  padding: 6rem 0;
  background: var(--white);
}

.projects h2 {
  text-align: center;
  font-family: var(--font-accent);
  font-size: clamp(3rem, 7vw, 5rem);
  margin-bottom: 5rem;
  background: var(--gradient-sunset);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.project-category h3 {
  font-family: var(--font-accent);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin-bottom: 3rem;
  color: var(--mint-green);
  font-weight: 700;
  position: relative;
  padding-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.project-category h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--gradient-teal);
  border-radius: 2px;
}

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

.project-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
  border-top: 4px solid transparent;
  background-image: linear-gradient(var(--white), var(--white)), var(--gradient-sage);
  background-origin: border-box;
  background-clip: content-box, border-box;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card:nth-child(even) {
  background-image: linear-gradient(var(--white), var(--white)), var(--gradient-blue);
}

.project-card:nth-child(3n) {
  background-image: linear-gradient(var(--white), var(--white)), var(--gradient-neutral);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-strong);
}

.project-image {
  position: relative;
  overflow: hidden;
  height: 250px;
}

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

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(138, 154, 154, 0.85), rgba(122, 139, 163, 0.85));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

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

.project-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-content h4 {
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  margin-bottom: 0.75rem;
  color: var(--dark-gray);
  font-weight: 700;
  line-height: 1.3;
  font-family: var(--font-primary);
}

.project-content p {
  color: var(--medium-gray);
  margin-bottom: 1.5rem;
  line-height: 1.7;
  font-size: clamp(1rem, 2vw, 1.1rem);
}

.case-study-toggle {
  background: var(--gradient-sage);
  color: var(--white);
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: inline-block;
  margin-top: auto;
  align-self: flex-start;
  text-decoration: none;
}

.case-study-toggle:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
  background: var(--gradient-blue);
}

.case-study {
  display: none;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-top: 1px solid var(--glass-border);
}

.case-study.active {
  display: block;
}

.case-study h5 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--dark-gray);
  font-weight: 600;
}

.case-study h6 {
  font-size: 1.1rem;
  margin: 1rem 0 0.5rem;
  color: var(--coral-red);
  font-weight: 600;
}

.case-study p {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.project-features ul {
  list-style-type: none;
  padding-left: 0;
}

.project-features li {
  padding: 0.3rem 0;
  position: relative;
  padding-left: 1.5rem;
}

.project-features li::before {
  content: "✨";
  position: absolute;
  left: 0;
  color: var(--teal-green);
  font-weight: bold;
}

/* About Section */
.about {
  padding: 6rem 0;
  background: linear-gradient(135deg, var(--light-gray) 0%, #e2e8f0 100%);
  position: relative;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 70% 30%, rgba(78, 205, 196, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 30% 70%, rgba(255, 107, 107, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.about-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about h2 {
  font-family: var(--font-accent);
  font-size: clamp(3rem, 6vw, 4.5rem);
  margin-bottom: 3rem;
  color: var(--dark-gray);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.about p {
  font-size: clamp(1.1rem, 2.5vw, 1.25rem);
  color: var(--medium-gray);
  margin-bottom: 2rem;
  line-height: 1.8;
  max-width: 60ch;
}

.skills {
  margin-top: 2rem;
}

.skills h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1.5rem;
  color: var(--dark-gray);
  font-weight: 700;
  font-family: var(--font-accent);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.skill-tags span {
  padding: 0.7rem 1.2rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white);
  transition: all 0.3s ease;
  cursor: pointer;
}

.skill-tags span:nth-child(odd) {
  background: var(--gradient-sage);
}

.skill-tags span:nth-child(even) {
  background: var(--gradient-blue);
}

.skill-tags span:nth-child(3n) {
  background: var(--gradient-neutral);
}

.skill-tags span:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.about-details h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 2rem;
  color: var(--dark-gray);
  font-weight: 700;
  font-family: var(--font-accent);
}

.experience-item {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 15px;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-soft);
  border-left: 4px solid var(--teal-green);
}

.experience-item h4 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  color: var(--dark-gray);
  margin-bottom: 0.75rem;
  font-weight: 700;
  line-height: 1.3;
}

.experience-item p {
  color: var(--medium-gray);
  margin-bottom: 0.75rem;
  line-height: 1.7;
  font-size: clamp(1rem, 2vw, 1.1rem);
}

/* Contact Section */
.contact {
  padding: 6rem 0;
  background: var(--white);
  text-align: center;
  color: var(--dark-gray);
  position: relative;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(138, 154, 154, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(122, 139, 163, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.contact > * {
  position: relative;
  z-index: 2;
}

.contact h2 {
  font-family: var(--font-accent);
  font-size: clamp(3rem, 6vw, 4.5rem);
  margin-bottom: 4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  background: var(--gradient-sage);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-info {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  min-width: 180px;
  justify-content: center;
    background: var(--white);
    border: 2px solid var(--light-gray);
    border-radius: 20px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
    text-decoration: none;
    color: var(--medium-gray);
}

.contact-btn:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--sage-gray);
}

.contact-btn i {
  font-size: 1.2rem;
}

.contact-item {
  background: var(--white);
  border: 2px solid var(--light-gray);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-soft);
}

.contact-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
  border-color: var(--sage-gray);
}

.contact-item h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  margin-bottom: 0.75rem;
  font-weight: 700;
  font-family: var(--font-primary);
  color: var(--dark-gray);
}

.contact-item a,
.contact-item p {
  color: var(--medium-gray);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.6;
}

.contact-item a:hover {
  color: var(--sage-gray);
}

/* Typography */
h1 {
  font: normal 800 clamp(3.5rem, 8vw, 6rem)/1.1 var(--font-accent);
  background: var(--gradient-subtle);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

h2 {
  font: normal 700 clamp(2.8rem, 6vw, 4.5rem)/1.2 var(--font-accent);
  background: var(--gradient-soft);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
}

h3 {
  font: normal 600 clamp(2.2rem, 4vw, 3.2rem)/1.3 var(--font-accent);
  color: var(--dark-gray);
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

h4 {
  font: normal 600 clamp(1.8rem, 3vw, 2.4rem)/1.3 var(--font-primary);
  color: var(--dark-gray);
  margin-bottom: 1rem;
}

h5 {
  font: normal 600 clamp(1.6rem, 2.5vw, 2rem)/1.4 var(--font-primary);
  color: var(--dark-gray);
  margin-bottom: 0.75rem;
}

h6 {
  font: normal 600 clamp(1.4rem, 2vw, 1.8rem)/1.4 var(--font-primary);
  color: var(--lavender-purple);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Paragraphs */
p {
  font: normal 400 clamp(1.1rem, 2.5vw, 1.25rem)/1.7 var(--font-primary);
  color: var(--medium-gray);
  margin-bottom: 1.5rem;
  max-width: 65ch;
}

p.small {
  font-size: clamp(1rem, 2vw, 1.1rem);
  line-height: 1.6;
}

p.large {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  line-height: 1.6;
  font-weight: 500;
}

/* Video Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  margin: 5% auto;
  width: 80%;
  max-width: 800px;
  border-radius: 15px;
  overflow: hidden;
}

.modal video {
  width: 100%;
  height: auto;
  border-radius: 15px;
}

.close {
  position: absolute;
  top: -50px;
  right: 0;
  color: var(--white);
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.close:hover {
  opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: var(--shadow-soft);
    padding: 2rem 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content h2 {
    font-size: 1.3rem;
  }

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

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

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

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

  .modal-content {
    width: 95%;
    margin: 10% auto;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .nav-container {
    padding: 1rem;
  }

  .hero-content {
    padding: 2rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .projects h2 {
    font-size: 2.5rem;
  }

  .about h2 {
    font-size: 2.5rem;
  }

  .contact h2 {
    font-size: 2.5rem;
  }
}

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

/* Selection Color */
::selection {
  background: var(--coral-red);
  color: var(--white);
}