/* Main CSS for Artemis Website - Enhanced Version */

/* Import fonts */
@import url('fonts.css');

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    direction: ltr;
    text-align: left;
    background-color: #f9f9f7;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Color variables - Enhanced contrast */
:root {
    --primary-color: #0a192f;    /* Deeper Blue */
    --secondary-color: #ffd700;  /* Brighter Gold */
    --light-color: var(--bg-light);      /* Light cream/beige */
    --dark-color: #333333;       /* Dark gray */
    --white-color: #ffffff;      /* White */
    --accent-color: #4a90e2;     /* Accent blue */
    --text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); /* Enhanced text shadow */
    --box-shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1); /* Small shadow */
    --box-shadow-md: 0 6px 16px rgba(0, 0, 0, 0.1); /* Medium shadow */
    --box-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15); /* Large shadow */
    --transition-fast: all 0.3s ease; /* Fast transition */
    --transition-medium: all 0.5s ease; /* Medium transition */
    --breakpoint-sm: 576px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 992px;
    --breakpoint-xl: 1200px;
    --iframe-logo-max-height: 100px;
    --iframe-logo-padding: 15px;
}

/* Typography - Enhanced */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', Arial, sans-serif;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--primary-color);
    letter-spacing: -0.02em; /* Slightly better letter spacing */
}

h1 {
    font-size: 3.5rem; /* Larger headline */
    text-shadow: var(--text-shadow);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 2rem; /* More space below headings */
}

h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), transparent);
    animation: shimmerLine 2s infinite; /* Add subtle shimmer animation */
}

@keyframes shimmerLine {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

.text-center h2::after {
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
}

h3 {
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
}

p {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
    line-height: 1.8; /* Better line height for readability */
}

/* Layout - Enhanced */
.container {
    width: 100%;
    padding-right: 1rem;
    padding-left: 1rem;
    margin-right: auto;
    margin-left: auto;
}

.section {
    padding: 7rem 0; /* More space between sections */
    position: relative;
}

/* Header - Enhanced */
header {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--box-shadow-md);
    transition: var(--transition-fast);
}

header.scrolled {
    padding: 0.7rem 0;
    background-color: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; /* Ensure proper positioning context */
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    margin-left: 10px;
    transition: var(--transition-fast);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2)); /* Add subtle drop shadow */
}

header.scrolled .logo img {
    height: 50px;
}

.logo-text {
    font-family: 'Inter', Arial, sans-serif;
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--white-color);
    transition: var(--transition-fast);
    text-shadow: var(--text-shadow);
}

/* Navigation - Enhanced */
nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
    position: relative;
}

nav ul li:last-child {
    margin-left: 0;
}

