/* ============================================
   PORTFOLIO SITE STYLESHEET
   Requires base.css to be loaded first
   ============================================ */

/* Import Montserrat font for banner */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;600&display=swap');

/* ============================================
   TYPOGRAPHY OVERRIDES
   ============================================ */

h1 {
    font-size: 80px;
}

h2 {
    font-size: 60px;
}

h3 {
    font-size: 40px;
}

ul {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
}

li {
    margin-bottom: 10px;
}

/* ============================================
   BANNER
   ============================================ */

.banner {
    text-align: center;
    padding: 5px 40px;
    font-family: 'Montserrat', sans-serif;
}

.main-text {
    font-size: 5rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--white);
    margin-bottom: 0.1em;
    line-height: 1;
}

.subtext {
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    color: var(--gray-500);
    text-transform: lowercase;
    margin-top: -0.2em;
}

.subtext .dot {
    margin: 0 0.5em;
    color: var(--gray-600);
}

/* ============================================
   LAYOUT
   ============================================ */

.container {
    width: 70%;
    margin: 0 auto;
    padding: 20px;
}

.transparent {
    color: var(--white);
    background: color-mix(in srgb, var(--gray-600) 75%, transparent);
    /* OR more compatible: */
    background: #44403cBF; /* gray-600 at 75% opacity */
    border-radius: 25px;
    padding: 20px;
    width: 90%;
    margin: 0 auto;
}

/* ============================================
   NAVIGATION
   ============================================ */

.navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 5px 0;
    width: 100%;
}

.navigation a {
    color: var(--white);
    text-decoration: none;
    font-size: 18px;
    text-transform: lowercase;
    transition: color 0.3s ease;
}

.navigation a:hover {
    color: var(--gray-400);
}

.nav-divider {
    width: 90%;
    margin: 10px auto;
    border: 0;
    border-top: 1px solid var(--gray-600);
}

/* ============================================
   TOOLTIPS
   ============================================ */

.tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
    text-decoration: underline;
    color: var(--cyan-400);
}

.tooltip .tooltiptext {
    visibility: hidden;
    background-color: var(--gray-700);
    color: var(--white);
    text-align: center;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip.active .tooltiptext {
    visibility: visible;
    opacity: 1;
    border: 2px solid var(--white);
}

/* ============================================
   RESPONSIVE ELEMENTS
   ============================================ */

.responsive-image {
    text-align: center;
    font-size: 80%;
}

.responsive-image img {
    width: 100%;
    height: auto;
    max-width: 600px;
    margin: auto;
}

.responsive-iframe {
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 600px;
    margin: auto;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    height: 0;
}

.responsive-iframe iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ============================================
   IMAGE GRID
   ============================================ */

.image-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 40px 20px;
    flex-wrap: wrap;
}

.grid-item {
    flex: 0 1 auto;
    text-align: center;
}

.grid-item img {
    max-width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.grid-item img:hover {
    transform: scale(1.05);
    opacity: 0.8;
}

/* ============================================
   UTILITIES
   ============================================ */

.credit {
    text-align: right;
    font-size: 80%;
}

#Sound {
    height: 414px;
    width: 252px;
}

#Sound:hover {
    background-image: url('soundon.png');
    height: 414px;
    width: 252px;
}

/* ============================================
   MEDIA QUERIES
   ============================================ */

@media (max-width: 768px) {
    /* Banner responsive */
    .main-text {
        font-size: 3rem;
    }
    
    .subtext {
        font-size: 0.85rem;
    }
    
    /* Navigation responsive */
    .navigation {
        flex-wrap: wrap;
        gap: 20px;
        padding: 15px 0;
    }
    
    .navigation a {
        font-size: 16px;
    }
    
    /* Image grid responsive */
    .image-grid {
        gap: 15px;
        padding: 20px 10px;
    }
    
    .grid-item img {
        max-width: 150px;
    }
    
    /* Layout adjustments */
    .container {
        width: 100%;
        padding: 10px;
    }

    .transparent {
        width: 100%;
        padding: 10px;
    }

    /* Tooltip adjustments */
    .tooltip .tooltiptext {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-height: 60vh;
        min-height: 20vh;
        overflow-y: auto;
    }

    /* Responsive elements */
    .responsive-image img {
        max-width: 100%;
    }

    .responsive-iframe {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    /* Banner extra small screens */
    .main-text {
        font-size: 2rem;
    }
    
    .subtext {
        font-size: 0.7rem;
    }
    
    /* Navigation extra small screens */
    .navigation {
        gap: 15px;
    }
    
    .navigation a {
        font-size: 14px;
    }
    
    /* Image grid extra small screens */
    .image-grid {
        flex-direction: column;
        gap: 20px;
    }
    
    .grid-item img {
        max-width: 120px;
    }
}