:root {
    --navy-blue: #1e3a5f;
    --ocean-blue: #4a90a4;
    --gold-accent: #d4af37;
    --light-blue: #87ceeb;
    --sardinia-green: #2d5016;
    --white: #ffffff;
}

/* =================================
   DROPDOWN FIX - Only for standard dropdowns, NOT luxury
   ================================= */

.navbar .dropdown-menu:not(.luxury-dropdown):not([class*="dropdown-menu-"]) {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    z-index: 1020 !important;
    display: none !important;
    min-width: 10rem !important;
    padding: 0.5rem 0 !important;
    margin: 0.125rem 0 0 !important;
    font-size: 1rem !important;
    color: #212529 !important;
    text-align: left !important;
    list-style: none !important;
    background-color: #fff !important;
    background-clip: padding-box !important;
    border: 1px solid rgba(0,0,0,.15) !important;
    border-radius: 0.375rem !important;
}

.navbar .dropdown-menu.show {
    display: block !important;
}

.navbar .dropdown-menu:not(.luxury-dropdown) .dropdown-item {
    display: block !important;
    width: 100% !important;
    padding: 0.25rem 1rem !important;
    clear: both !important;
    font-weight: 400 !important;
    color: #212529 !important;
    text-align: inherit !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    background-color: transparent !important;
    border: 0 !important;
}

.navbar .dropdown-menu:not(.luxury-dropdown) .dropdown-item:hover,
.navbar .dropdown-menu:not(.luxury-dropdown) .dropdown-item:focus {
    color: #1e2125 !important;
    background-color: #e9ecef !important;
}

/* =================================
   LUXURY DROPDOWN STYLING
   ================================= */

.navbar .dropdown-menu.luxury-dropdown,
.navbar .luxury-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1020;
    display: none;
    background: var(--white);
    backdrop-filter: blur(15px);
    border: 2px solid var(--gold-accent);
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    width: 276px;
    box-sizing: border-box;
    list-style: none;
}

.navbar .dropdown-menu.luxury-dropdown.show,
.navbar .luxury-dropdown.show {
    display: block;
}

.navbar .dropdown-menu.luxury-dropdown .dropdown-item,
.navbar .luxury-dropdown .dropdown-item {
    display: block;
    width: calc(100% - 12px);
    margin: 2px 6px;
    color: var(--navy-blue);
    padding: 0.8rem 1.2rem;
    font-size: 1.05rem;
    font-weight: 500;
    transition: background 0.3s ease, color 0.3s ease, font-weight 0.3s ease;
    border: none;
    background: transparent;
    text-decoration: none;
    white-space: nowrap;
    box-sizing: border-box;
    border-radius: 8px;
}

.navbar .dropdown-menu.luxury-dropdown .dropdown-item:hover,
.navbar .dropdown-menu.luxury-dropdown .dropdown-item:focus,
.navbar .luxury-dropdown .dropdown-item:hover,
.navbar .luxury-dropdown .dropdown-item:focus {
    background: linear-gradient(135deg, var(--gold-accent), #f39c12);
    color: var(--white);
    font-weight: 600;
}

.navbar .dropdown-menu.luxury-dropdown .dropdown-item i,
.navbar .luxury-dropdown .dropdown-item i {
    color: var(--gold-accent);
    width: 20px;
    text-align: center;
    transition: color 0.3s ease;
    margin-right: 0.5rem;
}

.navbar .dropdown-menu.luxury-dropdown .dropdown-item:hover i,
.navbar .dropdown-menu.luxury-dropdown .dropdown-item:focus i,
.navbar .luxury-dropdown .dropdown-item:hover i,
.navbar .luxury-dropdown .dropdown-item:focus i {
    color: var(--white);
}

/* =================================
   BASE STYLES
   ================================= */

* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--navy-blue);
    font-size: 1.1rem;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

.row {
    margin-left: 0;
    margin-right: 0;
}

