/* Base Variables */
:root {
  --color-primary: #4a6fa5;
  --color-secondary: #334e7a;
  --color-accent: #ff6b6b;
  --color-light: #f8f9fa;
  --color-dark: #252a34;
  --color-text: #333;
  --color-text-light: #666;
  --color-background: #fff;
  --color-gradient-start: #4a6fa5;
  --color-gradient-end: #334e7a;
  --font-primary: "Raleway", sans-serif;
  --font-secondary: "Montserrat", sans-serif;
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s ease;
  --transition-slow: 0.8s ease;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 15px 35px rgba(0, 0, 0, 0.15);
}


/* ---------- Glassmorphism utility (added) ---------- */
:root{
  --glass-bg: rgba(255,255,255,0.06);
  --glass-border: rgba(255,255,255,0.12);
  --glass-glow: 0 8px 30px rgba(0,0,0,0.12);
  --glass-blur: 8px;
}
.glass {
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur)) saturate(120%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(120%);
  border-radius: 12px;
  box-shadow: var(--glass-glow);
  position: relative;
}
.glass-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.12);
  padding: 20px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .glass, .glass-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 6px 18px rgba(0,0,0,0.14);
  }
}

/* Reveal animation helpers (added) */
.will-reveal { opacity: 0; transform: translateY(20px); transition: opacity 650ms ease, transform 650ms ease; will-change: opacity, transform; }
.-reveal.reveal-left { transform: translateX(-24px); }
.will-reveal.reveal-right { transform: translateX(24px); }
.will-reveal.reveal-zoom { transform: scale(0.98); }
.in-view { opacity: 1; transform: translateX(0) translateY(0) scale(1); }
.reveal-up.in-view { transform: translateY(0); }
.reveal-left.in-view { transform: translateX(0); }
.reveal-right.in-view { transform: translateX(0); }
.reveal-zoom.in-view { transform: scale(1); }
.stagger > * { transition-delay: calc(var(--i) * 70ms); }

/* Accessibility: respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .will-reveal, .in-view, .project-card, .skill-card {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
/* ---------- End of glass & reveal block ---------- */


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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-background);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: var(--color-primary);
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-secondary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 100px 0;
  position: relative;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: transparent;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--transition-medium);
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow-soft);
  padding: 15px 0;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-logo {
  font-family: var(--font-secondary);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-light);
  transition: color var(--transition-fast);
}

.navbar.scrolled .navbar-logo {
  color: var(--color-primary);
}

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

.nav-item {
  margin-left: 30px;
}

.nav-link {
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-light);
  position: relative;
  padding-bottom: 5px;
}

.navbar.scrolled .nav-link {
  color: var(--color-text);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width var(--transition-fast);
}

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

.mobile-menu-toggle {
  display: none;
  cursor: pointer;
  color: var(--color-light);
  font-size: 1.5rem;
}

.navbar.scrolled .mobile-menu-toggle {
  color: var(--color-text);
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    to right,
    var(--color-gradient-start),
    var(--color-gradient-end)
  );
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("../images/pattern.svg");
  opacity: 0.05;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--color-light);
  max-width: 600px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s forwards 0.3s;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s forwards 0.6s;
}

.hero-cta {
  display: inline-block;
  background-color: var(--color-accent);
  color: white;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform var(--transition-fast),
    box-shadow var(--transition-fast);
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s forwards 0.9s;
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(255, 107, 107, 0.4);
  color: white;
}

.hero-image {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 45%;
  z-index: 1;
  opacity: 0;
  transform: translateX(50px);
  animation: fadeInRight 1s forwards 1.2s;
}

/* About Section */
.about {
  background-color: var(--color-light);
  position: relative;
  overflow: hidden;
}

.about-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.about-image-container {
  flex: 1;
  position: relative;
}

.about-image {
  border-radius: 10px;
  box-shadow: var(--shadow-medium);
  overflow: hidden;
  transition: transform var(--transition-medium);
}

.about-image:hover {
  transform: scale(1.03);
}

.about-image img {
  transition: transform var(--transition-slow);
}

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

.about-content {
  flex: 1;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 50px;
  height: 3px;
  background-color: var(--color-accent);
}

.about-text {
  margin-bottom: 30px;
  color: var(--color-text-light);
}

.stats-container {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 5px;
  display: inline-block;
}

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

/* Skills Section */
.skills {
  background-color: var(--color-background);
}

.skills-container {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.skills-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.skills-intro p {
  color: var(--color-text-light);
  margin-top: 20px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 40px;
}

.skill-card {
  background-color: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-medium),
    box-shadow var(--transition-medium);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.skill-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--color-gradient-start),
    var(--color-gradient-end)
  );
  opacity: 0;
  z-index: -1;
  transition: opacity var(--transition-medium);
}

.skill-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-medium);
}

.skill-card:hover::before {
  opacity: 1;
}

.skill-card:hover .skill-name,
.skill-card:hover .skill-description {
  color: white;
}

