﻿@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
}

:root {
    --primary: #1FB020;
    --light: #C9E8BF;
    --dark: #000000;
    --accent: #1FB020;
    --accent-glow: rgba(31, 176, 32, 0.4);
    --highlight: #2dcb30;
    --text: #1FB020;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark);
    color: white;
    overflow-x: hidden;
}

section {
    padding: 100px 0;
    min-height: 100vh;
    position: relative;
}

h1,
h2,
h3,
h4 {
    margin-bottom: 1rem;
}

p {
    line-height: 1.7;
    margin-bottom: 1rem;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 4rem;
    position: relative;
    display: inline-block;
}

    .section-title::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 0;
        width: 50%;
        height: 4px;
        background-color: var(--primary);
        transition: width 0.3s ease;
    }

    .section-title:hover::after {
        width: 100%;
    }

header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    transition: all 0.3s ease;
}

    header.scrolled {
        box-shadow: 0 5px 20px rgba(31, 176, 32, 0.2);
    }

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px
}

    .logo img {
        width: 100px;
        height: auto;
    }

.nav-links {
    display: flex;
    list-style: none;
}

    .nav-links li {
        margin-left: 40px;
    }

    .nav-links a {
        color: white;
        text-decoration: none;
        font-weight: 500;
        position: relative;
        padding: 5px 0;
        transition: color 0.3s ease;
    }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background-color: var(--primary);
            transition: width 0.3s ease;
        }

        .nav-links a:hover {
            color: var(--primary);
        }

            .nav-links a:hover::after {
                width: 100%;
            }

.hamburger {
    display: none;
    cursor: pointer;
}

    .hamburger div {
        width: 25px;
        height: 3px;
        background-color: white;
        margin: 5px;
        transition: all 0.3s ease;
    }

.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7)), url('https://media4.giphy.com/media/v1.Y2lkPTc5MGI3NjExNDNob3R5M3R0NDJzc3U4bmpqYjVnaGdwYWptanNteThjZXljOGY4eiZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/pVGsAWjzvXcZW4ZBTE/giphy.gif') center/cover;
    position: relative;
    overflow: hidden;
}

    .hero::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(31, 176, 32, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
        animation: pulse 15s linear infinite;
    }

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 0.3;
    }
}

.hero-content {
    text-align: center;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero h2 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--light);
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.4s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn {
    padding: 12px 30px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(31, 176, 32, 0.3);
    cursor: pointer;
    animation: fadeInUp 1s ease 0.6s backwards;
    margin-top: 2rem;
}

    .btn:hover {
        background-color: var(--light);
        color: var(--dark);
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(31, 176, 32, 0.4);
    }

.tech-stack-carousel {
    margin-top: 60px;
    position: relative;
    height: 80px;
    width: 100%;
    overflow: hidden;
    animation: fadeInUp 1s ease 0.8s backwards;
}

.carousel-track {
    display: flex;
    width: calc(150px * 26);
    animation: scroll 30s linear infinite;
}

    .carousel-track:hover {
        animation-play-state: paused;
    }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-150px * 13));
    }
}

.carousel-item {
    width: 150px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
}

.tech-logo {
    width: auto;
    height: 60px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.carousel-item:hover .tech-logo {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.1);
}

.tech-stack-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to right, var(--dark) 0%, transparent 5%, transparent 95%, var(--dark) 100%);
    pointer-events: none;
}

.about {
    background-color: rgba(0, 0, 0, 0.95);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(31, 176, 32, 0.2);
    transition: all 0.3s ease;
}

    .about-image:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 40px rgba(31, 176, 32, 0.3);
    }

    .about-image img {
        width: 100%;
        height: auto;
        display: block;
    }

