:root {
  --primary-dark: #032d32;
  --primary-medium: #003337;
  --primary-blue: #004e53;
  --accent-teal: #006a71;
  --accent-light: #48a4a7;
  --secondary-aqua: #4bb0b3;
  --secondary-light: #52d1d6;
  --highlight-lime: #bbd82b;
  --highlight-yellow: #d4f531;
  --light-cream: #f2efe7;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: sans-serif;
  line-height: 1.6;
  color: var(--primary-dark);
  overflow-x: hidden;
}

/* Layout - Navbar */
.navbar {
  background: linear-gradient(
    135deg,
    var(--primary-dark),
    var(--primary-medium)
  );
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--light-cream) !important;
}

.navbar-nav .nav-link {
  color: var(--light-cream) !important;
  font-weight: 500;
  margin: 0 10px;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--highlight-lime) !important;
}

/* Layout - Hero Section */
.hero {
  background: linear-gradient(
    135deg,
    var(--primary-dark) 0%,
    var(--primary-medium) 50%,
    var(--accent-teal) 100%
  );
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="%23ffffff" opacity="0.05"/><circle cx="80" cy="50" r="1" fill="%23ffffff" opacity="0.03"/><circle cx="40" cy="80" r="1" fill="%23ffffff" opacity="0.04"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  color: var(--light-cream);
  z-index: 2;
  position: relative;
  width: 100%;
  text-align: left;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(45deg, var(--light-cream), var(--highlight-lime));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  width: 100%;
}

.hero .lead {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Layout - Sections */
.section {
  padding: 100px 0;
  position: relative;
}

.section:nth-child(even) {
  background: linear-gradient(
    45deg,
    var(--light-cream) 0%,
    rgba(96, 219, 223, 0.1) 100%
  );
}

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

.section h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(
    45deg,
    var(--highlight-lime),
    var(--highlight-yellow)
  );
  border-radius: 2px;
}

/* Layout - Footer */
.footer {
  background: linear-gradient(
    135deg,
    var(--primary-dark) 0%,
    var(--primary-medium) 50%,
    var(--accent-teal) 100%
  );
  color: var(--light-cream);
  padding: 3rem 0 1rem;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="%23ffffff" opacity="0.05"/><circle cx="80" cy="50" r="1" fill="%23ffffff" opacity="0.03"/><circle cx="40" cy="80" r="1" fill="%23ffffff" opacity="0.04"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.footer h4 {
  background: linear-gradient(45deg, var(--light-cream), var(--highlight-lime));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.footer .container {
  position: relative;
  z-index: 2;
}

/* Components - Buttons */
.btn-primary {
  background: linear-gradient(
    45deg,
    var(--highlight-lime),
    var(--highlight-yellow)
  );
  border: none;
  color: var(--primary-dark);
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 50px;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
  box-shadow: 0 10px 25px rgba(187, 216, 43, 0.3);
  background: linear-gradient(
    45deg,
    var(--highlight-yellow),
    var(--highlight-lime)
  );
}

/* Components - Cards */
.card {
  border: none;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

.card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-header {
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-light));
  color: white;
  border: none;
  padding: 1.5rem;
}

.card-body {
  padding: 2rem;
}

/* Components - Flip Cards */
.flip-card {
  background-color: transparent;
  perspective: 1000px;
  height: 400px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

.flip-card-back {
  transform: rotateY(180deg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.flip-arrow {
  position: absolute;
  bottom: 15px;
  right: 15px;
  color: var(--primary-dark);
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.flip-arrow:hover {
  transform: scale(1.2);
}

/* Components - Skills */
.skills-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.skills-list li {
  background: linear-gradient(
    45deg,
    var(--secondary-aqua),
    var(--secondary-light)
  );
  color: var(--primary-dark);
  padding: 8px 16px;
  border-radius: 25px;
  margin: 8px 0;
  font-weight: 500;
  transition: background 0.3s ease;
}

.skills-list li:hover {
  background: linear-gradient(
    45deg,
    var(--highlight-lime),
    var(--highlight-yellow)
  );
}

/* Components - Experience Cards */
.experience-card {
  background: linear-gradient(
    135deg,
    rgba(72, 164, 167, 0.1),
    rgba(84, 191, 195, 0.1)
  );
  border-left: 4px solid var(--accent-light);
  margin-bottom: 2rem;
  transition: border-left-color 0.3s ease;
}

.experience-card:hover {
  border-left-color: var(--highlight-lime);
}

.experience-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(45deg, var(--accent-teal), var(--accent-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Components - Forms */
.form-control {
  border: 2px solid var(--secondary-aqua);
  border-radius: 10px;
  padding: 12px 15px;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--highlight-lime);
  box-shadow: 0 0 0 0.2rem rgba(187, 216, 43, 0.25);
}

.form-label {
  font-weight: 600;
  color: #495057;
  margin-bottom: 8px;
  font-size: 16px;
}

.custom-input {
  border: 1px solid var(--accent-teal);
  border-radius: 10px;
  padding: 15px 10px;
  font-size: 16px;
  background-color: #f8f9fa;
  transition: all 0.3s ease;
  box-shadow: none;
}

.custom-input:focus {
  border-color: var(--accent-teal);
  background-color: #ffffff;
  box-shadow: 0 0 0 0.2rem rgba(32, 201, 151, 0.15);
  outline: none;
}

.custom-input::placeholder {
  color: #adb5bd;
  font-style: italic;
}

.custom-submit-btn {
  background: linear-gradient(
    45deg,
    var(--highlight-lime),
    var(--highlight-yellow)
  );
  border: none;
  color: var(--primary-dark);
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 50px;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.custom-submit-btn:hover {
  box-shadow: 0 10px 25px rgba(187, 216, 43, 0.3);
  background: linear-gradient(
    45deg,
    var(--highlight-yellow),
    var(--highlight-lime)
  );
}

.custom-submit-btn:active {
  transform: translateY(0px);
}

/* Components - Social Links */
.social-links a {
  display: inline-block;
  width: 50px;
  height: 50px;
  background: var(--accent-teal);
  color: white;
  text-align: center;
  line-height: 50px;
  border-radius: 50%;
  margin: 0 10px;
  transition: background 0.3s ease, color 0.3s ease;
  text-decoration: none;
}

.social-links a:hover {
  background: var(--highlight-lime);
  color: var(--primary-dark);
}

/* Utilities */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Media Queries */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero .lead {
    font-size: 1.1rem;
  }

  .section {
    padding: 60px 0;
  }

  .section h2 {
    font-size: 2rem;
  }

  .custom-input {
    border: 1px solid var(--accent-teal);
    padding: 12px 16px;
    font-size: 14px;
    border-radius: 8px;
  }

  .custom-submit-btn {
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 50px;
  }

  .footer .row .col-lg-6 {
    text-align: center !important;
    margin-bottom: 2rem;
  }

  .footer .col-lg-6:last-child {
    margin-bottom: 0;
  }

  .footer .text-lg-end {
    text-align: center !important;
  }

  .footer .text-center {
    text-align: center !important;
  }
}
