:root {
    --primary: #ffffff;
    --secondary: #f8fafc;
    --accent: #ff5e14;
    --accent-dark: #c2410c;
    --accent-light: #fdba74;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --white: #ffffff;
    --black: #0f172a;
    --gradient-gold: linear-gradient(135deg, #ff5e14 0%, #fb923c 100%);
    --gradient-dark: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    --glass: rgba(255, 255, 255, 0.85);
    --border: #e2e8f0;
    --shadow-lg: 0 25px 50px -12px rgba(15, 23, 42, 0.1);
    --shadow-premium: 0 20px 40px rgba(255, 94, 20, 0.15);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html,
body {
    width: 100%;
    overflow-x: hidden;
    position: relative;
    scroll-behavior: smooth;
}

img {
    max-width: 100%;
    height: auto;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary);
    color: var(--text-primary);
    line-height: 1.6;
    scroll-padding-top: 80px;
    /* Offset for fixed header */
}

html {
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
.logo {
    font-family: 'Outfit', sans-serif;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.max-800 {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.max-600 {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Utilities */
.accent-text {
    color: var(--accent);
}

.gradient-text {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-center {
    text-align: center;
}

.grid-3 {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2.5rem;
}

.bg-darker {
    background-color: #f1f5f9;
}

.text-uppercase {
    text-transform: uppercase;
}

.d-block {
    display: block;
}

/* Preloader */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border);
    border-top: 3px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Navigation */
#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: var(--transition);
}

#main-nav.scrolled {
    background: var(--glass);
    backdrop-filter: blur(15px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

#main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    text-decoration: none;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
}

.logo img {
    height: 51px;
    width: auto;
    display: block;
    margin-top: -13px;
    margin-bottom: -13px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

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

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

.nav-links a.nav-cta {
    color: var(--white);
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.8rem;
    color: var(--text-primary);
    z-index: 2001;
    /* Above mobile menu */
    position: relative;
}

/* Buttons */
.btn {
    padding: 0.9rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-lg {
    padding: 1.1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--gradient-gold);
    color: #fff;
    border: 1px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(245, 158, 11, 0.3);
}

.btn-glass {
    background: rgba(15, 23, 42, 0.05);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(15, 23, 42, 0.1);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    width: 100%;
}

.hero-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
    transform: scale(1.1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.95) 30%, rgba(255, 255, 255, 0.3) 100%);
    z-index: -1;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--accent);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin-bottom: 2.5rem;
}

.cta-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Floating Stats Card */
.hero-stats-wrapper {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    z-index: 10;
}

.hero-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
    padding: 2.5rem 4rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    gap: 2rem;
}

.stat-item {
    flex: 1;
    border-right: 1px solid #e2e8f0;
}

.stat-item:last-child {
    border-right: none;
}

.stat-num {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
}

.stat-label {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
}

.stat-cta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-left: 2rem;
}

.stat-cta p {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 700;
    max-width: 150px;
    margin: 0;
}

.stat-cta i {
    width: 45px;
    height: 45px;
    color: var(--accent);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-secondary);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    width: 4px;
    height: 8px;
    background: var(--accent);
    border-radius: 2px;
    transform: translateX(-50%);
    animation: scrollMouse 2s infinite;
}

@keyframes scrollMouse {
    0% {
        opacity: 1;
        transform: translate(-50%, 0);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, 15px);
    }
}

/* Philosophy Section */
.section {
    padding: 120px 0;
}

.grid-2-alt {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 6rem;
    align-items: center;
}

.image-stack {
    position: relative;
    padding-bottom: 50px;
}

