/* Main Styles for Gabriel Diniz Portfolio */

/* Global Styles */
body {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header and Navigation */
header {
    background-color: #2c3e50;
    color: white;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: white;
}

/* Navigation Menu */
.nav-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
    margin-left: 20px;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: #34495e;
    border-radius: 4px;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #34495e;
    min-width: 200px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: none;
    z-index: 1;
}

.nav-item:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 10px 15px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: #2c3e50;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Main Content */
main {
    padding: 40px 0;
}

section {
    margin-bottom: 40px;
}

h1, h2, h3, h4 {
    color: #2c3e50;
    margin-top: 0;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

h2 {
    font-size: 2rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

p {
    margin-bottom: 20px;
}

/* Project Cards */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-content {
    padding: 20px;
}

.project-title {
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 10px;
}

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

.tag {
    background-color: #e7f5ff;
    color: #3498db;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 5px;
    margin-bottom: 5px;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 30px 0;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.social-link {
    display: inline-block;
    margin: 0 10px;
    transition: transform 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
}

.social-icon {
    width: 40px;
    height: 40px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .menu-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 20px;
    }
    
    .nav-menu {
        flex-direction: column;
        width: 100%;
        display: none;
        margin-top: 20px;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-item {
        margin: 0;
        width: 100%;
    }
    
    .nav-link {
        padding: 15px;
        width: 100%;
    }
    
    .dropdown-menu {
        position: static;
        background-color: #2c3e50;
        width: 100%;
        box-shadow: none;
        display: none;
    }
    
    .nav-item:hover .dropdown-menu {
        display: none;
    }
    
    .nav-item.active .dropdown-menu {
        display: block;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    /* ===== Main Intro ===== */
    .portfolio-intro {
        padding: 60px 20px;
        text-align: center;
        background-color: #f5f5f5;
    }

    .intro-title {
        font-size: 2.5rem;
        font-weight: 700;
        margin-bottom: 15px;
        color: #222;
    }

    .intro-text {
        font-size: 1.2rem;
        color: #555;
        max-width: 700px;
        margin: 0 auto;
    }

    /* ===== Portfolio Grid ===== */
    .portfolio-categories .grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 25px;
        padding: 40px 20px;
    }

    /* ===== Portfolio Cards ===== */
    .portfolio-card {
        display: flex;
        flex-direction: column;
        background-color: #fff;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        text-decoration: none;
        color: inherit;
    }

    .portfolio-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 20px rgba(0,0,0,0.2);
    }

    /* Image section */
    .card-image {
        width: 100%;
        padding-top: 56.25%; /* 16:9 ratio */
        background-size: cover;
        background-position: center;
        position: relative;
    }

    /* Optional overlay for readability */
    .card-image::after {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,0.25);
    }

    /* Card content */
    .card-content {
        padding: 20px;
        text-align: center;
    }

    .card-content h3 {
        font-size: 1.5rem;
        margin-bottom: 10px;
        font-weight: 600;
    }

    .card-content p {
        font-size: 1rem;
        color: #666;
        margin-bottom: 15px;
    }

    .card-content i {
        color: #ff9800; /* Icon color */
    }

    /* ===== Responsive adjustments ===== */
    @media (max-width: 600px) {
        .intro-title {
            font-size: 2rem;
        }

        .intro-text {
            font-size: 1rem;
        }
    }
    /* ===== Portfolio Intro ===== */
    .portfolio-intro {
        padding: 60px 20px;
        text-align: center;
        background-color: #f5f5f5;
    }

    .portfolio-intro h2 {
        font-size: 2.5rem;
        font-weight: 700;
        margin-bottom: 15px;
        color: #222;
    }

    .portfolio-intro p {
        font-size: 1.2rem;
        color: #555;
        max-width: 700px;
        margin: 0 auto;
    }

    /* ===== Projects Grid ===== */
    .projects-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
        padding: 40px 20px;
    }

    /* ===== Project Card ===== */
    .project-card {
        background-color: #fff;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        display: flex;
        flex-direction: column;
        text-decoration: none;
        color: inherit;
    }

    .project-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 14px 24px rgba(0,0,0,0.2);
    }

    /* ===== Project Image ===== */
    .project-image {
        width: 100%;
        height: 180px;
        object-fit: cover;
    }

    /* ===== Project Content ===== */
    .project-content {
        padding: 20px;
        display: flex;
        flex-direction: column;
        flex-grow: 1;
    }

    .project-title {
        font-size: 1.5rem;
        font-weight: 600;
        margin-bottom: 10px;
    }

    .project-tags {
        margin-bottom: 10px;
    }

    .project-tags .tag {
        display: inline-block;
        background-color: #eee;
        color: #333;
        font-size: 0.75rem;
        font-weight: 500;
        padding: 4px 8px;
        border-radius: 6px;
        margin-right: 5px;
        margin-bottom: 5px;
    }

    .project-content p {
        font-size: 1rem;
        color: #555;
        flex-grow: 1;
        margin-bottom: 15px;
    }

    /* ===== Buttons ===== */
    .btn {
        display: inline-block;
        padding: 8px 16px;
        font-size: 0.9rem;
        font-weight: 500;
        text-decoration: none;
        border-radius: 6px;
        transition: background-color 0.3s ease, color 0.3s ease;
    }

    .btn-sm {
        background-color: #ff9800;
        color: #fff;
    }

    .btn-sm:hover {
        background-color: #e68900;
    }

    .btn-outline {
        border: 2px solid #ff9800;
        color: #ff9800;
        background-color: transparent;
    }

    .btn-outline:hover {
        background-color: #ff9800;
        color: #fff;
    }

    /* ===== Responsive ===== */
    @media (max-width: 600px) {
        .portfolio-intro h2 {
            font-size: 2rem;
        }
        .portfolio-intro p {
            font-size: 1rem;
        }
        .project-image {
            height: 150px;
        }
    }


}