/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-primary: #21E4E8;
  --color-secondary: #0F8B8D;
  --color-accent: #EC9A29;
  --color-accent1: #FFBA49;
  --color-accent2: #B61624;
  --color-bg: #F2FEFF;
  --color-white: #F2FEFF;
  --color-text: #131515;
  --color-header-bg: #393D3F;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Raleway", sans-serif;
  font-optical-sizing: auto;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2 {
  font-family: "Bungee Inline", sans-serif;
  font-weight: 600;
  line-height: 1.2;
}

h3, h4, h5, h6 {
  font-family: "Jersey 15", monospace;
  font-weight: 600;
  line-height: 1.2;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 400;
  background: linear-gradient(135deg, var(--color-accent1), var(--color-accent),  var(--color-white));
  background-size: 200% 200%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 4s ease infinite;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: var(--color-white);
  margin: 1rem 0;
}

.typing-text {
  font-family: "Silkscreen", sans-serif;
  display: inline-block;
  min-height: 1.7rem; /* Ensures consistent height even when empty */
  line-height: 1.2;
}

/* ===== ANIMATIONS ===== */
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

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

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

.fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
}

.fade-in-left {
  animation: fadeInLeft 0.8s ease forwards;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

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

/* ===== HEADER BAR ===== */
.header-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--color-header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(45, 212, 191, 0.2);
  z-index: 1000;
  transform: translateY(-100%);
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}

.header-bar.visible {
  transform: translateY(0);
  opacity: 1;
}

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

.header-logo .logo-link {
  font-family: "Bungee Inline", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

.header-logo .logo-link:hover {
  color: var(--color-white);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  position: relative;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s ease;
}

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

.header-social {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.social-link {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  transition: color 0.3s ease, transform 0.3s ease;
  text-decoration: none;
}

.social-link:hover {
  color: var(--color-primary);
  transform: translateY(-2px);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background: rgba(255, 255, 255, 0.8);
  margin: 3px 0;
  transition: 0.3s;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .header-content {
    padding: 1rem;
  }
  
  .header-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-header-bg);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  
  .header-nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .header-social {
    gap: 0.8rem;
  }
  
  .social-link {
    font-size: 1rem;
  }
  
  /* Hamburger animation */
  .mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(-45deg) translate(-6px, 6px);
  }
  
  .mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(45deg) translate(-6px, -6px);
  }
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  padding: 2rem;
}

.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><radialGradient id="a" cx="50%" cy="50%" r="50%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="3" fill="url(%23a)"/><circle cx="800" cy="400" r="2" fill="url(%23a)"/><circle cx="400" cy="600" r="2.5" fill="url(%23a)"/><circle cx="600" cy="800" r="2" fill="url(%23a)"/><circle cx="300" cy="900" r="1.5" fill="url(%23a)"/></svg>');
  animation: float 20s ease-in-out infinite;
}

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

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1000px;
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255, 255, 255, 0.8);
  margin: 2rem 0;
  animation: fadeInUp 1s ease 0.5s both;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-bg);
  text-decoration: none;
  border-radius: 50px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  animation: fadeInUp 1s ease 1s both;
  margin-top: 1rem;
}

.cta-button:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* ===== MAIN CONTENT ===== */
.main-content {
  background: var(--color-bg);
  position: relative;
  z-index: 1;
}

.section {
  padding: 2rem 0;
  max-width: 80%;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  text-align: center;
  margin-bottom: 3rem;
  color: var(--color-text);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.section-button {
    text-align: center;
    color: var(--color-text);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.contact-btn{
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-bg);
    text-decoration: none;
    text-align: center;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 1s both;
    margin-top: 1rem;
}

.contact-btn:hover {
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.85), rgba(8, 145, 178, 0.85));
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.section-title i {
  color: var(--color-primary);
  font-size: 0.8em;
}

/*.section-title::after {*/
/*    content: '';*/
/*    width: 80px; !* default for mobile *!*/
/*    height: 4px;*/
/*    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));*/
/*    display: block;*/
/*    margin: 1rem auto;*/
/*    border-radius: 2px;*/
/*}*/

/* Wider on desktop */
@media (min-width: 768px) {
    .section-title::after {
        width: 300px; /* or whatever you want */
    }
}

/* ===== ABOUT SECTION ===== */
.about {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  max-width: 400px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.about-image:hover img {
  transform: translateY(-10px);
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-header-bg);
}

.about-text p {
  margin-bottom: 1.5rem;
}

