/* Codriva Website - main.css */

/* Inter Font Faces */
@font-face {
    font-family: 'Inter';
    src: url('../assets/fonts/inter/Inter-Regular.otf') format('otf');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../assets/fonts/inter/Inter-Medium.otf') format('otf');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../assets/fonts/inter/Inter-SemiBold.otf') format('otf');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../assets/fonts/inter/Inter-Bold.otf') format('otf');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Poppins Font Faces */
@font-face {
    font-family: 'Poppins';
    src: url('../assets/fonts/poppins/Poppins-Regular.ttf') format('ttf');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../assets/fonts/poppins/Poppins-Medium.ttf') format('ttf');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../assets/fonts/poppins/Poppins-SemiBold.ttf') format('ttf');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../assets/fonts/poppins/Poppins-Bold.ttf') format('ttf');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Colors */
    --primary-color: #4169E1;
    --secondary-color: #333333;
    --text-color: #666666;
    --light-bg: #3966FF;
    --dark-bg: #041855;
    --white: #FFFFFF;
    --transition: all 0.3s ease;
    --btn-hover: #09B5FF;
    --dark-txt-color: #1E1E1E;
    --mid-light-primary-color: #042896;

    /* Typography */
    --body-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --heading-font: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Other Variables */
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    line-height: 1.15;
    color: var(--text-color);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--secondary-color);
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-blue);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

.btn {
    display: inline-block;
    padding: 15px 25px;
    border-radius: var(--border-radius);
    font-size: 1.5rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: none;
}

.btn-shadow {
    box-shadow: -1px 12px 4px 0px rgba(0, 0, 0, 0.25);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--btn-hover);
    color: var(--white);
}

.btn-mid-light-primary {
    background-color: var(--mid-light-primary-color);
    color: var(--white);
}

.btn-mid-light-primary:hover {
    background-color: var(--btn-hover);
    color: var(--white);
}

.btn-light {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-light:hover {
    background-color: var(--btn-hover);
    color: var(--primary-color);
}

/* Container and Layout Utilities */
.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Full width section utility */
.section-full-width {
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
    position: relative;
}

.section-full-width .container {
    position: relative;
    z-index: 1;
}

/* Background utilities */
.bg-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.bg-light {
    background-color: var(--light-bg);
}

.bg-white {
    background-color: var(--white);
}

.bg-dark {
    background-color: var(--dark-bg);
}

.bg-mid-light {
    background-color: var(--mid-light-primary-color);
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

.main-nav.sticky {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
    position: relative;
}

.logo img {
    height: 40px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

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

.nav-button {
    background-color: var(--primary-color);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 30px;
}

.nav-button:hover {
    background-color: #0052CC;
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem;
    z-index: 1002;
    background: none;
    border: none;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */

/* .hero {
    padding: 80px 0 0 0;
    background-color: var(--light-bg);
    position: relative;
    overflow: hidden;
    background: url('../assets/images/hero-laptop.png') no-repeat center center / cover;
    height: 100vh;
} */

/* .hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1) 0%, rgba(0, 102, 255, 0) 100%);
    z-index: 0;
} */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    color: white;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 0 20px;
}

.hero-text {
    max-width: 100%;
}

.hero-text h1 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--white);
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 50%;
    color: var(--white);
}

.hero-image {
    flex: 1;
    position: relative;
}

.hero-image img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* Growth Section */
.growth-section {
    margin-top: 10px;
    padding: 88px 0 20px 0;
}

.growth-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.growth-image {
    flex: 1;
    position: relative;
}

.growth-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.growth-text {
    flex: 1;
}

.growth-text h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.growth-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--dark-txt-color);
}

.growth-text a {
    float: right;
}

/* Software Section */
.software-section {
    margin-top: 20px;
    padding: 40px 0;
    overflow: hidden;
}

.section-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: var(--mid-light-primary-color);
    font-weight: 200;
}

.section-title span {
    border-bottom: 2px solid var(--mid-light-primary-color);
    padding: 0 30px 5px;
}