.about-text {
    flex: 1;
}

    .about-text h3 {
        color: var(--primary);
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

.skills {
    background-color: rgba(0, 0, 0, 0.9);
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.skill-category {
    background-color: rgba(201, 232, 191, 0.05);
    border-radius: 10px;
    padding: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

    .skill-category:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(31, 176, 32, 0.15);
        background-color: rgba(201, 232, 191, 0.1);
    }

    .skill-category h3 {
        font-size: 1.5rem;
        color: var(--primary);
        margin-bottom: 20px;
        padding-bottom: 10px;
        border-bottom: 2px solid rgba(31, 176, 32, 0.3);
    }

.skill-bar {
    margin-bottom: 20px;
}

    .skill-bar p {
        display: flex;
        justify-content: space-between;
        margin-bottom: 8px;
    }

    .skill-bar .bar {
        height: 10px;
        background-color: rgba(201, 232, 191, 0.1);
        border-radius: 5px;
        overflow: hidden;
    }

    .skill-bar .progress {
        height: 100%;
        background-color: var(--primary);
        border-radius: 5px;
        width: 0;
        transition: width 1.5s ease;
    }

.experience {
    background-color: rgba(0, 0, 0, 0.95);
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

    .timeline::after {
        content: '';
        position: absolute;
        width: 6px;
        background-color: rgba(31, 176, 32, 0.3);
        top: 0;
        bottom: 0;
        left: 50%;
        margin-left: -3px;
        border-radius: 3px;
    }

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

    .timeline-item.visible {
        opacity: 1;
        transform: translateX(0);
    }

    .timeline-item::after {
        content: '';
        position: absolute;
        width: 20px;
        height: 20px;
        background-color: var(--primary);
        border: 4px solid var(--light);
        top: 20px;
        border-radius: 50%;
        z-index: 1;
        box-shadow: 0 0 0 4px rgba(31, 176, 32, 0.2);
    }

    .timeline-item.left {
        left: 0;
    }

    .timeline-item.right {
        left: 50%;
    }

    .timeline-item.left::after {
        right: -14px;
    }

    .timeline-item.right::after {
        left: -14px;
    }

.timeline-content {
    padding: 30px;
    background-color: rgba(201, 232, 191, 0.05);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

    .timeline-content:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(31, 176, 32, 0.15);
        background-color: rgba(201, 232, 191, 0.1);
    }

    .timeline-content h3 {
        color: var(--primary);
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .timeline-content h4 {
        font-style: italic;
        color: var(--light);
        margin-bottom: 10px;
    }

    .timeline-content .date {
        color: var(--primary);
        font-weight: bold;
        margin-bottom: 10px;
    }

.certifications {
    background-color: rgba(0, 0, 0, 0.9);
}

.cert-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

@media (max-width: 768px) {
    .cert-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .cert-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

.cert-card {
    width: 100%;
    height: 400px;
    perspective: 1000px;
}

@media (max-width: 768px) {
    .cert-card {
        height: 380px;
    }
}

.cert-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.cert-card:hover .cert-card-inner {
    transform: rotateY(180deg);
}

.cert-card-front,
.cert-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.cert-card-front {
    background-color: rgba(201, 232, 191, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

    .cert-card-front img {
        width: 60%;
        height: auto;
        object-fit: contain;
        margin-bottom: 15px;
    }

@media (max-width: 768px) {
    .cert-card-front img {
        width: 50%;
    }

    .cert-card-front h3 {
        font-size: 1rem;
    }
}

.cert-card-front h3 {
    font-size: 1.2rem;
    color: var(--primary);
}

.corner-wave {
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    z-index: 1;
    pointer-events: none;
}

.corner-decoration {
    position: absolute;
    top: 0;
    right: 0;
    width: 220px;
    height: 220px;
    overflow: hidden;
    z-index: 2;
    pointer-events: none;
    border-top-right-radius: 15px;
}

.corner-wave {
    position: absolute;
    top: -110px;
    right: -110px;
    width: 220px;
    height: 220px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 35%;
    animation: wave-rotate 10s infinite linear;
}

.corner-wave-2 {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 200px;
    height: 200px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 40%;
    animation: wave-rotate 7s infinite linear reverse;
}

.corner-wave-3 {
    position: absolute;
    top: -90px;
    right: -90px;
    width: 180px;
    height: 180px;
    background-color: rgba(255, 255, 255, 0.07);
    border-radius: 38%;
    animation: wave-rotate 13s infinite linear;
}

@keyframes wave-rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.wave-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px;
    overflow: hidden;
    z-index: 1;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(0, 0, 0, 0) 100%);
}

.wave {
    display: none;
}

.wave-1, .wave-2 {
    display: none;
}

.cert-card-back {
    background: linear-gradient(135deg, rgba(15, 85, 15, 0.9) 0%, rgba(31, 176, 32, 0.8) 100%);
    color: white;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 25px 20px 80px;
    position: relative;
    overflow: visible;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

    .cert-card-back .content-wrapper {
        position: relative;
        z-index: 2;
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 5px;
        width: 100%;
        margin-top: 5px;
        text-align: left;
        max-height: 100%;
    }

.cert-header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
}

.cert-title {
    flex: 1;
    padding-right: 10px;
}

.cert-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: black;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 5px;
}

    .cert-logo i {
        font-size: 1.2rem;
        color: white;
    }

.cert-card-back h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: left;
}

    .cert-card-back h3::after {
        display: none;
    }

.cert-details {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px 15px;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

    .cert-details .label {
        font-weight: 600;
        color: rgba(255, 255, 255, 0.8);
    }

    .cert-details .value {
        color: white;
    }

.cert-card-back .issuer {
    font-weight: bold;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 5px;
    text-align: left;
    font-size: 0.95rem;
}

.cert-verify-btn {
    margin-top: 20px;
    padding: 12px 24px;
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(5px);
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    align-self: center;
}

    .cert-verify-btn i {
        font-size: 0.8rem;
    }

    .cert-verify-btn::before {
        content: '';
        position: absolute;
        left: -4px;
        top: -4px;
        background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0) 100%);
        height: calc(100% + 8px);
        width: 50%;
        transform: skewX(-20deg);
        animation: shine 3s infinite;
        z-index: -1;
    }

@keyframes shine {
    0% {
        left: -100%;
        opacity: 0;
    }

    10% {
        opacity: 0.5;
    }

    20% {
        left: 100%;
        opacity: 0;
    }

    100% {
        left: 100%;
        opacity: 0;
    }
}

.cert-verify-btn:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

    .cert-verify-btn:hover i {
        animation: bounce 1s infinite;
    }

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-3px);
    }

    60% {
        transform: translateY(-1px);
    }
}

.cert-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    z-index: 2;
}

    .cert-badge img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

