@import url('https://fonts.googleapis.com/css2?family=SF+Pro+Display:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #0071e3;
    --primary-hover: #005bbb;
    --secondary-color: #1d1d1f;
    --light-bg: #f5f5f7;
    --border-color: #d2d2d7;
}

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--secondary-color);
    overflow-x: hidden;
}

/* Header & Navbar */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-weight: 600;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

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

.badge {
    font-weight: 500;
    font-size: 0.7rem;
}

/* Hero Section */
.hero {
    padding: 100px 0 60px;
}

.gradient-text {
    background: linear-gradient(to right, #0071e3, #42a1ec);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Skills/Technologies Section */
.tech-card {
    border-radius: 16px;
    border: none;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.tech-header {
    background-color: var(--light-bg);
    border-bottom: 1px solid var(--border-color);
}

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

.tech-img {
    width: 60px;
    height: 60px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.tech-item {
    transition: transform 0.3s ease;
}

.tech-item:hover {
    transform: translateY(-5px);
}

/* CTA Section */
.cta {
    background: linear-gradient(to right, #0071e3, #42a1ec);
}

/* Blog Cards */
.blog-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.blog-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .card-img-top {
    transform: scale(1.05);
}

.blog-card .card-title {
    transition: color 0.3s ease;
}

.blog-card:hover .card-title {
    color: var(--primary-color);
}

/* Setup Page */
.setup-overview-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    background: linear-gradient(to right, #f8f9fa, white);
}

.component-card, .peripheral-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.component-card:hover, .peripheral-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.component-icon, .peripheral-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.component-image, .peripheral-image {
    border-radius: 12px;
    overflow: hidden;
    margin-top: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.component-image img, .peripheral-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.component-card:hover .component-image img,
.peripheral-card:hover .peripheral-image img {
    transform: scale(1.05);
}

/* Contact Page */
.contact-card {
    border: none;
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.form-control {
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

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

.form-floating > .form-control:focus ~ label {
    color: var(--primary-color);
}

/* Footer */
.social-link {
    font-size: 1.5rem;
    margin-left: 15px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-link:hover {
    color: var(--primary-color) !important;
    transform: translateY(-3px);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 113, 227, 0.3);
}

.btn-link {
    transition: all 0.3s ease;
    text-decoration: none;
}

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

/* Pagination */
.page-link {
    color: var(--primary-color);
    border-radius: 5px;
    margin: 0 3px;
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fadeIn {
    animation: fadeIn 0.6s ease forwards;
}

/* Responsividade */
@media (max-width: 992px) {
    .hero {
        padding: 60px 0 40px;
    }

    .display-4 {
        font-size: 2.5rem;
    }

    .display-5 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .tech-img {
        width: 50px;
        height: 50px;
    }

    .component-image img, .peripheral-image img {
        height: 150px;
    }

    .social-link {
        margin-left: 10px;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 40px 0 30px;
    }

    .display-4 {
        font-size: 2rem;
    }

    .display-5 {
        font-size: 1.8rem;
    }
}