nav ul li a {
    color: var(--white-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
    padding: 5px 0;
    font-size: 1.05rem;
    text-shadow: var(--text-shadow);
    position: relative;
}

nav ul li a:hover {
    color: var(--secondary-color);
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Mobile menu button styling */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 9999;
    transition: all 0.3s ease;
}

.mobile-menu-btn i {
    color: var(--gold-light, #d4a84f);
    font-size: 1.6rem;
    transition: all 0.4s ease;
}

.mobile-menu-btn.active i {
    transform: rotate(90deg);
    color: var(--secondary-color, #d4a84f);
}

/* Mobile navigation styling */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    nav ul {
        display: block !important;
        position: fixed !important;
        top: 0 !important;
        left: -100% !important;
        width: 80% !important;
        max-width: 300px !important;
        height: 100vh !important;
        background-color: var(--background-dark, #1a1a1a) !important;
        padding: 80px 20px 20px !important;
        z-index: 9998 !important;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3) !important;
        transition: left 0.3s ease-in-out !important;
        overflow-y: auto !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    
    nav ul li {
        display: block !important;
        margin: 0 0 15px 0 !important;
        position: relative !important;
        z-index: 9999 !important;
    }
    
    nav ul li a {
        display: block !important;
        padding: 10px 15px !important;
        font-size: 18px !important;
        color: var(--text-light, #ffffff) !important;
        position: relative !important;
        z-index: 10000 !important;
        pointer-events: auto !important;
    }
    
    nav ul.show {
        left: 0 !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    body.menu-open {
        overflow: hidden !important;
    }
    
    body.menu-open::after {
        content: none !important;
        /* Overlay removed */
    }
    
    /* Remove any filters or overlays that might cause transparency */
    .hero::before,
    .hero::after,
    .section::before,
    .section::after {
        z-index: -1 !important;
    }
}

/* Tablet Styles */
@media (min-width: 769px) and (max-width: 992px) {
    .container {
        max-width: 720px;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop Styles */
@media (min-width: 993px) {
    .container {
        max-width: 960px;
    }

    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .stats-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Large Desktop Styles */
@media (min-width: 1201px) {
    .container {
        max-width: 1140px;
    }
}

/* Hero section - Enhanced */
.hero {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 12rem 0 8rem; /* More padding */
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(6, 16, 36, 0.9) 0%, rgba(6, 16, 36, 0.7) 100%);
    z-index: 1;
}

/* Add subtle particle effect overlay */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.3"/></svg>');
    background-size: 150px 150px;
    opacity: 0.1;
    z-index: 1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    gap: 3rem;
    text-align: center;
}

.hero-text {
    flex: 1;
    padding: 0;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-text h1 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    animation: fadeInUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: 1px;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

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

.hero-text h2 {
    color: var(--text-light);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-light), var(--secondary-color), var(--primary-light));
    border-radius: 3px;
}

.hero-text p {
    font-size: clamp(1rem, 2vw, 1.1rem);
    margin-bottom: 2rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0.5rem;
}

.hero-image {
    flex: 1;
    text-align: center;
    position: relative;
    max-width: 550px;
    width: 100%;
}

.hero-image img {
    max-width: 100%;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.hero-image:hover img {
    transform: scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Add responsive adjustments */
@media (min-width: 992px) {
    .hero-content {
        flex-direction: row;
        text-align: right;
        justify-content: space-between;
    }
    
    .hero-text {
        align-items: flex-start;
        padding-left: 2rem;
    }
    
    .hero-text h2::after {
        left: 0;
        transform: none;
    }
    
    .hero-buttons {
        justify-content: flex-start;
    }
    
    .hero-text p {
        max-width: 100%;
    }
}

/* Feature boxes - Enhanced */
.features {
    padding: 7rem 0;
    background-color: var(--bg-light);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, var(--primary-dark), transparent);
    opacity: 0.05;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px; /* Increased gap */
    margin-top: 3rem;
}

.feature-box {
    background-color: var(--white-color);
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: var(--box-shadow-sm);
    transition: var(--transition-medium);
    border: 1px solid rgba(0, 0, 0, 0.03); /* Lighter border */
    position: relative;
    overflow: hidden;
    transform: translateY(0); /* For animation */
}

.feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.feature-box:hover {
    transform: translateY(-15px);
    box-shadow: var(--box-shadow-lg);
}

.feature-box:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.feature-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    text-shadow: var(--text-shadow);
    transition: var(--transition-medium);
}

.feature-box:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    color: var(--primary-color);
}

.feature-box h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    transition: var(--transition-fast);
    color: var(--primary-dark);
}

.feature-box:hover h3 {
    color: var(--secondary-color);
}

.feature-box p {
    color: rgba(51, 51, 51, 0.8);
    line-height: 1.7;
}

/* About section - Enhanced */
.about {
    background-color: var(--white-color);
    padding: 7rem 0;
    position: relative;
}

.about::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, rgba(10, 25, 47, 0.03), transparent);
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem; /* Increased gap */
}

.about-text {
    flex: 1;
    padding-left: 2rem;
}

.about-text p {
    color: var(--text-primary);
    margin-bottom: 1.2rem;
    line-height: 1.8;
}

.about-image {
    flex: 1;
    text-align: center;
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--secondary-color);
    border-radius: 15px;
    z-index: -1;
    transition: var(--transition-medium);
}