.img-main {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.img-main img {
    width: 100%;
    display: block;
}

.img-sub {
    position: absolute;
    bottom: 0;
    right: -2rem;
    width: 60%;
    border-radius: 20px;
    overflow: hidden;
    border: 10px solid var(--white);
    box-shadow: var(--shadow-lg);
}

.img-sub img {
    width: 100%;
    display: block;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.section-header {
    margin-bottom: 4.5rem;
}

.lead {
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.feature-grid {
    display: grid;
    gap: 2rem;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.f-icon {
    margin-top: 5px;
    /* Fine-tune to align with text baseline */
}

.f-icon {
    width: 50px;
    height: 50px;
    background: #f1f5f9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.f-text h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.f-text p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

.content-footer {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.signature {
    display: flex;
    flex-direction: column;
}

.sig-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.sig-pos {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
}

/* Tech Cards */
.tech-card {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border);
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.tech-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.tech-img {
    height: 250px;
    background: #0b1120;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.tech-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.tech-card:hover .tech-img img {
    transform: scale(1.1);
}

.large-icon {
    width: 80px;
    height: 80px;
    color: var(--accent);
    opacity: 0.5;
}

.tech-content {
    padding: 2.5rem 2rem 3.5rem;
    /* Increased bottom padding */
}

.tech-tag {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.tech-features {
    list-style: none;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.tech-features li {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.tech-features li::before {
    content: '→';
    color: var(--accent);
}

/* Process Section */
.process-flow {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 5rem;
}

.process-step {
    position: relative;
    padding: 3rem 2rem;
    background: var(--secondary);
    border-radius: 24px;
    border: 1px solid var(--border);
    transition: var(--transition);
    overflow: hidden;
    text-align: center;
}

.process-step:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: var(--shadow-premium);
}

.step-icon-box {
    margin-left: auto;
    margin-right: auto;
}

.step-icon-box {
    width: 80px;
    height: 80px;
    background: var(--gradient-gold);
    color: #fff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    box-shadow: 0 15px 30px rgba(255, 94, 20, 0.2);
    transition: var(--transition);
}

.process-step:hover .step-icon-box {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 20px 40px rgba(255, 94, 20, 0.3);
}

.step-icon-box i {
    width: 40px;
    height: 40px;
}

.tech-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    color: var(--text-primary);
    font-weight: 700;
}

.tech-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

/* Added margin-bottom */
.step-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Masonry Gallery */
.grid-masonry {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 1.5rem;
    margin-top: 2rem;
}

.item-large {
    grid-row: span 2;
}

.masonry-item {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    display: block;
    text-decoration: none;
}

.masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.item-overlay h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.item-overlay p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin: 0;
}

.masonry-item:hover .item-overlay {
    opacity: 1;
    transform: translateY(0);
}

.masonry-item:hover img {
    transform: scale(1.1);
}

/* Testimonials */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}

.testimonial-item {
    display: flex;
    flex-direction: column;
}

.testimonial-bubble {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.05);
    margin-bottom: 30px;
    transition: var(--transition);
}

.testimonial-bubble:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.testimonial-bubble::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 40px;
    width: 30px;
    height: 30px;
    background: var(--white);
    transform: rotate(45deg);
    border-radius: 4px;
}

.testimonial-bubble p {
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.8;
    position: relative;
    z-index: 2;
}

.testimonial-bubble::before {
    content: '“';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 8rem;
    font-family: serif;
    color: rgba(15, 23, 42, 0.03);
    line-height: 1;
}

.client-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-left: 10px;
}

.client-avatar {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--white);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

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

.client-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.client-pos {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
}

@media (max-width: 1024px) {
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
}

/* News Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 4rem;
}

.news-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.news-img-box {
    position: relative;
    height: 240px;
}

.news-img-wrap {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.news-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .news-img-wrap img {
    transform: scale(1.1);
}

.news-badge {
    position: absolute;
    bottom: -15px;
    left: 20px;
    background: var(--gradient-gold);
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(255, 94, 20, 0.3);
}

.news-content {
    padding: 2.5rem 2rem 2rem;
}

.news-content h3 {
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    color: var(--text-primary);
    transition: var(--transition);
}

.news-card:hover .news-content h3 {
    color: var(--accent);
}

.news-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--accent);
}

.read-more i {
    width: 18px;
    transition: var(--transition);
}

.read-more:hover i {
    transform: translateX(5px);
}

@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

.faq-item {
    background: var(--secondary);
    margin-bottom: 1rem;
    border-radius: 16px;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.faq-answer {
    padding: 0 2rem 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: none;
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    background: var(--secondary);
    border-radius: 40px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.contact-visual {
    background: var(--gradient-gold);
    color: #fff;
    padding: 4rem;
    display: flex;
    align-items: center;
}

.visual-content h2 {
    font-size: 3.5rem;
    color: #fff;
}

.contact-links {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.c-link {
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-form-box {
    padding: 4rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    padding: 1.1rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: inherit;
    transition: var(--transition);
}

input:focus,
textarea:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 94, 20, 0.1);
}

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

/* Footer */
.main-footer {
    padding: 80px 0 40px;
    background: #0f172a;
    color: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 4rem;
}

.footer-brand .logo {
    margin-bottom: 1.5rem;
    color: #fff;
}

.footer-grid h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #fff;
}

.footer-grid ul {
    list-style: none;
}

.footer-grid ul li {
    margin-bottom: 0.8rem;
}

.footer-grid ul a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
}

