@font-face {
    font-family: 'PP Mori';
    src: url('/fonts/Poppins-Regular.ttf') format('woff2');
    font-weight: 400;
}
@font-face {
    font-family: 'PP Mori Light';
    src: url('/fonts/PPMori-Extralight.woff2') format('woff2');
    font-weight: 200;
}

:root {
    --primary: #9f6734;
    --primary-light: #e8d2b8;
    --dark: #171928;
    --light: #f8f8f8;
    --white: #ffffff;
    --transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PP Mori', sans-serif;
    color: var(--dark);
    overflow-x: hidden;
    background-color: var(--white);
}

/* Enhanced Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav.scrolled {
    padding: 0.8rem 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo img {
    height: 50px;
    transition: var(--transition);
}

nav.scrolled .nav-logo img {
    height: 40px;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: var(--dark);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.nav-link:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    transform: translateX(-100%);
    transition: var(--transition);
}

.dropdown-toggle.nav-link::before {
    display: none;
}

.nav-link:hover:before,
.nav-link.active:before {
    transform: translateX(0);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

/* Enhanced Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
    border-radius: 50%;
    transition: var(--transition);
}

.hamburger:hover {
    background: rgba(159, 103, 52, 0.1);
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: var(--dark);
    transition: var(--transition);
    border-radius: 3px;
    position: absolute;
}

.hamburger span:nth-child(1) {
    transform: translateY(-10px);
    width: 25px;
    margin-right: 5px;
    align-self: flex-end;
}

.hamburger span:nth-child(2) {
    width: 30px;
}

.hamburger span:nth-child(3) {
    transform: translateY(10px);
    width: 20px;
    margin-left: 5px;
    align-self: flex-start;
}

/* Hamburger animation */
.hamburger.active {
    transform: rotate(180deg);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(0) rotate(45deg);
    width: 30px;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(0) rotate(-45deg);
    width: 30px;
}

/* Enhanced Dropdown Animation */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 250px;
    background-color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    perspective: 1000px;
    transform-origin: top center;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 8px 20px;
    color: #171928;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    text-transform: none;
    font-weight: normal;
    position: relative;
    overflow: hidden;
    transform: translateX(-20px);
    opacity: 0;
}

.dropdown:hover .dropdown-item {
    transform: translateX(0);
    opacity: 1;
}

/* Staggered animation for each item */
.dropdown:hover .dropdown-item:nth-child(1) { transition-delay: 0.05s; }
.dropdown:hover .dropdown-item:nth-child(2) { transition-delay: 0.1s; }
.dropdown:hover .dropdown-item:nth-child(3) { transition-delay: 0.15s; }
.dropdown:hover .dropdown-item:nth-child(4) { transition-delay: 0.2s; }
.dropdown:hover .dropdown-item:nth-child(5) { transition-delay: 0.25s; }
.dropdown:hover .dropdown-item:nth-child(6) { transition-delay: 0.3s; }
.dropdown:hover .dropdown-item:nth-child(7) { transition-delay: 0.35s; }
.dropdown:hover .dropdown-item:nth-child(8) { transition-delay: 0.4s; }

/* Hover effect for dropdown items */
.dropdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(159, 103, 52, 0.1), transparent);
    transition: left 0.5s ease;
}

.dropdown-item:hover::before {
    left: 100%;
}

/* Icon animation */
.dropdown-item i {
    margin-right: 8px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    width: 16px;
    text-align: center;
}

.dropdown:hover .dropdown-item i {
    opacity: 1;
    transform: translateX(0);
}

/* Enhanced dropdown appearance */
.dropdown-menu {
    border: none;
    border-radius: 12px;
    padding: 10px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.98);
}