/* ===== PROJECTS SECTION ===== */
.projects {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

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

.project-card {
  background: var(--color-bg);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

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

.project-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  position: relative;
  overflow: hidden;
}

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

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

.project-content {
  padding: 1.5rem;
}

.project-title {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}
.ready-to-start{
  font-size: 1.8rem;
}

.project-description {
  color: var(--color-header-bg);
  margin-bottom: 1rem;
  line-height: 1.6;
}

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

.tech-tag {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: var(--color-bg);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

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

.project-link:hover {
  color: var(--color-secondary);
}

/* ===== SKILLS SECTION ===== */
.skills-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
}

/* Skills carousel container with arrow indicators */
.skills-carousel-wrapper {
  position: relative;
  overflow: hidden;
}

/* Scroll arrow indicators */
.skills-scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  border: none;
  border-radius: 50%;
  color: var(--color-bg);
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  opacity: 0.7;
}

.skills-scroll-arrow:hover {
  opacity: 1;
  background: var(--color-secondary);
  transform: translateY(-50%) scale(1.1);
}

.skills-scroll-arrow.left {
  left: 10px;
}

.skills-scroll-arrow.right {
  right: 10px;
}

/* Removed gradient fade indicators - user feedback */

.skills-category-title {
  font-size: 1.5rem;
  color: var(--color-text);
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 600;
}

.skills-grid {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden; /* Prevent vertical scrolling */
  scroll-behavior: smooth;
  gap: 1.5rem;
  margin-top: 1rem;
  padding: 1rem 0;
  /* Prevent vertical scrolling interference */
  touch-action: pan-x; /* Only allow horizontal panning on touch devices */
  overscroll-behavior-x: contain; /* Contain horizontal scroll */
  overscroll-behavior-y: none; /* Prevent vertical scroll chaining */
  /* Hide scrollbar but keep functionality */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* Internet Explorer 10+ */
}

.skills-grid::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}

.skill-item {
  text-align: center;
  padding: 1rem;
  background: var(--color-bg);
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  flex: 0 0 140px; /* Fixed width, don't grow or shrink */
  min-width: 140px;
}

.skill-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.skill-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-bg);
  font-size: 1.8rem;
}

.skill-name {
  font-weight: 600;
  color: var(--color-text);
  font-size: 0.9rem;
}

/* ===== PORTFOLIO LOGOS SECTION ===== */
.portfolio-logos {
  text-align: center;
}