.col-12, .col-lg-4, .col-lg-3, .col-lg-6, .col-md-6, .col-md-8 {
    padding-left: 15px;
    padding-right: 15px;
}

/* =================================
   NAVIGATION
   ================================= */

.navbar {
    background: rgba(30, 58, 95, 0.95) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    padding: 1rem 0;
    width: 100%;
}

.navbar-brand {
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold-accent) !important;
    font-style: italic;
    letter-spacing: 1px;
}

.navbar-brand img {
    height: 100px;
    width: auto;
    max-width: none;
    transition: height 0.3s ease;
}

.navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: 500;
    margin: 0 0.8rem;
    transition: color 0.3s ease;
    font-size: 1.1rem;
}

.navbar-nav .nav-link:hover {
    color: var(--gold-accent) !important;
}

.navbar-nav .nav-link.active {
    color: var(--gold-accent) !important;
    font-weight: 600;
}

.navbar-nav .nav-link i {
    font-size: 0.9rem;
    margin-right: 0.3rem;
}

.navbar-collapse {
    flex-basis: auto;
}

.navbar-nav {
    flex-direction: row;
    flex-wrap: nowrap;
}

.navbar .d-flex.ms-auto.me-3 {
    flex-wrap: nowrap;
    white-space: nowrap;
    align-items: center;
    gap: 0.5rem;
}

.navbar .d-flex.ms-auto.me-3 a {
    transition: transform 0.2s ease;
}

.navbar .d-flex.ms-auto.me-3 a:hover {
    transform: scale(1.1);
}

.navbar-collapse .d-flex {
    margin-right: 1rem;
}

.navbar-nav .dropdown-toggle::after {
    border-top-color: var(--gold-accent);
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.navbar-nav .dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
    border-top-color: var(--white);
}

.navbar-nav .dropdown-toggle:hover::after {
    border-top-color: var(--gold-accent);
}

.navbar .dropdown-menu {
    z-index: 9999;
}

/* =================================
   HERO SECTION
   ================================= */

.hero {
    min-height: 100vh;
    height: auto;
    padding-top: 120px;
    padding-bottom: 2rem;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.8), rgba(74, 144, 164, 0.6)),
                url('../images/portocorallo.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--ocean-blue), var(--light-blue));
    z-index: -1;
}

.hero-content {
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
    width: 100%;
}

.hero h1 {
    font-size: 6rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
    font-style: italic;
    letter-spacing: 2px;
}

.hero .subtitle {
    font-size: 2.2rem;
    background: linear-gradient(45deg, #ffd700, #ffed4a, #f39c12, #ffd700, #ffed4a);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease 0.2s both, shimmer 3s ease-in-out infinite;
    font-weight: 400;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5), 0 0 40px rgba(255, 215, 0, 0.3);
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.4));
    letter-spacing: 1px;
}

.hero p {
    font-size: 1.8rem;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease 0.4s both;
    line-height: 1.6;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.btn-luxury {
    background: var(--gold-accent);
    color: var(--navy-blue);
    font-weight: 600;
    padding: 1.2rem 3rem;
    border: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.6s both;
    margin: 0 0.8rem;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.btn-luxury:hover {
    background: var(--white);
    color: var(--navy-blue);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--gold-accent);
}

.btn-outline:hover {
    background: var(--gold-accent);
    color: var(--navy-blue);
}

section {
    scroll-margin-top: 120px;
}

/* =================================
   HERITAGE SECTION
   ================================= */

.heritage {
    padding: 100px 0;
    background: linear-gradient(45deg, #f8f9fa, #fff);
}

.heritage .container {
    max-width: 1300px;
    margin: 0 auto;
}

.section-title {
    font-size: 4.5rem;
    color: var(--navy-blue);
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 300;
    letter-spacing: 1px;
}

.section-subtitle {
    font-size: 1.8rem;
    color: var(--ocean-blue);
    text-align: center;
    margin-bottom: 4rem;
    font-style: italic;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.heritage-card {
    background: var(--white);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    text-align: center;
    height: 100%;
    transition: transform 0.3s ease;
}

.heritage-card:hover {
    transform: translateY(-10px);
}

.heritage-card h4 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.heritage-card p {
    font-size: 1.1rem;
    line-height: 1.6;
}

.celebrity-icon {
    font-size: 4rem;
    color: var(--gold-accent);
    margin-bottom: 2rem;
}

/* =================================
   BOTEL CONCEPT SECTION
   ================================= */

.botel-concept {
    padding: 100px 0;
    background: var(--navy-blue);
    color: var(--white);
}

.botel-concept .container {
    max-width: 1300px;
    margin: 0 auto;
}

.concept-card {
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 2.5rem;
    text-align: center;
    height: 100%;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--white);
}

.concept-card h4 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.concept-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--white);
}

