﻿:root {
    --primary-green: #1BBD36;
    --secondary-green: #16A32E;
    --dark-green: #0D5E1C;
    --light-green: #E8F5E9;
    --dark: #212529;
    --light: #f8f9fa;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    background-color: var(--light);
    overflow-x: hidden;
}

.hero-shapes canvas {
    display: none !important;
}

/* Three.js Background Canvas */
#threejs-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.15;
}

/* Hero Section */
.portfolio-hero {
    background: linear-gradient(135deg, rgba(232, 245, 233, 0.8) 0%, rgba(255,255,255,0.9) 100%);
    padding: 8rem 0 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.portfolio-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    /*    color: var(--dark-green);*/
    color: white;
    position: relative;
}

.portfolio-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    /*    color: var(--dark);*/
    color: white;
    position: relative;
}

/* Portfolio Grid */
.portfolio-grid {
    padding: 5rem 0;
    position: relative;
}

.section-title {
    font-weight: 700;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

    .section-title:after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 0;
        width: 50px;
        height: 3px;
        background: var(--primary-green);
    }

/* Portfolio Cards */
.portfolio-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    margin-bottom: 2rem;
    background: white;
    position: relative;
}

    .portfolio-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(27, 189, 54, 0.15);
    }

.portfolio-img-container {
    position: relative;
    overflow: hidden;
    height: 220px;
}

    .portfolio-img-container img {
        height: 100%;
        width: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

.portfolio-card:hover .portfolio-img-container img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(27, 189, 54, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: white;
    padding: 20px;
}

    .overlay-content h5 {
        font-weight: 600;
        margin-bottom: 10px;
    }

.view-btn {
    margin-top: 15px;
    transition: all 0.3s ease;
    background: white;
    color: var(--primary-green) !important;
    border: none;
}

    .view-btn:hover {
        background: var(--dark-green);
        color: white !important;
    }

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.card-text {
    color: #666;
    margin-bottom: 1.25rem;
}

.btn-primary-green {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    color: white;
}

    .btn-primary-green:hover {
        background-color: var(--secondary-green);
        border-color: var(--secondary-green);
    }

/* Floating Tech Icons Animation */
.tech-icons-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.tech-icon {
    position: absolute;
    color: var(--light-green);
    opacity: 0.3;
    font-size: 1.5rem;
}

/* Modal Styles */
.modal-content {
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

.modal-header {
    background-color: var(--primary-green);
    color: white;
    border-bottom: none;
}

.btn-close {
    filter: invert(1);
    opacity: 0.8;
}

    .btn-close:hover {
        opacity: 1;
    }

.modal-tech-list {
    list-style-type: none;
    padding-left: 0;
}

    .modal-tech-list li {
        display: inline-block;
        background: var(--light-green);
        color: var(--dark-green);
        padding: 0.3rem 0.8rem;
        border-radius: 20px;
        margin-right: 0.5rem;
        margin-bottom: 0.5rem;
        font-size: 0.85rem;
        font-weight: 500;
    }

/* Footer */
.footer {
    background-color: var(--dark);
    color: white;
    padding: 4rem 0 2rem;
    position: relative;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    margin-right: 1.5rem;
    transition: color 0.3s;
}

    .footer-links a:hover {
        color: white;
    }
.copyright {
    opacity: 0.7;
    font-size: 0.9rem;
    margin-top: 2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .nav-max-witdh {
        max-width: 100% !important;
    }

    nav-max-witdh {
        max-width: 100% !important;
    }
    .portfolio-hero {
        padding: 6rem 0 4rem;
    }

        .portfolio-hero h1 {
            font-size: 2.5rem;
        }

    .portfolio-img-container {
        height: 180px;
    }

    .portfolio-overlay {
        opacity: 1;
        background: rgba(27, 189, 54, 0.7);
    }

    .overlay-content h5 {
        font-size: 1.1rem;
    }

    .navbar-brand {
        font-size: 1.5rem;
    }
}

.hero-section-text {
    padding-left: 46%;
    padding-top: 7%;
}

.portfolio-hero {
    height: 630px;
}

@media (min-width: 320px) and (max-width: 575px) {
    .nav-max-witdh {
        max-width: 100% !important;
    }
    .portfolio-hero {
        height: 350px !important;
    }

    .hero-shapes canvas {
        display: none !important;
    }

    .hero-section-text {
        padding-left: 3% !important;
    }

    .portfolio-hero h1 {
        font-size: 1.3rem;
        margin-top: -3%;
    }

    .portfolio-hero p {
        line-height: 2;
        font-size: 0.9rem;
        color: white;
        font-weight: 400;
        margin-bottom: 0;
    }

    .portfolio-grid {
        padding: 2rem 0;
    }

    .portfolio-item-section {
        padding-top: 7% !important;
    }
}

@media (min-width: 576px) and (max-width: 992px) {
    .nav-max-witdh {
        max-width: 100% !important;
    }

    .hero-section-text {
        padding-left: 3% !important;
    }

    .portfolio-hero {
        height: 80vh !important;
    }

    .hero-shapes canvas {
        display: none !important;
    }

    .hero-section-text {
        padding-left: 3% !important;
    }

    .portfolio-hero h1 {
        font-size: 1.9rem;
        margin-top: -3%;
    }

    .portfolio-hero p {
        line-height: 2.3;
        font-size: 1.2rem;
        color: white;
        font-weight: 500;
        margin-bottom: 0;
    }

    .portfolio-grid {
        padding: 2rem 0;
    }

    .portfolio-item-section {
        padding-top: 5% !important;
    }

    .btn-primary-green {
        font-size: 1rem;
        background-color: var(--primary-green);
        border-color: var(--primary-green);
        color: white;
        padding: 8px 15px;
    }
}
