* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --white: #FFFFFF;
    --black: #000000;
    --light-gray: #F8F9FA;
    --medium-gray: #E9ECEF;
    --dark-gray: #212529;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--white);
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px var(--shadow);
    transition: box-shadow 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--black);
    letter-spacing: -1px;
    text-decoration: none;
}

.nav-toggle {
    display: none;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border: 1px solid var(--medium-gray);
    background: var(--white);
    border-radius: 10px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.nav-toggle:hover {
    border-color: var(--black);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.nav-toggle-lines {
    position: relative;
    width: 20px;
    height: 2px;
    background: var(--black);
    display: block;
    border-radius: 2px;
}

.nav-toggle-lines::before,
.nav-toggle-lines::after {
    content: '';
    position: absolute;
    left: 0;
    width: 20px;
    height: 2px;
    background: var(--black);
    border-radius: 2px;
    transition: transform 0.25s ease, top 0.25s ease;
}

.nav-toggle-lines::before {
    top: -6px;
}

.nav-toggle-lines::after {
    top: 6px;
}

.nav-overlay {
    display: none;
}

body.nav-open .nav-toggle-lines {
    background: transparent;
}

body.nav-open .nav-toggle-lines::before {
    top: 0;
    transform: rotate(45deg);
}

body.nav-open .nav-toggle-lines::after {
    top: 0;
    transform: rotate(-45deg);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

/* Only used inside the off-canvas mobile menu */
.nav-menu-header {
    display: none;
}

.nav-menu a {
    text-decoration: none;
    color: var(--black);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a:not(.cta-button)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--black);
    transition: width 0.3s ease;
}

.nav-menu a:not(.cta-button):hover::after {
    width: 100%;
}

.cta-button {
    background: var(--black);
    color: var(--white) !important;
    padding: 12px 30px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-hover);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, var(--white) 0%, var(--light-gray) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0,0,0,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

.hero-content {
    text-align: center;
    z-index: 2;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 80px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -3px;
    color: var(--black);
}

.hero-subtitle {
    font-size: 24px;
    color: var(--dark-gray);
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-button {
    display: inline-block;
    background: var(--black);
    color: var(--white);
    padding: 18px 50px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.hero-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-arrow {
    width: 30px;
    height: 50px;
    border: 2px solid var(--black);
    border-radius: 20px;
    position: relative;
}

.scroll-arrow::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--black);
    border-radius: 50%;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        top: 10px;
        opacity: 1;
    }
    100% {
        top: 30px;
        opacity: 0;
    }
}

/* Portfolio Section */
.portfolio {
    padding: 120px 0;
    background: var(--white);
}

.section-title {
    font-size: 50px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    letter-spacing: -2px;
}

.section-subtitle {
    text-align: center;
    font-size: 20px;
    color: var(--dark-gray);
    margin-bottom: 60px;
    font-weight: 300;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    aspect-ratio: 4/5;
}

.portfolio-image {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    will-change: transform;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    color: var(--white);
    text-align: center;
    padding: 20px;
}

.portfolio-overlay h3 {
    font-size: 28px;
    margin-bottom: 10px;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.portfolio-overlay p {
    font-size: 16px;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.1s;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover .portfolio-overlay h3,
.portfolio-item:hover .portfolio-overlay p {
    transform: translateY(0);
}

/* Services Section */
.services {
    padding: 120px 0;
    background: var(--light-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.service-card {
    background: var(--white);
    padding: 50px 35px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 1px solid var(--medium-gray);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--black), #555);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border-color: var(--black);
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: -2px;
    right: -2px;
    height: 2px;
    background: var(--black);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover::after {
    opacity: 1;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black);
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.15);
}

.service-icon svg {
    transition: all 0.4s ease;
}

.service-card:hover .service-icon svg {
    stroke-width: 2.5;
}

.service-card h3 {
    font-size: 28px;
    margin-bottom: 15px;
    font-weight: 700;
}

.service-card > p {
    color: var(--dark-gray);
    margin-bottom: 25px;
    line-height: 1.7;
}

.service-features {
    list-style: none;
    margin-top: 30px;
}

.service-features li {
    padding: 10px 0;
    border-top: 1px solid var(--medium-gray);
    color: var(--dark-gray);
}

.service-features li:first-child {
    border-top: none;
}

/* About Section */
.about {
    padding: 120px 0;
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 60px var(--shadow);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-text h2 {
    text-align: left;
    margin-bottom: 30px;
}

.about-text p {
    color: var(--dark-gray);
    margin-bottom: 20px;
    font-size: 18px;
    line-height: 1.8;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
    background: var(--light-gray);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow);
}

.stat-number {
    font-size: 42px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 14px;
    color: var(--dark-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Contact Section */
.contact {
    padding: 120px 0;
    background: var(--light-gray);
}

.contact-header {
    text-align: center;
    margin-bottom: 80px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-left {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.contact-intro h3 {
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: 700;
}

.contact-intro p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--dark-gray);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.method-item {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: var(--white);
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.method-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.method-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: var(--black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.method-details h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--dark-gray);
}

.method-details a {
    color: var(--black);
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.method-details a:hover {
    color: #666;
}

.method-details p {
    color: var(--black);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 5px;
}

.demo-hint {
    font-size: 11px;
    color: #999;
    font-style: italic;
}

.contact-social {
    padding-top: 30px;
    border-top: 1px solid var(--medium-gray);
}

.social-title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--dark-gray);
    margin-bottom: 20px;
    font-weight: 600;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    background: var(--black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Contact Form */
.contact-right {
    position: sticky;
    top: 100px;
}

.contact-form {
    background: var(--white);
    padding: 50px 45px;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.1);
    border: 1px solid var(--medium-gray);
}

.form-title {
    font-size: 32px;
    margin-bottom: 15px;
    font-weight: 700;
    color: var(--black);
}

.form-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--black);
    margin-top: 15px;
    margin-bottom: 35px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--black);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--black);
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--white);
    color: var(--black);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--black);
    background: var(--light-gray);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.custom-select-wrapper {
    position: relative;
}

.custom-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.custom-select:hover {
    background-color: var(--light-gray);
    transform: translateY(-1px);
}

.custom-select:focus {
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18 15l-6-6-6 6' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.custom-select.selected {
    font-weight: 600;
    background-color: var(--light-gray);
}

/* Smooth animations */
.submit-button {
    width: 100%;
    padding: 18px 30px;
    background: var(--black);
    color: var(--white);
    border: 3px solid var(--black);
    border-radius: 8px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-button:hover {
    background: var(--white);
    color: var(--black);
}

.submit-button:hover svg {
    transform: translateX(5px);
}

.submit-button svg {
    transition: transform 0.3s ease;
}

.form-disclaimer {
    text-align: center;
    margin-top: 20px;
    font-size: 11px;
    color: #999;
    font-style: italic;
    padding-top: 20px;
    border-top: 1px solid var(--medium-gray);
}

/* Scroll Effects */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: var(--black);
    z-index: 2000;
    transition: width 0.1s ease;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(4px);
    transition: all 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity, filter;
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.reveal-scale {
    transform: scale(0.96);
}

.reveal.in-view {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
    filter: blur(0);
}

/* Footer */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 28px;
    margin-bottom: 15px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer-links h4,
.footer-contact h4 {
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: block;
    padding: 8px 0;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.demo-badge {
    display: inline-block;
    margin-top: 15px;
    padding: 5px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom p {
    margin-bottom: 5px;
}

.footer-demo {
    font-size: 12px;
    font-style: italic;
    opacity: 0.6;
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav-container {
        padding: 16px;
        position: relative;
    }

    .nav-toggle {
        display: inline-flex;
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
    }

    .nav-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.35);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
    }

    body.nav-open .nav-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: min(360px, 85vw);
        max-width: 360px;
        padding: calc(18px + env(safe-area-inset-top)) 18px calc(18px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(14px);
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        box-shadow: -30px 0 80px rgba(0,0,0,0.16);
        border-left: 1px solid rgba(0,0,0,0.08);
        transform: translateX(100%);
        transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
        z-index: 1500;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }

    body.nav-open .nav-menu {
        transform: translateX(0);
    }

    .nav-menu-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 6px 16px;
        margin-bottom: 6px;
        border-bottom: 1px solid rgba(0,0,0,0.08);
    }

    .nav-menu-brand {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .nav-menu-title {
        font-size: 18px;
        font-weight: 800;
        letter-spacing: -0.5px;
    }

    .nav-menu-subtitle {
        font-size: 12px;
        color: rgba(0,0,0,0.6);
        text-transform: uppercase;
        letter-spacing: 1px;
        font-weight: 600;
    }

    .nav-close {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        border: 1px solid rgba(0,0,0,0.12);
        background: var(--white);
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
        font-size: 24px;
        line-height: 1;
        color: var(--black);
    }

    .nav-close:hover {
        transform: translateY(-1px);
        border-color: rgba(0,0,0,0.3);
        box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        width: 100%;
        display: block;
        font-size: 17px;
        padding: 14px 14px;
        border-radius: 14px;
        border: 1px solid rgba(0,0,0,0.10);
        background: rgba(255,255,255,0.7);
        transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    }

    .nav-menu a:hover {
        transform: translateY(-1px);
        background: var(--white);
        border-color: rgba(0,0,0,0.18);
        box-shadow: 0 12px 28px rgba(0,0,0,0.10);
    }

    .nav-menu a:not(.cta-button)::after {
        display: none;
    }

    .cta-button {
        width: 100%;
        text-align: center;
        padding: 16px 18px;
        border-radius: 16px;
        margin-top: 6px;
        box-shadow: 0 12px 28px rgba(0,0,0,0.16);
    }
    
    .hero-title {
        font-size: 60px;
    }
    
    .portfolio-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .contact-right {
        position: static;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }

    .navbar {
        backdrop-filter: blur(12px);
    }

    .hero-title {
        font-size: 40px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 36px;
    }

    .portfolio,
    .services,
    .about,
    .contact {
        padding: 90px 0;
    }

    .hero {
        min-height: 92vh;
        height: auto;
        padding: 120px 0 60px;
    }

    .hero-button {
        width: 100%;
        max-width: 320px;
    }
    
    /* Mobile portfolio: compact mosaic instead of big single cards */
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
        grid-auto-rows: 140px;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .portfolio-item {
        border-radius: 14px;
        aspect-ratio: auto;
    }

    .portfolio-item:nth-child(1),
    .portfolio-item:nth-child(4) {
        grid-row: span 2;
    }

    .portfolio-image img {
        transform: none;
    }

    /* Mobile: simplify overlay for compact cards */
    .portfolio-overlay {
        opacity: 1;
        background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.85) 100%);
        justify-content: flex-end;
        align-items: flex-start;
        text-align: left;
        padding: 14px;
    }

    .portfolio-overlay h3 {
        font-size: 16px;
        margin-bottom: 0;
        letter-spacing: -0.3px;
        transform: translateY(0);
    }

    .portfolio-overlay p {
        display: none;
    }

    /* Keep other sections unchanged: services stay single-column on phones */
    .services-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        gap: 22px;
    }

    .service-card {
        padding: 38px 24px;
    }

    .contact-form {
        padding: 36px 22px;
    }

    /* Phone: show form first, "Varaa aikasi" last */
    .contact-wrapper {
        display: flex;
        flex-direction: column;
        gap: 28px;
    }

    .contact-right {
        order: 1;
        width: 100%;
    }

    .contact-left {
        order: 2;
        width: 100%;
    }

    .contact-form {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .portfolio-grid {
        grid-auto-rows: 120px;
    }
}

/* Smooth Animations */
.portfolio-item,
.service-card,
.contact-item {
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}