.concept-icon {
    font-size: 3.5rem;
    color: var(--gold-accent);
    margin-bottom: 1.5rem;
}

/* =================================
   TIMELINE SECTION
   ================================= */

.timeline {
    padding: 100px 0;
    background: var(--white);
}

.timeline .container {
    max-width: 1300px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-date {
    background: var(--gold-accent);
    color: var(--navy-blue);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    min-width: 150px;
    text-align: center;
}

.timeline-content {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    margin-left: 2rem;
    flex: 1;
}

.timeline-content h4 {
    color: var(--navy-blue);
    margin-bottom: 1rem;
}

.timeline-content p {
    font-size: 1.15rem;
    line-height: 1.6;
}

/* =================================
   GALLERY SECTION
   ================================= */

.gallery {
    padding: 100px 0;
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
}

.gallery .container {
    max-width: 1300px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    margin-bottom: 2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

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

.gallery-item img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(30, 58, 95, 0.9));
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-text {
    color: var(--white);
}

.gallery-text h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

/* =================================
   PRICING SECTION
   ================================= */

.pricing {
    padding: 100px 0;
    background: var(--navy-blue);
    color: var(--white);
}

.pricing .container {
    max-width: 1300px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--white);
    color: var(--navy-blue);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    transform: scale(1.05);
    border: 3px solid var(--gold-accent);
}

.price-amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold-accent);
    margin: 1rem 0;
}

.price-period {
    font-size: 1.3rem;
    color: var(--ocean-blue);
    margin-bottom: 2rem;
    font-weight: 500;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    font-size: 1.15rem;
}

.pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
    font-weight: 500;
}

.pricing-features li:last-child {
    border-bottom: none;
}

/* =================================
   CONTACT SECTION
   ================================= */

.contact {
    padding: 100px 0;
    background: var(--white);
}

.contact .container {
    max-width: 1300px;
    margin: 0 auto;
}

.contact-card {
    background: linear-gradient(135deg, var(--ocean-blue), var(--light-blue));
    color: var(--white);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(74, 144, 164, 0.3);
    height: 100%;
}

.contact-card h4 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.contact-card p {
    font-size: 1.15rem;
    line-height: 1.5;
    color: var(--white);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

/* =================================
   FOOTER
   ================================= */

.footer {
    background: var(--navy-blue);
    color: var(--white);
    padding: 50px 0 30px;
}

.footer-brand {
    font-size: 2.5rem;
    color: var(--gold-accent);
    font-weight: 700;
    font-style: italic;
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--gold-accent);
}

/* =================================
   ANIMATIONS
   ================================= */

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

@keyframes shimmer {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease;
}

/* =================================
   RESPONSIVE DESIGN - MOBILE
   ================================= */

