/* 
   Styles for Ashlee Oh's Portfolio Website
   Created: April 2025
*/

/* ===== GLOBAL STYLES ===== */
:root {
    --primary-color: #F06292;
    --secondary-color: #3F51B5;
    --accent-color: #FFD54F;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --dark-gray: #333333;
    --medium-gray: #777777;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 48px;
}

h2 {
    font-size: 36px;
}

h3 {
    font-size: 24px;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

section {
    padding: 80px 0;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ===== HEADER ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 20px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-gray);
}

.nav-menu {
    display: flex;
    list-style: none;
}

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

.nav-menu a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--dark-gray);
    position: relative;
}

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

.nav-menu a:hover:after,
.nav-menu a.active:after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--dark-gray);
    transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
    height: 100vh;
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    text-align: center;
    margin-top: 80px;
    background-image: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
}

.hero h1 {
    font-size: 64px;
    margin-bottom: 20px;
    color: var(--dark-gray);
}

.hero h2 {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 40px;
    color: var(--medium-gray);
}

/* ===== FEATURED WORK ===== */
.featured-work {
    text-align: center;
    background-color: var(--white);
}

.featured-work h2 {
    margin-bottom: 50px;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.work-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.work-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: var(--transition);
}

.work-item:hover img {
    transform: scale(1.05);
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    transform: translateY(100%);
    transition: var(--transition);
}

.work-item:hover .overlay {
    transform: translateY(0);
}

.overlay h3 {
    margin-bottom: 5px;
}

.overlay p {
    color: var(--medium-gray);
    margin-bottom: 0;
}

.view-more {
    margin-top: 30px;
}

/* ===== INTRO SECTION ===== */
.intro {
    background-color: var(--light-gray);
    text-align: center;
}

.intro p {
    max-width: 800px;
    margin: 0 auto 30px;
}

/* ===== PAGE HEADER ===== */
.page-header {
    background-color: var(--light-gray);
    text-align: center;
    padding: 120px 0 60px;
}

.page-header h1 {
    margin-bottom: 10px;
}

.page-header p {
    color: var(--medium-gray);
    font-size: 18px;
}

/* ===== PORTFOLIO GALLERY ===== */
.portfolio-filters {
    padding: 20px 0;
}

.filter-menu {
    display: flex;
    justify-content: center;
    list-style: none;
    margin-bottom: 40px;
}

.filter-menu li {
    margin: 0 15px;
    padding: 8px 15px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
}

.filter-menu li:hover,
.filter-menu li.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* ===== PROJECT MODAL ===== */
.project-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    overflow-y: auto;
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 40px;
    width: 80%;
    max-width: 1000px;
    border-radius: 8px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
}

.project-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.project-images img {
    width: 100%;
    border-radius: 8px;
}

.project-info h2 {
    margin-bottom: 10px;
}

.project-info p {
    margin-bottom: 20px;
}

.project-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.meta-item h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.project-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

.project-navigation button {
    background-color: var(--light-gray);
    color: var(--dark-gray);
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.project-navigation button:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* ===== ABOUT PAGE ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: start;
}

.about-image img {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-text h2 {
    margin-bottom: 20px;
}

.skills {
    background-color: var(--light-gray);
}

.skills h2 {
    text-align: center;
    margin-bottom: 50px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.skill-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.skill-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.skill-item i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.education h2 {
    text-align: center;
    margin-bottom: 50px;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 120px;
    width: 2px;
    background-color: var(--light-gray);
}

.timeline-item {
    display: flex;
    margin-bottom: 50px;
    position: relative;
}

.timeline-date {
    width: 120px;
    text-align: right;
    padding-right: 30px;
    font-weight: 600;
}

.timeline-content {
    flex: 1;
    padding-left: 30px;
}

.timeline-content:before {
    content: '';
    position: absolute;
    left: 111px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

.cta {
    background-color: var(--secondary-color);
    color: var(--white);
    text-align: center;
}

.cta h2,
.cta p {
    color: var(--white);
}

.cta p {
    max-width: 600px;
    margin: 0 auto 30px;
}

/* ===== CONTACT PAGE ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 50px;
}

.contact-form h2,
.contact-info h2 {
    margin-bottom: 30px;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-info p {
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.info-item i {
    font-size: 24px;
    color: var(--primary-color);
    margin-right: 20px;
    margin-top: 5px;
}

.info-item h3 {
    margin-bottom: 5px;
}

.social-connect {
    margin-top: 40px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--light-gray);
    border-radius: 50%;
    color: var(--dark-gray);
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info h3,
.footer-links h3,
.footer-social h3 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #aaa;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-social .social-icons a {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.footer-social .social-icons a:hover {
    background-color: var(--primary-color);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1199px) {
    h1 {
        font-size: 42px;
    }
    
    h2 {
        font-size: 32px;
    }
    
    .hero h1 {
        font-size: 56px;
    }
    
    .work-grid,
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    h1 {
        font-size: 36px;
    }
    
    h2 {
        font-size: 28px;
    }
    
    h3 {
        font-size: 20px;
    }
    
    .hero h1 {
        font-size: 42px;
    }
    
    .hero h2 {
        font-size: 20px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .hamburger {
        display: block;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 15px 0;
    }
    
    .work-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .project-details {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-social .social-icons {
        justify-content: center;
    }
    
    .timeline:before {
        left: 60px;
    }
    
    .timeline-date {
        width: 60px;
    }
    
    .timeline-content:before {
        left: 51px;
    }
}