@media (max-width: 768px) {
    .cert-card-back h3 {
        font-size: 1.1rem;
        margin-bottom: 5px;
    }

    .cert-details {
        font-size: 0.8rem;
        gap: 5px 10px;
    }

    .cert-verify-btn {
        padding: 6px 15px;
        font-size: 0.8rem;
    }

    .corner-wave {
        width: 100px;
        height: 100px;
    }
}

.contact {
    background-color: rgba(0, 0, 0, 0.95);
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    align-items: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: all 0.3s ease;
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
}

    .contact-item i {
        font-size: 1.5rem;
        color: var(--primary);
        margin-top: 3px;
    }

    .contact-item h3 {
        margin-bottom: 5px;
    }

    .contact-item a {
        color: #C9E8BF;
        text-decoration: none;
        transition: color 0.3s ease;
        position: relative;
    }

        .contact-item a::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 0;
            height: 1px;
            background-color: var(--primary);
            transition: width 0.3s ease;
        }


        .contact-item a:hover {
            color: var(--primary);
        }

            .contact-item a:hover::after {
                width: 100%;
            }

    .contact-item:hover a {
        color: var(--primary);
    }

        .contact-item:hover a::after {
            width: 100%;
        }

    .contact-item:hover {
        background-color: rgba(201, 232, 191, 0.1);
        transform: translateX(5px);
    }

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative;
}

    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: 15px;
        background-color: rgba(201, 232, 191, 0.05);
        border: 1px solid rgba(31, 176, 32, 0.3);
        border-radius: 5px;
        color: white;
        font-size: 1rem;
        transition: all 0.3s ease;
    }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--primary);
            background-color: rgba(201, 232, 191, 0.1);
        }

        .form-group input.invalid,
        .form-group textarea.invalid {
            border-color: #ff6b6b;
            background-color: rgba(255, 107, 107, 0.05);
        }

.error-message {
    color: #ff6b6b;
    font-size: 0.8rem;
    margin-top: 5px;
    min-height: 16px;
}

.form-status {
    padding: 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-align: center;
    display: none;
}

    .form-status.sending {
        display: block;
        background-color: rgba(255, 193, 7, 0.1);
        color: #ffc107;
        border: 1px solid rgba(255, 193, 7, 0.3);
    }

    .form-status.success {
        display: block;
        background-color: rgba(40, 167, 69, 0.1);
        color: #28a745;
        border: 1px solid rgba(40, 167, 69, 0.3);
    }

    .form-status.error {
        display: block;
        background-color: rgba(220, 53, 69, 0.1);
        color: #dc3545;
        border: 1px solid rgba(220, 53, 69, 0.3);
    }

        .form-status.error .mailto-link {
            display: inline-block;
            margin-top: 10px;
            color: #4a9cd9;
            text-decoration: underline;
            font-weight: 500;
            transition: color 0.3s ease;
        }

            .form-status.error .mailto-link:hover {
                color: #2f80bf;
            }

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-group label {
    position: absolute;
    left: 15px;
    top: 15px;
    color: #999;
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -10px;
    left: 10px;
    background-color: var(--dark);
    padding: 0 5px;
    font-size: 0.8rem;
    color: var(--primary);
}

footer {
    background-color: rgba(0, 0, 0, 0.98);
    padding: 50px 0 20px;
    position: relative;
}

    footer::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: linear-gradient(to right, var(--dark), var(--primary), var(--light), var(--primary), var(--dark));
    }

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo {
    flex: 1;
    min-width: 300px;
}

    .footer-logo h3 {
        font-size: 1.8rem;
        color: var(--primary);
        margin-bottom: 15px;
    }

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

    .social-links a {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 40px;
        height: 40px;
        background-color: rgba(201, 232, 191, 0.1);
        color: var(--light);
        border-radius: 50%;
        transition: all 0.3s ease;
    }

        .social-links a:hover {
            background-color: var(--primary);
            color: white;
            transform: translateY(-3px);
        }

.footer-links {
    flex: 1;
    min-width: 200px;
}

    .footer-links h4 {
        color: var(--primary);
        margin-bottom: 20px;
        font-size: 1.2rem;
    }

    .footer-links ul {
        list-style: none;
    }

    .footer-links li {
        margin-bottom: 10px;
    }

    .footer-links a {
        color: #999;
        text-decoration: none;
        transition: all 0.3s ease;
        position: relative;
        padding-left: 15px;
    }

        .footer-links a::before {
            content: '›';
            position: absolute;
            left: 0;
            color: var(--primary);
            transition: all 0.3s ease;
        }

        .footer-links a:hover {
            color: var(--light);
            padding-left: 20px;
        }

            .footer-links a:hover::before {
                left: 5px;
            }

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(201, 232, 191, 0.1);
    color: #999;
    font-size: 0.9rem;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--dark);
    color: var(--accent);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.17, 0.67, 0.83, 0.67);
    z-index: 999;
    box-shadow: 0 0 15px var(--accent-glow), inset 0 0 8px var(--accent-glow);
    overflow: hidden;
    backdrop-filter: blur(5px);
    border: 1px solid var(--accent);
    transform: perspective(500px) rotateX(0deg);
}

    .back-to-top::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: conic-gradient( transparent, transparent, transparent, var(--accent) );
        animation: rotate-border 3s linear infinite;
        z-index: -2;
    }

    .back-to-top::after {
        content: '';
        position: absolute;
        inset: 3px;
        background: var(--dark);
        border-radius: 9px;
        z-index: -1;
    }

