/* ============================================
   TAIGA MORISHITA PORTFOLIO - CUSTOM STYLES
   ============================================ */

/* ========== CSS VARIABLES ========== */
:root {
    --purdue-black: #000000;
    --purdue-gold: #C09139;
    --purdue-gold-dark: #a37930;
    --purdue-gold-light: #d4a856;
    --light-bg: #f8f8f8;
    --text-color: #333333;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== GLOBAL RESET & TYPOGRAPHY ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Garamond', serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--light-bg);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Georgia', 'Garamond', serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h1 { font-size: 5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
p { margin-bottom: 1.2rem; }

a {
    color: var(--purdue-gold);
    text-decoration: none;
    position: relative;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--purdue-gold-dark);
}

/* Animated underline effect */
.link-underline {
    position: relative;
}

.link-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--purdue-gold);
    transition: width var(--transition-base);
}

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

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

section {
    position: relative;
    padding: 40px 0;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.site-header .wrapper,
.site-footer .wrapper {
    max-width: 99%;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== HERO SECTION ========== */
.hero {
    min-height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    background-image: linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 1)), url('../img/banner.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-content {
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

/* ========== ABOUT ME SPLIT LAYOUT ========== */
.about-me-container {
    max-width: 80%;
    margin: 0 auto;
    font-size: 1.05rem;
    display: flex;
    align-items: stretch;
    gap: 30px;
}

.profile-wrapper {
    flex: 0.5;
    min-width: 200px;
    display: flex;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    border: 4px solid var(--purdue-gold);
}

.about-text {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--purdue-gold), var(--purdue-gold-light));
    color: var(--purdue-black);
    padding: 14px 32px;
    margin: 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transition: left var(--transition-fast);
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* ========== STANDARD CARDS GRID ========== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--purdue-gold), var(--purdue-gold-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.card:hover .card-image {
    transform: scale(1.1);
}

.card-content {
    padding: 24px;
}

.card-title {
    margin-bottom: 12px;
    color: var(--purdue-black);
}

.card-text {
    color: var(--text-color);
    line-height: 1.6;
}

/* ========== HOVER OVERLAY PROJECT GRID ========== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.project-photo {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 60%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 24px;
    box-sizing: border-box;
    transition: background var(--transition-base);
}

.project-content {
    color: var(--white);
    width: 100%;
}

.project-title {
    margin: 0 0 4px 0;
    font-size: 1.4rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.project-hidden-text {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height var(--transition-base), opacity var(--transition-base);
}

.project-hidden-text p {
    margin: 12px 0 0 0;
    font-size: 0.95rem;
    color: #d4d4d4;
    line-height: 1.5;
}

/* Hover States (Project Photo) */
.project-photo:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.project-photo:hover .project-overlay {
    background: rgba(0, 0, 0, 0.75);
}

.project-photo:hover .project-hidden-text {
    max-height: 600px;
    opacity: 1;
}

.project-photo:hover .project-image {
    transform: scale(1.1);
}

/* ========== INLINE REPLICATED LINK FORMS ========== */
.inline-link-form {
    display: inline;
    margin: 0;
    padding: 0;
}

.inline-link-form button {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    color: var(--purdue-gold);
    cursor: pointer;
    display: inline-block;
    position: relative;
    transition: color var(--transition-base);
}

.inline-link-form button:hover {
    color: var(--purdue-gold-dark);
}

.inline-link-form button::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--purdue-gold);
    transition: width var(--transition-base);
}

.inline-link-form button:hover::after {
    width: 100%;
}

/* ========== GLIGHTBOX ENGINE CUSTOMIZATIONS ========== */
.gslide {
    padding: 60px 0 !important;
    box-sizing: border-box;
}

.gslide-image img {
    max-height: calc(100vh - 180px) !important;
    object-fit: contain;
}

.gslide-description {
    background: var(--purdue-black) !important;
    max-height: 150px;
    overflow-y: auto;
}

.gslide-title {
    color: var(--purdue-gold) !important;
    font-family: 'Georgia', serif;
    font-size: 24px;
}

.gslide-desc {
    color: #e0e0e0 !important;
    font-size: 24px;
}

/* ========== SKILLS LIST ========== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.skill-item {
    background: var(--white);
    border-left: 5px solid var(--purdue-gold);
    padding: 24px;
    border-radius: 0 8px 8px 0;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.skill-item:hover {
    border-left-width: 8px;
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

.skill-item strong {
    color: var(--purdue-gold-dark);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 8px;
}

/* ========== SECTION DIVIDERS ========== */
.section-divider {
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--purdue-gold), transparent);
    margin: 20px 0px;
    border: none;
}

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

.card:nth-child(1) { animation: fadeInUp 0.6s ease-out 0.1s backwards; }
.card:nth-child(2) { animation: fadeInUp 0.6s ease-out 0.2s backwards; }
.card:nth-child(3) { animation: fadeInUp 0.6s ease-out 0.3s backwards; }

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }

    .container {
        width: 95%;
    }

    .about-me-container {
        max-width: 100%;
        flex-direction: column;
    }

    .profile-wrapper {
        justify-content: center;
    }

    .profile-img {
        max-width: 250px;
        height: 250px;
    }

    .hero {
        background-attachment: scroll;
    }
}

/* ========== UTILITY CLASSES ========== */
.text-center { text-align: center; }
.text-gold { color: var(--purdue-gold); }
.bg-white { background-color: var(--white); }
.bg-light { background-color: var(--light-bg); }
.mb-4 { margin-bottom: 2rem; }