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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #fff;
    color: #333;
    line-height: 1.6;
}

/* Header Styles */
header {
    padding: 1.5rem 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background-color: #fff;
    z-index: 1000;
}

.header-container {
    max-width: 1500px;
    padding: 0 1rem;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}

.logo-main {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    text-decoration: none;
}

.logo-sub {
    font-size: 0.875rem;
    color: #aaa;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: #aaa;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

nav a:hover,
nav a.active {
    color: #333;
}

a {
    color: inherit;
}

a:hover {
    color: #333;
}

/* Main Content */
main {
    max-width: 1500px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Homepage Styles */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: center;
    max-height: calc(100vh - 150px);
}

.hero-content {
    text-align: left;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #333;
}

.hero h1 small {
    display: block;
    margin-bottom: -15px;
    font-size: 24px;
    margin-left: 2.4px;
}

.hero p {
    font-size: 1.25rem;
    color: #aaa;
    max-width: 645px;
    margin-bottom: 2rem;
}

.hero-image {
    position: relative;
    width: 100%;
    height: 100%;
    max-height: calc(100vh - 150px);
}

.hero-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 8px;
    height: 100%;
    object-position: top;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.btn {
    padding: 0.875rem 2rem;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background-color: #333;
    color: #fff;
}

.btn-primary:hover {
    background-color: #555;
}

.btn-secondary {
    background-color: transparent;
    color: #333;
    border: 2px solid #333;
}

.btn-secondary:hover {
    background-color: #333;
    color: #fff;
}

/* Portfolio Grid Styles */
.portfolio-header {
    text-align: center;
    margin-bottom: 3rem;
}

.portfolio-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.portfolio-header p {
    font-size: 1.1rem;
    color: #aaa;
}

.country-warning {
    display: none;
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #856404;
}

.country-warning.show {
    display: block;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(300px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 1300px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, minmax(300px, 1fr));
    }
}

.portfolio-item {
    background: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.portfolio-item:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Video Embeds */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    cursor: pointer;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.video-wrapper:hover .video-thumbnail {
    opacity: 0.8;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0;
}

.portfolio-item:hover .play-button {
    opacity: 1;
}

.play-button::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 25px solid #333;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    margin-left: 5px;
}

.video-wrapper:hover .play-button {
    background-color: rgba(255, 255, 255, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
    z-index: 20;
}

.video-wrapper.loading .loading-spinner {
    display: block;
}

.video-wrapper.loading .play-button,
.video-wrapper.loading .video-thumbnail {
    display: none;
}

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

.video-wrapper.loaded .video-thumbnail,
.video-wrapper.loaded .play-button,
.video-wrapper.loaded .loading-spinner {
    display: none;
}

/* Video Modal/Lightbox */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.video-modal.active {
    display: flex;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    background: #000;
}

.modal-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.modal-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.modal-close:hover {
    transform: scale(1.2);
}

.modal-loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

.modal-video-wrapper.loaded .modal-loading-spinner {
    display: none;
}

@media (max-width: 768px) {
    .video-modal-content {
        width: 95%;
    }
    
    .modal-close {
        top: -40px;
        font-size: 32px;
    }
}

/* Photo Items */
.photo-item {
    background: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
}

.photo-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        padding: 1rem;
    }

    .header-container {
        flex-direction: column;
        gap: 1rem;
    }

    .logo-section {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    nav ul {
        gap: 1rem;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-content {
        text-align: center;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
        margin-left: auto;
        margin-right: auto;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    main {
        padding: 1rem;
    }
}

@media (max-width: 650px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo-main {
        font-size: 1.25rem;
    }

    nav a {
        font-size: 0.875rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .portfolio-header h1 {
        font-size: 2rem;
    }
    .logo-sub {
        margin-top: -5px;
        font-size: 0.75rem;
    }
}