@keyframes rotate-border {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.back-to-top i {
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px var(--accent), 0 0 10px var(--accent);
    filter: drop-shadow(0 0 3px var(--accent-glow));
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    animation: appear 0.6s cubic-bezier(0.17, 0.67, 0.83, 0.67);
}

@keyframes appear {
    0% {
        transform: perspective(500px) rotateX(90deg);
        opacity: 0;
    }

    100% {
        transform: perspective(500px) rotateX(0deg);
        opacity: 1;
    }
}

.back-to-top:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: perspective(500px) rotateX(-15deg) translateY(-5px);
    box-shadow: 0 0 25px var(--accent), inset 0 0 12px var(--accent);
}

    .back-to-top:hover i {
        animation: pulse 1.5s infinite;
        color: var(--text);
    }

@keyframes pulse {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateY(-5px);
        opacity: 0.7;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.back-to-top.clicked {
    animation: energy-release 1s ease-in-out forwards;
    pointer-events: none;
}

    .back-to-top.clicked::before {
        animation: rotate-border 0.5s linear infinite;
    }

    .back-to-top.clicked i {
        animation: flicker 0.2s infinite alternate;
    }

@keyframes energy-release {
    0% {
        transform: rotate(0) scale(1);
        opacity: 1;
        box-shadow: 0 0 15px var(--accent-glow);
    }

    50% {
        box-shadow: 0 0 50px var(--accent), 0 0 100px var(--accent);
    }

    100% {
        transform: rotate(720deg) scale(0);
        opacity: 0;
        box-shadow: 0 0 200px transparent;
    }
}

@keyframes flicker {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0.3;
    }
}

@media screen and (max-width: 992px) {

    .about-content,
    .contact-content {
        flex-direction: column;
        grid-template-columns: 1fr;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 0;
    }

        .timeline-item.right {
            left: 0;
        }

            .timeline-item.left::after,
            .timeline-item.right::after {
                left: 17px;
            }
}

@media screen and (max-width: 768px) {
    section {
        padding: 70px 0;
    }

    .logo img {
        width: 80px;
        height: auto;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-content {
        padding: 40px 220px 0;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero h2 {
        font-size: 1.2rem;
    }

    .nav-links {
        position: absolute;
        right: 0;
        top: -100vh;
        height: 100vh;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: all 0.5s ease;
        z-index: -1;
        transition: top 0.6s cubic-bezier(0.17, 0.84, 0.44, 1), opacity 0.5s ease;
    }

        .nav-links.active {
            top: 0;
            opacity: 1;
        }

        .nav-links li {
            margin: 15px 0;
            transform: translateY(20px);
            opacity: 0;
            transition: transform 0.4s ease, opacity 0.4s ease;
            transition-delay: 0.1s;
        }

        .nav-links.active li {
            transform: translateY(0);
            opacity: 1;
        }

            .nav-links.active li:nth-child(3) {
                transition-delay: 0.3s;
            }

            .nav-links.active li:nth-child(4) {
                transition-delay: 0.4s;
            }

        .nav-links::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 0;
            background: linear-gradient(rgba(0, 0, 0, 0.1), transparent);
            transition: height 0.8s ease;
        }

        .nav-links.active::before {
            height: 100%;
        }

    .hamburger {
        display: block;
        z-index: 2;
        transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    }

        .hamburger.active div:nth-child(1) {
            transform: rotate(-45deg) translate(-5px, 6px);
            background-color: var(--primary);
        }

        .hamburger.active div:nth-child(2) {
            opacity: 0;
        }

        .hamburger.active div:nth-child(3) {
            transform: rotate(45deg) translate(-5px, -6px);
            background-color: var(--primary);
        }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .tech-stack-carousel {
        height: 60px;
    }

    .tech-logo {
        height: 40px;
    }

    .cert-card-back h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .cert-details {
        font-size: 0.8rem;
        gap: 5px 10px;
    }

    .cert-verify-btn {
        padding: 6px 15px;
        font-size: 0.8rem;
    }

    .corner-wave {
        width: 100px;
        height: 100px;
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

    .fade-in.visible {
        opacity: 1;
        transform: translateY(0);
    }

.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(31, 176, 32, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.hide-loader {
    opacity: 0;
    visibility: hidden;
}

.typing-container {
    position: relative;
    min-height: 40px;
    margin-bottom: 20px;
}

.typing-text {
    font-size: 2rem;
    font-weight: bold;
    color: var(--light);
    display: inline;
}

.cursor {
    display: inline-block;
    width: 3px;
    height: 30px;
    background-color: var(--primary);
    margin-left: 5px;
    animation: blink 0.7s infinite;
    position: relative;
    top: 5px;
}

@keyframes blink {
    0%, 49% {
        opacity: 1;
    }

    50%, 100% {
        opacity: 0;
    }
}

.projects {
    background-color: rgba(0, 0, 0, 0.9);
    padding-bottom: 120px;
}

.featured-project {
    margin-bottom: 80px;
}

.project-card {
    background-color: rgba(201, 232, 191, 0.05);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
    border: 1px solid rgba(31, 176, 32, 0.08);
}

    .project-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(31, 176, 32, 0.5), transparent);
        z-index: 2;
    }

    .project-card::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: linear-gradient(90deg, var(--primary), transparent 80%);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
        z-index: 2;
    }

    .project-card:hover::after {
        transform: scaleX(1);
    }

    .project-card:hover {
        transform: translateY(-15px);
        box-shadow: 0 25px 65px rgba(31, 176, 32, 0.25);
        background-color: rgba(201, 232, 191, 0.08);
    }

.project-card {
    overflow: hidden;
}

    .project-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(31, 176, 32, 0.5), transparent);
        z-index: 2;
    }

