/* GLOBAL */
body {
    scroll-behavior: smooth;
    background-color: #f5f7fa;
}

.container {
    padding-left: 24px;
    padding-right: 24px;
}

@media (max-width: 768px) {
    .container {
        padding-left: 32px !important;
        padding-right: 32px !important;
    }
}

/* HERO */
.hero {
    padding: 100px 0;
    animation: fadeHero 1s ease;
}

@keyframes fadeHero {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 0;
    }

    .hero .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
}

.hero-text {
    max-width: 560px;
}

@media (max-width: 768px) {
    .hero-text {
        max-width: 100%;
    }
}

/* SECTIONS */
.section {
    padding: 80px 0;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
}

/* PROFILE */
.profile-img {
    width: 260px;
    height: 260px;
    object-fit: cover;
    object-position: 50% 20%;
    border-radius: 50%;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    border: 4px solid white;
    transition: transform 0.6s ease;
}

.profile-img:hover {
    transform: scale(1.03);
}

/* BUTTONS */
.btn {
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

/* CARDS */
.card {
    border-radius: 14px;
    background-color: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.card img {
    border-bottom: 1px solid #eee;
}

.card .p-4 {
    padding: 1.8rem !important;
}

.project-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
    transition: transform 0.4s ease;
}

.card:hover .project-img {
    transform: scale(1.04);
}

/* FADE-IN */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* STAGGER */
.stagger > * {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.stagger.visible > * {
    opacity: 1;
    transform: translateY(0);
}

.stagger.visible > *:nth-child(1) { transition-delay: 0.1s; }
.stagger.visible > *:nth-child(2) { transition-delay: 0.2s; }
.stagger.visible > *:nth-child(3) { transition-delay: 0.3s; }
.stagger.visible > *:nth-child(4) { transition-delay: 0.4s; }


/* CONTACT */
.contact-subtitle {
    margin-bottom: 30px;
    color: #666;
    font-size: 15px;
}

.contact-form {
    max-width: 520px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
    font-size: 14px;
    transition: all 0.25s ease;
    background-color: #fafafa;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: #000;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

#submit-btn {
    padding: 14px;
    border-radius: 12px;
    border: none;
    background-color: #111;
    color: white;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

#submit-btn:hover {
    background-color: #333;
}

.btn-loader {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid white;
    border-top: 2px solid transparent;
    border-radius: 50%;
    margin: auto;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#form-status {
    margin-top: 10px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
}


/* PROJECT FILTERS */
.project-filters .btn {
    margin: 5px;
    transition: all 0.2s ease;
}

.project-filters .btn.active {
    background-color: #111;
    color: white;
    border-color: #111;
}

.filter-btn.active,
.filter-btn:hover {
    background: #111;
    color: white;
}