.about-image img {
    max-width: 100%;
    border-radius: 15px;
    box-shadow: var(--box-shadow-md);
    transition: var(--transition-medium);
    filter: brightness(1.02); /* Slightly brighter image */
}

.about-image:hover img {
    transform: translate(-5px, -5px);
    box-shadow: var(--box-shadow-lg);
}

.about-image:hover::before {
    transform: translate(-5px, 5px);
}

/* Gallery Section - Enhanced */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 2.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--box-shadow-sm);
    transition: var(--transition-medium);
    height: 300px; /* Fixed height for gallery items */
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-medium);
}

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

/* Add overlay with caption on hover */
.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10, 25, 47, 0.7), transparent);
    opacity: 0;
    transition: var(--transition-medium);
}

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

/* Gallery zoom button */
.gallery-zoom-btn {
    position: absolute;
    bottom: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item:hover .gallery-zoom-btn {
    opacity: 1;
    transform: translateY(0);
}

.gallery-zoom-btn:hover {
    background-color: var(--secondary-color);
}

/* Lightbox styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
}

.lightbox.active {
    display: block;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    cursor: pointer;
}

.lightbox-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.lightbox-image {
    max-width: 85vw;
    max-height: 70vh;
    display: block;
    object-fit: contain;
}

.lightbox-info {
    padding: 15px;
    background-color: #fff;
    text-align: right;
}

.lightbox-title {
    margin: 0;
    color: var(--primary-dark);
    font-size: 1.5rem;
}

.lightbox-description {
    margin: 10px 0 0;
    color: var(--text-primary);
    font-size: 1rem;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--primary-dark);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: var(--secondary-color);
}

.lightbox-close {
    top: 15px;
    left: 15px;
    z-index: 20;
}

.lightbox-prev {
    top: 50%;
    transform: translateY(-50%);
    left: 15px;
}

.lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    right: 15px;
}

@media (max-width: 768px) {
    .lightbox-image {
        max-width: 90vw;
    }
    
    .lightbox-close,
    .lightbox-prev,
    .lightbox-next {
        width: 35px;
        height: 35px;
    }
}

/* Focus styles for lightbox controls */
.lightbox-close:focus,
.lightbox-prev:focus,
.lightbox-next:focus,
.gallery-zoom-btn:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Location section - Enhanced */
.location {
    padding: 7rem 0;
    background-color: var(--light-color);
}

.location-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.location-content p {
    max-width: 800px;
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.map-container {
    width: 100%;
    height: 450px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--box-shadow-md);
    position: relative;
    transition: var(--transition-medium);
    border: 4px solid #fff; /* Add white border */
}

.map-container:hover {
    box-shadow: var(--box-shadow-lg);
}

.map-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-medium);
}

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

/* Contact Section - Enhanced */
.contact {
    padding: 7rem 0;
    background-color: var(--bg-light);
}

.contact-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 3rem;
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 500px;
    flex: 1;
}

.contact-info h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    width: fit-content;
}

.contact-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--secondary-color), transparent);
    border-radius: 2px;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background-color: var(--light-color);
    border-radius: 15px;
    box-shadow: var(--box-shadow-sm);
    transition: var(--transition-medium);
    border-left: 4px solid var(--secondary-color);
    margin-bottom: 1rem;
    position: relative;
    overflow: visible;
    min-height: 100px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item i {
    font-size: 1.7rem;
    color: var(--secondary-color);
    margin-right: 1.5rem;
    transition: var(--transition-fast);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item-content {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 0 10px;
}

.contact-item-title {
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    position: relative;
    z-index: 1;
    text-align: center;
    margin-right: auto;
    margin-left: auto;
}

.contact-item p {
    color: var(--text-primary);
    margin-bottom: 0;
    font-size: 1rem;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
    position: relative;
    z-index: 1;
    text-align: center;
    margin-right: auto;
    margin-left: auto;
}

/* Add hover effect back */
.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-md);
    background-color: #fff;
}