.skill-card:hover .skill-level-bg {
  background-color: rgba(255, 255, 255, 0.2);
}

.skill-icon {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 15px;
  transition: color var(--transition-medium);
}

.skill-card:hover .skill-icon {
  color: white;
}

.skill-name {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  transition: color var(--transition-medium);
}

.skill-description {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 20px;
  transition: color var(--transition-medium);
}

.skill-level-bg {
  height: 8px;
  background-color: #eee;
  border-radius: 4px;
  overflow: hidden;
  transition: background-color var(--transition-medium);
}

.skill-level-fill {
  height: 100%;
  background-color: var(--color-accent);
  border-radius: 4px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.5s ease;
}

.skill-card.animated .skill-level-fill {
  transform: scaleX(1);
}

/* Projects Section */
.projects {
  background-color: var(--color-light);
  position: relative;
}

.projects-container {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.projects-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.projects-intro p {
  color: var(--color-text-light);
  margin-top: 20px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.project-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-medium),
    box-shadow var(--transition-medium);
}

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

.project-image {
  height: 200px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.project-content {
  padding: 5px;
}

.project-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.project-description {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 20px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.project-tag {
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 15px;
  background-color: rgba(74, 111, 165, 0.1);
  color: var(--color-primary);
}

.project-links {
  display: flex;
  gap: 15px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
}

.project-link i {
  margin-right: 5px;
}


/* Contact Section */
.contact {
  background-color: var(--color-background);
}

.contact-container {
  display: flex;
  gap: 50px;
}

.contact-info {
  flex: 1;
}

.contact-form-container {
  flex: 1;
}

.contact-methods {
  margin-top: 40px;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(74, 111, 165, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 1.2rem;
  margin-right: 15px;
  flex-shrink: 0;
}

.contact-details h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.contact-details p {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

  .contact-form {
      background-color: white;
      padding: 40px;
      border-radius: 10px;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
      margin-top: 50px;
    }
    .form-title {
      font-size: 2rem;
      font-weight: 700;
      margin-bottom: 30px;
      color: #2c3e50;
      text-align: center;
    }
    .form-group { margin-bottom: 20px; }
    .form-label {
      display: block;
      margin-bottom: 8px;
      font-weight: 500;
      color: #2c3e50;
    }
    .form-control {
      width: 100%;
      padding: 12px 15px;
      border: 1px solid #ddd;
      border-radius: 5px;
      font-size: 1rem;
      transition: border-color 0.3s ease;
    }
    .form-control:focus { outline: none; border-color: #3498db; }
    textarea.form-control { resize: vertical; min-height: 120px; }
    .form-submit {
      display: inline-block;
      width: 100%;
      padding: 12px 30px;
      background: linear-gradient(to right, #3498db, #2ecc71);
      color: white;
      border: none;
      border-radius: 50px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      font-size: 1rem;
    }
    .form-submit:hover {
      transform: translateY(-3px);
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    }
    .form-message {
      margin-top: 15px;
      padding: 10px;
      border-radius: 4px;
      text-align: center;
    }
    .success-message {
      background-color: #d4edda;
      color: #155724;
      border: 1px solid #c3e6cb;
    }
    .error-message {
      background-color: #f8d7da;
      color: #721c24;
      border: 1px solid #f5c6cb;
    }
    .loading-message {
      background-color: #e2e3e5;
      color: #383d41;
      border: 1px solid #d6d8db;
    }
    .is-invalid { border-color: #dc3545 !important; }
    .header {
      text-align: center;
      margin-bottom: 30px;
    }

/* Footer */
.footer {
  background-color: var(--color-dark);
  color: white;
  padding: 60px 0 30px;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-logo {
  font-family: var(--font-secondary);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.social-link {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  transition: background-color var(--transition-fast),
    transform var(--transition-fast);
}

.social-link:hover {
  background-color: var(--color-accent);
  transform: translateY(-3px);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-nav-link {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
}

.footer-nav-link:hover {
  color: white;
}

.footer-divider {
  width: 100%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.1);
  margin-bottom: 20px;
}

.copyright {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

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

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

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Media Queries */
@media screen and (max-width: 992px) {
  .section {
    padding: 80px 0;
  }

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

  .about-container,
  .contact-container {
    flex-direction: column;
  }

  .about-image-container {
    margin-bottom: 30px;
  }

  .hero-image {
    width: 40%;
  }
}

@media screen and (max-width: 768px) {
  .section {
    padding: 60px 0;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: white;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right var(--transition-medium);
    box-shadow: var(--shadow-medium);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-item {
    margin-left: 0;
    margin-bottom: 20px;
  }

  .nav-link {
    color: var(--color-text);
  }

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

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

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

  .hero-image {
    display: none;
  }

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

@media screen and (max-width: 576px) {
  .section-title {
    font-size: 2rem;
  }

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

  .stats-container {
    flex-wrap: wrap;
    gap: 20px;
  }

  .stat-item {
    width: 45%;
  }
}
