/* Responsive Styles */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content p {
        font-size: 1.3rem;
    }
    
    .stats {
        justify-content: center;
    }

    .about-content {
        padding-right: 0;
        margin-bottom: 50px;
    }

    .footer-content {
        flex-direction: column;
    }
    
    /* Improved tablet layout */
    .hero-container {
        align-items: center;
    }
    
    .hero-content {
        max-width: 80%;
        margin: 0 auto;
    }
    
    .vision-content, .mission-content, 
    .essence-container, .values-container, 
    .recipe-container, .philosophy-container {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    header {
        background-color: rgba(255, 255, 255, 0.8); /* Transparent white */
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent white */
        backdrop-filter: blur(10px); /* Add blur effect */
        padding: 20px 0;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: var(--transition);
        text-align: center;
        border-top: 1px solid rgba(0, 0, 0, 0.1); /* Light separator */
    }

    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    
    .nav-links li {
        margin: 15px 0;
    }

    .hamburger {
        display: block;
    }
    
    /* Animated hamburger menu */
    .hamburger.active .line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active .line:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .line:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .services-container {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .stats {
        flex-direction: column;
        gap: 20px;
    }

    .footer-links {
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    /* Ensure consistent direction in mobile view */
    .vision-content, .mission-content, 
    .essence-container, .values-container, 
    .recipe-container, .philosophy-container {
        flex-direction: column;
    }

    /* Remove order change to keep consistent direction */
    .vision-image, .mission-image {
        order: 1; /* Changed from -1 to 1 for consistent ordering */
    }
    
    /* Fixed hero section for mobile */
    .hero {
        height: auto;
        min-height: 100vh;
    }
    
    .hero-content {
        margin-top: 70px;
        padding: 25px;
        width: 90%;
        max-width: none;
    }
    
    /* Improved image containers */
    .image-container, .vision-image img, .mission-image img,
    .recipe-image img, .essence-image img, .values-image img {
        max-width: 100%;
    }
    
    /* Better property cards display */
    .properties-list {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    
    .nav-links a.profile-btn {
        margin: 10px auto;
        width: 80%;
        justify-content: center;
    }
    
    .logo {
        flex-wrap: nowrap;
        max-width: 75%;
    }
    
    .logo span {
        font-size: 22px;
    }
    
    .logo .download-btn {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
}

/* Additional responsive breakpoint for very small screens */
@media (max-width: 480px) {
    nav {
        padding: 15px 20px;
    }
    
    .logo {
        justify-content: center;
        margin-bottom: 10px;
        width: 100%;
    }
    
    .logo span {
        font-size: 20px;
    }
    
    .logo-img {
        width: 40px;
        height: 40px;
    }
    
    .logo .download-btn {
        margin-top: 5px;
        width: auto;
    }
    
    /* Better spacing for mobile */
    section {
        padding: 60px 20px;
    }
    
    /* Smaller fonts for small screens */
    h2 {
        font-size: 2rem !important;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    /* Better buttons for mobile */
    .cta-button, .submit-button, .tab-btn {
        padding: 12px 20px;
        font-size: 1rem;
        width: auto;
    }
    
    /* Fix contact form layout */
    .contact-container {
        gap: 30px;
    }
    
    /* Fix values display on small screens */
    .values-list {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

/* Landscape orientation fixes */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: 120vh;
    }
    
    .hero-content {
        margin-top: 80px;
        padding: 20px;
    }
    
    .nav-links.active {
        max-height: 80vh;
        overflow-y: auto;
    }
}