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

:root {
    --primary-color: #0a0a0a;
    --secondary-color: #1a1a1a;
    --accent-color: #d4af37;
    --text-color: #ffffff;
    --text-secondary: #b0b0b0;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--primary-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(10, 10, 10, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
}

.logo-image {
    height: 50px;
    width: 50px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 3px;
    color: var(--accent-color);
}

.header-instagram {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-decoration: none;
    letter-spacing: 1px;
    transition: var(--transition);
    position: absolute;
    left: 20px;
}

.header-instagram:hover {
    color: var(--accent-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    position: absolute;
    right: 20px;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--accent-color);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    position: absolute;
    right: 20px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background-color: var(--text-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    width: 100%;
    aspect-ratio: 16 / 9;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    overflow: hidden;
    z-index: 1;
    isolation: isolate;
    will-change: transform;
    clip-path: inset(0);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%230a0a0a" width="1200" height="600"/><g fill-opacity="0.1"><circle fill="%23d4af37" cx="200" cy="200" r="100"/><circle fill="%23d4af37" cx="800" cy="400" r="150"/></g></svg>');
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

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

/* Slideshow */
.slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    contain: paint;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide.active {
    opacity: 1;
}

/* Background slideshow with your actual photos */
.slide:nth-child(1) {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
                url('images/AFM1.jpg');
    background-size: cover;
    background-position: center;
}

.slide:nth-child(2) {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
                url('images/AFM2.jpg');
    background-size: cover;
    background-position: center;
}

.slide:nth-child(3) {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
                url('images/AFM3.jpg');
    background-size: cover;
    background-position: center;
}

.slide:nth-child(4) {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
                url('images/AFM5.jpg');
    background-size: cover;
    background-position: center;
}

.slide:nth-child(5) {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
                url('images/AFM7.jpg');
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(10, 10, 10, 0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    text-align: center;
    z-index: 2;
    animation: fadeInUp 1s ease;
}

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

.hero-title {
    font-size: 5rem;
    letter-spacing: 15px;
    margin-bottom: 1rem;
    color: var(--accent-color);
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    letter-spacing: 3px;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background-color: transparent;
    color: var(--accent-color);
    text-decoration: none;
    border: 2px solid var(--accent-color);
    letter-spacing: 2px;
    transition: var(--transition);
    font-size: 0.9rem;
}

.cta-button:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    cursor: pointer;
    transition: var(--transition);
}

.scroll-indicator:hover {
    transform: translateX(-50%) translateY(-5px);
}

.scroll-indicator span {
    display: block;
    width: 20px;
    height: 30px;
    border: 2px solid var(--accent-color);
    border-radius: 15px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(15px); }
}

/* Section Styles */
section {
    padding: 100px 0;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: 5px;
    color: var(--accent-color);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    letter-spacing: 2px;
}

/* About Section */
.about {
    background-color: var(--secondary-color);
    position: relative;
    overflow: hidden;
    z-index: 10;
    isolation: isolate;
}

.about-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    object-fit: cover;
    animation: zoomOut 20s ease-in-out infinite;
}

@keyframes zoomOut {
    0% { transform: scale(1.1); }
    50% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.about-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.7);
    z-index: 1;
}

.about .container {
    position: relative;
    z-index: 2;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.05), transparent);
    transition: left 1s ease;
    z-index: 1;
}

.about.visible::before {
    left: 100%;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
}

.about-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.1rem;
}

.about .section-title {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.about .section-title.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Team Section */
.team {
    background-color: var(--primary-color);
    position: relative;
    z-index: 10;
    isolation: isolate;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.team-member {
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    text-decoration: none;
    display: block;
    cursor: pointer;
    color: inherit;
}

.team-member:hover,
.team-member:visited,
.team-member:active,
.team-member:focus {
    text-decoration: none;
    color: inherit;
    outline: none;
}

.team-member.visible {
    opacity: 1;
    transform: translateY(0);
}

.team-photo {
    width: 200px;
    height: 200px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent-color);
    transition: var(--transition);
    position: relative;
}

.team-member:hover .team-photo {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.placeholder-photo {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--accent-color);
    letter-spacing: 3px;
    font-weight: bold;
}

.team-member-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-name {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    color: var(--text-color);
}

.team-role {
    color: var(--text-secondary);
    letter-spacing: 1px;
    font-size: 1rem;
}

/* Portfolio Section */
.portfolio {
    background-color: var(--primary-color);
    position: relative;
    z-index: 10;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.2);
}

.portfolio-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.portfolio-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
    background: #000;
}

.portfolio-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-color);
    letter-spacing: 3px;
    transition: var(--transition);
}

.portfolio-item:hover .placeholder-image {
    transform: scale(1.1);
}

.portfolio-info {
    padding: 1.5rem;
}

.portfolio-logo {
    width: 80px;
    height: auto;
    margin-bottom: 1rem;
    object-fit: contain;
}