.light-corner {
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(31, 176, 32, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    z-index: 1;
}

.light-corner-tl {
    top: -75px;
    left: -75px;
    z-index: 999;
}

.light-corner-tr {
    top: -75px;
    right: -75px;
    z-index: 999;
}

.light-corner-bl {
    bottom: -75px;
    left: -75px;
    z-index: 999;
}

.light-corner-br {
    bottom: -75px;
    right: -75px;
    z-index: 999;
}

.project-card:hover .light-corner {
    opacity: 1;
}

.project-content {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

@media (min-width: 992px) {
    .project-content {
        flex-direction: row;
        min-height: 550px;
    }

    .project-image-container {
        width: 60%;
    }

    .project-info {
        width: 40%;
    }
}

.project-image-container {
    position: relative;
    overflow: hidden;
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 350px;
}

.project-tech-wrapper {
    padding: 30px;
    background: linear-gradient(135deg, rgba(201, 232, 191, 0.05) 0%, rgba(201, 232, 191, 0.08) 100%);
    border-top: 1px solid rgba(31, 176, 32, 0.1);
}

    .project-tech-wrapper h4 {
        font-size: 1.3rem;
        color: var(--light);
        margin-bottom: 20px;
        position: relative;
        padding-left: 20px;
    }

        .project-tech-wrapper h4::before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 8px;
            height: 8px;
            background-color: var(--primary);
            border-radius: 50%;
        }

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-badge {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(31, 176, 32, 0.3);
    transform: translateY(0);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.project-card:hover .project-badge {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(31, 176, 32, 0.4);
}

.project-info {
    padding: 50px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, rgba(201, 232, 191, 0.03) 0%, rgba(201, 232, 191, 0.08) 100%);
}

.project-content-wrapper {
    display: flex;
    flex-direction: column;
}

.project-main-content {
    flex: 1;
}

.project-info h3 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

    .project-info h3::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: -8px;
        width: 60px;
        height: 3px;
        background-color: var(--primary);
        transition: width 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    }

.project-card:hover .project-info h3::after {
    width: 100%;
}

.project-info p {
    color: #e0e0e0;
    margin-bottom: 25px;
    line-height: 1.8;
    font-size: 1.05rem;
}

.project-purpose {
    margin-bottom: 40px;
}

    .project-purpose h4 {
        font-size: 1.3rem;
        color: var(--light);
        margin-bottom: 15px;
        position: relative;
        padding-left: 20px;
    }

        .project-purpose h4::before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 8px;
            height: 8px;
            background-color: var(--primary);
            border-radius: 50%;
        }

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.tech-tag {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(31, 176, 32, 0.1);
    border-radius: 8px;
    width: 50px;
    height: 50px;
    overflow: hidden;
    transition: all 1s cubic-bezier(0.19, 1, 0.22, 1);
    cursor: default;
    box-shadow: 0 4px 10px rgba(31, 176, 32, 0.15);
    backdrop-filter: blur(5px);
    margin-left: 0;
}

.tech-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: all 1s cubic-bezier(0.19, 1, 0.22, 1);
    font-size: 1.5rem;
    color: var(--primary);
    width: 50px;
    height: 50px;
}

.tech-name {
    position: absolute;
    white-space: nowrap;
    left: 70px;
    opacity: 0;
    transform: translateX(10px);
    transition: all 1s cubic-bezier(0.19, 1, 0.22, 1);
    font-weight: 500;
    font-size: 0.9rem;
    z-index: 1;
    color: var(--primary);
    pointer-events: none;
}

.tech-tag:hover {
    width: 200px;
    border-radius: 25px;
    background-color: rgba(31, 176, 32, 0.2);
    box-shadow: 0 8px 15px rgba(31, 176, 32, 0.25);
    transform: translateY(-3px);
    padding-right: 15px;
    justify-content: flex-start;
    z-index: 10;
}

    .tech-tag:hover .tech-icon {
        left: 25px;
        transform: translateX(0);
        color: white;
    }

    .tech-tag:hover .tech-name {
        opacity: 1;
        transform: translateX(0);
        transition-delay: 0.1s;
        color: white;
    }

.tech-tag:active {
    transform: scale(0.95) translateY(-3px);
}

.tech-tag::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(31, 176, 32, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 0;
}

.tech-tag:hover::before {
    opacity: 1;
    background: var(--primary);
}

