@charset "UTF-8";

/* -------------------------------- 
/* CSS Document */
/* Author Gianni- Gianni.ie */
/* Site : Gianni.ie */


/* Full Doc */

:root {
    --primary: #151515;
    --secondary: #ff5069;
}

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

body {
    background-color: var(--secondary);
    color: var(--primary);
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.5s ease, color 0.5s ease;
    overflow-x: hidden; 
}

/* Page Specific Body Overrides */
body.home-page {
    background-color: #f0f0f0;
    color: var(--secondary);
}

body.resume-page, body.design-page {
    background-color: #f0f0f0;
    color: var(--primary);
    overflow-y: auto;
}

a { 
    color: inherit; 
    text-decoration: none;
    transition: opacity 0.3s ease;
} 
a:hover {
    opacity: 0.5;
}

::selection {
    background: var(--secondary);
}

/* ==========================================
   NAVIGATION & MENU
   ========================================== */
header {
    position: absolute;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
}

.menu-btn-wrapper {
    width: 40px;
    height: 40px;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.menu-btn-wrapper:hover {
    opacity: 0.5;
}

.menu-btn {
    width: 40px;
    height: 40px;
    transform: translateY(50px);
    filter: drop-shadow(0 -50px 0 var(--primary));
    transition: filter 0.5s ease;
}

/* Fullscreen Menu Overlay */
#fullscreen-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--secondary);
    z-index: 900;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1), background-color 0.5s ease;
}

#fullscreen-menu.open {
    opacity: 1;
    visibility: visible;
}

/* Home Button Inside Menu */
.home-btn-wrapper {
    position: absolute;
    top: 2rem;
    left: 2rem;
    width: 40px;
    height: 40px;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    display: none; 
}

.home-btn-wrapper:hover {
    opacity: 0.5;
}

.home-btn {
    width: 40px;
    height: 40px;
    transform: translateY(50px);
    filter: drop-shadow(0 -50px 0 var(--primary));
}

.menu-items {
    list-style: none;
    text-align: center;
}

.menu-items li {
    margin: 0.5rem 0;
}

.menu-items a {
    font-family: 'League Gothic', sans-serif;
    font-size: 30vw; 
    font-weight: 600;
    letter-spacing: 0.0003em;
    line-height: 0.77;
    text-decoration: none;
    color: var(--primary);
    transition: opacity 0.3s ease, color 0.5s ease;
    display: block;
    text-transform: uppercase;
}

.menu-items a:hover {
    opacity: 0.5;
}

/* ==========================================
   HOME PAGE 
   ========================================== */
main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: 100vh;
    position: relative;
}

.left-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 300px;
    margin-left: 60px;
    flex-shrink: 0;
    z-index: 10;
}

.animation-container {
    width: 300px;
    height: 300px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#theme-wave-svg {
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.blurb {
    font-size: 26px;
    line-height: 1.2;
    font-weight: 500;
    color: var(--secondary);
}

.right-col {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* GIF Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.gif-wrapper {
    width: 750px;
    max-width: 90%;
    aspect-ratio: 750 / 500;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    animation: float 6s ease-in-out infinite;
    background-color: transparent;
}

@keyframes popIn {
    0% { transform: scale(0.95); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

.gif-wrapper.pop {
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards, float 6s ease-in-out infinite;
}

.gif-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background-color: white;
    width: 0%;
    z-index: 10;
}

@keyframes progress {
    0% { width: 0%; }
    100% { width: 100%; }
}

.progress-bar.active {
    animation: progress 10s linear forwards;
}

/* ==========================================
   CONTACT PAGE
   ========================================== */
.contact-svg-container {
    position: absolute;
    top: -350px;
    left: 50%;
    transform: translateX(-50%);
    height: 1200px;
    z-index: 1;
    transform-origin: top center;
    cursor: grab;
}

.contact-svg-container:active {
    cursor: grabbing;
}

#contact-wave {
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.contact-footer {
    position: absolute;
    bottom: 100px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 12vw;
    z-index: 10;
}

.col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.col h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 28px;
    letter-spacing: 0.01em;
    margin: 0;
}

.contact-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    font-size: 18px;
    font-weight: 500;
    text-align: center;
}

.social-icon-wrapper {
    width: 32px;
    height: 32px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -20px;
}

.social-icon {
    width: 32px;
    height: 32px;
    transform: translateY(50px);
    filter: drop-shadow(0 -50px 0 var(--primary));
    transition: filter 0.5s ease;
}

/* ==========================================
   EXPERIENCE PAGE
   ========================================== */
.resume-wrapper {
    width: 100%;
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.exp-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 4rem;
    width: 100%;
}

.exp-svg {
    width: 500px;
    height: 500px;
    max-width: 90vw;
    object-fit: contain;
    margin-bottom: 0px; /* default */
}

body.design-page .exp-svg {
    margin-bottom: -40px;
    z-index: 1;
}

.exp-title {
    font-family: 'League Gothic', sans-serif;
    font-size: 8rem;
    font-weight: 600;
    letter-spacing: 0.0003em;
    line-height: 0.77;
    color: var(--primary);
    text-transform: uppercase;
    z-index: 2;
}

.resume-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 6rem;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem 8rem 2rem;
}

