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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Fixed background - optimized for performance */
.fixed-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image: url('Splash-P-compressed.jpg'); /* Relative path for portability */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: -1;
    /* Performance optimizations */
    will-change: transform;
    transform: translateZ(0); /* Force hardware acceleration */
    transition: filter 0.3s ease;
}

/* Scrollable content container */
.content {
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

/* Hero section */
.hero-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    padding: 2rem;
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    animation: fadeInUp 1s ease-out;
}

.hero-section p {
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* Main content */
.main-content {
    background: rgba(52, 152, 219, 0.9);
    backdrop-filter: blur(5px);
    padding: 2rem 0;
    position: relative;
}

/* Content sections */
.content-section {
    padding: 4rem 2rem;
    max-width: 800px;
    margin: 2rem auto;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.content-section:last-child {
    border-bottom: none;
}

.content-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    text-align: center;
}

.content-section p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-align: justify;
    color: #555;
}

.content-section ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.content-section li {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #555;
}

/* Photo container styling */
.photo-container {
    width: 100%;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.photo-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-image:hover {
    transform: scale(1.02);
}

/* Photo Gallery Zone */
.photo-gallery-zone {
    padding: 4rem 0;
    background: rgba(0, 0, 0, 0.4);
    text-align: center;
    width: 100%;
}

.photo-gallery-zone h2 {
    font-size: 2.8rem;
    color: white;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.photo-gallery-container {
    overflow-x: scroll;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    padding: 1.5rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 15px rgba(0,0,0,0.2);
}

.photo-gallery-scroll {
    display: inline-block;
}

.gallery-photo {
    display: inline-block;
    width: 280px;
    height: 280px;
    object-fit: cover;
    margin: 0 1rem;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

/* Floating photos container */
.floating-photos-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: visible;
}

/* Individual floating photos */
.floating-photo {
    position: absolute;
    pointer-events: auto;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 3px solid white;
    opacity: 0;
    transform: scale(0.5) rotate(0deg);
}

.floating-photo.hidden-photo {
    display: none;
}

.floating-photo.revealed-photo {
    display: block;
    animation: revealPhoto 0.8s ease-out forwards;
}

@keyframes revealPhoto {
    from {
        opacity: 0;
        transform: scale(0.5) rotate(0deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(var(--rotation));
    }
}

.floating-photo:hover {
    transform: scale(1.1) !important;
    z-index: 1000;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Different photo sizes */
.floating-photo.small {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.floating-photo.medium {
    width: 120px;
    height: 120px;
    object-fit: cover;
}

.floating-photo.large {
    width: 150px;
    height: 150px;
    object-fit: cover;
}

/* Photos peeking from edges - more visible */
.floating-photo.peek-left {
    left: -40px !important;
}

.floating-photo.peek-right {
    right: -40px !important;
    left: auto !important;
}

/* Animation for floating effect */
@keyframes floatIn {
    from {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(var(--rotation));
    }
}

.floating-photo {
    animation: floatIn 0.8s ease-out forwards;
}

/* Button styling */
.demo-button {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    margin: 1rem 0;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.demo-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
    background: linear-gradient(45deg, #2980b9, #3498db);
}

.demo-button:active {
    transform: translateY(0);
}

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

/* Responsive design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section p {
        font-size: 1.2rem;
    }
    
    .content-section {
        padding: 2rem 1rem;
    }
    
    .content-section h2 {
        font-size: 2rem;
    }
    
    .fixed-background {
        background-attachment: scroll;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .content-section h2 {
        font-size: 1.5rem;
    }
}

/* Scroll indicator */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    z-index: 1000;
    transition: width 0.1s ease;
}