.contact-item:hover i {
    transform: scale(1.1);
    color: var(--primary-color);
}

/* Social links in contact section */
.social-links {
    text-align: center;
    margin-top: 4rem;
    padding: 2rem;
    background-color: var(--light-color);
    border-radius: 15px;
    box-shadow: var(--box-shadow-sm);
}

.social-links h3 {
    margin-bottom: 1.5rem;
    color: #d4a84f; /* Enhanced gold color for better contrast */
    font-weight: 700;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.social-links h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4a84f, transparent);
}

/* Calculator section - Enhanced */
.calculator-section {
    background: var(--bg-dark);
    padding: 7rem 0;
    position: relative;
    overflow: hidden;
    color: var(--text-light);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.calculator-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
    pointer-events: none;
}

.calculator-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.calculator-intro {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.calculator-intro h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    color: var(--secondary-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.calculator-intro p {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1rem, 2vw, 1.1rem);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.calculator-embed {
    max-width: 100%;
    overflow: hidden;
    border-radius: 15px;
    background: var(--white-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    margin: 0 auto;
    position: relative;
}

.calculator-embed::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    border-radius: 15px 15px 0 0;
}

.calculator-embed iframe {
    width: 100%;
    height: 900px; /* Increased base height to show more content */
    border: none;
    display: block;
    background: var(--white-color);
}

/* Fix for stretched logo and content visibility inside iframe */
.calculator-embed iframe {
    overflow-y: auto;
    overflow-x: hidden;
}

/* Custom styling for calculator logo inside iframe */
:root {
    --iframe-logo-max-height: 100px;
    --iframe-logo-padding: 15px;
}

/* Responsive styles for calculator */
@media (max-width: 1200px) {
    .calculator-section {
        padding: 6rem 0;
    }
    
    .calculator-embed iframe {
        height: 850px;
    }
    
    :root {
        --iframe-logo-max-height: 80px;
        --iframe-logo-padding: 12px;
    }
}

@media (max-width: 992px) {
    .calculator-section {
        padding: 5rem 0;
    }
    
    .calculator-intro {
        margin-bottom: 2rem;
    }
    
    .calculator-embed iframe {
        height: 800px;
    }
    
    :root {
        --iframe-logo-max-height: 70px;
        --iframe-logo-padding: 10px;
    }
}

@media (max-width: 768px) {
    .calculator-section {
        padding: 4rem 0;
        min-height: auto;
    }
    
    .calculator-container {
        padding: 0 0.5rem;
    }
    
    .calculator-intro {
        margin-bottom: 1.5rem;
    }
    
    .calculator-embed {
        border-radius: 10px;
    }
    
    .calculator-embed iframe {
        height: 750px;
    }
    
    :root {
        --iframe-logo-max-height: 60px;
        --iframe-logo-padding: 8px;
    }
}

@media (max-width: 576px) {
    .calculator-section {
        padding: 3rem 0;
    }
    
    .calculator-intro h2 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }
    
    .calculator-intro p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .calculator-embed {
        border-radius: 8px;
    }
    
    .calculator-embed iframe {
        height: 700px;
    }
    
    :root {
        --iframe-logo-max-height: 50px;
        --iframe-logo-padding: 6px;
    }
}

@media (max-width: 360px) {
    .calculator-section {
        padding: 2rem 0;
    }
    
    .calculator-intro h2 {
        font-size: 1.5rem;
    }
    
    .calculator-intro p {
        font-size: 0.9rem;
    }
    
    .calculator-embed iframe {
        height: 650px;
    }
    
    :root {
        --iframe-logo-max-height: 45px;
        --iframe-logo-padding: 5px;
    }
}

/* Add smooth loading animation */
.calculator-embed {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

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

/* Add hover effect */
.calculator-embed:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* Add loading state */
.calculator-embed.loading {
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calculator-embed.loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid var(--secondary-color);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Footer - Enhanced */
footer {
    background: var(--bg-gradient);
    color: var(--text-light);
    padding: 5rem 0 2rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at bottom, rgba(10, 77, 140, 0.5) 0%, transparent 70%);
    opacity: 0.3;
    z-index: 1;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    gap: 3rem;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h3 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 10px;
    position: relative;
}

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

.footer-section p {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition-fast);
    position: relative;
    padding-left: 20px; /* Space for icon */
}

.footer-section ul li a:hover {
    color: var(--secondary-color);
    padding-left: 25px; /* Move icon on hover */
}

/* Add arrow icon for footer links */
.footer-section ul li a::before {
    content: '\f054';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    transition: var(--transition-fast);
}

.footer-section ul li a:hover::before {
    left: 5px;
    color: var(--secondary-color);
}

/* Improved contact section text readability in footer */
.footer-section.contact-section p {
    color: #ffffff; /* Solid white for better readability */
    font-weight: 500; /* Slightly bolder text */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); /* Add subtle shadow for contrast */
}

