/* Custom CSS for Vinicius Carvalho Personal Site */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wght@8..144,100..1000&display=swap');

:root {
    --primary-black: #121212;
    --primary-white: #ffffff;
    --text-light: #f8f9fa;
    --text-dark: #212529;
}

/* Global Styles */
body {
    font-family: "Roboto Flex", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings:
        "slnt" 0,
        "wdth" 100,
        "GRAD" 0,
        "XOPQ" 96,
        "XTRA" 468,
        "YOPQ" 79,
        "YTAS" 750,
        "YTDE" -203,
        "YTFI" 738,
        "YTLC" 514,
        "YTUC" 712;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Navbar Styles */
.navbar {
    background-color: var(--primary-black) !important;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    color: var(--primary-white) !important;
    font-weight: 500;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #ccc !important;
}

/* Hero Section */
.hero-section {
    background-color: var(--primary-black);
    background-image: url(img/hero-me.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(18, 18, 18, 0.7);
    display: flex;
    align-items: center;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    font-weight: 300;
    color: var(--primary-white);
    line-height: 1.2;
    margin: 0;
}

.hero-line-1 {
    display: block;
    font-weight: 100;
    margin-bottom: 1rem;
}

.hero-line-2 {
    display: block;
    font-weight: 100;
}
 


.hero-line-2 .fw-bold {
    font-weight: 700;
    font-variation-settings:
        "slnt" 0,
        "wdth" 100,
        "GRAD" 0,
        "XOPQ" 96,
        "XTRA" 468,
        "YOPQ" 79,
        "YTAS" 750,
        "YTDE" -203,
        "YTFI" 738,
        "YTLC" 514,
        "YTUC" 712;
}

/* Newsletter Section */
.newsletter-section {
    background-color: var(--primary-white);
    color: var(--text-dark);
}

.newsletter-section h2 {
    color: var(--primary-black);
    font-weight: 600;
}

.newsletter-section .btn {
    background-color: var(--primary-black);
    border-color: var(--primary-black);
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.newsletter-section .btn:hover {
    background-color: #333;
    border-color: #333;
    transform: translateY(-2px);
}

/* About Section */
.about-section {
    background-color: var(--primary-black);
    color: var(--primary-white);
}

.about-section h2 {
    color: var(--primary-white);
    font-weight: 600;
}

.companies-logos img {
    transition: transform 0.3s ease;
    border: 2px solid transparent;
}

.companies-logos img:hover {
    transform: scale(1.1);
    border-color: var(--primary-white);
}

.about-image img {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Services Section */
.services-section {
    background-image: url('img/services-img.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text-dark);
    position: relative;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    z-index: 1;
}

.services-section .container {
    position: relative;
    z-index: 2;
}

.services-section h2 {
    color: var(--primary-black);
    font-weight: 600;
}

.service-card {
    background-color: rgba(255, 255, 255, 0);
    border: 2px solid var(--primary-black);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 200px;
    /* backdrop-filter: blur(10px); */
}

.service-card:hover {
    background-color: var(--primary-white);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(18, 18, 18, 0.2);
    border-color: var(--primary-black);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-black);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    color: var(--primary-black);
}

.service-title {
    color: var(--primary-black);
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.4;
    margin: 0;
}

/* Books Section */
.books-section {
    background-color: var(--primary-black);
    color: var(--primary-white);
}

.books-section h2 {
    color: var(--primary-white);
    font-weight: 600;
}

.book-item img {
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.book-item img:hover {
    transform: scale(1.05);
}

.book-item h5 {
    color: var(--primary-white);
    font-weight: 600;
    margin-bottom: 15px;
}

.book-item p {
    color: #ccc;
}

/* Contact Section */
.contact-section {
    background-color: var(--primary-white);
    color: var(--primary-black);
}

.contact-section h2 {
    color: var(--primary-black);
    font-weight: 600;
}

.social-links .btn {
    border-color: var(--primary-black);
    color: var(--primary-black);
    transition: all 0.3s ease;
    margin: 5px;
}

.social-links .btn:hover {
    background-color: var(--primary-black);
    color: var(--primary-white);
    transform: translateY(-2px);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Section Spacing */
section {
    padding: 80px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .companies-logos .col-2 {
        flex: 0 0 20%;
        max-width: 20%;
    }
    
    .service-card {
        min-height: 180px;
        padding: 1.5rem;
    }
    
    .service-icon {
        font-size: 2.5rem;
    }
    
    .service-title {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .companies-logos .col-2 {
        flex: 0 0 25%;
        max-width: 25%;
    }
    
    .service-card {
        min-height: 160px;
        padding: 1rem;
    }
    
    .service-icon {
        font-size: 2rem;
    }
    
    .service-title {
        font-size: 0.9rem;
    }
    
    section {
        padding: 60px 0;
    }
}

/* Animation for navbar scroll */
.navbar.scrolled {
    background-color: rgba(18, 18, 18, 0.95) !important;
    backdrop-filter: blur(10px);
}

/* Button hover effects */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Image hover effects */
img {
    transition: all 0.3s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary-black);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-white);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ccc;
}
