/* 
   James Finlay - Senior Animator Website
   Color Palette:
   - Background Black: #000000
   - Orange/Gold Accent: #F5A623
   - Black/Dark Gray: #1A1A1A
   - White: #FFFFFF
   - Light Gray: #E0E0E0
   - Blue Accent: #0F5E87
   - Red Accent: #B22222
*/

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(180deg, #0A0A0A 0%, #1A1A1A 100%);
    color: #FFFFFF;
    line-height: 1.6;
    overflow-x: hidden;
}

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

section {
    padding: 100px 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: #FFFFFF;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    color: #FFFFFF;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #F5A623;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.primary-btn {
    background-color: #F5A623;
    color: #000000;
}

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

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

.secondary-btn:hover {
    background-color: #F5A623;
    color: #000000;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s ease;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #F5A623;
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #F5A623;
    transition: width 0.3s ease;
}

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

.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #FFFFFF;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-color: #000000;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1400px;
    padding: 0 20px;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-height: 80vh;
    max-width: 100%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-text {
    flex: 1;
    padding-left: 50px;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    color: #FFFFFF;
}

.hero-text h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #F5A623;
    font-weight: 400;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #E0E0E0;
}

.hero-cta {
    display: flex;
    gap: 15px;
}

/* About Section */
.about {
    background-color: #1A1A1A;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

.about-text {
    flex: 2;
    min-width: 300px;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #E0E0E0;
}

.experience {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.experience-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.company-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
}

.experience-item span {
    font-size: 1.2rem;
    font-weight: 600;
}

/* Portfolio Section */
.portfolio {
    background-color: #000000;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    background-color: transparent;
    border: 1px solid #F5A623;
    color: #F5A623;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.filter-btn.active, .filter-btn:hover {
    background-color: #F5A623;
    color: #000000;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.portfolio-item {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    height: 300px;
    background-color: #1A1A1A;
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(245, 166, 35, 0.2);
}

.portfolio-content {
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.portfolio-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #F5A623;
}

.portfolio-item p {
    margin-bottom: 20px;
    color: #E0E0E0;
}

.portfolio-link {
    color: #F5A623;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}

.portfolio-link:hover {
    color: #FFFFFF;
}

.portfolio-link i {
    transition: transform 0.3s ease;
}

.portfolio-link:hover i {
    transform: translateX(5px);
}

/* Contact Section */
.contact {
    background-color: #1A1A1A;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

.social-links {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background-color: #000000;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.social-link i {
    font-size: 1.5rem;
    width: 30px;
    text-align: center;
}

.social-link.linkedin i {
    color: #0077B5;
}

.social-link.instagram i {
    color: #E1306C;
}

.social-link.email i {
    color: #F5A623;
}

.social-link:hover {
    transform: translateX(10px);
    background-color: #F5A623;
    color: #000000;
}

.social-link:hover i {
    color: #000000;
}

.contact-form {
    flex: 2;
    min-width: 300px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #E0E0E0;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background-color: #000000;
    border: 1px solid #333333;
    border-radius: 5px;
    color: #FFFFFF;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: #F5A623;
}

/* Footer */
footer {
    background-color: #000000;
    padding: 30px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #F5A623;
}

footer p {
    color: #E0E0E0;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        padding-left: 0;
        padding-top: 30px;
    }

    .hero-cta {
        justify-content: center;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        clip-path: circle(0% at 100% 0);
        transition: all 0.5s ease-out;
    }

    .nav-links.active {
        clip-path: circle(150% at 100% 0);
    }

    .nav-links li {
        margin: 15px 0;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        padding: 80px 20px 40px;
    }

    .hero-image {
        order: 1;
        margin-bottom: 30px;
    }

    .hero-image img {
        max-height: 50vh;
        max-width: 90%;
    }

    .hero-text {
        order: 2;
        padding-left: 0;
        width: 100%;
    }

    .hero-text h1 {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }

    .hero-text h2 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .hero-text p {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .hero-cta {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    .about-content, .contact-content {
        flex-direction: column;
    }

    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text h2 {
        font-size: 1.2rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 10px;
    }

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

    .section-title {
        font-size: 1.8rem;
    }
}



/* Video Modal Styles */
.video-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.video-modal-content {
    position: relative;
    margin: 5% auto;
    width: 90%;
    max-width: 900px;
    background: linear-gradient(135deg, #1A1A1A 0%, #2A2A2A 100%);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid #F5A623;
}

.video-close {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #F5A623;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 1001;
}

.video-close:hover {
    color: #FFFFFF;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

/* Responsive adjustments for video modal */
@media (max-width: 768px) {
    .video-modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 15px;
    }
    
    .video-close {
        font-size: 28px;
        top: 5px;
        right: 15px;
    }
}


/* Success Modal Styles */
.success-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.success-modal-content {
    position: relative;
    margin: 15% auto;
    width: 90%;
    max-width: 500px;
    background: linear-gradient(135deg, #1A1A1A 0%, #2A2A2A 100%);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 2px solid #F5A623;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-icon {
    margin-bottom: 20px;
}

.success-icon i {
    font-size: 4rem;
    color: #4CAF50;
    animation: checkPulse 0.6s ease-in-out;
}

@keyframes checkPulse {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.success-modal-content h3 {
    color: #FFFFFF;
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.success-modal-content p {
    color: #E0E0E0;
    font-size: 1.1rem;
    margin-bottom: 25px;
    line-height: 1.5;
}

.success-modal-content .btn {
    margin-top: 10px;
    min-width: 120px;
}

/* Responsive adjustments for success modal */
@media (max-width: 768px) {
    .success-modal-content {
        margin: 20% auto;
        width: 95%;
        padding: 30px 20px;
    }
    
    .success-icon i {
        font-size: 3rem;
    }
    
    .success-modal-content h3 {
        font-size: 1.5rem;
    }
    
    .success-modal-content p {
        font-size: 1rem;
    }
}