@media (max-width: 768px) {
    .tech-name {
        left: 65px;
    }

    .tech-tag:hover {
        width: 180px;
    }

    .project-info {
        padding: 30px;
    }

        .project-info h3 {
            font-size: 1.8rem;
        }

    .project-tech-wrapper .tech-tags {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
    .tech-tags {
        justify-content: center;
    }

    .project-tech-wrapper {
        padding: 20px 15px;
    }

        .project-tech-wrapper h4 {
            font-size: 1.1rem;
            text-align: center;
            padding-left: 0;
        }

            .project-tech-wrapper h4::before {
                display: none;
            }

        .project-tech-wrapper .tech-tags {
            align-items: center;
        }
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 576px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

.project-grid-item {
    height: 100%;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.project-grid-card {
    background-color: rgba(201, 232, 191, 0.02);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    height: 100%;
    position: relative;
    border: 1px solid rgba(31, 176, 32, 0.08);
    display: flex;
    flex-direction: column;
}

    .project-grid-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(31, 176, 32, 0.5), transparent);
        z-index: 2;
    }

    .project-grid-card .light-corner {
        position: absolute;
        width: 120px;
        height: 120px;
        background: radial-gradient(circle, rgba(31, 176, 32, 0.3) 0%, transparent 70%);
        border-radius: 50%;
        opacity: 0;
        transition: opacity 0.6s ease;
        pointer-events: none;
        z-index: 1;
    }

    .project-grid-card .light-corner-tl {
        top: -60px;
        left: -60px;
        z-index: 999;
        width: 180px; 
        height: 180px;
        background: radial-gradient(circle, rgba(31, 176, 32, 0.4) 0%, transparent 70%);
    }

    .project-grid-card .light-corner-tr {
        top: -60px;
        right: -60px;
        z-index: 999;
        width: 180px;
        height: 180px;
        background: radial-gradient(circle, rgba(31, 176, 32, 0.4) 0%, transparent 70%);
    }

    .project-grid-card .light-corner-bl {
        bottom: -60px;
        left: -60px;
        z-index: 999;
    }

    .project-grid-card .light-corner-br {
        bottom: -60px;
        right: -60px;
        z-index: 999;
    }

.project-grid-item:hover .project-grid-card .light-corner {
    opacity: 1;
}

    .project-grid-card::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: linear-gradient(90deg, var(--primary), transparent);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    }

    .project-grid-card .carousel-slide img {
        object-fit: contain;
    }

    .project-grid-item:hover .project-grid-card {
        transform: translateY(-15px) scale(1.02);
        box-shadow: 0 25px 50px rgba(31, 176, 32, 0.2);
    }

    .project-grid-item:hover .project-grid-card::after {
        transform: scaleX(1);
    }

.project-grid-image {
    position: relative;
    overflow: hidden;
    height: 300px;
}

    .project-grid-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    }

.project-grid-item:hover .project-grid-image img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 50%, rgba(0, 0, 0, 0.5) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    padding: 30px;
}

.overlay-content {
    text-align: center;
    color: white;
    transform: translateY(20px);
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    max-width: 100%;
    padding: 0 15px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .overlay-content h4 {
        font-size: 1.4rem;
        margin-bottom: 15px;
        color: var(--primary);
        position: relative;
        display: inline-block;
    }

        .overlay-content h4::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 50%;
            transform: translateX(-50%);
            width: 40px;
            height: 3px;
            background-color: var(--primary);
            transition: width 0.6s cubic-bezier(0.19, 1, 0.22, 1);
        }

.project-grid-item:hover .overlay-content h4::after {
    width: 80px;
}

.overlay-content p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.project-grid-item:hover .overlay {
    opacity: 1;
    visibility: visible;
}

.project-grid-item:hover .overlay-content {
    transform: translateY(0);
}

.project-grid-info {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, rgba(201, 232, 191, 0.02) 0%, rgba(201, 232, 191, 0.05) 100%);
}

    .project-grid-info h3 {
        font-size: 1.5rem;
        color: var(--primary);
        margin-bottom: 15px;
        position: relative;
        display: inline-block;
        transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    }

        .project-grid-info h3::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: -5px;
            width: 40px;
            height: 2px;
            background-color: var(--primary);
            transition: width 0.6s cubic-bezier(0.19, 1, 0.22, 1);
        }

    .project-grid-info:hover h3::after {
        width: 100%;
    }

    .project-grid-info p {
        color: rgba(255, 255, 255, 0.85);
        line-height: 1.6;
        font-size: 0.95rem;
        margin-bottom: 25px;
    }

.project-grid-techs {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: auto;
}

.grid-tech-tag {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 15px;
    background-color: rgba(31, 176, 32, 0.08);
    border-radius: 8px;
    transition: all 0.3s ease;
}

    .grid-tech-tag:hover {
        background-color: rgba(31, 176, 32, 0.15);
        transform: translateX(5px);
    }

.grid-tech-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary);
}

.grid-tech-name {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 50%, rgba(0, 0, 0, 0.5) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    padding: 30px;
}

.overlay-content {
    text-align: center;
    color: white;
    transform: translateY(20px);
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    max-width: 100%;
    padding: 0 15px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .overlay-content h4 {
        font-size: 1.4rem;
        margin-bottom: 15px;
        color: var(--primary);
        position: relative;
        display: inline-block;
    }

        .overlay-content h4::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 50%;
            transform: translateX(-50%);
            width: 40px;
            height: 3px;
            background-color: var(--primary);
            transition: width 0.6s cubic-bezier(0.19, 1, 0.22, 1);
        }

.project-grid-item:hover .overlay-content h4::after {
    width: 80px;
}

.overlay-content p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.project-grid-item:hover .overlay {
    opacity: 1;
    visibility: visible;
}