.logos-description {
  color: var(--color-header-bg);
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.logo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.logo-row img {
  height: 60px;
  max-width: 200px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.8;
  transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
  border-radius: 5px;
}

.logo-row img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.logo-item-padding {
    padding-bottom: 20px;
}

/* Responsive adjustments for logos */
@media (max-width: 768px) {
  .logo-row {
    gap: 1.5rem;
    padding: 1.5rem 0;
  }
  
  .logo-row img {
    height: 50px;
    max-width: 150px;
  }
}

@media (max-width: 480px) {
  .logo-row {
    gap: 1rem;
  }
  
  .logo-row img {
    height: 40px;
    max-width: 120px;
  }
}

/* ===== CONTACT SECTION ===== */
.contact {
  background: var(--color-header-bg);
  color: var(--color-bg);
}

.contact .section-title i {
  color: var(--color-primary);
}

.contact .section-title {
  color: var(--color-bg);
}

.contact .section-title::after {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
}

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

.contact-info h3 {
  margin-bottom: 1rem;
  color: var(--color-bg);
}

.contact-info p {
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: var(--color-primary);
}

.contact-form {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 15px;
  backdrop-filter: blur(10px);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--color-bg);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-bg);
  font-size: 1rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.submit-btn {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: var(--color-bg);
  padding: 1rem 2rem;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(45, 212, 191, 0.3);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  padding: 2rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .hero {
    padding: 1rem;
  }
  
  .section {
    padding: 3rem 1rem;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .contact-links {
    flex-wrap: wrap;
    gap: 0.8rem;
  }
  
  .contact-link {
    font-size: 0.9rem;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .skills-grid {
    gap: 1rem;
  }
  
  .skill-item {
    flex: 0 0 120px;
    min-width: 120px;
  }
  
  .skills-content {
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-tagline {
    font-size: 1rem;
  }
  
  .cta-button {
    padding: 0.8rem 1.5rem;
  }
  
  .section {
    padding: 2rem 1rem;
  }
  
  .contact-info h3 {
    font-size: 1.3rem;
    line-height: 1.4;
  }
  
  .contact-info p {
    font-size: 0.95rem;
    line-height: 1.5;
  }
  
  .contact-links {
    flex-direction: column;
    gap: 0.7rem;
    align-items: flex-start;
  }
  
  .contact-link {
    font-size: 0.85rem;
    padding: 0.5rem 0;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
}

/* ===== EXPERIENCE SECTION ===== */
.experience {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.experience-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.experience-item {
  background: var(--color-bg);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border-left: 4px solid var(--color-primary);
  transition: all 0.3s ease;
}

.experience-item:hover {
  transform: translateX(10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.experience-title {
  font-size: 1.8rem;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.experience-period {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.experience-description {
  color: var(--color-header-bg);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.experience-description a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}

.experience-description a:hover {
  color: var(--color-secondary);
  text-decoration: underline;
}

.experience-highlights ul {
  list-style: none;
  padding-left: 0;
}

.experience-highlights li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--color-header-bg);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.experience-highlights li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
}

@media (max-width: 768px) {
  .experience-item {
    padding: 1.5rem;
    margin: 0 1rem;
  }
  
  .experience-item:hover {
    transform: translateX(5px);
  }
}

/* ===== SERVICES SECTION ===== */
.services {
}

.services-intro {
  text-align: center;
  margin: 2rem 0 3rem 0;
}

.services-subtitle {
  font-size: 2rem;
  color: var(--color-text);
  margin-bottom: 1rem;
  font-weight: 600;
}

.services-description {
  font-size: 1.1rem;
  color: var(--color-header-bg);
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto;
}

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

.service-card {
  background: var(--color-bg);
  padding: 2.5rem 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Different background colors for each service card */
.service-card-development {
  background: linear-gradient(135deg, #3B82F6, #1E40AF);
  color: var(--color-bg);
}

.service-card-freelance {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: var(--color-bg);
}

.service-card-consulting {
  background: linear-gradient(135deg, #8B5CF6, #7C3AED);
  color: var(--color-bg);
}

.service-card-development .service-title,
.service-card-freelance .service-title,
.service-card-consulting .service-title {
  color: var(--color-bg);
}

.service-card-development .service-description,
.service-card-freelance .service-description,
.service-card-consulting .service-description {
  color: rgba(255, 255, 255, 0.9);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
}

/* Remove top border for colored service cards */
.service-card-development::before,
.service-card-freelance::before,
.service-card-consulting::before {
  display: none;
}

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

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem auto;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-bg);
  font-size: 2rem;
}

/* Icon styling for colored service cards */
.service-card-development .service-icon,
.service-card-freelance .service-icon,
.service-card-consulting .service-icon {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: var(--color-bg);
}

.service-title {
  font-size: 1.8rem;
  color: var(--color-text);
  margin-bottom: 1rem;
  font-weight: 600;
}

.service-description {
  color: #4a5568;
  line-height: 1.7;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .service-card {
    padding: 2rem 1.5rem;
  }
  
  .services-subtitle {
    font-size: 1.5rem;
  }
  
  .services-description {
    font-size: 1rem;
  }
}

/* ===== RECOMMENDATIONS SECTION ===== */
.recommendations {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
}

.recommendations-carousel {
  margin-top: 3rem;
  position: relative;
}

.carousel-container {
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  height: 420px;
  position: relative;
}

.carousel-wrapper {
  display: flex;
  transition: transform 0.4s ease;
  will-change: transform;
  height: 420px;
}

.recommendation-card {
  min-width: 100%;
  max-width: 100%;
  background: var(--color-bg);
  padding: 2.5rem;
  box-sizing: border-box;
  flex-shrink: 0;
  overflow: hidden;
  height: 420px;
  overflow-y: auto;
}

.recommendation-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.profile-link {
  text-decoration: none;
  flex-shrink: 0;
}

.profile-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid transparent;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  padding: 2px;
  transition: all 0.3s ease;
}

.profile-link:hover .profile-image {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(45, 212, 191, 0.3);
}

.recommendation-meta {
  flex: 1;
}

.recommender-name {
  font-family: "Jersey 15", sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  margin-bottom: 0.5rem;
  display: block;
  transition: color 0.3s ease;
}

.recommender-name:hover {
  color: var(--color-primary);
}

.recommender-title {
  color: var(--color-header-bg);
  font-size: 1rem;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  font-weight: 500;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.recommendation-date {
  color: var(--color-secondary);
  font-size: 0.9rem;
  margin: 0;
  font-style: italic;
}

.recommendation-content {
  line-height: 1.7;
  color: var(--color-header-bg);
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

.recommendation-content p {
  margin-bottom: 1rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.recommendation-content p:last-child {
  margin-bottom: 0;
}

.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
  padding: 0 1rem;
}

.carousel-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.carousel-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(45, 212, 191, 0.4);
}

.carousel-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: scale(1);
  box-shadow: none;
}

.carousel-indicators {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #cbd5e0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  transform: scale(1.2);
}

.indicator:hover {
  background: #a0aec0;
}

.indicator.active:hover {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
}

@media (max-width: 768px) {
  .recommendation-card {
    padding: 2rem 1.5rem;
  }
  
  .recommendation-header {
    gap: 1rem;
  }
  
  .profile-image {
    width: 60px;
    height: 60px;
  }
  
  .recommender-name {
    font-size: 1.2rem;
  }
  
  .recommender-title {
    font-size: 0.9rem;
  }
  
  .carousel-nav {
    padding: 0;
  }
  
  .carousel-btn {
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }
}