 :root {
     --primary: #5C6BC0;
     --primary-light: #7986CB;
     --primary-bg: #E8EAF6;
     --border-light: #D1C4E9;
     --text: #2E2E30;
     --text-secondary: #5E5D60;
     --bg-light: #F8F9FA;
 }

 * {
     box-sizing: border-box;
     margin: 0;
     padding: 0;
 }

 body {
     font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
     color: var(--text);
     line-height: 1.6;
     background-color: #fff;
 }

 .container {
     width: 100%;
     max-width: 1200px;
     margin: 0 auto;
     padding: 0 20px;
 }


 .header {
     display: flex;
     justify-content: center;
     gap: 16px;
     padding: 24px 0;
     flex-wrap: wrap;
 }

 .header a {
     text-decoration: none;
     color: var(--text);
     padding: 10px 20px;
     border-radius: 24px;
     background: rgba(92, 107, 192, 0.08);
     font-weight: 600;
     border: 1px solid var(--border-light);
     transition: all 0.2s;
 }

 .header a:hover {
     background: linear-gradient(135deg, var(--primary), #8E99F3);
     color: white;
     transform: translateY(-2px);
     box-shadow: 0 6px 16px rgba(92, 107, 192, 0.2);
 }

 .hero {
     text-align: center;
     padding: 80px 0 60px;
 }

 .hero .image-wrapper {
     margin: 0 auto 40px;
     max-width: 440px;
 }

 .hero img {
     width: 100%;
     height: auto;
     border-radius: 20px;
     box-shadow: 0 10px 30px rgba(43, 42, 42, 0.08);
     transition: transform 0.4s;
 }

 .hero img:hover {
     transform: scale(1.03);
 }

 .hero h1 {
     font-size: clamp(1.8rem, 4.5vw, 2.8rem);
     max-width: 800px;
     margin: 0 auto;
     line-height: 1.35;
     font-weight: 700;
 }


 .section-title {
     text-align: center;
     margin: 60px 0 40px;
 }

 .section-title h2 {
     font-size: clamp(1.8rem, 5vw, 2.5rem);
     font-weight: 700;
 }

 .underline {
     width: 80px;
     height: 4px;
     background: linear-gradient(90deg, var(--primary), #A78BFA);
     margin: 12px auto;
     border-radius: 2px;
 }


 .services {
     padding: 90px 0 100px;
     background-color: #fafbff;
     position: relative;
 }

 .services::before {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 3px;
     background: linear-gradient(90deg, transparent, var(--primary, #5c6bc0), transparent);
 }

 .section-title .section-subtitle {
     margin: 12px auto 24px;
     max-width: 700px;
     font-size: 1.1rem;
     color: #4a5568;
     text-align: center;
     line-height: 1.5;
 }

 .services-grid {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
     gap: 36px;
     justify-items: center;
 }

 .service-card {
     width: 100%;
     max-width: 380px;
     min-height: 520px;
     background: white;
     border: 2px solid #e8ecf5;
     border-radius: 24px;
     box-shadow: 0 8px 24px rgba(92, 107, 192, 0.08);
     transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
     overflow: hidden;
     cursor: pointer;
     position: relative;
 }

 .service-card:hover {
     transform: translateY(-10px);
     box-shadow: 0 18px 48px rgba(92, 107, 192, 0.25);
     border-color: var(--primary, #5c6bc0);
 }

 .service-front {
     padding: 36px 32px 32px;
     height: 100%;
     display: flex;
     flex-direction: column;
     align-items: center;
     transition: opacity 0.3s, transform 0.4s;
 }

 .service-card:hover .service-front {
     opacity: 0;
     transform: scale(0.95);
     pointer-events: none;
 }

 .service-icon {
     width: 64px;
     height: 64px;
     background: #eef2ff;
     border-radius: 18px;
     display: flex;
     align-items: center;
     justify-content: center;
     margin-bottom: 20px;
     font-size: 28px;
     color: var(--primary, #5c6bc0);
 }

 .service-front h3 {
     font-size: 1.5rem;
     font-weight: 700;
     line-height: 1.3;
     margin: 0 0 16px;
     text-align: center;
     color: #1a202c;
 }

 .service-front .description {
     font-size: 1.05rem;
     line-height: 1.5;
     color: #4a5568;
     text-align: center;
     margin: 0 0 20px;
 }

 .service-front .price {
     font-size: 1.5rem;
     font-weight: 700;
     color: var(--primary, #5c6bc0);
     margin: 0 0 12px;
     text-align: center;
 }

 .service-front .subtitle {
     font-size: 0.85rem;
     color: #718096;
     text-align: center;
     margin: 0;
     font-style: italic;
 }

 
 .service-back {
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     padding: 36px 32px;
     display: flex;
     flex-direction: column;
     justify-content: space-between;
     background: white;
     opacity: 0;
     visibility: hidden;
     transform: translateY(20px);
     transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.165, 0.84, 0.44, 1), visibility 0.4s;
 }

 .service-card:hover .service-back {
     opacity: 1;
     visibility: visible;
     transform: translateY(0);
 }

 .service-back h4 {
     font-size: 1.2rem;
     font-weight: 700;
     margin: 0 0 18px;
     color: #1a202c;
 }

 .features-list {
     list-style: none;
     padding: 0;
     margin: 0 0 26px;
     flex: 1;
 }

 .features-list li {
     display: flex;
     align-items: flex-start;
     gap: 10px;
     margin-bottom: 12px;
     font-size: 1rem;
     color: #2d3748;
     line-height: 1.4;
 }

 .features-list li::before {
     content: "✓";
     color: var(--primary, #5c6bc0);
     font-weight: bold;
     flex-shrink: 0;
     margin-top: 3px;
 }

 .cta-button {
     display: inline-block;
     padding: 14px 28px;
     background: var(--primary, #5c6bc0);
     color: white;
     font-weight: 600;
     font-size: 1.05rem;
     border-radius: 14px;
     text-align: center;
     text-decoration: none;
     transition: all 0.3s ease;
     width: 100%;
     font-family: inherit;
     border: none;
     cursor: pointer;
     box-shadow: 0 4px 12px rgba(92, 107, 192, 0.3);
 }

 .cta-button:hover {
     background: #4a58aa;
     transform: translateY(-2px);
     box-shadow: 0 6px 16px rgba(92, 107, 192, 0.4);
 }

 .btn-more {
     display: inline-block;
     padding: 10px 24px;
     background: white;
     color: var(--primary);
     text-decoration: none;
     font-weight: 600;
     border: 2px solid var(--border-light);
     border-radius: 20px;
     transition: all 0.25s;
     margin-top: auto;
 }

 .btn-more:hover {
     background: var(--primary);
     color: white;
     border-color: var(--primary);
     transform: translateY(-2px);
 }


 @media (min-width: 769px) {
     .service-card:hover .service-detail {
         display: block;
     }
 }

 @media (max-width: 768px) {
     .service-card.expanded .service-detail {
         display: block;
     }
 }


 .projects-container {
     width: 100%;
     max-width: 1200px;
     margin: 0 auto;
     padding: 20px;
     box-sizing: border-box;
 }

 .project-row {
     display: flex;
     flex-wrap: wrap;
     gap: 24px;
     justify-content: center;
 }

 .project-card {
     position: relative;
     display: block;
     width: 100%;
     max-width: 650px;
     flex: 1 1 500px;
     text-decoration: none;
     color: inherit;
     border-radius: 12px;
     overflow: hidden;
     box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
     transition: transform 0.3s ease, box-shadow 0.3s ease;
 }

 .project-card:hover {
     transform: translateY(-6px);
     box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
 }

 .project-card img {
     width: 100%;
     height: auto;
     display: block;
     aspect-ratio: 16 / 9;
     object-fit: cover;
     transition: transform 0.5s ease;
 }

 .project-card:hover img {
     transform: scale(1.03);
 }

 .project-overlay {
     position: absolute;
     bottom: 0;
     left: 0;
     width: 100%;
     padding: 20px;
     background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent 70%);
     color: white;
     opacity: 0;
     transform: translateY(20px);
     transition: opacity 0.35s ease, transform 0.35s ease;
     pointer-events: none;
 }

 .project-card:hover .project-overlay {
     opacity: 1;
     transform: translateY(0);
 }

 .project-overlay h3 {
     margin: 0 0 8px;
     font-size: 1.3rem;
     font-weight: 700;
 }

 .project-overlay p {
     margin: 0 0 12px;
     font-size: 0.95rem;
     line-height: 1.4;
 }

 .project-tags {
     display: flex;
     flex-wrap: wrap;
     gap: 6px;
 }

 .tag {
     background: rgba(255, 255, 255, 0.2);
     padding: 4px 10px;
     border-radius: 20px;
     font-size: 0.75rem;
     font-weight: 600;
 }


 @media (max-width: 768px) {
     .project-row {
         gap: 16px;
     }

     .project-card {
         max-width: 100%;
         flex: 1 1 100%;
         min-height: 240px;
     }

     .project-overlay {

         opacity: 1;
         transform: translateY(0);
         background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent 60%);
         padding: 16px;
     }

     .project-overlay h3 {
         font-size: 1.2rem;
     }

     .project-overlay p {
         font-size: 0.9rem;
     }
 }



 .carousel-section {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
     gap: 40px;
     margin-top: 50px;
 }

 .carousel-card {
     background: white;
     border-radius: 20px;
     overflow: hidden;
     box-shadow: 0 4px 20px rgba(46, 46, 48, 0.08);
 }

 .carousel-image-wrapper {
     aspect-ratio: 16 / 9;
     overflow: hidden;
 }

 .carousel-image-wrapper img {
     width: 100%;
     height: 100%;
     object-fit: cover;
 }

 .carousel-description {
     padding: 24px;
     text-align: center;
 }

 .carousel-description h3 {
     font-size: 1.6rem;
     margin-bottom: 12px;
 }


 .contact {
     padding: 80px 0;
     background-color: var(--bg-light);
 }

 .contact-form {
     max-width: 500px;
     margin: 0 auto;
 }

 .form-group {
     margin-bottom: 20px;
 }

 .form-control {
     width: 100%;
     padding: 14px 20px;
     border: 1px solid #ddd;
     border-radius: 16px;
     font-size: 1rem;
     background: white;
 }

 .form-control::placeholder {
     color: #aaa;
 }

 .btn-submit {
     width: 100%;
     padding: 16px;
     background: linear-gradient(135deg, var(--primary), #8E99F3);
     color: white;
     border: none;
     border-radius: 20px;
     font-size: 1.1rem;
     font-weight: 600;
     cursor: pointer;
     transition: opacity 0.2s;
 }

 .btn-submit:hover {
     opacity: 0.9;
 }


 .footer {
     background: #f9f9f9;
     padding: 40px 0 30px;
     font-size: 0.95rem;
 }

 .footer-content {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
     gap: 30px;
     text-align: center;
 }

 .footer img {
     max-width: 180px;
     height: auto;
 }

 .footer a {
     color: var(--text);
     text-decoration: none;
 }

 .footer a:hover {
     text-decoration: underline;
 }

 @media (max-width: 768px) {
     .project-row {
         gap: 16px;
     }

     .project-card {
         max-width: 100%;
         flex: 1 1 100%;
         min-height: 240px;
     }

     .project-overlay {

         opacity: 1;
         transform: translateY(0);
         background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent 60%);
         padding: 16px;
     }

     .project-overlay h3 {
         font-size: 1.2rem;
     }

     .project-overlay p {
         font-size: 0.9rem;
     }
 }

 @media (max-width: 768px) {
     .hero {
         padding: 60px 0 40px;
     }

     .hero h1 {
         font-size: 2rem;
     }

     .project-card img {
         height: 220px;
     }

     .carousel-section {
         grid-template-columns: 1fr;
     }
 }

 @media (max-width: 480px) {
     .header {
         gap: 8px;
     }

     .header a {
         padding: 8px 16px;
         font-size: 0.95rem;
     }

     .hero h1 {
         font-size: 1.6rem;
     }

     .section-title h2 {
         font-size: 1.8rem;
     }
 }