.software-grid {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

.software-item {
    position: relative;
    width: calc((100% - 580px) / 5);
    /* Adjusted for 20px gaps */
    height: 672px;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.software-item.active {
    width: 500px;
}

.software-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.software-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--white);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.software-item:hover .software-overlay {
    transform: translateY(0);
}

.software-overlay h3 {
    color: var(--white);
    margin-bottom: 12px;
    font-size: 1.4rem;
    font-weight: 500;
}

.software-overlay p {
    font-size: 1rem;
    margin: 0;
    opacity: 0.9;
    line-height: 1.5;
}

/* Industries Section */
.industries-section {
    padding-top: 20px;
    padding-bottom: 20px;
}

.industries-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.industries-image {
    /* flex: 1; */
    position: relative;
}

.industries-image img {
    height: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.industries-text {
    flex: 1;
}

.industries-text h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--white);
}

.industries-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #D9D9D9;
}

/* Services Section */
.services-section {
    padding-bottom: 20px;
}

.services-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.services-text {
    flex: 1;
}

.services-text h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

.services-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.services-image {
    flex: 1;
    position: relative;
}

.services-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* Innovation Section */
.innovation-section {
    padding-top: 10px;
    padding-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    /* max-width: 800px; */
    margin: 0 auto 50px;
    font-size: 16px;
    color: #000000;
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.industries-grid.marquee {
    display: flex;
    gap: 30px;
    overflow: hidden;
    width: 100%;
    position: relative;
    /* Remove grid-template-columns for this marquee version */
}

.industries-grid.marquee .industry-card {
    min-width: 300px;
}

.industry-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 10px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.industry-card:hover {
    transform: translateY(-10px);
}

.industry-image {
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.industry-image img {
    width: 100%;
    /* height: 200px;
    object-fit: cover; */
}

.industry-card h3 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--light-bg);
    font-size: 18px;
    font-weight: 300;
}

.industry-card p {
    text-align: center;
    color: #4e4848;
    font-size: 14px;
    font-weight: normal;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    color: var(--white);

}

.cta-content {
     display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    
}
.cta-text {
    flex: 1;
}
.cta-buttons {
    display: flex;
    flex-direction: column; /* Stack buttons vertically */
    gap: var(--spacing-sm); /* Space between buttons */
    width: 100%; /* Full width */
    max-width: 300px; /* Maximum width for buttons */
}
.cta-text h2 {
    color: var(--white);
    font-size: 2rem;
    margin-left: 10rem;
}


.bg-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

/* Newsletter Section */
.newsletter-section {
    padding: 100px 0;
    background: url('../assets/images/newsletter-bg.png') no-repeat center center / cover;
    background-size: cover;
}

.newsletter-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 0 9rem;
}

.newsletter-text {
    flex: 1;
    position: relative;
    padding-bottom: 0;
}

.newsletter-text h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
    padding-left: 0;
    color: var(--white);
}

.newsletter-text img {
    position: absolute;
    bottom: -50px;
    right: 0;
    width: 100px;
    display: none; /* Hide by default, we'll show it on larger screens */
}

.newsletter-form {
    flex: 1;
}

.newsletter-form form {
    position: relative;
    max-width: 500px;
    margin-left: auto;
}

.newsletter-form input {
    padding: 15px 20px;
    border: 1px solid var(--mid-light-primary-color);
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    width: 100%;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.9);
    padding-right: 140px; /* Space for button */
    transition: var(--transition);
}

