@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Lora:wght@400;600&display=swap');

* {
    transition: all 0.3s ease;
}

body {
    font-family: 'Lora', serif;
}

h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
    letter-spacing: 1px;
}

.gradient-dark {
    background: linear-gradient(135deg, #2f2a24 0%, #554c40 100%);
}

.nav-link {
    position: relative;
    padding-bottom: 5px;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: #DCC99F;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #DCC99F;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.section-divider {
    border-top: 3px solid #AEAA84;
    margin: 40px 0;
}

.modern-card {
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(29, 79, 54, 0.15);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    backdrop-filter: blur(10px);
}

.modern-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(29, 79, 54, 0.25);
}

.project-card {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.project-card:hover::before {
    left: 100%;
}

.icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #DCC99F, #AEAA84);
    box-shadow: 0 10px 30px rgba(220, 201, 159, 0.3);
}

.section {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.init-card {
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border-top: 4px solid #DCC99F;
}

.init-card:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(29, 79, 54, 0.2);
}

/* Modern Layout Cards */
.feature-box {
    background: linear-gradient(135deg, #E8DCC7 0%, #f0e5d8 100%);
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(29, 79, 54, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(174, 170, 132, 0.2);
}

.feature-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(29, 79, 54, 0.15);
    border-color: rgba(220, 201, 159, 0.4);
}

.feature-box-content {
    padding: 32px 24px;
}

.feature-box-title {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: #1D4F36;
}

.feature-box-text {
    color: #2d6a4f;
    line-height: 1.6;
    font-size: 0.95rem;
}

.feature-icon {
    width: 100%;
    height: 280px;
    margin-top: 30px;
    background: linear-gradient(135deg, #DCC99F 0%, #AEAA84 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    object-position: center center !important;
    display: block;
}

.feature-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* Menu Mobile */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #DCC99F;
    border-radius: 3px;
    transition: 0.3s;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2f2a24 0%, #554c40 100%);
    /* ensure padding does not increase width */
    box-sizing: border-box;
    padding: 20px 1rem;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 40;
}

.mobile-menu a {
    color: #AEAA84;
    padding: 12px 15px;
    border-radius: 8px;
    transition: 0.3s;
    font-weight: 500;
    font-size: 0.875rem; /* slightly smaller on mobile */
}

.mobile-menu a {
    color: #AEAA84;
    padding: 12px 15px;
    border-radius: 8px;
    transition: 0.3s;
    font-weight: 500;
}

.mobile-menu a:hover {
    background-color: rgba(220, 201, 159, 0.1);
    color: #DCC99F;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-desktop {
        display: none !important;
    }

    .mobile-menu.active {
        display: flex;
    }

    h1,
    h2,
    h3 {
        letter-spacing: 0.5px;
    }

    .text-6xl {
        font-size: 2.25rem !important;
    }

    .text-5xl {
        font-size: 1.875rem !important;
    }

    .text-2xl {
        font-size: 1.3rem !important;
    }

    .text-xl {
        font-size: 1.1rem !important;
    }

    .py-20 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    .pt-32 {
        padding-top: 6rem !important;
    }

    .pb-20 {
        padding-bottom: 2.5rem !important;
    }

    .px-4 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .gap-12 {
        gap: 1.5rem !important;
    }

    .w-56 {
        width: 150px !important;
        height: 150px !important;
    }

    .w-12 {
        width: 40px !important;
        height: 40px !important;
    }

    .feature-icon {
        width: 320px !important;
        height: 320px !important;
        max-width: 320px !important;
        margin: 30px auto 0 !important;
    }

    .feature-box {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .modern-card,
    .project-card,
    .init-card {
        padding: 16px !important;
    }

    .init-card:hover {
        transform: scale(1.02) !important;
    }

    .modern-card:hover {
        transform: translateY(-5px) !important;
    }
}

@media (max-width: 640px) {
    .text-6xl {
        font-size: 1.875rem !important;
    }

    .text-5xl {
        font-size: 1.5rem !important;
    }

    .text-2xl {
        font-size: 1.1rem !important;
    }

    .w-56 {
        width: 120px !important;
        height: 120px !important;
    }

    .gap-6 {
        gap: 1rem !important;
    }

    .feature-box {
        border-radius: 12px !important;
    }

    .feature-box-content {
        padding: 20px 16px !important;
    }

    .feature-box-title {
        font-size: 1.1rem !important;
    }

    .feature-box-text {
        font-size: 0.85rem !important;
    }

    .feature-icon {
        width: 240px !important;
        height: 240px !important;
        max-width: 240px !important;
        margin: 30px auto 0 !important;
    }
}