@media (max-width: 767px) {
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        position: relative;
    }
    
    * {
        max-width: 100% !important;
    }
    
    .container {
        max-width: 100% !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    [class*="col-"] {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    .navbar {
        width: 100% !important;
        max-width: 100vw !important;
        padding: 0.5rem 0 !important;
    }
    
    .navbar-brand {
        font-size: 2rem !important;
    }
    
    .navbar-brand img {
        height: 60px !important;
    }
    
    .navbar-nav .nav-link {
        margin: 0.3rem 0 !important;
        font-size: 1.1rem !important;
        padding: 0.7rem 1rem;
    }
    
    .navbar-nav {
        text-align: center;
        padding-top: 1rem;
        flex-direction: column;
        flex-wrap: wrap;
    }
    
    .navbar-toggler {
        padding: 0.25rem 0.5rem;
        font-size: 1rem;
        border: 1px solid rgba(255,255,255,0.3);
    }
    
    .navbar .dropdown-menu.luxury-dropdown,
    .navbar .luxury-dropdown {
        background: rgba(30, 58, 95, 0.95);
        border: 1px solid var(--gold-accent);
        margin-top: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 10px;
    }
    
    .navbar .dropdown-menu.luxury-dropdown .dropdown-item,
    .navbar .luxury-dropdown .dropdown-item {
        padding: 0.8rem 1rem;
        font-size: 1rem;
        text-align: left;
        width: calc(100% - 8px);
        margin: 2px 4px;
    }
    
    .navbar-collapse .d-flex {
        margin: 1rem 0;
        justify-content: center;
    }
    
    .hero {
        padding-top: 80px;
        padding-bottom: 1rem;
        min-height: calc(100vh - 80px);
    }
    
    .hero-content {
        padding: 1rem 0.5rem;
    }
    
    .hero h1 {
        font-size: 2.8rem;
        letter-spacing: 1px;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero .subtitle {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    
    .hero p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    
    .btn-luxury {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        margin: 0.3rem;
    }
    
    .hero .btn-luxury {
        display: block !important;
        width: 80%;
        margin: 1rem auto !important;
    }
    
    section {
        scroll-margin-top: 80px;
    }
    
    .section-title {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    
    .section-subtitle {
        font-size: 1.2rem;
        margin-bottom: 2.5rem;
    }
    
    .heritage-card, .concept-card {
        padding: 2rem;
        margin-bottom: 2rem;
    }
    
    .heritage-card h4, .concept-card h4 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    
    .heritage-card p, .concept-card p {
        font-size: 1rem;
    }
    
    .timeline-item {
        flex-direction: column;
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .timeline-content {
        margin-left: 0;
        margin-top: 1rem;
        padding: 1.5rem;
    }
    
    .timeline-content h4 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    
    .timeline-content p {
        font-size: 1rem;
    }
    
    .timeline-date {
        font-size: 1.1rem;
        padding: 1rem 1.5rem;
        min-width: 140px;
    }
    
    .story .container .row .col-12 {
        max-width: 95%;
        margin: 0 auto;
    }
    
    .story .container .row .col-12 > div {
        max-width: 100% !important;
    }
    
    
    .pricing-card {
        transform: scale(1) !important; /* Remove the 1.05 scale on mobile */
        margin-bottom: 1rem !important; /* Add space between cards */
        padding: 2rem 1.5rem !important; /* Reduce padding for mobile */
    }
    
    .price-amount {
        font-size: 2.5rem !important;
    }
    
    .price-period {
        font-size: 1.1rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .pricing-features {
        font-size: 1rem !important;
        margin: 1.5rem 0 !important;
    }
    
    .pricing-features li {
        padding: 0.6rem 0 !important;
    }
    
    /* Remove extra margin from pricing column on mobile */
    .pricing .col-lg-4 {
        margin-bottom: 1rem !important;
    }        
}

/* =================================
   RESPONSIVE - SMALL MOBILE
   ================================= */

@media (max-width: 480px) {
    .navbar {
        padding: 0.3rem 0 !important;
    }
    
    .navbar-brand img {
        height: 50px !important;
    }
    
    .hero {
        padding-top: 70px;
        min-height: calc(100vh - 70px);
    }
    
    .hero-content {
        padding: 1rem 0.25rem;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero .subtitle {
        font-size: 1.2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    section {
        scroll-margin-top: 70px;
    }
}

/* =================================
   RESPONSIVE - VERY SMALL DEVICES
   ================================= */

@media (max-width: 360px) {
    .navbar-brand img {
        height: 45px !important;
    }
    
    .container {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
}

/* =================================
   RESPONSIVE - TABLET
   ================================= */

@media (max-width: 991px) and (min-width: 768px) {
    .navbar-nav .nav-link {
        margin: 0 0.5rem;
        font-size: 1.05rem;
    }
    
    .navbar .dropdown-menu.luxury-dropdown,
    .navbar .luxury-dropdown {
        width: 250px;
    }
    
    .navbar-nav {
        flex-direction: column;
        flex-wrap: wrap;
    }
    
    .navbar-brand img {
        height: 80px;
    }
    
    .container {
        max-width: 100%;
        padding: 0 2rem;
    }
    
    .story .container .row .col-12 {
        max-width: 90%;
        margin: 0 auto;
    }
    
    .hero h1 {
        font-size: 4rem;
    }
    
    .hero .subtitle {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1.3rem;
        margin-bottom: 2.5rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .section-subtitle {
        font-size: 1.4rem;
        margin-bottom: 3rem;
    }
    
    .heritage-card h4, .concept-card h4 {
        font-size: 1.6rem;
    }
    
    .timeline-date {
        font-size: 1.2rem;
        min-width: 160px;
    }
    

}

/* =================================
   RESPONSIVE - MEDIUM DESKTOP
   ================================= */

@media (max-width: 1199px) and (min-width: 992px) {
    .hero h1 {
        font-size: 5rem;
    }
    
    .hero .subtitle {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.4rem;
    }
    
    .section-title {
        font-size: 3.5rem;
    }
}

/* =================================
   RESPONSIVE - LARGE DESKTOP
   ================================= */

@media (min-width: 1200px) {
    body { 
        font-size: 1.2rem; 
    }
    
    .navbar-nav .nav-link {
        font-size: 1.1rem;
        margin: 0 1rem;
    }
    
    .navbar .dropdown-menu.luxury-dropdown .dropdown-item,
    .navbar .luxury-dropdown .dropdown-item {
        font-size: 1.1rem;
        padding: 0.9rem 1.4rem;
    }
    
    .heritage-card p, .concept-card p { 
        font-size: 1.25rem; 
    }
    
    .heritage-card h4, .concept-card h4 { 
        font-size: 1.6rem; 
    }
    
    .concept-card p { 
        color: var(--white); 
    }
    
    .concept-card h4 { 
        color: var(--white); 
    }
    
    .timeline-content p { 
        font-size: 1.25rem; 
    }
    
    .timeline-content h4 { 
        font-size: 1.5rem; 
    }
    
    .contact-card p { 
        font-size: 1.25rem; 
        color: var(--white); 
    }
    
    .contact-card h4 { 
        font-size: 1.4rem; 
        color: var(--white); 
    }
    
    .pricing-card { 
        font-size: 1.1rem; 
    }
    
    .pricing-features { 
        font-size: 1.2rem; 
    }
}

/* =================================
   RESPONSIVE - EXTRA LARGE DESKTOP
   ================================= */

@media (min-width: 1440px) {
    body { 
        font-size: 1.3rem; 
    }
    
    .hero h1 { 
        font-size: 7rem; 
    }
    
    .hero .subtitle { 
        font-size: 2.6rem; 
    }
    
    .hero p { 
        font-size: 2rem; 
    }
    
    .section-title { 
        font-size: 5rem; 
    }
    
    .section-subtitle { 
        font-size: 2rem; 
    }
    
    .heritage-card p, .concept-card p { 
        font-size: 1.4rem; 
    }
    
    .heritage-card h4, .concept-card h4 { 
        font-size: 1.8rem; 
    }
    
    .concept-card p { 
        color: var(--white); 
    }
    
    .concept-card h4 { 
        color: var(--white); 
    }
    
    .timeline-content p { 
        font-size: 1.4rem; 
    }
    
    .timeline-content h4 { 
        font-size: 1.7rem; 
    }
    
    .contact-card p { 
        font-size: 1.4rem; 
        color: var(--white); 
    }
    
    .contact-card h4 { 
        font-size: 1.6rem; 
        color: var(--white); 
    }
    
    .pricing-card { 
        font-size: 1.25rem; 
    }
    
    .pricing-features { 
        font-size: 1.3rem; 
    }
    
    .navbar-nav .nav-link { 
        font-size: 1.2rem;
        margin: 0 1.2rem;
    }
    
    .navbar .dropdown-menu.luxury-dropdown .dropdown-item,
    .navbar .luxury-dropdown .dropdown-item {
        font-size: 1.15rem;
        padding: 1rem 1.5rem;
    }
    
    .btn-luxury { 
        font-size: 1.2rem; 
    }
}

/* =================================
   SMOOTH ANIMATION SYSTEM
   Add this to the end of your main.css
   ================================= */

/* Prevent layout shifts and flickering */
html {
    scroll-behavior: smooth;
}

/* Ensure critical content is always visible */
.hero-content,
.hero h1,
.hero .subtitle,
.hero p,
.hero .btn {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Animation-ready elements - start visible but prepare for animation */
.animate-on-scroll {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s cubic-bezier(0.4, 0.0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* Hidden state for elements not yet in view */
.animate-on-scroll:not(.animate-visible) {
    opacity: 0;
    transform: translateY(30px);
}

/* Visible state when scrolled into view */
.animate-on-scroll.animate-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animations for child elements */
.animate-stagger .animate-on-scroll {
    transition-delay: 0ms;
}

.animate-stagger .animate-on-scroll:nth-child(1) { transition-delay: 50ms; }
.animate-stagger .animate-on-scroll:nth-child(2) { transition-delay: 100ms; }
.animate-stagger .animate-on-scroll:nth-child(3) { transition-delay: 150ms; }
.animate-stagger .animate-on-scroll:nth-child(4) { transition-delay: 200ms; }

/* Specific element animations with better timing */
.heritage-card,
.concept-card,
.pricing-card,
.contact-card {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.heritage-card.animate-hidden,
.concept-card.animate-hidden,
.pricing-card.animate-hidden,
.contact-card.animate-hidden {
    opacity: 0;
    transform: translateY(40px);
}

/* Timeline specific animations */
.timeline-item {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.6s cubic-bezier(0.4, 0.0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.timeline-item.animate-hidden {
    opacity: 0;
    transform: translateX(-50px);
}

.timeline-item:nth-child(even).animate-hidden {
    transform: translateX(50px);
}

/* Gallery animations */
.gallery-item {
    opacity: 1;
    transform: scale(1);
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.gallery-item.animate-hidden {
    opacity: 0;
    transform: scale(0.95);
}

/* Prevent animation on page load for above-fold content */
.hero *,
section:first-of-type * {
    animation-delay: 0s !important;
    transition-delay: 0s !important;
}

/* Smooth fade-in animation class */
.fade-in-smooth {
    animation: smoothFadeInUp 0.8s cubic-bezier(0.4, 0.0, 0.2, 1) forwards;
}

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

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .animate-on-scroll,
    .animate-hidden {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Ensure smooth scrolling doesn't affect navbar */
.navbar {
    transition: background-color 0.3s ease;
}

/* Loading state to prevent flash of unstyled content */
body.is-loading * {
    animation-play-state: paused !important;
    transition: none !important;
}

body:not(.is-loading) {
    animation-play-state: running;
}

/* Fix for mobile devices */
@media (max-width: 768px) {
    .animate-on-scroll:not(.animate-visible) {
        opacity: 0;
        transform: translateY(20px); /* Smaller movement on mobile */
    }
    
    .timeline-item.animate-hidden {
        transform: translateY(30px); /* Use Y-axis on mobile instead of X */
    }
    
    .timeline-item:nth-child(even).animate-hidden {
        transform: translateY(30px); /* Same direction on mobile */
    }
}