﻿.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-color) 0%, #f3f4f6 100%);
}

[data-theme="dark"] .hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    opacity: 0.3;
}

.floating-code {
    position: absolute;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
    opacity: 0.4;
    animation: floatCode 25s infinite ease-in-out;
    white-space: nowrap;
}

    .floating-code:nth-child(1) {
        top: 10%;
        left: 5%;
        animation-delay: 0s;
    }

    .floating-code:nth-child(2) {
        top: 20%;
        right: 10%;
        animation-delay: 3s;
    }

    .floating-code:nth-child(3) {
        top: 50%;
        left: 15%;
        animation-delay: 6s;
    }

    .floating-code:nth-child(4) {
        bottom: 20%;
        right: 5%;
        animation-delay: 9s;
    }

    .floating-code:nth-child(5) {
        top: 70%;
        left: 8%;
        animation-delay: 12s;
    }

    .floating-code:nth-child(6) {
        top: 35%;
        right: 20%;
        animation-delay: 15s;
    }

@keyframes floatCode {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0.2;
    }

    25% {
        transform: translateY(-30px) translateX(20px) rotate(5deg);
        opacity: 0.7;
    }

    50% {
        transform: translateY(-50px) translateX(-10px) rotate(-3deg);
        opacity: 0.5;
    }

    75% {
        transform: translateY(-20px) translateX(30px) rotate(7deg);
        opacity: 0.6;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 20px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(30, 64, 175, 0.1));
    border: 1px solid var(--primary-light);
    border-radius: 30px;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    animation: fadeInDown 1s ease;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInUp 1s ease 0.2s both;
}

    .hero-title .highlight {
        background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

.hero-description {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.6s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 60px;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.8s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-section {
    background: var(--bg-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 24px;
    line-height: 1.8;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 8px;
    transition: var(--transition);
}

    .skill-item:hover {
        background: rgba(59, 130, 246, 0.1);
        transform: translateX(4px);
    }

.skill-icon {
    font-size: 24px;
    color: var(--primary-color);
}

.skill-name {
    font-weight: 600;
    color: var(--text-color);
}

.references-section {
    background: linear-gradient(180deg, var(--bg-color) 0%, #f9fafb 100%);
    padding-bottom: 80px;
}

[data-theme="dark"] .references-section {
    background: linear-gradient(180deg, var(--bg-color) 0%, #1e293b 100%);
}

.references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.reference-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

    .reference-card.hidden {
        display: none;
    }

    .reference-card:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: var(--shadow-lg);
    }

    .reference-card picture,
    .reference-card picture img,
    .reference-image {
        width: 100%;
        height: 220px;
        object-fit: cover;
        display: block;
    }

    .reference-card a {
        display: block;
        width: 100%;
    }

.reference-image-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.reference-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.reference-company {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.reference-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-color);
}

.reference-description {
    color: var(--text-muted);
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.reference-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.reference-tag {
    padding: 4px 12px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.reference-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    gap: 12px;
}

.reference-type {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.reference-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    white-space: nowrap;
}

    .reference-link:hover {
        gap: 10px;
    }

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .hero-stats {
        gap: 32px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .references-grid {
        grid-template-columns: 1fr !important;
        gap: 24px;
    }

    .reference-card {
        max-width: 100%;
    }

        .reference-image,
        .reference-card picture,
        .reference-card picture img {
            width: 100% !important;
            height: 220px !important;
        }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .references-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
