/* Portfolio Mitia Andrimalala - CSS Principal */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #0A0A0A;
    color: #E0E0E0;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-weight: 700;
    color: #FFFFFF;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1.5rem 3rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 212, 255, 0.1);
}

header.scrolled {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: #00D4FF;
    transition: color 0.3s ease;
}

.logo:hover {
    color: #00A3CC;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    margin-left: 2.5rem;
    text-decoration: none;
    color: #B0B0B0;
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: #00D4FF;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: #00D4FF;
    transition: width 0.3s ease;
}

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

.hamburger {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: #B0B0B0;
    transition: color 0.3s ease;
    background: none;
    border: none;
}

.hamburger:hover {
    color: #00D4FF;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1516321318427-4b57e7a935a7') center/cover no-repeat;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.hero-content {
    z-index: 1;
}

.hero-content h1 {
    font-size: 5.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.hero-content h1 span {
    display: inline-block;
}

.hero-content p {
    font-size: 1.6rem;
    max-width: 900px;
    margin: 0 auto;
    color: #B0B0B0;
    padding: 0 1rem;
}

.typed-text {
    font-weight: 600;
    color: #00D4FF;
    min-width: 300px;
    display: inline-block;
    position: relative;
}

.typed-text::after {
    content: '|';
    position: absolute;
    right: -15px;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.social-links-hero {
    margin-top: 2.5rem;
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.social-links-hero a {
    color: #B0B0B0;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border: 1px solid #2A2A2A;
    border-radius: 5px;
}

.social-links-hero a:hover {
    color: #00D4FF;
    border-color: #00D4FF;
    transform: translateY(-5px);
    background: rgba(0, 212, 255, 0.1);
}

/* Parallax Background */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1516321318427-4b57e7a935a7') center/cover no-repeat;
    z-index: 0;
    animation: parallax 15s infinite linear;
}

@keyframes parallax {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5%); }
    100% { transform: translateY(0); }
}

/* About Section */
.about {
    padding: 10rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 4rem;
    align-items: center;
    background: linear-gradient(135deg, #0A0A0A 70%, #121212 100%);
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
    overflow: hidden;
}

.about .profile-img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #00D4FF;
    transition: transform 0.5s ease;
}

.about .profile-img:hover {
    transform: rotate(5deg) scale(1.05);
}

.about-content {
    flex: 1;
}

.about h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    position: relative;
}

.about h2::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: #00D4FF;
    bottom: -10px;
    left: 0;
    transition: width 0.3s ease;
}

.about h2:hover::after {
    width: 100px;
}

.about p {
    font-size: 1.2rem;
    color: #B0B0B0;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Services Section */
.services {
    padding: 10rem 3rem;
    background: #121212;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.services h2 {
    font-size: 3rem;
    margin-bottom: 4rem;
    position: relative;
}

.services h2::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: #00D4FF;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.services h2:hover::after {
    width: 100px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.service-item {
    padding: 2.5rem;
    background: #1A1A1A;
    border-radius: 20px;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.service-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    transition: transform 0.6s ease;
    z-index: 0;
}

.service-item:hover::before {
    transform: translate(50%, 50%);
}

.service-item:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 30px rgba(0, 212, 255, 0.3);
}

.service-item h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.service-item p {
    color: #B0B0B0;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

/* Tools Section */
.tools {
    padding: 10rem 3rem;
    text-align: center;
    background: linear-gradient(135deg, #121212 70%, #1A1A1A 100%);
    border-radius: 15px;
    margin: 2rem auto;
    max-width: 1400px;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
}

.tools h2 {
    font-size: 3rem;
    margin-bottom: 4rem;
    position: relative;
}

.tools h2::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: #00D4FF;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.tools h2:hover::after {
    width: 100px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.4s ease;
    position: relative;
    padding: 1rem;
    border-radius: 10px;
    background: rgba(26, 26, 26, 0.8);
}

.tool-item:hover {
    transform: scale(1.2) rotate(5deg);
    box-shadow: 0 10px 20px rgba(0, 212, 255, 0.2);
}

.tool-item img {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.tool-item:hover img {
    transform: rotate(360deg);
}

.tool-item h3 {
    font-size: 1.2rem;
    color: #B0B0B0;
}

/* Skills Section */
.skills {
    padding: 10rem 3rem;
    background: #121212;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.skills h2 {
    font-size: 3rem;
    margin-bottom: 4rem;
    position: relative;
}

.skills h2::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: #00D4FF;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.skills h2:hover::after {
    width: 100px;
}

.skills-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    flex-wrap: wrap;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    background: #1A1A1A;
    padding: 1.5rem;
    border-radius: 10px;
    transition: all 0.4s ease;
    cursor: pointer;
    max-width: 400px;
    width: 100%;
}