.portfolio-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.portfolio-info p {
    color: var(--text-secondary);
    letter-spacing: 1px;
    font-size: 0.9rem;
}

/* Contact Section */
.contact {
    background-color: var(--secondary-color);
    position: relative;
    z-index: 10;
}

.contact-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--text-color);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.submit-button {
    padding: 15px 40px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    letter-spacing: 2px;
    font-weight: bold;
    transition: var(--transition);
}

.submit-button:hover {
    background-color: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    transform: translateY(-2px);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item h3 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    font-size: 1.1rem;
}

.info-item p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.social-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    letter-spacing: 1px;
}

.social-link:hover {
    color: var(--accent-color);
}

/* GoFundMe Section */
.gofundme {
    background-color: var(--primary-color);
    text-align: center;
}

.gofundme-content {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.gofundme-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
}

.gofundme-button {
    display: inline-block;
    padding: 18px 45px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 2px;
    border-radius: 5px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.gofundme-button:hover {
    background-color: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.footer p {
    color: var(--text-secondary);
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.footer-instagram {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    text-decoration: none;
    font-size: 1.1rem;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.footer-instagram:hover {
    color: var(--text-color);
    transform: translateY(-2px);
}

.instagram-icon {
    width: 28px;
    height: 28px;
    transition: var(--transition);
}

.footer-instagram:hover .instagram-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Responsive Design */
@media (max-width: 1100px) {
    .hamburger {
        display: flex;
        position: relative;
        right: auto;
        z-index: 10;
    }

    .nav-container {
        justify-content: space-between;
        padding: 0 20px;
    }

    .logo {
        position: relative;
        left: auto;
        gap: 0.5rem;
        flex-shrink: 0;
        z-index: 10;
    }

    .logo-text {
        font-size: 1.3rem;
        letter-spacing: 2px;
        white-space: nowrap;
    }

    .header-instagram {
        display: none;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        flex-direction: column;
        padding: 2rem;
        transform: translateX(-100%);
        transition: var(--transition);
        right: auto;
        z-index: 5;
    }

    .nav-menu.active {
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 400px;
    }

    .hero-title {
        font-size: 2.5rem;
        letter-spacing: 8px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        letter-spacing: 2px;
        word-wrap: break-word;
    }

    .section-title {
        font-size: 2rem;
        letter-spacing: 3px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .section-subtitle {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

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

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

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

    .team-photo {
        width: 200px;
        height: 200px;
    }

    /* GoFundMe widget responsive */
    .gofundme-content {
        padding: 0 10px;
    }

    .gfm-embed {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* About section adjustments */
    .about-text p {
        font-size: 1rem;
        line-height: 1.7;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    section {
        padding: 60px 0;
    }

    .hero-content {
        padding: 0 20px;
        max-width: 100%;
    }

    .container {
        padding: 0 20px;
        max-width: 100%;
    }

    /* Better touch targets */
    .nav-link {
        padding: 10px;
        display: block;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 0.85rem;
    }

    /* Fix all text overflow on mobile */
    h1, h2, h3, p, a {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .team-name, .portfolio-info h3 {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }
}

@media (max-width: 600px) {
    .logo-text {
        font-size: 0.75rem;
        letter-spacing: 0.5px;
    }

    .logo-image {
        height: 36px;
        width: 36px;
    }

    .logo {
        gap: 0.3rem;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 300px;
    }

    .logo-image {
        height: 40px;
        width: 40px;
    }

    .logo-text {
        display: none;
    }

    .logo {
        gap: 0;
        max-width: 50%;
    }

    .nav-container {
        padding: 0 12px;
    }

    .navbar {
        padding: 0.8rem 0;
    }

    .hamburger {
        flex-shrink: 0;
        padding: 5px;
    }

    .hamburger span {
        width: 22px;
    }

    .header-instagram {
        display: none;
    }

    .hero-title {
        font-size: 1.8rem;
        letter-spacing: 3px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        letter-spacing: 1px;
        word-wrap: break-word;
    }

    .cta-button {
        padding: 12px 25px;
        font-size: 0.8rem;
    }

    section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 1.6rem;
        letter-spacing: 2px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .section-subtitle {
        font-size: 0.9rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .team-photo {
        width: 180px;
        height: 180px;
    }

    .team-name {
        font-size: 1.1rem;
    }

    .team-role {
        font-size: 0.9rem;
    }

    .container {
        padding: 0 15px;
        max-width: 100%;
    }

    .about-text p {
        font-size: 0.95rem;
        line-height: 1.7;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .hero-content {
        padding: 0 15px;
    }

    .gofundme-text {
        font-size: 1rem;
    }

    .gofundme-button {
        padding: 15px 35px;
        font-size: 1rem;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .submit-button {
        width: 100%;
        padding: 15px;
    }

    .portfolio-info h3 {
        font-size: 1.1rem;
    }

    .nav-menu {
        padding: 1.5rem;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 12px;
    }
}
