:root {
    --bg-pattern: #747474;
    --card-bg: #3a3a3a;
    --card-left-bg: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #999999;
    --accent: #00b962;
    --accent-hover: #00dd77;
    --border: #333333;
    --shadow: rgba(0, 0, 0, 0.7);
}

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

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-pattern);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 15px;
    overflow: hidden;
    height: 100vh;
}

/* Background Pattern */
.background-pattern {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0, 255, 136, 0.03) 2px, rgba(0, 255, 136, 0.03) 4px),
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 255, 136, 0.03) 2px, rgba(0, 255, 136, 0.03) 4px);
    pointer-events: none;
}

/* Language Selector */
.language-selector {
    position: fixed;
    top: 1rem;
    right: 2rem;
    display: flex;
    gap: 0.5rem;
    z-index: 200;
    background: var(--card-bg);
    padding: 0.5rem;
    border-radius: 50px;
    box-shadow: 0 10px 30px var(--shadow);
    border: 1px solid var(--border);
}

.lang-btn {
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    padding: 0.2rem;
    opacity: 0.6;
    line-height: 1;
    overflow: hidden;
}

.flag-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.lang-btn:hover {
    opacity: 1;
    transform: scale(1.15);
    background: rgba(0, 255, 136, 0.1);
}

.lang-btn.active {
    opacity: 1;
    border-color: var(--accent);
    background: rgba(0, 255, 136, 0.15);
    transform: scale(1.2);
}

/* Card Container */
.card-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1200px;
    height: 85vh;
    max-height: 750px;
    display: flex;
    gap: 0;
    padding-bottom: 10vh;
}

/* Left Card */
.card-left {
    width: 350px;
    min-width: 290px;
    background: var(--card-left-bg);
    border-radius: 30px 0 0 30px;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 20px 60px var(--shadow);
    border: 1px solid var(--border);
    border-right: none;
}

.profile-section {
    text-align: center;
    margin-bottom: 40px;
}

.profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid var(--accent);
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 150px;
    color: var(--accent);
    background: rgba(0, 255, 136, 0.05);
    overflow: hidden;
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.profile-photo i {
    font-size: 150px;
}

.profile-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.profile-role {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.social-section {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.social-btn {
    width: 42px;
    height: 42px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
}

.social-btn:hover {
    background: var(--accent);
    color: var(--bg-pattern);
    border-color: var(--accent);
    transform: translateY(-3px);
}

.download-cv-btn {
    width: 100%;
    padding: 14px 20px;
    background: var(--accent);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    margin-top: auto;
}

.download-cv-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 255, 136, 0.3);
}

/* Right Card */
.card-right {
    flex: 1;
    background: var(--card-bg);
    border-radius: 0 30px 30px 0;
    padding: 3rem;
    overflow-y: auto;
    box-shadow: 0 20px 60px var(--shadow);
    border: 1px solid var(--border);
    border-left: none;
    position: relative;
}

/* Hide scrollbar but keep functionality */
.card-right::-webkit-scrollbar {
    width: 8px;
}

.card-right::-webkit-scrollbar-track {
    background: transparent;
    margin: 30px 0; /* Espacement haut/bas pour éviter les coins arrondis */
}

.card-right::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
    border: 2px solid var(--card-bg); /* Crée un espace autour du thumb */
}

/* Content Sections */
.content-section {
    display: none;
    height: 100%;
}

.content-section.active {
    display: flex;
    flex-direction: column;
}

