/* ============================================
   MAIN RESPONSIVE
   ============================================ */
@media (max-width: 768px) {

  html,
  body {
    width: 100%;
    max-width: 100% !important;
    overflow-x: hidden;
  }

  #cursor-dot,
  #cursor-ring,
  #cursor-label {
    display: none !important;
  }

  ::-webkit-scrollbar,
  ::-webkit-scrollbar-track,
  ::-webkit-scrollbar-thumb {
    display: none;
  }
}

@media (max-width: 1024px) {

  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  #cursor-dot,
  #cursor-ring,
  #cursor-label {
    display: none !important;
  }

  ::-webkit-scrollbar,
  ::-webkit-scrollbar-track,
  ::-webkit-scrollbar-thumb {
    display: none;
  }
}

/* ============================================
   GENERAL RESPONSIVE STYLES
   ============================================ */

/* Section Headers */
@media (max-width: 768px) {
  .section-header {
    margin-bottom: 3rem;
    text-align: center;
  }

  .section-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
  }

  .section-title::after {
    width: 60px;
    height: 3px;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Buttons */
@media (max-width: 768px) {
  .btn {
    padding: 14px 24px;
    font-size: 0.875rem;
  }

  .btn-group {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .btn-group .btn {
    width: 100%;
    text-align: center;
  }
}

/* Container */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
}

/* ============================================
   NAVBAR RESPONSIVE STYLES
   ============================================ */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
  .navbar-container {
    padding: 0 24px;
  }

  .nav-link {
    padding: 8px 14px;
    font-size: 0.85rem;
  }

  .nav-link span {
    display: inline;
  }

  .social-link {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .navbar {
    display: none;
  }

  .mobile-navbar {
    display: block;
  }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
  .mobile-nav-container {
    padding: 6px 16px;
  }

  .mobile-nav-link {
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
  }

  .mobile-dropdown-menu {
    min-width: 140px;
  }
}

/* Extra Small Mobile (max-width: 360px) */
@media (max-width: 360px) {
  .mobile-nav-link {
    width: 40px;
    height: 40px;
    font-size: 1.15rem;
  }
}

/* Desktop - Add padding for fixed navbar */
@media (min-width: 769px) {
  body {
    padding-top: var(--navbar-height);
  }
}

@media (max-width: 599px) {

  /* Hide top navbar on mobile */
  .navbar-wrapper {
    display: none;
  }

  /* Show bottom nav */
  .mobile-nav {
    display: flex;
  }

  .page-demo {
    padding-top: 32px;
    padding-bottom: 100px;
  }
}

/* ============================================
   HERO SECTION RESPONSIVE STYLES
   ============================================ */
@media (max-width: 768px) {

  .hero-circle,
  .hero-description,
  .hero-education,
  .age-card,
  .age-content,
  .hero-experience {
    display: none !important;
  }

  .hero-avatar {
    width: 450px;
    height: auto;
    left: 9.5rem;
    bottom: -5rem;
  }

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

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

  .hero-cta-left,
  .hero-cta-right {
    display: none;
  }
}

/* Hero Signature Responsive */
@media (max-width: 1024px) {
  .hero-signature {
    width: 120px;
    bottom: 15px;
    right: 15px;
  }
}

@media (max-width: 768px) {
  .hero-signature {
    width: 140px;
    bottom: 12px;
    right: 12px;
  }
}

@media (max-width: 480px) {
  .hero-signature {
    width: 120px;
    bottom: 10px;
    right: 10px;
  }
}

/* ============================================
   TABLET RESPONSIVE — hero section
   Targets: 768px – 1024px
   ============================================ */

@media (min-width: 768px) and (max-width: 1024px) {

  /* ── Big heading ── */
  .hero-heading {
    font-size: 110px;
    top: 60px;
    left: 16%;
    transform: translateX(-50%);
    white-space: normal;
    letter-spacing: -2px;
  }

  /* ── Subtitle ── */
  .hero-subtitle {
    font-size: 18px;
    top: 200px;
    left: 32%;
    transform: translateX(-50%);
    white-space: normal;
  }

  /* ── Circle background ── */
  .hero-circle {
    width: 550px;
    height: 550px;
    bottom: -18rem;
    left: 52%;
  }

  /* ── Avatar ── */
  .hero-avatar {
    width: 420px;
    height: 420px;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
  }

  .hero-avatar img {
    width: 110%;
    height: 115%;
  }

  .hero-avatar:hover {
    transform: translateX(-50%) translateY(-8px);
  }

  /* ── Left description block ── */
  .hero-description {
    top: auto;
    bottom: 12rem;
    left: 28px;
    transform: none;
    max-width: 200px;
  }

  .hero-description p {
    font-size: 13px;
    margin-bottom: 12px;
  }

  .hero-description .clients-label {
    font-size: 14px;
  }

  /* ── Education block ── */
  .hero-education {
    left: 30px;
    bottom: 22%;
    max-width: 260px;
  }

  .hero-education .education-title {
    font-size: 1.1rem;
  }

  .hero-education .education-list {
    gap: 12px;
  }

  .hero-education .education-item {
    padding-left: 10px;
  }

  .hero-education .education-date {
    font-size: 0.7rem;
    min-width: 52px;
  }

  .hero-education .education-content h3 {
    font-size: 0.82rem;
  }

  .hero-education .education-content p {
    font-size: 0.75rem;
  }

  /* ── Age card ── */
  .age-card {
    position: absolute;
    bottom: 10% !important;
    right: 150px;
    width: 120px;
    height: 120px;
  }

  .progress-ring {
    width: 100%;
    height: 100%;
  }

  .age-number {
    font-size: 2rem;
  }

  .age-label {
    font-size: 0.6rem;
    letter-spacing: 1px;
  }

  /* ── Experience block ── */
  .hero-experience {
    position: absolute;
    bottom: 10%;
    right: 24px;
    transform: none;
    text-align: right;
  }

  .hero-experience .exp-number {
    font-size: 42px;
  }

  .hero-experience .exp-label {
    font-size: 14px;
    letter-spacing: 1px;
  }

  /* ── Signature ── */
  .hero-signature {
    bottom: 18%;
    right: 32%;
    width: 100px;
  }

  /* ── CTA buttons ── */
  .hero-cta-left,
  .hero-cta-right {
    bottom: 2rem;
  }

  .hero-cta-left {
    left: 28px;
    transform: none;
  }

  .hero-cta-right {
    right: 28px;
    transform: none;
  }

  .hero-cta-left button,
  .hero-cta-right button {
    padding: 14px 32px;
    font-size: 13px;
  }
}

/* ============================================
   ABOUT SECTION RESPONSIVE STYLES
   ============================================ */
@media (max-width: 1024px) {
  .about {
    margin: 0;
    border-radius: 0 0 20px 20px;
  }

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

  .about-image-frame {
    width: 320px;
    height: 400px;
  }

  .about-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-image-wrapper,
  .about-image-frame,
  .about-badge-float,
  .about-exp-tag,
  .section-subtitle {
    display: none !important;
  }

  .about-details {
    grid-template-columns: 1fr;
  }

  .about-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .about-stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .about-stat-card {
    padding: 1.5rem 1rem;
  }

  .about-stat-number {
    font-size: 2rem;
  }

  .about-stat-label {
    font-size: 0.65rem;
    letter-spacing: 1px;
  }

  .about-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .about-actions .btn-hero {
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .skill-item {
    width: 60px;
    height: 60px;
  }
}

/* Tablet ONLY (768px – 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .about-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 400px;
    gap: 0.75rem;
    margin-top: 1.75rem;
  }

  .about-actions .demo-wrapper {
    width: 100%;
  }

  .about-actions .download-cv-btn,
  .about-actions .btn-hero {
    width: 100%;
    padding: 16px 24px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
  }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .cv-modal {
    padding: 36px 28px 32px;
    max-width: 90vw;
  }

  .cv-modal-title {
    font-size: 1.55rem;
  }
}

@media (max-width: 480px) {
  .cv-modal {
    padding: 32px 22px 28px;
    max-width: 95vw;
    border-radius: 18px;
  }

  .cv-modal-title {
    font-size: 1.35rem;
  }

  .cv-download-btn {
    padding: 14px 16px;
    gap: 12px;
  }

  .btn-icon {
    width: 38px;
    height: 38px;
  }
}

/* ============================================
   ACCESSIBILITY - PREFERRED COLOR SCHEME & REDUCED MOTION
   ============================================ */

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --navbar-bg: #000000;
    --navbar-border: #ffffff;
    --dropdown-bg: #000000;
    --dropdown-border: #ffffff;
  }
}

