
:root {
    --primary: #2E6D93;
    --primary-dark: #1B4965;
    --accent: #2ECC71;
    --dark-bg: #0b192c;
    --card-bg: #112238;
    --text-light: #ffffff;
    --text-muted: #ffffff;
}

body {
    font-family: 'IBM Plex Sans', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
}

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

    to {
        transform: translateY(0);
        opacity: 1;
    }
}
.about-hero {
    min-height: 50vh;
    background-color: var(--dark-bg);
}

.about-hero .hero-title span {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==================== Section ==================== */
.projects-section {
    background: var(--dark-bg);
    padding: 90px 0;
    position: relative;
    overflow: hidden;
}

.projects-section .container {
    position: relative;
    z-index: 1;
}


.section-badge {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 50px;
    background: rgba(46, 204, 113, 0.15);
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 15px;
    border: 1px solid rgba(46, 204, 113, 0.35);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 15px;
}

.section-title span {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-family: 'IBM Plex Sans', sans-serif;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 767px) {
    .section-title {
        font-size: 2rem;
    }
}


.filter-btns {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 50px;
}

.filter-btn {
    font-family: 'IBM Plex Sans', sans-serif;
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--accent);
    padding: 10px 26px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(46, 204, 113, 0.3);
}

.filter-btn.active {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-color: transparent;
    box-shadow: 0 10px 25px rgba(46, 204, 113, 0.25);
}

.filter-btn:focus-visible,
.project-cta:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}


.project-row {
    display: flex;
    align-items: center;
    gap: 50px;
    padding: 30px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid rgba(46, 204, 113, 0.1);
    border-radius: 20px;
    transition: all 0.4s ease;
    animation: fadeInUp 0.6s ease;
}

.project-row:last-child {
    margin-bottom: 0;
}

.project-row.reverse {
    flex-direction: row-reverse;
}


.project-row::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: 2;
}

.project-row:hover::before {
    transform: scaleX(1);
}

.project-row:hover {
    transform: translateY(-8px);
    border-color: rgba(46, 204, 113, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}


.project-visual {
    flex: 0 0 45%;
    display: flex;
    align-items: center;
    gap: 18px; 
}


.project-index {
    flex: 0 0 auto;
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(46, 204, 113, 0.4);
    pointer-events: none;
    user-select: none;
}

.project-visual .frame {
    flex: 1; 
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.project-row:hover .frame img {
    transform: scale(1.08);
}


.project-content {
    flex: 1;
}

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


.project-tag {
    display: inline-block;
    padding: 5px 14px;
    margin-bottom: 16px;
    border-radius: 50px;
    background: rgba(46, 204, 113, 0.15);
    border: 1px solid rgba(46, 204, 113, 0.35);
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.project-content h3 {
    color: var(--text-light);
    font-weight: 700;
    font-size: 1.7rem;
    margin-bottom: 12px;
}

.project-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 480px;
}


.project-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.project-stack span {
    font-size: 0.78rem;
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 5px 12px;
    border-radius: 6px;
}


.project-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.project-cta i {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--accent);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.project-cta:hover {
    color: var(--text-light);
}

.project-cta:hover i {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-color: transparent;
    color: #fff;
    transform: translateX(4px);
}

/* ==================== Responsive ==================== */
@media (max-width: 900px) {

    .project-row,
    .project-row.reverse {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
        padding: 20px;
        margin-bottom: 30px;
    }

    .project-visual {
        flex: none;
        width: 100%;
    }

    .project-index {
        font-size: 2.2rem; 
    }

    .project-content p {
        max-width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .project-row {
        animation: none;
    }

    .project-row,
    .project-row:hover,
    .project-row:hover .frame img {
        transition: none;
        transform: none;
    }
}