/* Animation 1: Fade Slide Up */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation 2: Fade Slide Down */
@keyframes fadeSlideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation 3: Fade Slide Left */
@keyframes fadeSlideLeft {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animation 4: Fade Slide Right */
@keyframes fadeSlideRight {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animation 5: Zoom In */
@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation 6: Zoom Rotate */
@keyframes zoomRotate {
    from {
        opacity: 0;
        transform: scale(0.7) rotate(-5deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* Animation 7: Flip */
@keyframes flip {
    from {
        opacity: 0;
        transform: perspective(1000px) rotateY(90deg);
    }
    to {
        opacity: 1;
        transform: perspective(1000px) rotateY(0deg);
    }
}

/* Animation 8: Slide Rotate Left */
@keyframes slideRotateLeft {
    from {
        opacity: 0;
        transform: translateX(100%) rotate(15deg);
    }
    to {
        opacity: 1;
        transform: translateX(0) rotate(0deg);
    }
}

/* Animation 9: Slide Rotate Right */
@keyframes slideRotateRight {
    from {
        opacity: 0;
        transform: translateX(-100%) rotate(-15deg);
    }
    to {
        opacity: 1;
        transform: translateX(0) rotate(0deg);
    }
}

/* Animation 10: Depth Fade In */
@keyframes depthFadeIn {
    from {
        opacity: 0;
        transform: translateZ(-200px) scale(0.8);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translateZ(0) scale(1);
        filter: blur(0);
    }
}

/* Animation 11: Depth Fade Out In */
@keyframes depthFadeOutIn {
    from {
        opacity: 0;
        transform: translateZ(200px) scale(1.2);
    }
    to {
        opacity: 1;
        transform: translateZ(0) scale(1);
    }
}

/* Animation 12: Card Flip Horizontal */
@keyframes cardFlipHorizontal {
    0% {
        opacity: 0;
        transform: perspective(1200px) rotateX(-90deg);
        transform-origin: center top;
    }
    100% {
        opacity: 1;
        transform: perspective(1200px) rotateX(0deg);
        transform-origin: center top;
    }
}

/* Animation 13: Card Flip Vertical */
@keyframes cardFlipVertical {
    0% {
        opacity: 0;
        transform: perspective(1200px) rotateY(-180deg);
        transform-origin: left center;
    }
    100% {
        opacity: 1;
        transform: perspective(1200px) rotateY(0deg);
        transform-origin: left center;
    }
}

/* Animation 14: 3D Cube Rotate */
@keyframes cubeRotate {
    from {
        opacity: 0;
        transform: perspective(1500px) rotateX(-45deg) rotateY(45deg) scale(0.7);
    }
    to {
        opacity: 1;
        transform: perspective(1500px) rotateX(0) rotateY(0) scale(1);
    }
}

/* Animation 15: Bounce Slide In */
@keyframes bounceSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-100%) scale(0.9);
    }
    60% {
        transform: translateX(20px) scale(1.02);
    }
    80% {
        transform: translateX(-10px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Animation classes */
.content-section.anim-1 {
    animation: fadeSlideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.content-section.anim-2 {
    animation: fadeSlideDown 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.content-section.anim-3 {
    animation: fadeSlideLeft 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.content-section.anim-4 {
    animation: fadeSlideRight 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.content-section.anim-5 {
    animation: zoomIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.content-section.anim-6 {
    animation: zoomRotate 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.content-section.anim-7 {
    animation: flip 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.content-section.anim-8 {
    animation: slideRotateLeft 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.content-section.anim-9 {
    animation: slideRotateRight 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.content-section.anim-10 {
    animation: depthFadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.content-section.anim-11 {
    animation: depthFadeOutIn 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.content-section.anim-12 {
    animation: cardFlipHorizontal 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.content-section.anim-13 {
    animation: cardFlipVertical 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.content-section.anim-14 {
    animation: cubeRotate 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.content-section.anim-15 {
    animation: bounceSlideIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Animation de rotation pour la grille de points */
@keyframes rotateGrid {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::before {
    position: absolute;
    opacity: 0.45;
    top: 0%;
    left: -15px;
    content: '';
    height: 30px;
    width: 30px;
    background-image: repeating-radial-gradient(circle, var(--accent), var(--accent) 1px, transparent 0px, transparent 100%);
    background-size: 6px 6px;
    z-index: 0;
    animation: rotateGrid 60s linear infinite;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 50px;
    height: 3px;
    background: var(--accent);
}

.subsection-title {
    font-size: 24px;
    font-weight: 600;
    margin: 30px 0 25px;
}

/* Content Block */
.content-block {
    margin-bottom: 40px;
}

.intro-text {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 30px;
}

/* Info Grid */
.info-grid {
    display: grid;
    gap: 0px;
}

.info-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.info-label {
    color: var(--text-secondary);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 300;
}

.info-value {
    color: var(--text-primary);
    font-weight: 600;
    word-break: break-word;
    text-align: right;
}

/* Info-grid imbriqué dans info-value */
.info-value .info-grid {
    width: 100%;
}

.info-value .info-grid .info-row {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 10px 0;
    font-size: 0.9em;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.service-card {
    background: rgba(0, 255, 136, 0.05);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.service-card i {
    font-size: 36px;
    color: var(--accent);
    margin-bottom: 15px;
}

.service-card .service-icon-img {
    width: 36px;
    height: 36px;
    margin-bottom: 15px;
    /* Convertir en nuances de vert tout en préservant le contraste */
    filter: grayscale(100%) sepia(100%) hue-rotate(75deg) saturate(300%) brightness(0.95);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon-img {
    filter: grayscale(100%) sepia(100%) hue-rotate(75deg) saturate(400%) brightness(1.1);
    transform: scale(1.05);
}

.service-card h4 {
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 600;
}

.service-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Resume Block */
.resume-block {
    margin-bottom: 50px;
}

.block-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.block-title i {
    color: var(--accent);
}

/* Timeline */
.timeline-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 30px;
    border-left: 2px solid var(--border);
    padding-bottom: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 0;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    border: 2px solid var(--card-bg);
}

.timeline-period {
    display: inline-block;
    padding: 5px 15px;
    background: var(--accent);
    color: var(--bg-pattern);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
}

.timeline-item h4 {
    font-size: 18px;
    margin-bottom: 5px;
    font-weight: 600;
}

.timeline-place {
    display: block;
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 10px;
}

.timeline-item p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 14px;
}

/* Skills */
.skills-block {
    margin-bottom: 40px;
}

.skill-item {
    margin-bottom: 20px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
}

.skill-info span:last-child {
    color: var(--accent);
    font-weight: 700;
}

.skill-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    border-radius: 10px;
    transition: width 1s ease;
}

/* Tech Tags */
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tags span {
    padding: 8px 16px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: default;
}

.tech-tags span:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

/* Portfolio Filters */
.portfolio-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-tag {
    padding: 8px 20px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tag:hover,
.filter-tag.active {
    background: var(--accent);
    color: var(--bg-pattern);
    border-color: var(--accent);
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.project-card {
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.project-img {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.view-btn {
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: var(--bg-pattern);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.view-btn:hover {
    transform: scale(1.1);
}

.project-info {
    padding: 15px;
}

.project-info h4 {
    font-size: 15px;
    margin-bottom: 5px;
    font-weight: 600;
}

.project-info span {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Contact */
.contact-heading {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 600;
}

.contact-intro {
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.7;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 25px;
    background: rgba(0, 255, 136, 0.05);
    border-radius: 15px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.contact-item:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

.contact-item i {
    font-size: 28px;
    color: var(--accent);
    margin-top: 3px;
}

.contact-item strong {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

.contact-item p {
    color: var(--text-secondary);
    font-size: 13px;
    margin: 0;
}

.contact-item .available {
    color: var(--accent);
    font-weight: 600;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 9vh;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2vw;
    z-index: 100;
    max-width: 90%;
    width: fit-content;
    align-items: center;
}

.nav-tooltip {
    background: var(--accent);
    color: var(--text-primary);
    padding: 0.5rem 3rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    animation: fadeIn 0.3s ease;
    min-width: 150px;
    text-align: center;
}

.nav-icons {
    background: var(--card-bg);
    border-radius: 50px;
    padding: 0.4rem 2rem;
    display: flex;
    gap: 0.5rem;
    box-shadow: 0 10px 30px var(--shadow);
    border: 1px solid var(--border);
    align-items: center;
    position: relative;
}

.nav-icon {
    width: 2.6rem;
    height: 2.6rem;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-icon:hover,
.nav-icon.active {
    background: var(--accent);
    color: var(--bg-pattern);
}

.nav-arrows {
    background: var(--card-bg);
    border-radius: 50px;
    padding: 0.4rem 1rem;
    display: flex;
    gap: 0.5rem;
    box-shadow: 0 10px 30px var(--shadow);
    border: 1px solid var(--border);
    align-items: center;
}

.arrow-btn {
    width: 2.6rem;
    height: 2.6rem;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arrow-btn:hover {
    background: var(--accent);
    color: var(--bg-pattern);
}

/* Home Hero */
.home-hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 500px;
    padding: 50px 0;
}

.hero-name {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.hero-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-btn {
    padding: 14px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
}

.hero-btn.primary {
    background: var(--accent);
    color: var(--text-primary);
}

.hero-btn.primary:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

.hero-btn.secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border);
}

.hero-btn.secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.blog-card {
    background: rgba(0, 255, 136, 0.05);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.blog-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.blog-date {
    display: inline-block;
    padding: 5px 15px;
    background: var(--accent);
    color: var(--bg-pattern);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 15px;
}

.blog-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 600;
}

.blog-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 15px;
    font-size: 14px;
}

.blog-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.blog-link:hover {
    gap: 12px;
}

.blog-link i {
    font-size: 12px;
}
@media (max-width: 1024px) {
    .card-container {
        flex-direction: column;
        height: auto;
        max-height: none;
        padding: 20px;
        overflow-y: auto;
    }

    .card-left {
        width: 100%;
        padding: 30px;
    }

    .card-right {
        height: auto;
        min-height: 500px;
    }

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

    .bottom-nav {
        bottom: 10px;
        flex-direction: column-reverse;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .nav-icons {
        flex-wrap: wrap;
        justify-content: center;
    }
}
