/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.5;
    background-color: rgb(239, 246, 255);
    color: rgb(30, 41, 59);
    scroll-behavior: smooth;
}

.htflow-wrapper {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Nightlamp Effect */
.nightlamp-effect {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 10;
    background: radial-gradient(600px circle at 50% 50%, rgba(59, 130, 246, 0.1), transparent 40%);
}

/* Ambient Background Effects */
.ambient-background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    z-index: 1;
}

.ambient-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(48px);
}

.ambient-circle-1 {
    top: 0;
    left: 25%;
    width: 384px;
    height: 384px;
    background-color: rgb(147, 197, 253);
    animation: ambient-pulse 4s ease-in-out infinite;
}

.ambient-circle-2 {
    bottom: 0;
    right: 25%;
    width: 384px;
    height: 384px;
    background-color: rgb(96, 165, 250);
    animation: ambient-pulse 4s ease-in-out infinite;
    animation-delay: 1s;
}

@keyframes ambient-pulse {
    0%, 100% {
        opacity: 0.05;
        transform: scale(1);
    }
    50% {
        opacity: 0.15;
        transform: scale(1.1);
    }
}

/* Navigation */
.navigation {
    position: relative;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 24px;
    padding-right: 24px;
    padding-top: 16px;
    padding-bottom: 16px;
}

.nav-logo {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, rgb(37, 99, 235), rgb(29, 78, 216));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.nav-buttons {
    display: flex;
}

.recruitment-button,
.home-button {
    background: linear-gradient(135deg, rgb(37, 99, 235), rgb(29, 78, 216));
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition-property: all;
    transition-duration: 300ms;
    transition-timing-function: ease;
    white-space: nowrap;
    padding-left: 24px;
    padding-right: 24px;
    padding-top: 12px;
    padding-bottom: 12px;
    font-size: 14px;
}

.recruitment-button:hover,
.home-button:hover {
    background: linear-gradient(135deg, rgb(29, 78, 216), rgb(30, 64, 175));
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: scale(1.05);
}

.recruitment-text-short {
    display: none;
}

@media (max-width: 767px) {
    .recruitment-button {
        padding-left: 12px;
        padding-right: 12px;
        padding-top: 8px;
        padding-bottom: 8px;
        font-size: 12px;
    }
    
    .recruitment-text-full {
        display: none;
    }
    
    .recruitment-text-short {
        display: inline;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 24px;
    padding-right: 24px;
    padding-top: 80px;
    padding-bottom: 80px;
    z-index: 20;
}

.hero-container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    opacity: 0;
    transform: translateY(40px);
    transition-property: all;
    transition-duration: 1000ms;
    transition-timing-function: ease;
}

.hero-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.2;
    color: rgb(15, 23, 42);
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-title-text {
    color: rgb(15, 23, 42);
}

.hero-highlight {
    color: rgb(37, 99, 235);
}

.hero-subtitle {
    font-size: 24px;
    color: rgb(71, 85, 105);
    margin-bottom: 48px;
    max-width: 1024px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    justify-content: center;
}

