/* MIDIZE Corporate Website - v2.1 - Fixed Layout */

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

:root {
    --primary-red: #DC2626;
    --dark-red: #991B1B;
    --black: #0A0A0A;
    --dark-gray: #1A1A1A;
    --medium-gray: #262626;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --text-gray: #A3A3A3;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

section {
    min-height: 100vh;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(220, 38, 38, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.logo-img {
    height: 36px;
    width: auto;
    display: block;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand .logo-img {
    height: 44px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-link {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--white);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.nav-dropdown .nav-link::after {
    display: none;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--dark-gray);
    border: 1px solid var(--medium-gray);
    border-radius: 12px;
    padding: 8px;
    margin-top: 12px;
    min-width: 200px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 12px 16px;
    color: var(--text-gray);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.dropdown-link:hover {
    background: rgba(220, 38, 38, 0.1);
    color: var(--primary-red);
    transform: translateX(4px);
}

.nav-cta {
    background: var(--primary-red);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    background: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.3);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
}



/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 24px 80px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.15) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.hero-content {
    max-width: 600px;
    z-index: 10;
}

.hero-badge {
    display: inline-block;
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: var(--primary-red);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease;
}

.hero-title {
    font-size: 64px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease 0.1s backwards;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-red) 0%, #FF6B6B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 32px;
    line-height: 1.8;
    animation: fadeInUp 0.6s ease 0.2s backwards;
}

.hero-cta {
    display: flex;
    gap: 16px;
    animation: fadeInUp 0.6s ease 0.3s backwards;
}

.btn {
    padding: 16px 32px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
}

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

.btn-primary:hover {
    background: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--medium-gray);
}

.btn-secondary:hover {
    border-color: var(--primary-red);
    background: rgba(220, 38, 38, 0.1);
}

.btn-full {
    width: 100%;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    width: 500px;
    height: 500px;
}

.floating-card {
    position: absolute;
    background: var(--dark-gray);
    border: 1px solid var(--medium-gray);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: float 3s ease-in-out infinite;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.card-icon {
    font-size: 32px;
}

.card-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-gray);
}

.card-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.card-2 {
    top: 10%;
    right: 15%;
    animation-delay: 0.5s;
}

.card-3 {
    bottom: 30%;
    left: 5%;
    animation-delay: 1s;
}

.card-4 {
    bottom: 15%;
    right: 10%;
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Services Section */
.services {
    padding: 80px 24px;
    background: var(--dark-gray);
    display: flex;
    align-items: center;
    justify-content: center;
}

.services .container {
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.service-card {
    background: var(--black);
    border: 1px solid var(--medium-gray);
    border-radius: 20px;
    padding: 40px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), #FF6B6B);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(220, 38, 38, 0.15) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover::after {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: var(--primary-red);
    box-shadow: 0 25px 70px rgba(220, 38, 38, 0.25);
}

.service-card.featured {
    border-color: var(--primary-red);
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.05) 0%, var(--black) 100%);
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-red);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.service-icon {
    font-size: 48px;
    margin-bottom: 24px;
}

.service-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.service-description {
    color: var(--text-gray);
    margin-bottom: 24px;
    line-height: 1.6;
}

.service-features {
    list-style: none;
}

.service-features li {
    padding: 8px 0;
    color: var(--text-gray);
    position: relative;
    padding-left: 24px;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-red);
    font-weight: bold;
}

/* Projects Section */
.projects {
    padding: 80px 24px;
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.projects::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.1) 0%, transparent 70%);
    transform: translate(30%, -50%);
    pointer-events: none;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    position: relative;
    z-index: 10;
    padding: 30px 10px;
}

.project-card {
    background: var(--dark-gray);
    border: 1px solid var(--medium-gray);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    height: 480px;
    display: flex;
    flex-direction: column;
    animation: projectReveal 0.8s ease backwards;
    will-change: transform;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

@keyframes projectReveal {
    from {
        opacity: 0;
        transform: translateY(60px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.project-card:nth-child(1) {
    animation-delay: 0.1s;
}

.project-card:nth-child(2) {
    animation-delay: 0.2s;
}

.project-card:nth-child(3) {
    animation-delay: 0.3s;
}

.project-card:nth-child(4) {
    animation-delay: 0.4s;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 30px 80px rgba(220, 38, 38, 0.3);
    border-color: var(--primary-red);
}

.project-card:nth-child(1) {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    height: 460px;
}

.project-card:nth-child(2) {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
    height: 100%;
    min-height: 600px;
}

.project-card:nth-child(3) {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    height: 460px;
}

.project-card:nth-child(4) {
    grid-column: 1 / 3;
    grid-row: 3 / 4;
    height: 400px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    flex-direction: row;
}

.project-card:nth-child(4) .project-image {
    height: 100%;
    border-radius: 24px 0 0 24px;
}

.project-card:nth-child(4) .project-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px;
    overflow: hidden;
}

.project-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    flex-shrink: 0;
    border-radius: 24px 24px 0 0;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.9);
}

.project-card:hover .project-image img {
    transform: scale(1.15) rotate(2deg);
    filter: brightness(1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 10, 10, 0.9) 100%);
    display: flex;
    align-items: flex-end;
    padding: 24px;
    z-index: 2;
}

