
.roles {
    color: #9CA3AF;
    font-size: 0.875rem;
    line-height: 1.25rem;
}


/* Testimonials Section */
.testimonial-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 4.5em;
    transition: all 0.3s ease;
}

.testimonial-text.expanded {
    -webkit-line-clamp: unset;
    max-height: 1000px;
}

.testimonial-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font-size: 0.875rem;
    color: #3B82F6;
    margin-bottom: 8px;
}

.testimonial-toggle:hover {
    opacity: 0.8;
}

.testimonial-toggle .toggle-icon {
    transition: transform 0.3s ease;
}

.testimonial-text.expanded + .testimonial-toggle .toggle-icon {
    transform: rotate(180deg);
}
/* Testimonial image styles */
#testimonials .rounded-full {
    min-width: 48px;
}
/* Positioning section styles */
section.py-16.bg-white {
    max-height: 750px;
    display: flex;
    align-items: center;
    overflow: hidden;
}
section.py-16.bg-white .flex {
    align-items: center;
    justify-content: center;
    gap: 3rem;
}
section.py-16.bg-white .rounded-xl {
    max-width: 350px;
    margin: 0;
}
section.py-16.bg-white .md\:w-1\/2 {
    width: 45%;
}
@media (max-width: 768px) {
    section.py-16.bg-white {
        max-height: 750px;
        padding: 2rem 1rem;
    }
    section.py-16.bg-white .flex {
        flex-direction: column;
        gap: 1.5rem;
    }
    section.py-16.bg-white .md\:w-1\/2 {
        width: 100%;
    }
    section.py-16.bg-white .rounded-xl {
        max-width: 280px;
        margin: 0 auto;
    }
    section.py-16.bg-white .px-8 {
        padding-left: 0;
        padding-right: 0;
    }
    section.py-16.bg-white h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
}
@media (max-width: 640px) {
    section.py-16.bg-white {
        max-height: 650px;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    section.py-16.bg-white .flex {
        gap: 1rem;
    }
    section.py-16.bg-white h1 {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }
    section.py-16.bg-white .space-y-6 {
        margin-top: 1rem;
    }
    section.py-16.bg-white .rounded-xl {
        max-width: 220px;
    }
}
/* Positioning section content constraints */
section.py-16.bg-white .max-w-5xl {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

section.py-16.bg-white .w-full.md\:w-1\/2 {
    padding: 0 1rem;
}

/* Video section styles */
section.relative {
    overflow-x: hidden;
}
section.relative iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Mobile video fixes */
@media (max-width: 640px) {
    section.relative {
        height: auto;
        aspect-ratio: 16/9;
        position: relative;
    }
section.relative .mt-\[25\%\] {
        position: absolute;
        bottom: 20%;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        padding: 0 1rem;
    }
section.relative iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
    section.relative .mt-\[25\%\] {
        bottom: 10%;
    }
}
/* Mobile-first responsive adjustments */
@media (max-width: 640px) {
    #works {
        padding: 1.5rem 0;
    }
    
    #works .grid > div {
        margin-bottom: 0.75rem;
        padding: 1rem;
    }
    
    #works h2 {
        margin-bottom: 1rem;
    }
}

@media (max-width: 640px) {
    section {
        padding: 2rem 1rem;
    }
    
    .h-16 {
        height: 4rem;
    }
    
    .text-3xl {
        font-size: 1.75rem;
    }
    
    .text-xl {
        font-size: 1.25rem;
    }
    
    .px-4 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .py-16 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    .grid-cols-1 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    
    .flex-col {
        flex-direction: column;
    }
    
    .space-y-6 > * + * {
        margin-top: 1.5rem;
    }
    /* Stack cards vertically on mobile */
    .grid.md\:grid-cols-3 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .grid.md\:grid-cols-3 > div {
        width: 100%;
        max-width: none;
        min-width: 0;
    }
}
/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom video controls */
video::-webkit-media-controls {
    display: none !important;
}
/* Experience section styles */
#additional-experience {
    transition: all 0.3s ease;
}

#toggle-expand {
    transition: all 0.3s ease;
}

#toggle-expand:hover {
    transform: translateY(-2px);
}
/* Mobile menu animation */
#mobile-menu {
    transition: all 0.3s ease;
    max-height: 0;
    overflow: hidden;
}

#mobile-menu:not(.hidden) {
    max-height: 300px;
}
/* Creative Works Section */
#work {
    background-color: #f3f4f6;
}

#work .grid > div {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#work .grid > div:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

#work .grid > div img {
    border-radius: 0.75rem 0.75rem 0 0;
}

#work .grid > div .p-6 {
    border-radius: 0 0 0.75rem 0.75rem;
}
/* Value section with icons */
#about .flex.items-start {
    transition: all 0.3s ease;
}

#about .flex.items-start:hover {
    transform: translateY(-3px);
}

#about .flex.items-start .w-12 {
    transition: all 0.3s ease;
}

#about .flex.items-start:hover .w-12 {
    background-color: rgba(59, 130, 246, 0.2);
}
/* Form input focus styles */
input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}
.blur-video {
  filter: blur(35px) saturate(1.2);
  transform: scale(1.35);
  opacity: 0.9;
}

/* Floating CTA Button */
.floating-cta {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  background: #1f2937;
  color: white;
  border: none;
  border-radius: 9999px;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.floating-cta.visible {
  opacity: 1;
  transform: translateY(0);
}

.floating-cta.hidden {
  display: none;
}
.floating-cta:hover {
  background: #374151;
}

.floating-cta i {
  width: 16px;
  height: 16px;
}

@media (max-width: 640px) {
  .floating-cta {
    right: 1rem;
    bottom: 1rem;
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
  }
}
#mobile-menu a:not(:last-child) {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}


/* Mobile compact v2 (gentler) */
@media (max-width: 768px) {

  /* Keep type close to original; just a slight nudge */
  html { font-size: 15px; }
  body { line-height: 1.45; }

  /* Sections: moderate reduction (usually the main whitespace source) */
  section {
    padding-top: 1.1rem;
    padding-bottom: 1.1rem;
  }

  /* Container side padding: small reduction */
  .container, .wrapper, main {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Cards/blocks: reduce padding + margins a bit, not aggressively */
  .card, .testimonial, .project, .job, .skill, .panel {
    padding: 0.85rem !important;
    margin-bottom: 0.85rem !important;
    border-radius: 14px;
  }

  /* Headings: only tighten margins, keep sizes */
  h1 { margin: 0 0 .55rem; line-height: 1.15; }
  h2 { margin: 1rem 0 .5rem; }
  h3 { margin: .8rem 0 .4rem; }

  /* Paragraph + list spacing: small trims */
  p { margin: 0 0 .6rem; }
  ul, ol { margin: .4rem 0 .75rem 1.1rem; }
  li { margin: 0 0 .32rem; }

  /* Layout gaps */
  .grid, .stack, .columns { gap: .85rem !important; }

  /* Images: only cap if they’re causing tall cards */
  img {
    max-height: 240px;
    object-fit: cover;
  }
}