.newsletter-form button {
    position: absolute;
    right: 10px;
    top: 10px;
    bottom: 10px;
    padding: 0 20px;
    font-weight: 500;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-form button:hover {
    background-color: var(--btn-hover);
    transform: none; /* Remove any transform on hover */
}

.newsletter-form input:focus {
    border-color: var(--primary-color);
}

.newsletter-image {
    flex: 1;
    position: relative;
}

.newsletter-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* Footer */
.main-footer {
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.footer-logo img {
    height: 40px;
}

.footer-links ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social a {
    color: var(--white);
    font-size: 20px;
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Animations */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-fade-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-fade-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

.delay-4 {
    transition-delay: 0.8s;
}

.animated {
    opacity: 1;
    transform: translate(0, 0);
}

.industries-image-slider {
    width: 100%;
    max-width: 593px;
    /* aspect-ratio: 16/9; or your preferred ratio */
    overflow: hidden;
    position: relative;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.industries-image-slider .slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.industries-image-slider .slider-track img {
    width: 100%;
    flex: 0 0 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
    display: block;
}

/* Modal Styles */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 900px;
    border-radius: 8px;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: black;
}

.modal-container {
    display: flex;
    gap: 30px;
}

.modal-left {
    flex: 1;
    padding: 20px;
}

.modal-right {
    flex: 1;
    padding: 20px;
}
.modal-right .form-container label {
    margin-top: 20px; /* Adjust this value as needed */
    display: block; /* Ensures the margin works properly */
}
.modal-right .privacy-policy {
    margin-top: 20px;
}
.privacy-policy span {
    color: #042896;
}

.radio-div1 input[type="checkbox"] {
    appearance: none;
    width: 2rem;
    height: 1rem;
    border: 2px solid #000;
    border-radius: 0.1rem;
    margin-top: 0.25rem;
    cursor: pointer;
    position: relative;
}

.browse-btn {
    background-color: #FFFFFF;
    margin: 5% auto;
    padding: 20px;
    border: 0.7px solid #000;
    width: 100%;
    height: 2rem;
    max-width: 900px;
    border-radius: 8px;
    position: relative;
}

.resume-upload-container {
    margin-bottom: 1.5rem;
    position: relative;
}

.resume-upload-box {
    border: 1px dashed #333;
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    min-height: 3.5rem;
    background-color: var(--white);
}

.resume-upload-box:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 1px var(--primary-color);
}

.upload-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
}

.resume-upload-box p {
    margin: 12px 20px;
    font-weight: bold;
    color: #333;
}

.contact-sec4 {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.form-container {
    width: 93%;
    max-width: 800px;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

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

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

input,
select,
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.phone-group {
    display: flex;
    gap: 0.5rem;
}

.phone-group select {
    width: 45%;
}

.error-message {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: none;
}

.error {
    border-color: #dc3545 !important;
}

.checkbox-group {
    margin: 1.5rem 0;
}

.radio-div1 {
    margin-bottom: 1rem;
}

.sec4-btn {
    width: 100%;
    padding: 0.75rem;
    background-color: #4169E1;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.sec4-btn:hover {
    background-color: #3a5fcd;
}

.radio-div1 {
    margin: 0.5rem 0;
}

.radio-div1 label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.4;
}

.radio-div1.job input[type="checkbox"] {
    width: 1rem;
}

.radio-div1 input[type="checkbox"] {
    appearance: none;
    width: 1rem;
    height: 1rem;
    border: 2px solid #000;
    border-radius: 0.1rem;
    /* Makes it square instead of round */
    margin-top: 0.25rem;
    cursor: pointer;
    position: relative;
}

.radio-div1 input[type="checkbox"]:checked::before {
    content: '✔';
    font-size: 0.65rem;
    color: white;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 0.1rem;
}

/* Active nav link styles */
.nav-links li a.active {
    color: #0066cc; /* Blue color */
    position: relative;
    font-weight: 600;
}

.nav-links li a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #0066cc;
}

/* Special style for active contact button */
.nav-button.active-button {
    background-color: #0066cc;
    color: white;
}

/* Responsive Breakpoints */
@media (min-width: 1441px) {
    .container {
        padding: 0 0px;
    }

    .industries-grid.marquee .industry-card {
        min-width: 500px;
    }
}

@media (max-width: 1440px) {
    .container {
        max-width: 1360px;
    }

    .software-item {
        width: calc((100% - 480px) / 5);
        /* 400px active + (5 * 20px gaps) */
    }

    .software-item.active {
        width: 400px;
    }

    .industries-grid.marquee .industry-card {
        min-width: 450px;
    }
    .newsletter-text {
        padding-bottom: 15px;
    }
    
    .newsletter-text img {
        display: block;
    }
    
    .newsletter-text h2 {
        padding-left: 100px;
    }
    .newsletter-text img {
        display: block;
        position: static;
        margin-bottom: 1.5rem;
        width: 80px;
    }
    
    .newsletter-text h2 {
        padding-left: 0;
    }
}

@media (max-width: 1024px) {
    .container {
        max-width: 960px;
        padding: 0 30px;
    }

    .software-item {
        width: calc((100% - 380px) / 4);
        /* 300px active + (4 * 20px gaps) */
    }

    .software-item.active {
        width: 300px;
    }

    .industries-grid.marquee .industry-card {
        min-width: 380px;
    }

    .modal-content {
        width: 85%;
        margin: 8% auto;
        padding: 25px;
    }

    .modal-container {
        gap: 20px;
    }

    .modal-left {
        flex: 0.8;
        padding: 15px;
    }

    .modal-right {
        flex: 1;
        padding: 15px;
    }

    .modal-left h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .modal-left p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .modal-left ul {
        padding-left: 20px;
        font-size: 0.9rem;
    }

    .form-container {
        padding: 1.5rem;
    }

    .form-container label {
        font-size: 0.9rem;
    }

    .form-container input,
    .form-container select {
        padding: 0.65rem;
        font-size: 0.9rem;
    }

    .resume-upload-box {
        padding: 0.6rem 1rem;
    }

    .upload-icon {
        width: 35px;
        height: 35px;
    }

    .resume-upload-box p {
        font-size: 0.9rem;
        margin: 10px 15px;
    }

    .phone-group select {
        width: 30%;
    }

    .radio-div1.job label {
        font-size: 0.85rem;
        line-height: 1.3;
    }

    .radio-div1.job input[type="checkbox"] {
        width: 1.8rem;
        height: 1rem;
    }

    .sec4-btn {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .privacy-policy p {
        font-size: 0.85rem;
    }
    .newsletter-text {
        padding-bottom: 15px;
    }
    
    .newsletter-text img {
        display: block;
    }
    
    .newsletter-text h2 {
        padding-left: 100px;
    }
    .newsletter-text img {
        display: block;
        position: static;
        margin-bottom: 1.5rem;
        width: 80px;
    }
    
    .newsletter-text h2 {
        padding-left: 0;
    }
    .newsletter-content {
        padding: 0 2rem; /* Reduce padding */
    }
    
    .newsletter-form form {
        max-width: 100%; /* Allow form to take full width */
    }
    
    .newsletter-form input {
        padding-right: 120px; /* Reduce right padding for button */
    }
    
    .newsletter-form button {
        padding: 0 15px; /* Reduce button padding */
        font-size: 0.9rem; /* Slightly smaller font */
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 720px;
        padding: 0 20px;
    }

    .industries-content {
        flex-direction: column;
        padding-top: 20px;
    }

    .industries-content.reverse-on-mobile .industries-text {
        order: 2;
    }

    .industries-content.reverse-on-mobile .industries-image-slider {
        order: 1;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero {
        height: auto;
        padding: 100px 0 60px;
    }

    .hero-content {
        flex-direction: column;
        text-align: left;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-text h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
        line-height: 1.3;
    }

    .hero-text p {
        max-width: 100%;
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .hero-image {
        margin-top: 2rem;
    }

    .btn {
        padding: 12px 20px;
        font-size: 1rem;
    }

    .growth-content,
    .industries-content,
    .services-content,
    .newsletter-content {
        flex-direction: column;
    }

    .main-nav .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: all 0.3s ease-in-out;
        z-index: 1001;
        margin: 0;
        padding: 0;
        opacity: 0;
        visibility: hidden;
    }

    .main-nav .nav-links.active {
        right: 0;
        opacity: 1;
        visibility: visible;
    }

    .main-nav .hamburger {
        display: flex;
        z-index: 1002;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: all 0.3s ease-in-out;
        z-index: 1000;
        margin: 0;
        padding: 0;
        opacity: 0;
        visibility: hidden;
    }

    .nav-links.active {
        right: 0;
        opacity: 1;
        visibility: visible;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 1rem;
        font-size: 1.2rem;
    }

    .nav-button {
        margin: 1rem auto;
        display: block;
        width: 80%;
        text-align: center;
    }

    .hamburger {
        display: flex;
    }

    .industries-content {
        flex-direction: column;
    }

    .industries-content.reverse-on-mobile .industries-text {
        order: 2;
    }

    .industries-content.reverse-on-mobile .industries-image-slider {
        order: 1;
    }
    .cta-content {
        flex-direction: column; /* Side by side on larger screens */
        justify-content: space-between; /* Space between text and buttons */
        align-items: flex-start;
        text-align: left; /* Left align text on desktop */
    }
    .cta-buttons {
        flex-direction: row; /* Buttons side by side */
        max-width: none; /* Remove max-width restriction */
        gap: var(--spacing-sm); /* Space between buttons */
    }
    .cta-text h2 {
    color: var(--white);
    font-size: 1.5rem;
    margin-left: 0;
}
    .cta-buttons > div {
        margin-top: 0 !important; /* Remove the margin between buttons */
    }
   
    .footer-top {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-links ul {
        flex-direction: column;
        gap: 10px;
    }

    .software-item {
        width: calc((100% - 320px) / 3);
        /* 260px active + (3 * 20px gaps) */
        height: 500px;
    }

    .software-item.active {
        width: 260px;
    }

    .industries-grid.marquee .industry-card {
        min-width: 300px;
    }

    .modal-content {
        width: 90%;
        margin: 10% auto;
        padding: 15px;
    }

    .modal-container {
        flex-direction: column;
        gap: 20px;
    }

    .modal-left,
    .modal-right {
        padding: 10px;
        flex: auto;
        width: 100%;
    }

    .modal-left h2 {
        font-size: 1.5rem;
    }

    .modal-left ul {
        padding-left: 20px;
    }

    .resume-upload-box {
        padding: 0.5rem;
        min-height: 3rem;
    }

    .upload-icon {
        width: 30px;
        height: 30px;
    }

    .resume-upload-box p {
        margin: 8px 10px;
        font-size: 0.9rem;
    }

    .radio-div1.job input[type="checkbox"] {
        width: 1.5rem;
    }

    .radio-div1.job label span {
        font-size: 0.9rem;
    }
    .newsletter-text {
        text-align: center;
    }
    
    .newsletter-text img {
        display: block;
        position: static;
        margin: 1.5rem auto 0;
        width: 80px;
    }
    .newsletter-form form {
        max-width: 100%;
        margin-left: 0;
    }
    
    .newsletter-form input {
        padding-right: 20px;
        height: 50px;
    }
    
    .newsletter-form button {
        position: relative;
        right: auto;
        top: auto;
        bottom: auto;
        width: 100%;
        height: 50px;
        margin-top: 10px;
        padding: 0;
    }    
   
}

@media (max-width: 450px) {
    .container {
        padding: 0 15px;
    }

    .software-grid {
        gap: 15px;
    }

    .software-item {
        width: calc((100% - 230px) / 2);
        /* 200px active + (2 * 15px gaps) */
        height: 400px;
    }

    .software-item.active {
        width: 200px;
    }

    .software-overlay {
        padding: 20px;
    }

    .hero {
        padding: 80px 0 40px;
    }

    .hero-text h1 {
        font-size: 1.6rem;
    }

    .hero-text p {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }

    .btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
    .newsletter-section {
        padding: 60px 0;
    }
    
    .newsletter-text h2 {
        font-size: 1.5rem;
    }
    
     .newsletter-form input {
        height: 45px;
        font-size: 0.9rem;
    }
    
    .newsletter-form button {
        height: 45px;
        font-size: 0.9rem;
    }
}