.skill-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 212, 255, 0.2);
}

.skill-item img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

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

.skill-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
}

.skill-details h3 {
    font-size: 1.2rem;
    line-height: 1.4;
}

.skill-bar {
    background: #2A2A2A;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    width: 150px;
    position: relative;
}

.skill-bar-fill {
    background: #00D4FF;
    height: 100%;
    width: 0;
    border-radius: 6px;
    transition: width 1.5s ease;
}

/* Timeline Section */
.timeline {
    padding: 10rem 3rem;
    text-align: center;
    background: linear-gradient(135deg, #0A0A0A 70%, #121212 100%);
    border-radius: 15px;
    margin: 2rem auto;
    max-width: 1200px;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
}

.timeline h2 {
    font-size: 3rem;
    margin-bottom: 4rem;
    position: relative;
}

.timeline h2::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: #00D4FF;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.timeline h2:hover::after {
    width: 100px;
}

.timeline-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    padding: 0 1rem;
}

.timeline-item {
    margin-bottom: 3.5rem;
    text-align: left;
    padding: 2rem;
    background: #1A1A1A;
    border-radius: 15px;
    position: relative;
    transition: all 0.4s ease;
    cursor: pointer;
}

.timeline-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 20px rgba(0, 212, 255, 0.2);
}

.timeline-item h3 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
}

.timeline-item p {
    color: #B0B0B0;
    font-size: 1.1rem;
}

/* Certifications Section */
.certifications {
    padding: 10rem 3rem;
    background: #121212;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.certifications h2 {
    font-size: 3rem;
    margin-bottom: 4rem;
    position: relative;
}

.certifications h2::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: #00D4FF;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.certifications h2:hover::after {
    width: 100px;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.certification-item {
    padding: 2.5rem;
    background: #1A1A1A;
    border-radius: 20px;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.certification-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    transition: transform 0.6s ease;
    z-index: 0;
}

.certification-item:hover::before {
    transform: translate(50%, 50%);
}

.certification-item:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 30px rgba(0, 212, 255, 0.3);
}

.certification-item h3 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    position: relative;
    z-index: 1;
}

.certification-item p {
    color: #B0B0B0;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

/* Case Studies Section */
.case-studies {
    padding: 10rem 3rem;
    max-width: 1400px;
    margin: 0 auto;
    background: linear-gradient(135deg, #0A0A0A 70%, #121212 100%);
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
}

.case-studies h2 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.case-studies h2::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: #00D4FF;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.case-studies h2:hover::after {
    width: 100px;
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2.5rem;
    padding: 0 1rem;
}

.case-card {
    background: #1A1A1A;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    text-decoration: none;
    color: inherit;
}

.case-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.4);
}