.project-tag {
    background: var(--primary-red);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.project-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
    overflow: hidden;
    background: var(--dark-gray);
}

.project-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-description {
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.6;
    flex: 1;
    font-size: 15px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.project-stats {
    display: flex;
    gap: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--medium-gray);
    margin-top: auto;
}

.stat {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.stat-value {
    font-size: 28px;
    font-weight: 900;
    color: var(--primary-red);
    line-height: 1.2;
    margin-bottom: 4px;
    white-space: nowrap;
}

.stat-label {
    font-size: 12px;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* About Section - Redesigned */
.about {
    padding: 80px 24px;
    background: var(--dark-gray);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about .section-header {
    margin-bottom: 60px;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.benefit-card {
    background: var(--black);
    border: 1px solid var(--medium-gray);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    animation: benefitFadeIn 0.6s ease backwards;
}

@keyframes benefitFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.benefit-card:nth-child(1) {
    animation-delay: 0.1s;
}

.benefit-card:nth-child(2) {
    animation-delay: 0.2s;
}

.benefit-card:nth-child(3) {
    animation-delay: 0.3s;
}

.benefit-card:nth-child(4) {
    animation-delay: 0.4s;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-red), #FF6B6B);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.benefit-card:hover::before {
    transform: scaleX(1);
}

.benefit-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-red);
    box-shadow: 0 20px 60px rgba(220, 38, 38, 0.2);
}

.benefit-card.featured-benefit {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.08) 0%, var(--black) 100%);
    border-color: var(--primary-red);
}

.benefit-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 72px;
    font-weight: 900;
    color: rgba(220, 38, 38, 0.1);
    line-height: 1;
}

.benefit-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary-red);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}



.benefit-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--white);
}

.benefit-description {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 20px;
}



/* Stats Showcase */
.stats-showcase {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    background: var(--black);
    border: 1px solid var(--medium-gray);
    border-radius: 24px;
    padding: 40px;
}

.stat-item {
    padding: 20px;
    background: var(--dark-gray);
    border-radius: 16px;
    transition: all 0.3s ease;
    text-align: center;
}

.stat-item:hover {
    background: rgba(220, 38, 38, 0.1);
    transform: scale(1.05);
}

.stat-content {
    width: 100%;
}

.stat-value {
    font-size: 32px;
    font-weight: 900;
    color: var(--primary-red);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Contact Section */
.contact {
    padding: 80px 24px;
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

.contact-description {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 40px;
    line-height: 1.8;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-method {
    display: flex;
    gap: 16px;
    align-items: center;
}

.method-icon {
    font-size: 32px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(220, 38, 38, 0.1);
    border-radius: 12px;
}

.method-label {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 4px;
}

.method-value {
    font-size: 16px;
    font-weight: 600;
}

/* Contact Form */
.contact-form {
    background: var(--dark-gray);
    border: 1px solid var(--medium-gray);
    border-radius: 20px;
    padding: 40px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--white);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--black);
    border: 1px solid var(--medium-gray);
    border-radius: 10px;
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--dark-gray);
    border-top: 1px solid var(--medium-gray);
    padding: 60px 24px 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 64px;
    margin-bottom: 40px;
}

.footer-tagline {
    color: var(--text-gray);
    margin-top: 16px;
    max-width: 400px;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.footer-column h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

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

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--medium-gray);
    color: var(--text-gray);
}

/* Responsive */
@media (max-width: 1024px) {
    html {
        scroll-snap-type: none;
    }

    section {
        scroll-snap-align: none;
        min-height: auto;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 140px;
        min-height: 100vh;
    }

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

    .hero-cta {
        justify-content: center;
    }

    .hero-visual {
        margin-top: 60px;
    }

    .contact-content,
    .footer-content {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .stats-showcase {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card:nth-child(1),
    .project-card:nth-child(2),
    .project-card:nth-child(3) {
        grid-column: 1;
        grid-row: auto;
        height: 480px;
    }

    .project-card:nth-child(4) {
        grid-column: 1;
        grid-template-columns: 1fr;
        height: auto;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        padding: 32px;
        gap: 24px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        border-top: 1px solid var(--medium-gray);
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-visual {
        width: 100%;
        height: 400px;
    }

    .section-title {
        font-size: 36px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .project-card:nth-child(4) .project-image {
        height: 280px;
    }

    .stats-showcase {
        grid-template-columns: 1fr;
    }

    .stat-item {
        justify-content: center;
        text-align: center;
    }
}
