/* ========== GENERAL STYLES ========== */
:root {
    --primary-color: #DA291C;
    --primary-dark: #b21d15;
    --primary-light: #ff473a;
    --secondary-color: #3d3935;
    --text-color: #333;
    --text-light: #767676;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    overflow-x: hidden;
}

/* ========== UTILITIES ========== */
.section-subtitle {
    color: var(--primary-color);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.divider {
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 0 auto 30px;
}

.lead {
    font-size: 1.1rem;
    font-weight: 500;
}

.highlight {
    color: var(--primary-color);
}

/* ========== NAVBAR ========== */
.navbar {
    padding: 15px 0;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 10px 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--primary-color) !important;
}

.navbar-brand span {
    margin-left: 8px;
}

.navbar-nav {
    gap: 10px;
}

.nav-link {
    font-weight: 500;
    color: var(--secondary-color) !important;
    position: relative;
    padding: 10px 15px !important;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 15px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

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

/* ========== HERO SECTION ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

.hero-content {
    padding-right: 30px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.hero .lead {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-light);
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.hero-btns {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(218, 41, 28, 0.2);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(218, 41, 28, 0.2);
}

/* Hero Shapes */
.hero-shapes {
    position: relative;
    height: 400px;
}

.circle-1,
.circle-2,
.square {
    position: absolute;
    border-radius: 50%;
}

.circle-1 {
    width: 300px;
    height: 300px;
    background-color: rgba(218, 41, 28, 0.1);
    top: 50px;
    left: 50px;
    z-index: 1;
}

.circle-2 {
    width: 200px;
    height: 200px;
    background-color: rgba(218, 41, 28, 0.15);
    top: 100px;
    left: 100px;
    z-index: 2;
}

.square {
    width: 150px;
    height: 150px;
    background-color: var(--primary-color);
    border-radius: 20px;
    top: 125px;
    left: 125px;
    z-index: 3;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(10deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

/* ========== ABOUT SECTION ========== */
.about-img-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    aspect-ratio: 1;
}

.profile-placeholder {
    width: 100%;
    height: 100%;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-placeholder i {
    font-size: 5rem;
    color: #adb5bd;
}

.about-content {
    padding-left: 30px;
}

.about-content h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.about-detail {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.about-detail i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 15px;
    margin-top: 5px;
}

.about-detail h5 {
    margin-bottom: 5px;
    font-weight: 600;
}

.about-detail p {
    margin-bottom: 0;
    color: var(--text-light);
}

.about-details {
    margin-top: 30px;
}

/* ========== SKILLS SECTION ========== */
.bg-light {
    background-color: var(--bg-light);
}

.skill-card {
    background-color: var(--white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: var(--transition);
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.skill-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(218, 41, 28, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.skill-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

.skill-card h4 {
    margin-bottom: 20px;
    font-weight: 600;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-item {
    padding: 5px 15px;
    background-color: rgba(218, 41, 28, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ========== PROJECTS SECTION ========== */
.project-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.project-img {
    height: 250px;
    position: relative;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.project-img::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 3rem;
    color: #adb5bd;
}

.project-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(218, 41, 28, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

.project-icons {
    display: flex;
    gap: 20px;
}

.project-icon {
    width: 50px;
    height: 50px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: var(--transition);
}

.project-icon:hover {
    transform: translateY(-5px);
    color: var(--primary-color);
}

.project-content {
    padding: 25px;
    background-color: var(--white);
}

.project-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.project-tags span {
    padding: 3px 10px;
    background-color: rgba(218, 41, 28, 0.1);
    color: var(--primary-color);
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-content h4 {
    margin-bottom: 15px;
    font-weight: 600;
}

.project-content p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.project-link {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.project-link i {
    transition: var(--transition);
    margin-left: 5px;
}

.project-link:hover {
    color: var(--primary-dark);
}

.project-link:hover i {
    transform: translateX(5px);
}

/* ========== CV SECTION ========== */
.cv-wrapper {
    background-color: var(--white);
    border-radius: 15px;
    padding: 50px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
}

.cv-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(218, 41, 28, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.cv-icon i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

/* ========== CONTACT SECTION ========== */
.contact-info {
    padding-right: 30px;
}

.contact-info h3 {
    margin-bottom: 20px;
    font-weight: 600;
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 15px;
    margin-top: 5px;
}

.contact-item h5 {
    margin-bottom: 5px;
    font-weight: 600;
}

.contact-item p {
    margin-bottom: 0;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-link {
    width: 45px;
    height: 45px;
    background-color: rgba(218, 41, 28, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-5px);
}

.contact-form {
    background-color: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
}

.form-control {
    height: 50px;
    border-radius: 10px;
    padding: 10px 20px;
    font-size: 0.95rem;
    border: 1px solid #e9ecef;
}

textarea.form-control {
    height: auto;
    resize: none;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(218, 41, 28, 0.25);
}

.contact-form button {
    width: 100%;
    height: 50px;
}

/* ========== FOOTER ========== */
footer {
    background-color: var(--primary-color);
    color: var(--white);
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.footer-logo img {
    margin-right: 8px;
}

/* ========== BACK TO TOP BUTTON ========== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 5px 15px rgba(218, 41, 28, 0.3);
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-5px);
}

/* ========== ANIMATIONS ========== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== PROJECT DETAILS PAGE ========== */
.project-hero {
    padding-top: 160px;
    padding-bottom: 80px;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

.project-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.project-hero .lead {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.project-hero .project-tags {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.project-hero .badge {
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 20px;
}

.feature-card {
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

.feature-icon {
    font-size: 2rem;
    color: var(--primary-color);
}

.screenshot-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    transition: var(--transition);
}

.screenshot-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.screenshot-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
    transform: translateY(100%);
    transition: var(--transition);
}

.screenshot-card:hover .screenshot-overlay {
    transform: translateY(0);
}

.screenshot-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.placeholder-card {
    height: 250px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #dee2e6;
}

.placeholder-content {
    text-align: center;
    color: #adb5bd;
}

.placeholder-content i {
    font-size: 3rem;
    margin-bottom: 10px;
}

.technical-details h4 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.technical-details ul {
    list-style: none;
    padding-left: 0;
}

.technical-details ul li {
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
}

.technical-details ul li:last-child {
    border-bottom: none;
}

/* ========== LIGHTBOX STYLES ========== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    margin: auto;
    display: block;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.lightbox .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.lightbox .close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.screenshot-card {
    cursor: pointer;
}

/* ========== RESPONSIVE STYLES ========== */
@media (max-width: 991.98px) {
    .hero {
        padding: 120px 0 80px;
    }

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

    .hero-content {
        padding-right: 0;
        margin-bottom: 40px;
        text-align: center;
    }

    .hero-btns {
        justify-content: center;
    }

    .about-content {
        padding-left: 0;
        margin-top: 40px;
    }

    .contact-info {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .cv-wrapper {
        padding: 30px;
    }
}

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

    .hero h1 {
        font-size: 2.5rem;
    }

    .project-img {
        height: 200px;
    }

    .about-detail {
        margin-bottom: 30px;
    }
}

@media (max-width: 575.98px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero .lead {
        font-size: 1.2rem;
    }

    .hero-btns {
        flex-direction: column;
        gap: 10px;
    }

    .social-links {
        justify-content: center;
    }
}