.case-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.case-card-content {
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.case-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.case-card:hover h3 {
    color: #00D4FF;
}

.case-card p {
    color: #B0B0B0;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-link {
    color: #00D4FF;
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.project-link::after {
    content: '→';
    transition: transform 0.3s ease;
}

.case-card:hover .project-link {
    opacity: 1;
    transform: translateY(0);
}

.case-card:hover .project-link::after {
    transform: translateX(5px);
}

.case-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    background: linear-gradient(45deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

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

/* Contact Section */
.contact {
    padding: 8rem 2rem;
    max-width: 1200px;
    margin: 6rem auto 6rem auto;
    text-align: center;
    background: linear-gradient(135deg, #181818 70%, #232323 100%);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.10), 0 1.5px 8px rgba(0,0,0,0.25);
    position: relative;
    animation: fadeInUp 1.2s cubic-bezier(.23,1.02,.32,1) 0.2s both;
}

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

.contact h2 {
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
    position: relative;
    color: #00D4FF;
    letter-spacing: 1px;
}

.contact p {
    color: #B0B0B0;
    margin-bottom: 2.2rem;
    font-size: 1.1rem;
}

.contact form {
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
    margin: 0 auto 1.5rem auto;
    width: 100%;
    max-width: 700px;
    background: rgba(26,26,26,0.92);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,212,255,0.07);
    padding: 2.5rem 2rem 2rem 2rem;
}

.contact input,
.contact textarea {
    padding: 1.1rem 1.2rem;
    background: #181818;
    border: 2px solid #232323;
    border-radius: 12px;
    color: #E0E0E0;
    font-size: 1.05rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 1px 4px rgba(0,212,255,0.04);
    width: 100%;
    margin-bottom: 0.5rem;
}

.contact input:focus,
.contact textarea:focus {
    border-color: #00D4FF;
    outline: none;
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.18);
}

.contact textarea {
    resize: vertical;
    min-height: 120px;
    max-height: 260px;
}

.contact button {
    padding: 1.1rem 0;
    background: linear-gradient(90deg, #00D4FF 60%, #00A3CC 100%);
    color: #0A0A0A;
    border: none;
    border-radius: 12px;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
    box-shadow: 0 2px 8px rgba(0,212,255,0.10);
}

.contact button:hover {
    background: linear-gradient(90deg, #00A3CC 0%, #00D4FF 100%);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 4px 16px rgba(0,212,255,0.18);
}

.resume-download {
    display: inline-block;
    margin-top: 1.2rem;
    padding: 1rem 2.2rem;
    background: #181818;
    color: #00D4FF;
    text-decoration: none;
    border-radius: 10px;
    border: 2px solid #00D4FF;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 1.05rem;
}

.resume-download:hover {
    background: #00D4FF;
    color: #0A0A0A;
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 2px 10px rgba(0, 212, 255, 0.18);
}

.form-status {
    margin-top: 0.5rem;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    display: none;
    font-size: 1rem;
}

.form-status.success {
    display: block;
    background-color: rgba(0, 255, 0, 0.08);
    color: #00ff99;
    border: 1px solid #00ff99;
}

.form-status.error {
    display: block;
    background-color: rgba(255, 0, 0, 0.08);
    color: #ff4d4d;
    border: 1px solid #ff4d4d;
}

/* Footer */
footer {
    background: #121212;
    color: #B0B0B0;
    text-align: center;
    padding: 5rem 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.social-links {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-links a {
    color: #B0B0B0;
    font-size: 1.6rem;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border: 1px solid #2A2A2A;
    border-radius: 5px;
}

.social-links a:hover {
    color: #00D4FF;
    border-color: #00D4FF;
    transform: translateY(-5px);
    background: rgba(0, 212, 255, 0.1);
}

.back-to-top {
    display: inline-block;
    margin-top: 1.5rem;
    color: #00D4FF;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    transform: translateY(-3px);
    color: #00A3CC;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    opacity: 0;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #1A1A1A;
    padding: 2.5rem 2rem 2rem 2rem;
    border-radius: 15px;
    max-width: 400px;
    width: 90vw;
    margin: auto;
    position: relative;
    transform: translateY(-30px) scale(0.98);
    transition: transform 0.3s cubic-bezier(.23,1.02,.32,1);
    border: 2px solid #00D4FF;
    box-shadow: 0 0 32px rgba(0, 212, 255, 0.25);
    text-align: center;
}

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

.modal-content h3 {
    color: #00D4FF;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-align: center;
}

.modal-content p {
    color: #B0B0B0;
    text-align: center;
    margin-bottom: 1.5rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #B0B0B0;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #00D4FF;
}

.modal-icon {
    text-align: center;
    font-size: 3rem;
    color: #00D4FF;
    margin-bottom: 1rem;
}

/* Accessibility Styles */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

a:focus, button:focus, input:focus, textarea:focus, .case-card:focus {
    outline: 2px solid #00D4FF;
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #00D4FF;
    color: #0A0A0A;
    padding: 8px;
    text-decoration: none;
    z-index: 10000;
    border-radius: 4px;
}

.skip-link:focus {
    top: 6px;
}

/* Performance Optimizations */
img {
    height: auto;
    width: auto;
}

.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy.loaded {
    opacity: 1;
}

.hero-content h1 span,
.case-card,
.skill-bar-fill,
.tool-item,
.service-item {
    will-change: transform;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .contact form {
        max-width: 98vw;
        padding: 1.2rem 0.5rem;
    }

    header {
        padding: 1.2rem 2rem;
    }

    .logo {
        font-size: 1.6rem;
    }

    .nav-links a {
        margin-left: 2rem;
        font-size: 1rem;
    }

    .hero-content h1 {
        font-size: 4.5rem;
    }

    .hero-content p {
        font-size: 1.4rem;
    }

    .social-links-hero a {
        font-size: 1.3rem;
        padding: 0.4rem 0.8rem;
    }

    .about {
        padding: 8rem 2rem;
        gap: 3rem;
    }

    .about .profile-img {
        width: 250px;
        height: 250px;
    }

    .about h2 {
        font-size: 2.8rem;
    }

    .about p {
        font-size: 1.1rem;
    }

    .services, .tools, .skills, .timeline, .certifications, .case-studies, .contact {
        padding: 8rem 2rem;
    }

    .services-grid, .tools-grid, .certifications-grid, .case-grid {
        gap: 2rem;
    }

    .skill-item {
        padding: 1rem 1.5rem;
        max-width: 350px;
    }

    .skill-details h3 {
        font-size: 1.1rem;
    }

    .skill-bar {
        height: 10px;
        width: 120px;
    }

    .case-card img {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .hero::before {
        animation: none;
    }

    header {
        padding: 1rem 1.5rem;
    }

    .logo {
        font-size: 1.4rem;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: #121212;
        padding: 1.2rem;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        margin: 0.8rem 0;
        font-size: 1.1rem;
    }

    .hamburger {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .social-links-hero {
        flex-direction: column;
        gap: 1.5rem;
    }

    .social-links-hero a {
        font-size: 1.2rem;
        padding: 0.3rem 0.6rem;
    }

    .about {
        flex-direction: column;
        padding: 6rem 1.5rem;
        gap: 2rem;
    }

    .about .profile-img {
        width: 180px;
        height: 180px;
    }

    .about h2 {
        font-size: 2.2rem;
    }

    .about p {
        font-size: 1rem;
    }

    .services, .tools, .skills, .timeline, .certifications, .case-studies, .contact {
        padding: 6rem 1.5rem;
    }

    .services-grid, .tools-grid, .skills-grid, .certifications-grid, .case-grid {
        grid-template-columns: 1fr;
    }

    .service-item, .certification-item, .case-card {
        padding: 1.2rem;
    }

    .tool-item img {
        width: 50px;
        height: 50px;
    }

    .tool-item h3 {
        font-size: 1.1rem;
    }

    .skill-item {
        padding: 1rem 1.2rem;
        max-width: 100%;
    }

    .skill-details h3 {
        font-size: 1rem;
    }

    .skill-bar {
        height: 8px;
        width: 100px;
    }

    .timeline-item {
        padding: 1.5rem;
    }

    .timeline-item h3 {
        font-size: 1.6rem;
    }

    .timeline-item p {
        font-size: 1rem;
    }

    .case-card img {
        height: 200px;
    }

    .contact form {
        gap: 1.2rem;
    }

    .contact input,
    .contact textarea,
    .contact button,
    .resume-download {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .social-links {
        flex-direction: column;
        gap: 1.2rem;
    }

    .social-links a {
        font-size: 1.4rem;
        padding: 0.3rem 0.6rem;
    }
}

@media (max-width: 600px) {
    .contact {
        padding: 3.5rem 0.7rem;
        max-width: 98vw;
        min-height: unset;
    }

    .contact h2 {
        font-size: 1.3rem;
    }

    .resume-download {
        font-size: 0.95rem;
        padding: 0.7rem 1.2rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 1rem 1rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .nav-links a {
        margin: 0.6rem 0;
        font-size: 1rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .social-links-hero a {
        font-size: 1rem;
        padding: 0.2rem 0.4rem;
    }

    .about .profile-img {
        width: 150px;
        height: 150px;
    }

    .about h2 {
        font-size: 1.8rem;
    }

    .about p {
        font-size: 0.9rem;
    }

    .services h2,
    .tools h2,
    .skills h2,
    .timeline h2,
    .certifications h2,
    .case-studies h2,
    .contact h2 {
        font-size: 2rem;
    }

    .service-item h3,
    .certification-item h3,
    .case-card h3 {
        font-size: 1.4rem;
    }

    .service-item p,
    .certification-item p,
    .case-card p {
        font-size: 0.9rem;
    }

    .tool-item img {
        width: 40px;
        height: 40px;
    }

    .tool-item h3 {
        font-size: 1rem;
    }

    .skill-details h3 {
        font-size: 0.9rem;
    }

    .skill-bar {
        width: 80px;
    }

    .case-card img {
        height: 150px;
    }

    .contact p {
        font-size: 1rem;
    }

    footer p {
        font-size: 1rem;
    }

    .back-to-top {
        font-size: 0.9rem;
    }
}

/* Préférence utilisateur pour réduire les animations */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero::before {
        animation: none;
    }
}