.cta-button {
    background: linear-gradient(135deg, rgb(37, 99, 235), rgb(29, 78, 216));
    color: white;
    border: none;
    border-radius: 12px;
    padding-left: 32px;
    padding-right: 32px;
    padding-top: 24px;
    padding-bottom: 24px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition-property: all;
    transition-duration: 300ms;
    transition-timing-function: ease;
    height: 56px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cta-button:hover {
    background: linear-gradient(135deg, rgb(29, 78, 216), rgb(30, 64, 175));
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: scale(1.05);
}

.cta-icon {
    font-size: 20px;
}

.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.arrow-down {
    font-size: 24px;
    color: rgb(148, 163, 184);
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40%, 43% {
        transform: translateX(-50%) translateY(-30px);
    }
    70% {
        transform: translateX(-50%) translateY(-15px);
    }
    90% {
        transform: translateX(-50%) translateY(-4px);
    }
}

/* Responsive Hero */
@media (max-width: 991px) {
    .hero-title {
        font-size: 40px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 32px;
        min-height: 120px;
    }
    
    .hero-subtitle {
        font-size: 18px;
        margin-bottom: 32px;
    }
    
    .cta-button {
        padding-left: 24px;
        padding-right: 24px;
        padding-top: 16px;
        padding-bottom: 16px;
        font-size: 16px;
    }
}

@media (max-width: 479px) {
    .hero-title {
        font-size: 24px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
}

/* Section Common Styles */
.section-container {
    max-width: 1792px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    color: rgb(15, 23, 42);
}

.section-subtitle {
    font-size: 20px;
    color: rgb(71, 85, 105);
}

@media (max-width: 991px) {
    .section-title {
        font-size: 28px;
    }
    
    .section-subtitle {
        font-size: 18px;
    }
}

@media (max-width: 479px) {
    .section-title {
        font-size: 24px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
}

/* Services Section */
.services-section {
    padding-top: 80px;
    padding-bottom: 80px;
    position: relative;
    z-index: 20;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 32px;
}

.service-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    border: 1px solid rgb(191, 219, 254);
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition-property: all;
    transition-duration: 500ms;
    transition-timing-function: ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.9);
}

.service-content {
    padding: 32px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-icon {
    margin-bottom: 24px;
    font-size: 48px;
    color: rgb(37, 99, 235);
    transition-property: all;
    transition-duration: 300ms;
    transition-timing-function: ease;
}

.service-card:hover .service-icon {
    color: rgb(29, 78, 216);
    transform: scale(1.1);
}

.service-title {
    font-size: 16px;
    font-weight: 600;
    color: rgb(15, 23, 42);
    margin-bottom: 16px;
    transition-property: color;
    transition-duration: 300ms;
    transition-timing-function: ease;
}

.service-card:hover .service-title {
    color: rgb(29, 78, 216);
}

.service-description {
    color: rgb(71, 85, 105);
    margin-bottom: 24px;
    line-height: 1.6;
    font-size: 14px;
    flex-grow: 1;
    text-align: left;
}

.service-goal {
    margin-top: auto;
}

.service-goal-text {
    color: rgb(37, 99, 235);
    font-weight: 500;
    font-size: 14px;
    text-align: left;
}

@media (max-width: 991px) {
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-content {
        padding: 24px;
    }
}

/* Tech Stack Section */
.tech-stack-section {
    padding-top: 80px;
    padding-bottom: 80px;
    position: relative;
    z-index: 20;
}

.tech-stack-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.tech-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 48px;
}

.tech-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tech-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    transition-property: transform;
    transition-duration: 300ms;
    transition-timing-function: ease;
}

.tech-logo:hover {
    transform: scale(1.1);
}

.tech-logo-large {
    width: 96px;
    height: 96px;
}

.tech-logo-instantly {
    filter: contrast(1.2) brightness(0.9);
}

@media (max-width: 991px) {
    .tech-logo {
        width: 70px;
        height: 70px;
    }
    
    .tech-logo-large {
        width: 84px;
        height: 84px;
    }
    
    .tech-row {
        gap: 32px;
    }
}

@media (max-width: 767px) {
    .tech-logo {
        width: 60px;
        height: 60px;
    }
    
    .tech-logo-large {
        width: 72px;
        height: 72px;
    }
    
    .tech-row {
        gap: 24px;
    }
}

/* Testimonials Section */
.testimonials-section {
    padding-top: 80px;
    padding-bottom: 80px;
    position: relative;
    z-index: 20;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
    max-width: 1536px;
    margin-left: auto;
    margin-right: auto;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid rgb(191, 219, 254);
    border-radius: 8px;
    overflow: hidden;
    transition-property: all;
    transition-duration: 300ms;
    transition-timing-function: ease;
}

.testimonial-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-4px);
}

.testimonial-video {
    position: relative;
    width: 100%;
    height: 192px;
}

.video-iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-info {
    padding: 16px;
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.company-logo {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    margin-right: 12px;
}

.testimonial-name {
    font-weight: 600;
    color: rgb(15, 23, 42);
    font-size: 14px;
}

.testimonial-company {
    font-size: 14px;
    color: rgb(71, 85, 105);
}

.testimonial-context {
    font-size: 14px;
    color: rgb(55, 65, 81);
    font-style: italic;
}

@media (max-width: 991px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .testimonial-video {
        height: 224px;
    }
}

@media (max-width: 767px) {
    .testimonial-video {
        height: 256px;
    }
}

@media (max-width: 479px) {
    .testimonial-video {
        height: 200px;
    }
}

/* Case Studies Section */
.case-studies-section {
    padding-top: 80px;
    padding-bottom: 80px;
    position: relative;
    z-index: 20;
}

/* Responsive Grid Container */
.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* ✅ responsive columns */
    gap: 32px;
    max-width: 1200px;               /* ✅ keeps layout centered */
    margin: 0 auto;                  /* ✅ centers the grid */
    padding: 0 16px;                 /* ✅ adds padding on smaller screens */
}

/* Optional modifier – you can delete if not needed */
.recruitment-case-studies {
    grid-template-columns: 1fr 1fr;
}