/* Reduced Motion - Navbar */
@media (prefers-reduced-motion: reduce) {

  .navbar,
  .mobile-navbar,
  .dropdown-menu,
  .mobile-dropdown-menu,
  .nav-link,
  .social-link,
  .mobile-nav-link {
    transition: none;
    animation: none;
  }

  .dropdown-menu li,
  .mobile-dropdown-menu li {
    opacity: 1;
    transform: none;
  }

  /* Carousel - Improve mobile performance */
  .carousel-track {
    animation-duration: 60s !important;
    /* Slower on mobile for readability */
  }

  .carousel-track-icon.animate {
    animation: none;
  }

  .carousel-fade-up-icon {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .carousel-card-icon {
    transition: none;
  }

  /* Carousel text sizing on mobile */
  .text-carousel .carousel-track span {
    font-size: clamp(1.75rem, 6vw, 3rem) !important;
  }

  .text-carousel .separator {
    margin: 0 clamp(10px, 2vw, 20px) !important;
    font-size: clamp(0.75rem, 1.5vw, 1.25rem) !important;
  }

  /* Fade gradient on mobile */
  .text-carousel::before,
  .text-carousel::after {
    width: 60px !important;
  }

  /* CV Modal */
  .cv-modal-overlay {
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .cv-modal {
    transition: all 0.3s ease;
  }

  .cv-download-btn,
  .cv-modal-close {
    transition: none;
  }
}

@media (max-width: 640px) {
  .carousel-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
  }

  .carousel-card-icon svg {
    width: 26px;
    height: 26px;
  }

  .carousel-track-icon {
    gap: 1.25rem;
  }

  .carousel-wrapper-icon::before,
  .carousel-wrapper-icon::after {
    width: 80px;
  }
}

/* ============================================
   PROJECTS SECTION RESPONSIVE STYLES
   ============================================ */
@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .projects-filter {
    gap: 0.5rem;
  }

  .filter-btn {
    padding: 8px 18px;
    font-size: 0.75rem;
  }
}