.project-grid-item:hover .overlay-content {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .project-tech-wrapper .tech-tag {
        width: 50px !important;
        height: 50px !important;
        min-width: 50px !important;
        max-width: 50px !important;
        min-height: 50px !important;
        max-height: 50px !important;
        border-radius: 50% !important;
        overflow: visible !important;
        position: relative !important;
        padding: 0 !important;
        margin: 0 5px 15px !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        transition: transform 0.5s ease, background-color 0.5s ease !important;
        background-color: rgba(31, 176, 32, 0.1) !important;
        border: none !important;
        box-sizing: border-box !important;
    }

        .project-tech-wrapper .tech-tag:hover {
            transform: translateY(-3px) !important;
            background-color: rgba(31, 176, 32, 0.2) !important;
            width: 50px !important;
            height: 50px !important;
            min-width: 50px !important;
            max-width: 50px !important;
            min-height: 50px !important;
            max-height: 50px !important;
            border-radius: 50% !important;
            padding: 0 !important;
            box-shadow: none !important;
        }

            .project-tech-wrapper .tech-tag:hover:after,
            .project-tech-wrapper .tech-tag:hover:before {
                display: none !important;
            }

        .project-tech-wrapper .tech-tag .tech-icon {
            position: static !important;
            left: auto !important;
            transform: none !important;
            width: 24px !important;
            height: 24px !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            color: var(--primary) !important;
            font-size: 1.5rem !important;
            transition: color 0.5s ease !important;
            margin: 0 !important;
            padding: 0 !important;
        }

        .project-tech-wrapper .tech-tag:hover .tech-icon {
            color: white !important;
            position: static !important;
            left: auto !important;
            transform: none !important;
        }

    .project-tech-wrapper .tech-tags {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    .project-tech-wrapper .tech-name {
        position: absolute !important;
        white-space: nowrap !important;
        text-align: center !important;
        font-size: 0.9rem !important;
        color: white !important;
        background-color: var(--primary) !important;
        padding: 3px 10px !important;
        border-radius: 4px !important;
        top: -35px !important;
        left: 50% !important;
        transform: translateX(-50%) translateY(20px) !important;
        opacity: 0 !important;
        transition: all 0.5s ease !important;
        z-index: 999 !important;
        pointer-events: none !important;
        width: auto !important;
        height: auto !important;
    }

        .project-tech-wrapper .tech-name::after {
            content: '' !important;
            position: absolute !important;
            top: 100% !important;
            left: 50% !important;
            margin-left: -5px !important;
            border-width: 5px !important;
            border-style: solid !important;
            border-color: var(--primary) transparent transparent transparent !important;
        }

    .project-tech-wrapper .tech-tag:hover .tech-name,
    .project-tech-wrapper .tech-tag.active-tooltip .tech-name {
        opacity: 1 !important;
        transform: translateX(-50%) translateY(0) !important;
        visibility: visible !important;
    }
}

@media (max-width: 576px) {
    .tech-tags {
        justify-content: center;
    }

    .project-tech-wrapper {
        padding: 20px 15px;
    }

        .project-tech-wrapper h4 {
            font-size: 1.1rem;
            text-align: center;
            padding-left: 0;
        }

            .project-tech-wrapper h4::before {
                display: none;
            }

        .project-tech-wrapper .tech-tags {
            gap: 15px;
        }

    .grid-tech-tag {
        padding: 8px 12px;
    }

    .grid-tech-icon {
        width: 25px;
        height: 25px;
        font-size: 1rem;
    }

    .grid-tech-name {
        font-size: 0.85rem;
    }

    .project-image .carousel-slide img {
        object-fit: contain;
    }
}

.other-projects-title {
    font-size: 2rem;
    color: var(--primary);
    margin-top: 30px;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

    .other-projects-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 50%;
        height: 4px;
        background-color: var(--primary);
        transition: width 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    }

    .other-projects-title:hover::after {
        width: 100%;
    }

.project-tech-wave-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    margin-top: 0;
    z-index: 1;
    background: linear-gradient(125deg, rgba(0, 10, 2, 0.95) 0%, rgba(5, 30, 7, 0.95) 20%, rgba(12, 70, 15, 0.95) 40%, rgba(20, 120, 25, 0.9) 60%, rgba(12, 70, 15, 0.95) 80%, rgba(0, 10, 2, 0.95) 100%);
    background-size: 300% 300%;
    animation: tech-gradient-flow 10s ease infinite alternate;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4), inset 0 -2px 5px rgba(0, 0, 0, 0.3);
}

@keyframes tech-gradient-flow {
    0% {
        background-position: 0% 0%;
    }

    50% {
        background-position: 100% 100%;
    }

    100% {
        background-position: 0% 0%;
    }
}

.project-tech-wave-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient( ellipse at center, rgba(31, 176, 32, 0.1) 0%, rgba(0, 0, 0, 0) 70% );
    z-index: 2;
    pointer-events: none;
    opacity: 0.7;
    animation: tech-glow-pulse 5s ease-in-out infinite alternate;
}

@keyframes tech-glow-pulse {
    0% {
        opacity: 0.5;
    }

    100% {
        opacity: 0.8;
    }
}

.project-tech-wave-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient( to top, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0) 100% );
    z-index: 2;
}