.footer-section i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo-img {
    width: 80px;
    height: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
}

.copyright {
    text-align: center;
    padding-top: 3rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
}

.copyright p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Logo watermark */
.logo-watermark {
    position: fixed;
    bottom: 20px;
    left: 20px;
    opacity: 0.1;
    z-index: 10;
    pointer-events: none;
    transition: var(--transition-medium);
}

.logo-watermark img {
    width: 80px;
    height: auto;
}

.logo-watermark:hover {
    opacity: 0.3;
}

/* Buttons - Enhanced */
.btn {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.05rem;
    transition: var(--transition-fast);
    box-shadow: var(--box-shadow-sm);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.3);
    transition: width 0.3s ease;
    z-index: -1;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-md);
}

.btn:hover::before {
    width: 100%;
}

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

.btn-outline:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* Preloader - Added */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 70px;
    height: 70px;
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top: 5px solid var(--secondary-color);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Accessibility - Added */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 8px;
    z-index: 9999;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Utilities - Enhanced */
.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.py-1 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2 { padding-top: 1rem; padding-bottom: 1rem; }
.py-3 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-4 { padding-top: 2rem; padding-bottom: 2rem; }

.px-1 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-2 { padding-left: 1rem; padding-right: 1rem; }
.px-3 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-4 { padding-left: 2rem; padding-right: 2rem; }

/* Animation Delay Classes */
.fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

/* Result Highlighting Animation */
.highlight {
    animation: highlight 1s ease;
}

@keyframes highlight {
    0% { background-color: rgba(255, 215, 0, 0.2); }
    100% { background-color: transparent; }
}

/* Responsive Styles - Enhanced */
@media (max-width: 1200px) {
    html {
        font-size: 15px;
    }
}