/* ============================================
   CERTIFICATE GALLERY RESPONSIVE STYLES
   ============================================ */
@media (max-width: 1024px) {
  .certificates-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .certificates-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .certificate-image {
    height: 200px;
  }

  .certificate-info {
    padding: 15px;
  }

  .certificate-title {
    font-size: 16px;
  }

  .certificate-desc {
    font-size: 13px;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-caption {
    bottom: 60px;
    padding: 0 20px;
  }

  .lightbox-caption h3 {
    font-size: 18px;
  }

  .lightbox-caption p {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .projects-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .projects-cta .btn-hero {
    text-align: center;
    justify-content: center;
  }
}

/* ============================================
   SERVICE SECTION RESPONSIVE STYLES
   ============================================ */

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .services {
    padding: 80px 0;
  }

  .services .section-title {
    font-size: 2.25rem;
  }

  .services .section-subtitle {
    font-size: 1rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .service-card {
    padding: 28px;
  }

  .services-cta-banner {
    flex-direction: column;
    text-align: center;
    padding: 2.5rem 2rem;
  }

  .services-cta-content p {
    max-width: 100%;
  }

  .services-cta-banner .cta-button {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .services {
    padding: 60px 0;
  }

  .services .section-title {
    font-size: 1.75rem;
  }

  .service-card {
    padding: 24px;
  }

  .service-title {
    font-size: 1.25rem;
  }

  /* Service Tags - Responsive */
  .service-tags {
    gap: 6px;
  }

  .service-tag {
    font-size: 0.6875rem;
    padding: 5px 10px;
  }

  .service-icon-wrap {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
  }

  .services-cta-banner {
    padding: 2rem 1.5rem;
  }

  .services-cta-content h3 {
    font-size: 1.3rem;
  }
}

/* ============================================
   CAROUSEL TEXT RESPONSIVE STYLES
   ============================================ */
@media (max-width: 768px) {
  .carousel-item .text {
    font-size: 1rem;
  }

  .carousel-track.row-2 .carousel-item .text {
    font-size: 2rem;
  }

  .carousel-item {
    padding: 0.5rem 1.25rem;
    gap: 1rem;
  }

  .carousel-wrapper::before,
  .carousel-wrapper::after {
    width: 60px;
  }
}

/* ============================================
   TESTIMONIALS SECTION RESPONSIVE STYLES
   ============================================ */
@media (max-width: 1024px) {

  .phone-mockup {
    width: 200px;
    top: 60%;
  }

  .testimonial-card-1 img,
  .testimonial-card-2 img,
  .testimonial-card-3 img {
    width: 170px;
  }

  .client-card-1 img,
  .client-card-2 img,
  .client-card-3 img,
  .client-card-4 img {
    width: 230px;
  }

  /* Geser lebih mendekat ke tengah */
  .testimonial-card-1 {
    left: 33%;
  }

  .testimonial-card-2 {
    right: 33%;
  }

  .testimonial-card-3 {
    left: 33%;
  }

  .client-card-1,
  .client-card-2 {
    left: 2%;
  }

  .client-card-3,
  .client-card-4 {
    right: 2%;
  }
}

@media (max-width: 768px) {
  .phone-mockup {
    display: none !important;
  }

  .testimonial-card-1 img,
  .testimonial-card-2 img,
  .testimonial-card-3 img {
    width: 150px;
  }

  .client-card-1 img,
  .client-card-2 img,
  .client-card-3 img,
  .client-card-4 img {
    width: 200px;
  }

  /* Geser lebih mendekat ke tengah */
  .testimonial-card-1 {
    left: 25%;
    top: 4rem;
  }

  .testimonial-card-2 {
    left: 25%;
    top: 8rem;
  }

  .testimonial-card-3 {
    left: 25%;
    top: 12rem;
  }

  .client-card-1 {
    left: 20%;
    top: 16rem;
  }

  .client-card-2 {
    left: 20%;
    top: 22rem;
  }

  .client-card-3 {
    left: 20%;
    top: 28rem;
  }

  .client-card-4 {
    left: 20%;
    top: 34rem;
  }
}

/* ============================================
   RESPONSIVE TESTIMONIAL GRID LAYOUT
   (Hidden on Desktop, Shown on Tablet/Mobile)
   ============================================ */

/* Hide responsive grid on desktop by default */
.testimonial-responsive {
  display: none;
}

/* Tablet and Mobile Styles */
@media (max-width: 1023px) {

  /* Hide the desktop testimonial layout */
  .testimonial-section {
    height: auto;
    min-height: auto;
    padding: 80px 20px;
  }

  /* Hide desktop elements */
  .testimonial-desktop {
    display: none;
  }

  .phone-mockup,
  .testimonial-card-1,
  .testimonial-card-2,
  .testimonial-card-3,
  .client-card-1,
  .client-card-2,
  .client-card-3,
  .client-card-4 {
    display: none !important;
  }

  /* Show responsive grid */
  .testimonial-responsive {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
    padding-top: 20px;
  }

  /* Responsive Testimonial Card Styles */
  .testimonial-card-responsive {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .testimonial-card-responsive:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  }

  .testimonial-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid var(--primary-color);
  }

  .testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .testimonial-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .testimonial-name {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
  }

  .testimonial-text {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
  }

  .testimonial-rating {
    display: flex;
    gap: 4px;
    margin-top: 4px;
  }

  .testimonial-rating i {
    color: #FFC107;
    font-size: 0.85rem;
  }
}

/* Mobile (Single Column) */
@media (max-width: 640px) {
  .testimonial-responsive {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
  }

  .testimonial-card-responsive {
    padding: 20px;
    border-radius: 14px;
  }

  .testimonial-avatar {
    width: 48px;
    height: 48px;
  }

  .testimonial-name {
    font-size: 0.95rem;
  }

  .testimonial-text {
    font-size: 0.85rem;
  }
}

/* ============================================
   DESKTOP: HIDE RESPONSIVE GRID
   ============================================ */
@media (min-width: 1024px) {
  .testimonial-responsive {
    display: none !important;
  }
}

/* ============================================
   TESTIMONIAL SUBMISSION FORM RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .testimonial-submission {
    margin-top: 2rem;
    padding: 1.5rem;
  }

  .submission-title {
    font-size: 1.35rem;
  }

  .submission-subtitle {
    font-size: 0.9rem;
  }

  .testimonial-form .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .star-rating label {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .testimonial-submission {
    margin-top: 1.5rem;
    padding: 1.25rem;
    border-radius: 12px;
  }

  .submission-title {
    font-size: 1.2rem;
  }

  .testimonial-form .form-input,
  .testimonial-form .form-textarea {
    padding: 0.75rem 0.875rem 0.75rem 2.5rem;
    font-size: 0.9rem;
  }

  .btn-testimonial-submit {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }
}

/* ============================================
   FAQ RESPONSIVE STYLES
   ============================================ */

@media (max-width: 768px) {
  .testimonial-card {
    padding: 2rem 1.75rem;
  }

  .testimonial-text {
    font-size: 0.95rem;
  }

  .testimonials-stats {
    gap: 1.5rem;
    padding: 1.5rem 1.5rem;
  }

  .testimonial-stat-number {
    font-size: 1.6rem;
  }

  .testimonial-stat-divider {
    height: 36px;
  }

  .testimonial-nav {
    width: 38px;
    height: 38px;
    font-size: 0.95rem;
  }

  .testimonial-nav--prev {
    left: 0.5rem;
  }

  .testimonial-nav--next {
    right: 0.5rem;
  }
}

@media (max-width: 480px) {
  .testimonial-card {
    padding: 1.75rem 1.25rem;
  }

  .testimonials-stats {
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.5rem 1.25rem;
  }

  .testimonial-stat-divider {
    width: 48px;
    height: 1px;
  }

  .testimonial-nav {
    display: none;
  }
}

/* ============================================
   FAQ RESPONSIVE STYLES - Premium Design
   ============================================ */
@media (max-width: 1024px) {
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .faq .section-title {
    font-size: 2.25rem;
  }

  .faq-cta-banner {
    padding: 2.5rem;
  }
}

@media (max-width: 768px) {
  .faq {
    padding: 3.5rem 1.5rem;
    margin: 1rem;
    border-radius: 20px;
  }

  .faq-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 2rem;
  }

  .faq .section-header {
    margin-bottom: 2.5rem;
  }

  .faq .section-title {
    font-size: 2rem;
  }

  .faq .section-subtitle {
    font-size: 1rem;
  }

  .faq-question {
    padding: 1.25rem 1.5rem;
  }

  .faq-question-text {
    font-size: 1rem;
  }

  .faq-answer-content {
    padding: 0 1.5rem 1.5rem;
  }

  .faq-answer-content p {
    font-size: 0.9rem;
  }

  .faq-cta-banner {
    flex-direction: column;
    padding: 2rem 1.5rem;
    text-align: center;
    gap: 1.5rem;
    border-radius: 16px;
  }

  .faq-cta-content h3 {
    font-size: 1.5rem;
  }

  .faq-cta-content p {
    max-width: 100%;
  }

  .faq-cta-banner .btn-hero {
    width: 100%;
    padding: 1rem 2rem;
  }

  .bg-image-faq {
    width: 250px;
    right: -30px;
    opacity: 0.3;
  }
}

@media (max-width: 480px) {
  .faq {
    padding: 3rem 1rem;
    margin: 0.75rem;
    border-radius: 16px;
  }

  .faq .section-title {
    font-size: 1.75rem;
  }

  .faq .section-subtitle {
    font-size: 0.95rem;
  }

  .faq-grid {
    gap: 1rem;
  }

  .faq-item {
    border-radius: 12px;
  }

  .faq-question {
    padding: 1.25rem;
  }

  .faq-question-text {
    font-size: 0.95rem;
  }

  .faq-icon {
    width: 32px;
    height: 32px;
  }

  .faq-icon i {
    font-size: 0.75rem;
  }

  .faq-cta-banner {
    margin-top: 3rem;
    padding: 1.75rem 1.25rem;
    border-radius: 14px;
  }

  .faq-cta-content h3 {
    font-size: 1.3rem;
  }

  .faq-cta-content p {
    font-size: 0.9rem;
  }
}

/* ============================================
   CONTACT SECTION RESPONSIVE STYLES
   ============================================ */

/* Tablet - Reduce spacing but keep 2 columns */
@media (max-width: 1024px) {
  .contact {
    padding: 80px 20px;
    border-radius: 40px 40px 0 0;
  }

  .contact-grid {
    gap: 36px;
  }

  .contact-title {
    font-size: 2.75rem;
  }

  .contact-form-glass {
    padding: 32px;
  }

  .contact-info-card {
    padding: 20px;
  }

  .contact-info-icon {
    width: 44px;
    height: 44px;
  }

  .contact-info-icon svg {
    width: 20px;
    height: 20px;
  }
}

/* Mobile - Stack vertically */
@media (max-width: 768px) {
  .contact {
    padding: 60px 16px;
    border-radius: 30px 30px 0 0;
  }

  .contact-header {
    margin-bottom: 36px;
  }

  .contact-label {
    font-size: 0.7rem;
    padding: 6px 16px;
  }

  .contact-title {
    font-size: 2.25rem;
  }

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

  /* Stack to single column */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Form wrapper adjustments */
  .contact-form-wrapper {
    order: 1;
    /* Form first */
  }

  .contact-form-glass {
    padding: 28px;
    border-radius: 18px;
  }

  /* Contact info adjustments */
  .contact-info-wrapper {
    order: 2;
    /* Info below form */
  }

  .contact-info-cards {
    gap: 12px;
  }

  .contact-info-card {
    padding: 18px;
    border-radius: 14px;
  }

  .contact-info-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
  }

  .contact-info-label {
    font-size: 0.7rem;
  }

  .contact-info-value {
    font-size: 0.95rem;
  }

  .contact-btn {
    width: 100%;
    padding: 16px 28px;
  }

  .social-link {
    width: 38px;
    height: 38px;
  }

  .social-link svg {
    width: 18px;
    height: 18px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .contact {
    padding: 50px 14px;
    border-radius: 24px 24px 0 0;
  }

  .contact-header {
    margin-bottom: 28px;
  }

  .contact-label {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    margin-bottom: 16px;
    padding: 6px 14px;
  }

  .contact-title {
    font-size: 1.875rem;
  }

  .contact-subtitle {
    font-size: 0.9375rem;
  }

  .contact-form-glass {
    padding: 24px 20px;
    border-radius: 16px;
  }

  .form-input {
    padding: 14px 16px;
    font-size: 0.9375rem;
    border-radius: 10px;
  }

  .form-textarea {
    min-height: 130px;
  }

  .form-label {
    font-size: 0.85rem;
  }

  .contact-btn {
    padding: 14px 24px;
    font-size: 0.9375rem;
    border-radius: 999px;
  }

  .contact-info-card {
    padding: 16px;
    border-radius: 14px;
    gap: 14px;
  }

  .contact-info-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .contact-info-icon svg {
    width: 18px;
    height: 18px;
  }

  .contact-info-label {
    font-size: 0.65rem;
    margin-bottom: 4px;
  }

  .contact-info-value {
    font-size: 0.875rem;
  }

  .contact-social-links {
    gap: 8px;
  }

  .social-link {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }

  .social-link svg {
    width: 16px;
    height: 16px;
  }
}

/* ============================================
   FOOTER RESPONSIVE STYLES
   ============================================ */
@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .footer-tagline {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .footer {
    padding: 3rem 0 0;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-brand {
    flex-direction: column;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* ============================================
   MODAL RESPONSIVE STYLES
   ============================================ */


/* ============================================
   CTA SECTION RESPONSIVE STYLES
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
  .cta-card {
    padding: 50px;
    gap: 30px;
  }

  .cta-heading {
    font-size: 34px;
  }

  .cta-phone-mockup {
    width: 240px;
  }

  .cta-phone-wrapper {
    right: 20px;
  }

  .cta-phone-blob {
    width: 240px;
    height: 240px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .cta-section {
    padding: 40px 16px 60px;
  }

  .cta-card {
    flex-direction: column;
    text-align: center;
    padding: 40px 24px;
    gap: 280px;
    position: relative;
  }

  .cta-content {
    max-width: 100%;
    order: 1;
  }

  .cta-heading {
    font-size: 28px;
  }

  .cta-description {
    font-size: 16px;
  }

  .cta-buttons {
    justify-content: center;
    gap: 12px;
  }

  .store-btn {
    padding: 12px 18px;
    flex: 1;
    max-width: 200px;
    justify-content: center;
  }

  .store-btn i {
    font-size: 24px;
  }

  .store-btn-name {
    font-size: 14px;
  }

  .cta-phone-wrapper {
    position: relative;
    right: auto;
    top: 20px;
    transform: none;
    order: 2;
    margin-top: -260px;
  }

  .cta-phone-mockup {
    width: 200px;
    margin: 0 auto;
    display: block;
  }

  .cta-phone-blob {
    width: 200px;
    height: 200px;
    left: 50%;
    transform: translateX(-50%);
  }

  .cta-blob {
    width: 200px;
    height: 200px;
    right: -30px;
    top: -50px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .cta-card {
    padding: 32px 20px;
    gap: 240px;
    border-radius: 24px;
  }

  .cta-heading {
    font-size: 24px;
    margin-bottom: 16px;
  }

  .cta-description {
    font-size: 15px;
    margin-bottom: 24px;
  }

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

  .store-btn {
    max-width: 100%;
    width: 100%;
    justify-content: center;
  }

  .cta-phone-wrapper {
    margin-top: -220px;
  }

  .cta-phone-mockup {
    width: 180px;
  }

  .cta-phone-blob {
    width: 180px;
    height: 180px;
  }
}

/* Responsive Overlay */
@media (max-width: 1200px) {
  .project-overlay-prev {
    left: 15px;
  }

  .project-overlay-next {
    right: 15px;
  }

  .project-overlay-nav {
    width: 48px;
    height: 48px;
  }

  .project-overlay-keyboard-hint {
    display: none;
  }
}

@media (max-width: 992px) {
  .project-overlay-container {
    width: 95%;
  }

  .project-overlay-title {
    font-size: 1.4rem;
  }

  .project-overlay-desc {
    font-size: 0.9rem;
  }

  .project-overlay-controls {
    top: -55px;
  }

  .project-overlay-close,
  .project-overlay-zoom,
  .project-overlay-fullscreen {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 576px) {
  .project-overlay-container {
    width: 100%;
    height: 100%;
    max-height: 100vh;
  }

  .project-overlay-close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    position: fixed;
    z-index: 100;
    background: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }

  .project-overlay-controls {
    top: 10px;
    right: 60px;
    position: fixed;
    z-index: 100;
  }

  .project-overlay-zoom,
  .project-overlay-fullscreen {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }

  .project-overlay-nav {
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.4);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }

  .project-overlay-prev {
    left: 10px;
  }

  .project-overlay-next {
    right: 10px;
  }

  .project-overlay-image-wrapper {
    max-height: 55vh;
    border-radius: 0;
  }

  .project-overlay-image {
    max-height: 55vh;
  }

  .project-overlay-info {
    padding: 1.25rem 1rem;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.9) 100%);
  }

  .project-overlay-title {
    font-size: 1.2rem;
  }

  .project-overlay-desc {
    font-size: 0.85rem;
  }

  .project-overlay-tags {
    gap: 0.4rem;
  }

  .project-overlay-tags .project-tag {
    padding: 0.25rem 0.65rem;
    font-size: 0.65rem;
  }

  .project-overlay-links {
    gap: 0.75rem;
  }

  .project-overlay-links .project-link {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  .project-overlay-counter {
    bottom: auto;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.4rem 0.75rem;
    border-radius: 20px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    font-size: 0.8rem;
  }

  .project-overlay-counter::before,
  .project-overlay-counter::after {
    display: none;
  }
}

/* ============================================
   CV Download Modal Responsive Styles
   ============================================ */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
  .cv-modal {
    width: 90%;
    max-width: 420px;
    padding: 28px;
  }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .cv-modal {
    width: 95%;
    max-width: none;
    padding: 24px;
    border-radius: 16px;
  }

  .cv-modal-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
  }

  .cv-modal-desc {
    font-size: 0.875rem;
    margin-bottom: 24px;
  }

  .cv-download-options {
    gap: 12px;
  }

  .cv-download-btn {
    padding: 12px 20px;
    font-size: 0.95rem;
  }

  .cv-modal-close {
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
  }

  .cv-modal-close svg {
    width: 16px;
    height: 16px;
  }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
  .cv-modal {
    padding: 20px;
    border-radius: 14px;
  }

  .cv-modal-title {
    font-size: 1.35rem;
  }

  .cv-modal-desc {
    font-size: 0.8rem;
    margin-bottom: 20px;
  }

  .cv-download-btn {
    padding: 14px 16px;
    font-size: 0.9rem;
    gap: 8px;
  }

  .cv-download-btn svg {
    width: 18px;
    height: 18px;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .professional-carousel {
    padding: 40px 0;
  }

  .skill-card {
    width: 100px;
    height: 130px;
  }

  .skill-card-front img {
    width: 45px;
    height: 45px;
  }

  .skill-card-back span {
    font-size: 8px;
  }

  .skill-card-back p {
    font-size: 6px;
  }

  .carousel-track {
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .skill-card {
    width: 80px;
    height: 110px;
  }

  .skill-card-front img {
    width: 35px;
    height: 35px;
  }

  .carousel-track {
    gap: 15px;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .inf-carousel-cta {
    right: 20px;
  }

  .inf-carousel-cta-btn {
    padding: 10px 20px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .inf-carousel-cta {
    position: relative;
    right: auto;
    text-align: center;
    padding: 10px 0;
    width: 100%;
  }

  .inf-carousel-stage {
    flex-direction: column;
  }
}

/* ============================================
   RESPONSIVE — TABLET  (max-width: 1024px)
   ============================================ */
@media (max-width: 1024px) {

  /* Slightly tighten the grid pattern on smaller viewports */
  .transition-layer::before {
    background-size: 24px 24px;
  }

  /* Scale down transition text */
  .transition-text {
    font-size: 1.6rem;
    letter-spacing: 0.22em;
  }

  /* Loader fits comfortably */
  .transition-loader {
    width: 52px;
    height: 52px;
    margin: 16px auto 0;
  }

  /* Slightly smaller dots */
  .transition-loader-dot {
    width: 9px;
    height: 9px;
  }

  .transition-loader-dot:nth-child(2) {
    margin: 0 4px;
  }

  /* Reduce particle size & quantity feel by making them smaller */
  .particle {
    width: 3px;
    height: 3px;
  }

  /* Shorten curtain animation for snappier feel on tablets */
  .transition-top,
  .transition-bottom {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  }

  /* Exit: keep symmetry with enter timing */
  .page-transition.exit .transition-top,
  .page-transition.exit .transition-bottom {
    transition-delay: 0.25s;
  }

  /* Page enter slightly quicker */
  .page-enter {
    animation-duration: 0.5s;
  }
}


/* ============================================
   RESPONSIVE — MOBILE  (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {

  /* Coarser grid to remain visible on small screens */
  .transition-layer::before {
    background-size: 20px 20px;
  }

  /* Compact transition text */
  .transition-text {
    font-size: 1.2rem;
    letter-spacing: 0.15em;
    /* Prevent long words from overflowing narrow screens */
    word-break: break-word;
    white-space: normal;
    max-width: 80vw;
  }

  /* Slightly narrower content wrapper so it doesn't clip edges */
  .transition-content {
    width: 90%;
    /* Re-center after width constraint */
    left: 50%;
    transform: translate(-50%, -50%);
  }

  /* Smaller loader */
  .transition-loader {
    width: 44px;
    height: 44px;
    margin: 12px auto 0;
  }

  .transition-loader-dot {
    width: 8px;
    height: 8px;
  }

  .transition-loader-dot:nth-child(2) {
    margin: 0 4px;
  }

  /* Shrink particles so they don't feel overwhelming */
  .particle {
    width: 2px;
    height: 2px;
    /* Slow animation slightly to reduce jitter on low-power devices */
    animation-duration: 3.5s;
  }

  /* Hide particles 8 & 9 — too many on a narrow canvas */
  .particle:nth-child(8),
  .particle:nth-child(9) {
    display: none;
  }

  /* Faster curtain — mobile users expect snappy feedback */
  .transition-top,
  .transition-bottom {
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .page-transition.exit .transition-top,
  .page-transition.exit .transition-bottom {
    transition-delay: 0.2s;
  }

  /* Diagonal lines: thin them on mobile */
  .transition-diagonal::before,
  .transition-diagonal::after {
    height: 1px;
  }

  /* Slightly softer enter for mobile */
  .page-enter {
    animation-duration: 0.45s;
  }
}


/* ============================================
   RESPONSIVE — SMALL MOBILE  (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {

  /* Even finer grid for very small screens */
  .transition-layer::before {
    background-size: 16px 16px;
  }

  /* Minimal text on tiny screens */
  .transition-text {
    font-size: 1rem;
    letter-spacing: 0.1em;
    max-width: 85vw;
  }

  .transition-content {
    width: 92%;
  }

  /* Compact loader */
  .transition-loader {
    width: 36px;
    height: 36px;
    margin: 10px auto 0;
  }

  .transition-loader-dot {
    width: 7px;
    height: 7px;
  }

  .transition-loader-dot:nth-child(2) {
    margin: 0 3px;
  }

  /* Only keep 6 particles on very small screens */
  .particle:nth-child(7),
  .particle:nth-child(8),
  .particle:nth-child(9) {
    display: none;
  }

  /* Reduce motion on small low-end devices */
  @media (prefers-reduced-motion: reduce) {

    .transition-layer::before,
    .particle,
    .transition-diagonal::before,
    .transition-diagonal::after,
    .transition-loader-dot {
      animation: none;
    }

    .transition-top,
    .transition-bottom {
      transition: transform 0.3s ease;
    }

    .page-enter {
      animation: none;
      opacity: 1;
      transform: none;
    }
  }
}