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

:root {
    --bg-color: #0a0a0a;
    --text-color: #ffffff;
    --accent-color: #dc2626;
    --accent-dark: #991b1b;
    --accent-light: #ef4444;
    --hover-color: #dc2626;
    --border-color: #1a1a1a;
    --red-glow: rgba(220, 38, 38, 0.3);
    --red-glow-strong: rgba(220, 38, 38, 0.6);
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(220, 38, 38, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(220, 38, 38, 0.03) 0%, transparent 50%);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 40px;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

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

.logo-img {
    height: 40px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: brightness(1);
}

.logo-img:hover {
    filter: brightness(1.1) drop-shadow(0 0 8px var(--red-glow));
    transform: scale(1.05);
}

.logo-text {
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    background: linear-gradient(90deg, var(--text-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.logo-text:hover {
    filter: drop-shadow(0 0 8px var(--red-glow));
}

.main-nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-color);
    text-shadow: 0 0 8px var(--red-glow);
}

main {
    margin-top: 80px;
}

/* Section Hero */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 40px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 30%, rgba(220, 38, 38, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(220, 38, 38, 0.08) 0%, transparent 50%);
    z-index: 0;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(20px, 3vw, 32px);
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.hero-description {
    font-size: clamp(16px, 2vw, 20px);
    color: #999;
    margin-bottom: 40px;
    line-height: 1.8;
}

.cta-button {
    display: inline-block;
    padding: 16px 40px;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    transition: left 0.3s ease;
    z-index: -1;
}

.cta-button:hover {
    color: var(--bg-color);
    box-shadow: 0 0 20px var(--red-glow);
}

.cta-button:hover::before {
    left: 0;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--text-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 18px;
    color: #999;
    letter-spacing: 1px;
}


.projects-section {
    padding: 100px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
    justify-content: center;
}

.filter-btn {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-size: 13px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    cursor: pointer;
    padding: 12px 24px;
    border-radius: 30px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    font-weight: 500;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(220, 38, 38, 0.1), transparent);
    transition: left 0.5s ease;
}

.filter-btn:hover::before {
    left: 100%;
}

.filter-btn:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
    background: rgba(220, 38, 38, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

.filter-btn.active {
    color: var(--text-color);
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.2) 0%, rgba(220, 38, 38, 0.1) 100%);
    border-color: var(--accent-color);
    border-width: 2px;
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.3),
                0 4px 12px rgba(220, 38, 38, 0.2),
                inset 0 0 20px rgba(220, 38, 38, 0.1);
    text-shadow: 0 0 8px var(--red-glow);
    transform: translateY(-2px);
}

.filter-btn.active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 8px;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--red-glow);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
    50% {
        opacity: 0.6;
        transform: translateY(-50%) scale(1.2);
    }
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 18px;
    letter-spacing: 1px;
}

.project-author {
    font-size: 14px;
    color: #888;
    font-weight: 300;
}

.project-description-wrapper {
    margin-top: 10px;
}

.project-description {
    font-size: 12px;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
    transition: all 0.3s ease;
}

.project-description[data-expanded="true"] {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
}

.read-more-btn {
    background: none;
    border: none;
    color: var(--accent-color);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    padding: 5px 0;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    font-family: inherit;
    display: inline-block;
}

.read-more-btn:hover {
    color: var(--accent-light);
    text-shadow: 0 0 8px var(--red-glow);
}

.read-more-btn:focus {
    outline: none;
    text-decoration: underline;
}

.project-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    background-color: rgba(20, 20, 20, 0.6);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    display: flex;
    flex-direction: column;
}

.project-card-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1) 0%, rgba(10, 10, 10, 0.5) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.project-card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease;
    z-index: 1;
}

.project-card:hover .project-card-image::before {
    background: rgba(0, 0, 0, 0.1);
}

.play-button {
    position: absolute;
    width: 70px;
    height: 70px;
    background: rgba(220, 38, 38, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
}

.play-button::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 24px solid var(--text-color);
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    margin-left: 6px;
}

.project-card:hover .play-button {
    transform: scale(1.1);
    background: rgba(220, 38, 38, 1);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.6);
}