.dropdown-item {
    padding: 12px 25px;
    font-size: 14px;
    color: #171928;
    position: relative;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.dropdown-item:hover {
    background: rgba(159, 103, 52, 0.05);
    color: #9f6734;
    border-left: 3px solid #9f6734;
    padding-left: 30px;
}

/* Mobile Styles */
@media (max-width: 968px) {
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 300px;
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 100px;
        gap: 0;
        transition: var(--transition);
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-link {
        width: 100%;
        text-align: center;
        padding: 1.2rem;
        border-radius: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .nav-link:before {
        display: none;
    }
    
    .dropdown {
        width: 100%;
    }
    
    .dropdown-toggle {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 5px;
    }
    
    .dropdown-toggle i {
        transition: var(--transition);
    }
    
    .dropdown.active .dropdown-toggle i {
        transform: rotate(180deg);
    }
    
    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        padding: 0;
        background-color: transparent;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
        max-height: 500px;
    }
    
    .dropdown-item {
        padding: 12px 20px;
        color: #171928;
        transform: none;
        opacity: 1;
        text-align: center;
        padding-left: 20px !important;
        border-left: none !important;
    }
    
    .dropdown-item i {
        opacity: 1;
        transform: none;
    }
    
    /* Overlay when menu is open */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 999;
    }
    
    /* .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    } */
}

@media (max-width: 480px) {
    .nav-links {
        width: 100%;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
}

.portfolio-section {
    padding: 100px 0;
    background: #fff;
}

.portfolio-container {
    max-width: 1200px;
    margin: 1rem auto;
    padding: 0 20px;
}

.portfolio-header {
    text-align: center;
    margin-bottom: 60px;
}

.portfolio-header h2 {
    font-size: 3rem;
    color: #9f6734;
    margin-bottom: 20px;
    font-weight: 600;
}

.portfolio-header p {
    font-size: 1.2rem;
    color: #7a7a7a;
    max-width: 600px;
    margin: 0 auto;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
}

.filter-btn {
    padding: 12px 25px;
    background: transparent;
    border: 1px solid #d4b9a2;
    color: #9f6734;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 500;
}

.filter-btn:hover, .filter-btn.active {
    background: #9f6734;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(159, 103, 52, 0.2);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.portfolio-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    aspect-ratio: 4/5;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 30px 20px 20px;
    color: white;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-overlay h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.portfolio-overlay p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Animation for filtering */
.portfolio-item {
    animation: fadeIn 0.5s ease forwards;
}

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

@media (max-width: 768px) {
    .portfolio-header h2 {
        font-size: 2.2rem;
    }
    
    .portfolio-filters {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 6rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-col {
    opacity: 0;
    transform: translateY(30px);
}

.footer-col h3 {
    font-size: 1.5rem;
    color: var(--primary-light);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary);
}

.footer-col p {
    line-height: 1.8;
    margin-bottom: 1rem;
    color: #aaa;
}

.footer-contact {
    margin-top: 1.5rem;
}

.footer-contact p {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
}

.footer-contact p a {
    color: #aaa;
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact p:before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--primary);
}

.footer-services {
    list-style: none;
}

.footer-services li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: #aaa;
}

.footer-services li:before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--primary);
}

.footer-services li a {
    color: #aaa;
    text-decoration: none;
    transition: var(--transition);
}

.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.subscribe-input {
    padding: 1rem;
    border: none;
    border-radius: 5px;
    font-family: inherit;
}

.subscribe-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.subscribe-btn:hover {
    background: var(--primary-light);
    color: var(--dark);
}

.footer-bottom {
    text-align: center;
    margin-top: 5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #666;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .academy-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .gorgeous-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-text {
        font-size: 1rem;
    }
    
    .about-content {
        padding: 2rem;
    }
    
    .about-content h3 {
        font-size: 2rem;
    }
    
    .about-content p {
        font-size: 1rem;
    }
    
    .section-title h2 {
        font-size: 2.2rem;
    }
    
    .academy-title {
        font-size: 2rem;
    }
    
    .expect-header h2 {
        font-size: 2.2rem;
    }
    
    .gorgeous-title {
        font-size: 2.5rem;
    }
    
    .gallery-header h2 {
        font-size: 2.2rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        letter-spacing: 3px;
    }
    
    .about-content {
        padding: 1.5rem;
    }
    
    .about-content h3 {
        font-size: 1.8rem;
    }
    
    .service-card, .expect-card, .testimonial-card {
        padding: 1.5rem;
    }
}