/* Case Study Card */
.case-study-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    border: 1px solid rgb(191, 219, 254);
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
                0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition-property: all;
    transition-duration: 300ms;
    transition-timing-function: ease;
    display: flex;
    flex-direction: column;
    width: 100%;              /* ✅ responsive width */
    max-width: 450px;         /* ✅ keeps cards from stretching too wide */
    margin: 0 auto;           /* ✅ centers the card inside grid column */
}

.case-study-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
                0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.case-study-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.case-study-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.case-study-category {
    font-size: 12px;
    font-weight: 700;
    padding-left: 8px;
    padding-right: 8px;
    padding-top: 4px;
    padding-bottom: 4px;
    border-radius: 8px;
    background-color: rgb(219, 234, 254);
    color: rgb(30, 64, 175);
}
.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* ✅ exactly two cards per row */
    gap: 44px;
    max-width: 1000px;                    /* ✅ optional: limits container width */
    margin: 0 auto;
    padding: 0 20px;
}


.case-study-title {
    font-size: 18px;
    font-weight: 700;
    color: rgb(15, 23, 42);
    margin-bottom: 12px;
    line-height: 1.3;
}

.case-study-summary {
    color: rgb(71, 85, 105);
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.6;
    flex-grow: 1;
}

.case-study-highlights {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 24px;
}


.highlight-item {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: rgb(15, 23, 42);
    font-weight: 700;
}

.highlight-item::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: rgb(148, 163, 184);
    border-radius: 50%;
    margin-right: 8px;
    flex-shrink: 0;
}

.case-study-button {
    background: linear-gradient(135deg, rgb(96, 165, 250), rgb(29, 78, 216));
    color: white;
    border: none;
    border-radius: 8px;
    padding-left: 12px;
    padding-right: 12px;
    padding-top: 4px;
    padding-bottom: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition-property: all;
    transition-duration: 300ms;
    transition-timing-function: ease;
    width: fit-content;
    margin-top: auto;
}

.case-study-button:hover {
    background: linear-gradient(135deg, rgb(29, 78, 216), rgb(30, 64, 175));
}

@media (max-width: 991px) {
    .case-studies-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 767px) {
    .case-study-content {
        padding: 20px;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
}

.modal-overlay.active {
    display: block;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 1024px;
    max-height: 80vh;
    overflow-y: auto;
    background-color: white;
    border: 1px solid rgb(226, 232, 240);
    border-radius: 8px;
    z-index: 1001;
    display: none;
}

.modal.active {
    display: block;
}

.modal-content {
    width: 100%;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 24px;
    border-bottom: 1px solid rgb(226, 232, 240);
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    color: rgb(15, 23, 42);
    text-align: left;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: rgb(71, 85, 105);
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.modal-section-title {
    font-weight: 600;
    color: rgb(15, 23, 42);
    margin-bottom: 8px;
}

.modal-section-text {
    color: rgb(71, 85, 105);
    font-size: 14px;
    line-height: 1.6;
}

.modal-results-list {
    padding-left: 0;
    list-style: none;
}

.modal-results-list li {
    display: flex;
    align-items: flex-start;
    color: rgb(15, 23, 42);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.modal-results-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: rgb(148, 163, 184);
    border-radius: 50%;
    margin-right: 8px;
    margin-top: 8px;
    flex-shrink: 0;
}

.modal-testimonial {
    background-color: rgb(248, 250, 252);
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid rgb(37, 99, 235);
}

.modal-testimonial p {
    color: rgb(71, 85, 105);
    font-size: 14px;
    font-style: italic;
    line-height: 1.6;
    margin: 0;
}

/* CTA Section */
.cta-section {
    padding-top: 80px;
    padding-bottom: 80px;
    position: relative;
    z-index: 20;
}

.cta-container {
    max-width: 1024px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    padding-left: 24px;
    padding-right: 24px;
}

.cta-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 24px;
    color: rgb(15, 23, 42);
}

.cta-subtitle {
    font-size: 20px;
    margin-bottom: 32px;
    color: rgb(71, 85, 105);
}

@media (max-width: 991px) {
    .cta-title {
        font-size: 32px;
    }
    
    .cta-subtitle {
        font-size: 18px;
    }
}

@media (max-width: 479px) {
    .cta-title {
        font-size: 24px;
    }
    
    .cta-subtitle {
        font-size: 16px;
    }
}
.tech-stack-section .section-title {
    text-align: center;
}
.cta-container {
    text-align: center;
}

.cta-button {
    margin: 0 auto;
    display: inline-flex;
}