.footer-grid ul a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.newsletter-form input {
    flex: 1;
}

.newsletter-form button {
    width: 50px;
    background: var(--accent);
    border: none;
    border-radius: 12px;
    cursor: pointer;
}

.footer-bottom {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social a {
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--accent);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(255, 94, 20, 0.3);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    background: var(--white);
    color: var(--accent);
}

/* Ensure Desktop Menu is correct */
@media (min-width: 1025px) {
    .menu-toggle {
        display: none !important;
    }

    .nav-links {
        position: static !important;
        display: flex !important;
        flex-direction: row !important;
        height: auto !important;
        width: auto !important;
        background: transparent !important;
        right: auto !important;
        box-shadow: none !important;
        padding: 0 !important;
    }
}

/* Animations */
.reveal-up,
.reveal-left,
.reveal-right,
.content-box-premium {
    opacity: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    h1 {
        font-size: clamp(2.5rem, 8vw, 4.5rem);
    }

    .grid-2-alt,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .grid-3,
    .process-flow,
    .testimonial-slider {
        grid-template-columns: 1fr !important;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .hero-section {
        height: auto;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 100px 0 60px;
    }

    .hero-stats-wrapper {
        position: static;
        margin-top: 3rem;
        width: 100%;
    }

    .cta-group {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

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

    .hero-stats {
        flex-direction: column;
        padding: 2rem;
    }

    .scroll-indicator {
        display: none;
    }

    .stat-item {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        padding-bottom: 1rem;
        width: 100%;
        text-align: center;
    }

    .stat-cta {
        padding-left: 0;
        padding-top: 1rem;
        justify-content: center;
    }

    .img-sub {
        right: 0;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--secondary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        transform: translateX(100%);
        z-index: 2000;
        gap: 2rem;
        box-shadow: -20px 0 50px rgba(0, 0, 0, 0.5);
        padding: 2rem;
        visibility: hidden;
    }

    .nav-links.active {
        transform: translateX(0);
        visibility: visible;
    }

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

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

    .nav-cta {
        width: 100%;
        justify-content: center;
    }

    /* Gallery Mobile */
    .grid-masonry {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 1.5rem;
    }

    .masonry-item {
        height: 350px;
    }

    .item-large {
        grid-row: span 1;
        height: 400px;
    }

    .item-overlay {
        opacity: 1;
        transform: translateY(0);
        padding: 1.5rem;
    }

    .item-overlay h3 {
        font-size: 1.2rem;
    }

    .content-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
        padding-top: 2rem;
        margin-top: 3rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.2rem;
        width: 100%;
        max-width: 100vw;
        overflow: hidden;
    }

    .hero-stats {
        flex-direction: column;
        gap: 2rem;
        margin-top: 2rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero-p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

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

    .contact-visual,
    .contact-form-box {
        padding: 1.5rem;
    }

    .visual-content h2 {
        font-size: 2.2rem;
    }

    .section {
        padding: 60px 0;
    }

    /* Fix horizontal overflow in process flow */
    .process-flow {
        gap: 2rem;
    }

    .process-step {
        padding-left: 0;
        text-align: center;
    }

    .step-circle {
        margin-left: auto;
        margin-right: auto;
    }

    .grid-3 {
        grid-template-columns: 1fr !important;
    }
}