.resume-intro {
    font-size: 24px;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 4rem;
    color: var(--primary);
}

.job {
    margin-bottom: 4rem;
}

.job h2 {
    font-size: 26px;
    font-weight: 900;
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.75rem;
    text-transform: uppercase;
}

.job-title {
    font-weight: 500;
    font-size: 20px;
    text-transform: none;
}

.job-date {
    font-weight: 600;
    font-size: 16px;
    color: var(--secondary);
    margin-left: auto;
    text-transform: uppercase;
}

.job-sub-date {
    font-weight: 500;
    font-size: 16px;
    color: var(--secondary);
    display: block;
    margin-bottom: 0.5rem;
}

.job-details {
    list-style: none;
}

.job-details li {
    margin-bottom: 1.25rem;
    font-size: 18px;
    line-height: 1.6;
}

.job-details strong {
    font-weight: 600;
}

.highlight {
    color: var(--secondary);
    font-weight: 600;
    transition: color 0.5s ease;
}

.sidebar-section {
    margin-bottom: 3rem;
}

.sidebar-section h3 {
    font-family: 'League Gothic', sans-serif;
    font-size: 3rem;
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
    color: var(--primary);
    text-transform: uppercase;
}

.sidebar-list {
    list-style: none;
}

.sidebar-list li {
    margin-bottom: 1.5rem;
    font-size: 18px;
    line-height: 1.4;
}

.sidebar-list strong {
    font-weight: 600;
    color: var(--secondary);
    transition: color 0.5s ease;
}

.contact-info p {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* ==========================================
   DESIGN PAGE
   ========================================== */
.design-wrapper {
    width: 100%;
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.design-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1250px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem 8rem 2rem;
    justify-items: center;
}

.design-item {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
    cursor: grab;
    user-select: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform, filter;
}

.design-item:active {
    cursor: grabbing;
}

.design-item.dragging {
    opacity: 0.6;
    transform: scale(0.95);
    z-index: 50;
}

/* Animate other items when dragging */
.design-item.drag-over {
    transform: translateY(30px) scale(0.98);
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
    transition: transform 0.25s cubic-bezier(0.4,0,0.2,1), box-shadow 0.25s;
}

.design-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /*filter: blur(30px);*/
    transition: filter 0.4s ease;
    pointer-events: none;
}
/*
.design-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--secondary);
    opacity: 0.8;
    transition: opacity 0.4s ease, background-color 0.5s ease;
    pointer-events: none;
}
*/

.design-item:hover {
    transform: scale(1.09);
    z-index: 10;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Drag icon for design-item */
.drag-icon {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    max-width: 100%;
    max-height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    filter: brightness(0) invert(1); /* white */
    z-index: 20;
    display: none;
}
.design-item:hover .drag-icon {
    opacity: 1;
}

.design-item:hover img {
    filter: blur(0);
}

.design-item:hover .overlay {
    opacity: 0;
}

/* ==========================================
   THEME SWITCHER
   ========================================== */
.theme-switcher {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 1.2rem;
}

.theme-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    background-color: transparent; 
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    overflow: hidden; 
}

.icon-box-wrapper {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    pointer-events: none;
}

.icon-box {
    width: 36px;
    height: 36px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: block; 
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.spin {
    transform: rotate(360deg);
}

.theme-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-switcher.open .theme-options {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.theme-option-btn:hover {
    transform: scale(1.1);
}

/* ==========================================
   RESPONSIVE MEDIA QUERIES
   ========================================== */
@media (min-width: 1101px) {
    .menu-items a { font-size: 22rem; }
}

@media (max-width: 1100px) {
    main {
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 8rem;
        height: auto;
        min-height: 100vh;
        overflow-x: hidden;
    }
    body.home-page { overflow-y: auto; overflow-x: hidden; }
    
    /* Home Adjustments */
    .left-col {
        margin-left: 0;
        margin-bottom: 3rem;
        width: 85%;
        max-width: 400px;
    }
    .animation-container {
        width: 100%;
        height: auto;
        aspect-ratio: 1/1;
    }
    .right-col {
        width: 100%;
        padding: 0 1rem 6rem 1rem;
    }

    /* Menu Adjustments */
    .menu-items a { font-size: 30vw; }
    
    /* Contact Adjustments */
    .contact-svg-container {
        width: 200px;
        height: 800px;
        top: -250px;
    }
    .contact-footer {
        position: relative;
        bottom: auto;
        flex-direction: column;
        margin-top: 60vh;
        padding-bottom: 8rem;
        gap: 3rem;
    }
}

@media (max-width: 900px) {
    /* Experience Adjustments */
    .resume-container {
        grid-template-columns: 1fr;
        gap: 4rem;
        padding: 0 1.5rem 6rem 1.5rem;
    }
    .exp-title {
        font-size: 5rem;
        margin-top: -2rem;
    }
    .job h2 {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    .job-date {
        margin-left: 0;
        margin-top: 0.5rem;
    }
    
    /* Design Adjustments */
    .design-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .contact-svg-container {
    position: absolute;
    top: -200px;
    width: 500px;
    transform: translateX(-50%);
    z-index: 1;
    transform-origin: top center;
    cursor: grab;
}
    .contact-footer {
        width: auto;
        margin-top: 300px;
    }

}