.cert-card-back::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: radial-gradient( ellipse at center, rgba(31, 176, 32, 0.1) 0%, rgba(0, 0, 0, 0) 70% );
    opacity: 0.7;
    animation: tech-glow-pulse 5s ease-in-out infinite alternate;
    z-index: 2;
    pointer-events: none;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

.contact-item a {
    color: #C9E8BF;
    text-decoration: none;
    transition: color 0.3s ease;
}

    .contact-item a:hover {
        color: var(--primary);
    }

.contact-item:hover a {
    color: var(--primary);
}

.carousel-container {
    position: relative;
    height: 100%;
    width: 100%;
    outline: none;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    z-index: 0;
    visibility: hidden;
    overflow: hidden;
}

    .carousel-slide.active {
        opacity: 1;
        z-index: 1;
        visibility: visible;
    }

    .carousel-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 1.2s ease;
    }

    .carousel-slide.active img {
        transform: scale(1);
    }

    .carousel-slide:not(.active) img {
        transform: scale(1.1);
    }

    .carousel-slide.loaded::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background-color: rgba(0, 0, 0, 0.2);
        opacity: 0;
        transition: opacity 0.5s ease;
        z-index: 1;
    }

    .carousel-slide:not(.loaded)::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 40px;
        height: 40px;
        border: 3px solid rgba(31, 176, 32, 0.3);
        border-top: 3px solid var(--primary);
        border-radius: 50%;
        animation: spin 1s linear infinite;
        z-index: 3;
    }

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Enhanced loading effect */
.carousel-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255,255,255,0) 30%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0) 70%);
    z-index: 2;
    opacity: 0;
    transition: opacity 0.8s ease, transform 1.2s ease;
    transform: translateX(-100%);
}

.carousel-slide.active::before {
    animation: shine 1.5s ease-in-out;
}

@keyframes shine {
    0% {
        opacity: 0;
        transform: translateX(-100%);
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateX(100%);
    }
}

.carousel-counter {
    background-color: rgba(0, 0, 0, 0.2);
    color: white;
    padding: 5px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
    min-width: 60px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

    .carousel-counter:hover {
        opacity: 1;
        transform: translateY(-2px);
    }

    .carousel-counter span {
        margin: 0 2px;
    }

    .carousel-counter .separator {
        margin: 0 3px;
        color: rgba(255, 255, 255, 0.7);
    }

    .carousel-counter .current {
        color: var(--primary);
        font-weight: bold;
        text-shadow: 0 0 5px rgba(31, 176, 32, 0.5);
    }

@media (max-width: 768px) {
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .carousel-counter {
        padding: 4px 10px;
        font-size: 0.8rem;
        min-width: 50px;
    }

    .carousel-nav-container {
        bottom: 10px;
        padding: 0 10px;
    }
}

@media (max-width: 576px) {
    .carousel-btn {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    .carousel-nav-container {
        bottom: 8px;
        padding: 0 8px;
    }

    .carousel-counter {
        padding: 3px 8px;
        font-size: 0.75rem;
        min-width: 40px;
    }
}

.carousel-nav-container {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 3;
    padding: 0 15px;
    width: 100%;
}

.carousel-btn {
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 3;
    transition: all 0.3s ease;
    opacity: 0.8;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    outline: none;
}

    .carousel-btn.prev {
        margin-right: auto;
    }

    .carousel-btn.next {
        margin-left: auto;
    }

    .carousel-btn:focus {
        box-shadow: 0 0 0 3px rgba(31, 176, 32, 0.5);
        opacity: 1;
    }

    .carousel-btn:hover {
        background-color: rgba(31, 176, 32, 0.3);
        opacity: 1;
        border: 1px solid rgba(31, 176, 32, 0.3);
        transform: translateY(-2px);
    }

.project-purpose {
    margin-bottom: 20px;
    background-color: rgba(31, 176, 32, 0.1);
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid var(--primary);
}

    .project-purpose h4 {
        font-size: 1.2rem;
        color: var(--primary);
        margin-bottom: 10px;
        position: relative;
        display: flex;
        align-items: center;
    }

        .project-purpose h4 i {
            margin-right: 8px;
            font-size: 1rem;
        }

    .project-purpose p {
        margin-bottom: 0;
        line-height: 1.5;
    }

@media (max-width: 768px) {
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .carousel-counter {
        padding: 4px 8px;
        font-size: 0.8rem;
    }

    .carousel-nav-container {
        bottom: 10px;
        gap: 8px;
    }
}

@media (max-width: 576px) {
    .carousel-btn {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    .carousel-nav-container {
        bottom: 8px;
        gap: 6px;
    }
}

.project-grid-info {
    display: flex;
    flex-direction: column;
}

.project-grid-description {
    margin-bottom: 15px;
    order: 1;
}

.project-grid-purpose {
    order: 2;
    margin-bottom: 15px;
    padding: 10px;
    background-color: rgba(31, 176, 32, 0.08);
    border-radius: 6px;
    border-left: 3px solid var(--primary);
}

.project-grid-techs {
    order: 3;
    margin-top: 10px;
}

.project-grid-purpose h4 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

    .project-grid-purpose h4 i {
        margin-right: 8px;
        font-size: 0.9rem;
    }

.project-grid-purpose p {
    margin-bottom: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.project-grid-info h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.project-grid-image .overlay {
    display: none; 
}

.project-grid-item:hover .project-grid-image .overlay {
    display: none; 
}

*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

*::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}