/* General Styles */
:root {
    --eco-color: #28a745;
    --shot-color: #17a2b8;
    --transition-speed: 0.5s;
}

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

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    background-color: #ffffff;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        url('media/logo_background.png'),
        url('media/logo_background.png'),
        url('media/logo_background.png'),
        url('media/logo_background.png'),
        url('media/logo_background.png'),
        url('media/logo_background.png'),
        url('media/logo_background.png'),
        url('media/logo_background.png'),
        url('media/logo_background.png'),
        url('media/logo_background.png'),
        url('media/logo_background.png'),
        url('media/logo_background.png'),
        url('media/logo_background.png'),
        url('media/logo_background.png'),
        url('media/logo_background.png'),
        url('media/logo_background.png'),
        url('media/logo_background.png'),
        url('media/logo_background.png'),
        url('media/logo_background.png'),
        url('media/logo_background.png');
    background-size: 
        150px, 200px, 120px, 180px, 160px,
        140px, 190px, 130px, 170px, 155px,
        145px, 165px, 135px, 185px, 175px,
        125px, 195px, 150px, 160px, 140px;
    background-position: 
        10% 15%, 85% 25%, 30% 70%, 70% 80%, 50% 45%,
        20% 90%, 90% 60%, 15% 50%, 65% 20%, 40% 85%,
        5% 35%, 95% 45%, 25% 10%, 75% 95%, 55% 65%,
        35% 30%, 80% 55%, 12% 75%, 88% 10%, 45% 25%;
    background-repeat: no-repeat;
    opacity: 0.7;
    z-index: -1;
    pointer-events: none;
}

.fullscreen-body {
    height: 100vh;
    overflow: hidden;
}

.fullscreen-container {
    height: 100vh;
    width: 100vw;
}

/* Header */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

header h1 {
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Section Cards */
.section-card {
    position: absolute;
    cursor: pointer;
    overflow: visible;
    transition: all var(--transition-speed) ease;
}

#ecoCard {
    left: 0;
    top: 0;
    width: 55%;
    height: 65%;
    z-index: 2;
}

#shotCard {
    left: 35%;
    top: 30%;
    width: 65%;
    height: 70%;
    z-index: 1;
}

#ecoCard:hover {
    z-index: 10 !important;
}

#shotCard:hover {
    z-index: 10 !important;
}

#selectionSection {
    position: relative;
    height: 100vh;
}

/* Expanding Animation */
.section-card.expanding {
    z-index: 100 !important;
    position: fixed !important;
    animation: expandToFull 0.6s ease forwards;
}

#ecoCard.expanding {
    animation: expandEco 0.6s ease forwards;
}

#shotCard.expanding {
    animation: expandShot 0.6s ease forwards;
}

@keyframes expandEco {
    from {
        width: 55%;
        height: 65%;
        left: 0;
        top: 0;
    }
    to {
        width: 100vw;
        height: 100vh;
        left: 0;
        top: 0;
    }
}

@keyframes expandShot {
    from {
        width: 65%;
        height: 70%;
        left: 35%;
        top: 30%;
    }
    to {
        width: 100vw;
        height: 100vh;
        left: 0;
        top: 0;
    }
}

/* Closing animations */
.section-card.collapsing {
    z-index: 100 !important;
    position: fixed !important;
}

#ecoCard.collapsing {
    animation: collapseEco 0.6s ease forwards;
}

#shotCard.collapsing {
    animation: collapseShot 0.6s ease forwards;
}

@keyframes collapseEco {
    from {
        width: 100vw;
        height: 100vh;
        left: 0;
        top: 0;
    }
    to {
        width: 55%;
        height: 65%;
        left: 0;
        top: 0;
    }
}

@keyframes collapseShot {
    from {
        width: 100vw;
        height: 100vh;
        left: 0;
        top: 0;
    }
    to {
        width: 65%;
        height: 70%;
        left: 35%;
        top: 30%;
    }
}

#ecoCard .section-content {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.7) 0%, rgba(40, 167, 69, 0.7) 100%),
                url('media/eco.png') center/cover no-repeat;
}

#shotCard .section-content {
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.7) 0%, rgba(23, 162, 184, 0.7) 100%),
                url('media/camera.png') center/cover no-repeat;
}

.section-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-speed) ease;
}

.section-overlay {
    text-align: center;
    color: white;
    z-index: 2;
    padding: 2rem;
}

.section-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    display: block;
    animation: float 3s ease-in-out infinite;
}

.section-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.section-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Hover Effects */
.section-card:hover .section-content {
    transform: scale(1.05);
}

.section-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
    z-index: 1;
}

.section-card:hover::before {
    opacity: 1;
}

/* Expanded Content */
.expanded-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1000;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#ecoExpanded {
    background: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)),
                url('media/eco.png') center/cover no-repeat;
    background-attachment: fixed;
}

#shotExpanded {
    background: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)),
                url('media/camera.png') center/cover no-repeat;
    background-attachment: fixed;
}

.expanded-content.active {
    opacity: 1;
    visibility: visible;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Close Button */
.btn-close-section {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close-section:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: rotate(90deg);
}

/* Service Cards */
.service-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: #333;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

/* Placeholder Image */
.placeholder-image {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
}

.placeholder-image i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* Contact Button */
#contactButton {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

#contactButton .btn {
    padding: 1rem 3rem;
    font-size: 1.2rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

#contactButton .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Modal Styling */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px 15px 0 0;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Footer */
footer {
    margin-top: 3rem;
}

/* Hidden States */
.hidden {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 992px) {
    .section-card {
        height: 50vh;
        min-height: 300px;
    }
    
    .section-icon {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    header h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .section-card {
        height: 40vh;
        min-height: 250px;
    }
    
    .section-icon {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .btn-close-section {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}