.project-card-content {
    padding: 25px;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--red-glow), transparent);
    transition: left 0.5s ease;
    z-index: 0;
}

.project-card:hover::before {
    left: 100%;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.2);
    background-color: rgba(26, 26, 26, 0.9);
}

.project-card-content > * {
    position: relative;
    z-index: 1;
}

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

.project-card:nth-child(1) { animation-delay: 0.05s; }
.project-card:nth-child(2) { animation-delay: 0.1s; }
.project-card:nth-child(3) { animation-delay: 0.15s; }
.project-card:nth-child(4) { animation-delay: 0.2s; }
.project-card:nth-child(5) { animation-delay: 0.25s; }
.project-card:nth-child(6) { animation-delay: 0.3s; }
.project-card:nth-child(7) { animation-delay: 0.35s; }
.project-card:nth-child(8) { animation-delay: 0.4s; }
.project-card:nth-child(9) { animation-delay: 0.45s; }
.project-card:nth-child(10) { animation-delay: 0.5s; }
.project-card:nth-child(n+11) { animation-delay: 0.55s; }

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 var(--red-glow);
    }
    50% {
        box-shadow: 0 0 0 4px transparent;
    }
}

.project-card:active {
    animation: pulse 0.3s ease;
}

.project-title {
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
    transition: color 0.3s ease;
    color: var(--text-color);
}

.project-card:hover .project-title {
    color: var(--accent-color);
}

.project-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #888;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.project-card:hover .project-info {
    color: var(--accent-light);
}

.project-count {
    font-weight: 300;
}

.project-roles {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
    line-height: 1.8;
    transition: color 0.3s ease;
}

.project-card:hover .project-roles {
    color: #999;
}

.project-card.hidden {
    display: none;
}

/* Section À propos */
.about-section {
    padding: 100px 40px;
    max-width: 1000px;
    margin: 0 auto;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

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

.about-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.about-text p {
    font-size: 18px;
    line-height: 1.8;
    color: #ccc;
    margin-bottom: 20px;
}

/* Section Compétences et Logiciels */
.skills-container {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.skills-section,
.software-section {
    width: 100%;
}

.skills-title {
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 40px;
    color: var(--accent-color);
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.skills-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    box-shadow: 0 0 10px var(--red-glow);
}

/* Grille des compétences */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.skill-category {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px 25px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(220, 38, 38, 0.1), transparent);
    transition: left 0.5s ease;
}

.skill-category:hover::before {
    left: 100%;
}

.skill-category:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.2);
}

.skill-icon {
    font-size: 48px;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px rgba(220, 38, 38, 0.3));
    transition: transform 0.3s ease;
}

.skill-category:hover .skill-icon {
    transform: scale(1.1) rotate(5deg);
}

.skill-category h4 {
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 1px;
    color: var(--text-color);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.skill-category p {
    font-size: 14px;
    color: #999;
    line-height: 1.6;
    margin: 0;
}

/* Section Logiciels */
.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.software-item {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px 20px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.software-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.software-item:hover {
    border-color: var(--accent-color);
    background: rgba(20, 20, 20, 0.9);
    box-shadow: 0 8px 30px rgba(220, 38, 38, 0.25);
    transform: translateY(-5px);
}

.software-item:hover::before {
    opacity: 1;
}

.software-item:hover .software-icon {
    transform: scale(1.15);
    filter: drop-shadow(0 0 15px var(--red-glow)) brightness(1.1);
}

.software-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 15px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(0.3) brightness(0.9);
}

.software-icon img,
.software-icon > div {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.software-icon > div {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 24px;
    color: white;
}

.software-item:hover .software-icon {
    filter: grayscale(0) brightness(1.1);
}

.software-item:hover .software-icon > div {
    transform: scale(1.05);
}

.software-name {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--text-color);
    text-transform: uppercase;
    line-height: 1.3;
    margin-top: 5px;
}

/* Section Contact */
.contact-section {
    padding: 100px 40px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-subtitle {
    font-size: 18px;
    color: #999;
    margin-bottom: 50px;
    letter-spacing: 1px;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-top: 50px;
}

.contact-item h3 {
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.contact-item a {
    color: #ccc;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
}

.social-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border-radius: 8px;
    background: rgba(20, 20, 20, 0.4);
    border: 1px solid var(--border-color);
}

.social-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: var(--text-color);
}

.social-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15px;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.social-link:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
    background: rgba(220, 38, 38, 0.1);
    transform: translateX(5px);
}