@media (max-width: 992px) {
    html {
        font-size: 14px;
    }
    
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-content, .about-content {
        flex-direction: column;
    }
    
    .hero-text, .about-text {
        padding-left: 0;
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .hero-text h2::after, .about-text h2::after {
        left: 50%;
        transform: translateX(-50%);
        background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
    }
    
    .about-image::before {
        left: 0;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-content {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    
    .contact-info, 
    .contact-form-container {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 13px;
    }
    
    nav ul {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-section {
        width: 100%;
    }

    .hero {
        padding: 8rem 0 5rem;
    }
    
    .section {
        padding: 5rem 0;
    }

    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 12px;
    }
    
    .hero-image img, .about-image img {
        max-width: 90%;
    }
    
    .contact-item {
        padding: 1.2rem;
        min-height: 90px;
        align-items: center;
    }
    
    .contact-item i {
        font-size: 1.5rem;
        margin-left: 1rem;
    }
    
    .contact-item-content {
        padding: 0 5px;
    }
    
    .contact-item-title {
        font-size: 1.1rem;
        margin-bottom: 0.3rem;
    }
    
    .contact-item p {
        font-size: 0.95rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        height: 250px;
    }

    .feature-box {
        padding: 2rem;
    }
}

@media (max-width: 400px) {
    .logo img {
        height: 40px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .feature-box {
        padding: 1.5rem;
    }

    .contact-info {
        gap: 1rem;
    }

    h1 {
        font-size: 2.3rem;
    }

    h2 {
        font-size: 1.8rem;
    }
}

/* Print Styles - Added */
@media print {
    header, 
    footer, 
    .mobile-menu-btn,
    .hero::before,
    .hero::after,
    .preloader,
    .logo-watermark {
        display: none !important;
    }

    body {
        background-color: white;
        color: black;
    }

    .section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }

    a {
        text-decoration: none;
        color: black;
    }

    .container {
        width: 100%;
        max-width: none;
    }

    h1, h2, h3, h4, h5, h6 {
        color: black;
    }
}

/* Responsive Breakpoints */
:root {
    --breakpoint-sm: 576px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 992px;
    --breakpoint-xl: 1200px;
}

/* Mobile First Base Styles */
.container {
    width: 100%;
    padding-right: 1rem;
    padding-left: 1rem;
    margin-right: auto;
    margin-left: auto;
}

/* Responsive Typography */
html {
    font-size: 16px;
}

@media (min-width: 768px) {
    html {
        font-size: 18px;
    }
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

/* Print Styles */
@media print {
    .mobile-menu-btn,
    nav ul {
        display: none;
    }

    .container {
        width: 100%;
        max-width: none;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }
}

/* Form validation styles */
.invalid-feedback {
    display: none;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.is-invalid {
    border-color: #dc3545 !important;
}

.is-invalid ~ .invalid-feedback {
    display: block;
}

.is-valid {
    border-color: #28a745 !important;
}

.consent-checkbox {
    display: flex;
    align-items: flex-start;
}

.consent-checkbox input {
    margin-top: 6px;
    margin-left: 10px;
}

.submission-message {
    display: none;
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 0.25rem;
}

.success-message {
    background-color: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.error-message {
    background-color: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.testimonial-text p {
    color: var(--text-primary);
    line-height: 1.8;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.gallery-info h3 {
    color: var(--text-light);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.gallery-info p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

/* Section headers - fixes for better contrast */
section h2 {
    color: var(--primary-dark);
}

section.dark-bg h2,
.calculator-section h2 {
    color: var(--text-light);
}

/* Gallery section specific styles for better contrast */
section#gallery h2, 
section#gallery p {
    color: var(--primary-dark);
}

/* Make section headers more distinguishable */
.section h2 {
    font-weight: 800;
    letter-spacing: 0.02em;
}

/* Gallery section specific filter */
.gallery-filter {
    margin-bottom: 2rem;
}

/* Features section heading */
.features h2 {
    margin-bottom: 2.5rem;
}

/* Testimonials section heading */
.testimonials-section h2 {
    margin-bottom: 2.5rem;
}

/* Additional Responsive Rules */
@media (max-width: 768px) {
    /* Adjust container padding for mobile */
    .container {
        padding-right: 1rem;
        padding-left: 1rem;
    }
    
    /* Stack elements on mobile */
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Adjust button sizes for touch */
    .btn {
        padding: 0.8rem 1.5rem;
        min-height: 44px;
    }
    
    /* Adjust form elements for touch */
    input, 
    textarea, 
    select {
        padding: 0.8rem;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    /* Adjust spacing for mobile */
    section {
        padding: 3rem 0;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    /* Improve touch targets */
    .feature-box,
    .gallery-item,
    .contact-item {
        padding: 1rem;
    }
    
    /* Adjust grid layouts */
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    /* Improve form layout */
    .calculator-content {
        flex-direction: column;
    }
    
    .input-group {
        margin-bottom: 1.5rem;
    }
    
    /* Adjust map container */
    .map-container {
        height: 300px;
    }
}

/* Tablet Styles */
@media (min-width: 769px) and (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop Styles */
@media (min-width: 993px) {
    .container {
        max-width: 960px;
    }
    
    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .stats-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Large Desktop Styles */
@media (min-width: 1201px) {
    .container {
        max-width: 1140px;
    }
}