.social-link:hover svg {
    transform: scale(1.1);
    color: var(--accent-color);
}

.social-link:hover::after {
    width: calc(100% - 30px);
}

/* Formulaire de contact */
.contact-form {
    max-width: 600px;
    margin: 50px auto;
    padding: 40px;
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2);
}

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

.submit-button {
    width: 100%;
    padding: 16px 30px;
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-family: inherit;
}

.submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    transition: left 0.3s ease;
    z-index: -1;
}

.submit-button:hover {
    color: var(--bg-color);
    box-shadow: 0 0 20px var(--red-glow);
}

.submit-button:hover::before {
    left: 0;
}

.submit-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.5);
    color: #4ade80;
}

.form-message.error {
    display: block;
    background: rgba(220, 38, 38, 0.2);
    border: 1px solid rgba(220, 38, 38, 0.5);
    color: var(--accent-light);
}

/* Modal Vidéo YouTube */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.video-modal.active {
    opacity: 1;
    visibility: visible;
}

.video-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    z-index: 1;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.video-modal.active .video-modal-content {
    transform: scale(1);
}

.video-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 48px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
    line-height: 1;
    padding: 0;
}

.video-modal-close:hover {
    color: var(--accent-color);
    transform: rotate(90deg);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    border: 2px solid var(--border-color);
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
    background: #000;
}

.video-container video {
    object-fit: contain;
}

@media (max-width: 768px) {
    header {
        padding: 15px 20px;
    }

    .logo-img {
        height: 32px;
        max-width: 150px;
    }

    .logo-text {
        font-size: 18px;
    }

    .main-nav {
        gap: 15px;
    }

    .nav-link {
        font-size: 12px;
    }

    .hero-section {
        min-height: 70vh;
        padding: 60px 20px;
    }

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

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-description {
        font-size: 14px;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 12px;
    }

    .projects-section {
        padding: 60px 20px;
    }

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

    .filters {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .filter-btn {
        font-size: 11px;
        padding: 10px 18px;
        letter-spacing: 0.8px;
    }
    
    .filter-btn.active::after {
        width: 4px;
        height: 4px;
        left: 6px;
    }

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

    .project-card-image {
        height: 180px;
    }
    
    .project-description {
        font-size: 11px;
    }
    
    .read-more-btn {
        font-size: 10px;
        padding: 4px 0;
    }

    .about-section {
        padding: 60px 20px;
    }

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

    .skills-container {
        margin-top: 40px;
        gap: 40px;
    }

    .skills-title {
        font-size: 22px;
        margin-bottom: 30px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .skill-category {
        padding: 25px 20px;
    }

    .skill-icon {
        font-size: 40px;
    }

    .software-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 15px;
    }

    .software-item {
        padding: 20px 15px;
    }

    .software-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 12px;
    }

    .software-name {
        font-size: 12px;
    }

    .software-icon {
        width: 55px;
        height: 55px;
    }

    .contact-section {
        padding: 60px 20px;
    }

    .contact-info {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .social-links {
        align-items: stretch;
    }
    
    .social-link {
        padding: 10px 15px;
    }

    .contact-form {
        padding: 30px 20px;
        margin: 30px auto;
    }

    .form-group input,
    .form-group textarea {
        font-size: 14px;
    }

    .video-modal-content {
        width: 95%;
    }

    .video-modal-close {
        top: -40px;
        font-size: 36px;
    }

    .play-button {
        width: 60px;
        height: 60px;
    }

    .play-button::after {
        border-left-width: 20px;
        border-top-width: 12px;
        border-bottom-width: 12px;
        margin-left: 5px;
    }
}
