:root {
    --primary-color: #0D9488;     
    --secondary-color: #D97706;   
    --dark-color: #1C1917;        
    --gray-color: #555555;        
    --light-color: #FAF8F5;       
    --white-color: #FFFFFF;
    
    --font-heading: "Courier New", serif;
    --font-body: "Helvetica", "Verdana", sans-serif;
    --container-width: 1200px;
    --transition: all 0.3s ease;

    /*filter: grayscale(100%) !important;*/
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--light-color);
    color: var(--dark-color);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
}

img {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}

/*
 * ==============================================================================
 * Container
 * ==============================================================================
 */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.section {
    padding: 80px 0;
}

.section-alt {
    background-color: var(--white-color);
    border-top: 1px solid #E5E7EB;
    border-bottom: 1px solid #E5E7EB;
}

/*
 * ==============================================================================
 * Header & Navigation
 * ==============================================================================
 */
.header {
    position: relative;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 0;
    z-index: 1000;
    background: transparent;
    backdrop-filter: blur(8px);
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    width: 32px;
    height: 32px;
    display: block;
}

.navbar ul {
    display: flex;
    align-items: center;
    gap: 30px;
}

.navbar a {
    color: var(--dark-color);
    font-weight: 500;
    position: relative;
    padding: 4px 0;
    transition: var(--transition);
}

.navbar a:hover {
    color: var(--secondary-color);
}

.navbar a.active,
.navbar a.active:hover {
    color: var(--primary-color);
}

.navbar a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.navbar a.active:not(.nav-cta)::after {
    background-color: var(--primary-color);
}

.navbar a:hover::after,
.navbar a.active::after {
    width: 100%;
}

.nav-cta {
    padding: 8px 18px !important;
    border-radius: 6px;
    background: var(--dark-color);
    color: var(--white-color) !important;
}

.nav-cta:hover {
    background: var(--secondary-color);
}

/*
 * ==============================================================================
 * Hero Section
 * ==============================================================================
 */
.hero-background-wrapper {
    position: relative;
    width: 100%;
    margin-top: -100px; 
    padding-top: 60px; 
    overflow: hidden;
}

.hero-background-wrapper::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 120' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,0 C150,90 350,-40 500,45 C650,130 900,10 1200,60 L1200,120 L0,120 Z' fill='%23FAF8F5'%3E%3C/path%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    pointer-events: none;
}

.hero.container {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    padding-top: 40px;
    padding-bottom: 100px;
    min-height: calc(100vh - 40px);
}

.hero-bg-canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: 
        linear-gradient(rgba(250, 248, 245, 0.85), rgba(250, 248, 245, 0.85)),
        url("../assets/background-canvas.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-content,
.hero-image {
    position: relative;
    z-index: 1;
}

.hero-content {
    width: 60%;
    color: var(--dark-color);
    justify-content: center; 
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 15px;
}

.hero p {
    color: #E5E7EB;
}

.hero .tagline {
    position: relative;
    font-size: 1.4rem;
    font-weight: 500;
    font-family: var(--font-heading);
    padding-bottom: 8px;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.hero .tagline::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.hero p {
    font-size: 1.05rem;
    color: var(--gray-color);
    margin-bottom: 35px;
}

.aspire {
    color: #512BD4;
    font-weight: 700;
}

.hero-image {
    width: 40%;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    justify-content: center; 
}

.hero-image img {
    width: 400px;
    max-width: 100%;
    border-radius: 12px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 8px;
    background: var(--primary-color);
    color: var(--white-color);
    font-weight: 500;
    transition: var(--transition);
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white-color);
}

/*
 * ==============================================================================
 * Section Headings
 * ==============================================================================
 */
main h2 {
    font-size: 2.25rem;
    color: var(--dark-color);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

main h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/*
 * ==============================================================================
 * About & Preferences
 * ==============================================================================
 */
.about-grid {
    display: grid;
    grid-template-columns: 350px minmax(300px, 700px);
    grid-template-rows: auto auto;
    justify-content: space-around;
    gap: 1.5rem;
    margin: 1.5rem 0;
    width: 100%;
}

.about-grid h2 {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
}

#about aside {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-content {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

#about p, #preferences p {
    color: var(--gray-color);
    font-size: 1.1rem;
}

#about aside img {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    border-radius: 8px;
}

figcaption {
    text-align: center;
    margin-top: 0.5rem; 
}

.about-content p {
    font-size: 1.15rem;
    line-height: 1.7;
}

.about-content p .tool {
    font-weight: bold;
    color: var(--secondary-color);
}

.about-flex {
    font-style: italic;
    color: var(--gray-color);
    display: inline-block;
}

.about-flex del {
    color: var(--primary-color);
}

.about-flex strong {
    color: var(--secondary-color);
}

/*
 * ==============================================================================
 * Projects Section
 * ==============================================================================
 */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
}

.project-card {
    background: var(--white-color);
    border-radius: 8px;
    border: 1px solid transparent;
    box-shadow: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.projects-grid:has(.project-card:not(.project-card-more):hover) .project-card:not(.project-card-more):not(:hover) {
    opacity: 0.4;
}

.project-card:hover {
    opacity: 1;
    background-color: #E6F4F1;
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(13, 148, 136, 0.15);
}

.project-image {
    width: 100%;
    height: 180px;
    background: #f3f4f6;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-content h3 {
    font-size: 1.25rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.project-content p {
    color: var(--gray-color);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.project-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.project-link:hover {
    color: var(--secondary-color);
}

.projects-grid:has(.project-card:hover) .project-card-more {
    opacity: 1 !important;
}

.project-card-more {
    background: transparent;
    min-height: 250px;
}

.project-more-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    height: 100%;
    padding: 2rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.project-card-more:hover {
    border-color: var(--primary-color);
    background-color: #E6F4F1;
}

.project-card-more .arrow {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.project-card-more:hover .arrow {
    transform: translateX(18px);
}

/*
 * ==============================================================================
 * Skills Section
 * ==============================================================================
 */
#skills {
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.skill-category {
    border: 1px solid transparent;
    border-radius: 14px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.skill-category:hover {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.bento-backend:hover,
.bento-frontend:hover,
.bento-infra:hover {
  border-color: var(--primary-color);
}

.bento-desktop:hover,
.bento-other:hover {
  border-color: var(--gray-color);
}

.bento-learning:hover {
  border-color: var(--secondary-color);
}

.skill-category h3 {
    font-size: 1.1rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.skill-tags li {
    display: inline-flex;
    margin: 0;
}

.tag {
    background: rgba(0, 0, 0, 0.04);
    color: var(--dark-color);
    font-size: 0.875rem;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    border: none;
    font-weight: 500;
}

.tag-highlight {
    background: rgba(13, 148, 136, 0.15);
    color: var(--primary-color);
    font-weight: 600;
}

.tag-learning {
    background: rgba(217, 119, 6, 0.15);
    color: var(--secondary-color);
}

/* Bento Grid Spans */
.bento-backend {
    grid-column: 1 / span 2;
    grid-row: 1;
}

.bento-frontend {
    grid-column: 3;
    grid-row: 1 / span 3;
}

.bento-infra {
    grid-column: 1;
    grid-row: 2 / span 3;
}

.bento-desktop {
    grid-column: 2;
    grid-row: 2;
}

.bento-other {
    grid-column: 2;
    grid-row: 3;
}

.bento-learning {
    grid-column: 2 / span 2;
    grid-row: 4;
}

@media (max-width: 900px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .bento-backend,
    .bento-infra,
    .bento-frontend,
    .bento-desktop,
    .bento-other,
    .bento-learning {
        grid-column: span 1;
        grid-row: auto;
    }
}

/*
 * ==============================================================================
 * Music Section 
 * ==============================================================================
 */
.music-outer-wrapper {
    padding: 80px 0;
}
 
#music {
    padding: 0;
}
 
.audio-player-card {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    justify-content: space-between;
    padding: 2rem;
    border-radius: 16px;
    margin-top: 1.5rem;
    transition: var(--transition);
}

.audio-player-card:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
}

/* Left side: Artwork & Main Details */
.audio-media-side {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1 1 400px;
}

.audio-cover-art {
    position: relative;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
}

.audio-cover-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.audio-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(28, 25, 23, 0.85);
    color: var(--secondary-color);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 2px 8px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
}

.audio-main-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.track-title {
    font-size: 1.75rem;
    color: var(--dark-color);
    line-height: 1.2;
}

.track-artist {
    font-size: 1.1rem;
    font-weight: 600;
}

.artist-external-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.artist-external-links a {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--black-color);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}

.artist-external-links a .arrow {
    display: inline-block;
    transition: transform 0.3s ease;
    margin-left: 2px;
}

.artist-external-links a:hover .arrow {
    transform: translate(4px, -4px);
}

/* Right side: Metadata & Audio Bar */
.audio-controls-side {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    flex: 1 1 400px;
}

.track-meta-chips {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.meta-chip {
    display: flex;
    flex-direction: column;
    background: var(--light-color);
    opacity: 0.8;
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
}

.chip-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-color);
}

.chip-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark-color);
}

.custom-media-player {
    width: 100%;
    height: 40px;
    border-radius: 8px;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .audio-media-side {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .audio-cover-art {
        width: 100%;
        height: 180px;
    }
}

/*
 * ==============================================================================
 * Data Table
 * ==============================================================================
 */
 /* Container wrap with clean overflow containment */
 .table-container {
     width: 100%;
     margin-top: 2rem;
     overflow-x: auto;
     border-radius: 16px;
     box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
 }
 
 /* Modern timeline table architecture */
 .data-table {
     width: 100%;
     border-collapse: separate;
     border-spacing: 0;
     background: var(--white-color);
     border: 1px solid #E5E7EB;
     border-radius: 16px;
     overflow: hidden;
 }
 
 /* Header design */
 .table-header {
     background-color: var(--dark-color);
     color: var(--white-color);
     font-family: var(--font-heading);
     font-weight: 700;
     font-size: 0.85rem;
     text-transform: uppercase;
     letter-spacing: 1.5px;
     padding: 1.25rem 1.5rem;
     border: none;
 }
 
 /* Base cell styling */
 .table-cell {
     padding: 1.25rem 1.5rem;
     color: var(--dark-color);
     font-size: 0.95rem;
     line-height: 1.6;
     border-bottom: 1px dashed #E5E7EB;
     vertical-align: middle;
     transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
 }
 
 /* Last row border reset */
 .table-row:last-child .table-cell {
     border-bottom: none;
 }
 
 /* Interactive row highlight with left indicator bar */
 .table-row {
     position: relative;
     transition: var(--transition);
 }
 
 .table-row:hover .table-cell {
     background-color: #F0FDF4;
 }
 
 .table-row:hover .cell-highlight {
     color: var(--secondary-color);
     transform: translateX(4px);
 }
 
 /* Distinct year badge styling using the primary accent color */
 .cell-highlight {
     font-family: var(--font-heading);
     font-weight: 700;
     font-size: 0.9rem;
     color: var(--primary-color);
     white-space: nowrap;
     display: table-cell;
 }
 
 /* Bold weight for the role column */
 .cell-primary {
     font-weight: 700;
     color: var(--dark-color);
     width: 25%;
 }
 
 /*
  * ==============================================================================
  * Contact Section 
  * ==============================================================================
  */
#contact {
    padding-bottom: 6rem;
}
  
 .contact-grid {
     display: grid;
     grid-template-columns: 1fr 1.25fr;
     gap: 3.5rem;
     align-items: start;
     margin-top: 2.5rem;
 }
 
 /* Left Panel: Info & Status */
 .contact-info {
     display: flex;
     flex-direction: column;
     gap: 2rem;
 }
 
 .status-card {
     position: relative;
     background: var(--white-color);
     border: 1px solid #E5E7EB;
     border-radius: 16px;
     padding: 1.75rem;
     overflow: hidden;
     transition: var(--transition);
 }
 
 .status-card::before {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     width: 4px;
     height: 100%;
     background: var(--primary-color);
 }
 
 .status-badge {
     display: inline-flex;
     align-items: center;
     gap: 0.6rem;
     font-size: 0.8rem;
     font-weight: 700;
     text-transform: uppercase;
     letter-spacing: 1px;
     color: var(--primary-color);
     margin-bottom: 0.75rem;
 }
 
 .status-card p {
     color: var(--gray-color);
     font-size: 0.95rem;
     line-height: 1.6;
 }
 
 .contact-details {
     display: flex;
     flex-direction: column;
     gap: 1.5rem;
     padding: 0.5rem 0;
 }
 
 .detail-item {
     display: flex;
     flex-direction: column;
     gap: 0.35rem;
     padding-bottom: 1.25rem;
     border-bottom: 1px dashed #E5E7EB;
 }
 
 .detail-item:last-child {
     border-bottom: none;
     padding-bottom: 0;
 }
 
 .detail-label {
     font-size: 0.7rem;
     text-transform: uppercase;
     letter-spacing: 1.5px;
     color: var(--gray-color);
     font-weight: 700;
 }
 
 .detail-value {
     font-size: 1.1rem;
     color: var(--dark-color);
     font-weight: 600;
     transition: var(--transition);
 }
 
 a.detail-value:hover {
     color: var(--primary-color);
     transform: translateX(4px);
 }
 
 /* Right Panel: Enhanced Form */
 .contact-form {
     display: flex;
     flex-direction: column;
     gap: 1.5rem;
     width: 100%;
     background: var(--white-color);
     padding: 3rem;
     border-radius: 20px;
     border: 1px solid #E5E7EB;
     box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.05);
     position: relative;
 }
 
 .form-group {
     display: flex;
     flex-direction: column;
     gap: 0.6rem;
 }
 
 .form-label {
     font-family: var(--font-heading);
     font-weight: 700;
     font-size: 0.85rem;
     text-transform: uppercase;
     letter-spacing: 0.5px;
     color: var(--dark-color);
 }
 
 .form-input {
     width: 100%;
     padding: 1rem 1.25rem;
     font-family: var(--font-body);
     font-size: 1rem;
     color: var(--dark-color);
     background-color: var(--light-color);
     border: 2px solid transparent;
     border-radius: 10px;
     outline: none;
     transition: var(--transition);
 }
 
 .form-input::placeholder {
     color: #A1A1AA;
 }
 
 .form-input:hover {
     background-color: #F3F0EC;
 }
 
 .form-input:focus {
     border-color: var(--primary-color);
     background-color: var(--white-color);
     box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1);
 }
 
 .form-textarea {
     resize: vertical;
     min-height: 140px;
 }
 
 .form-submit {
     align-self: flex-start;
     border: none;
     cursor: pointer;
     margin-top: 0.5rem;
     width: 100%;
     text-align: center;
 }
 
 @media (max-width: 900px) {
     .contact-grid {
         grid-template-columns: 1fr;
         gap: 2.5rem;
     }
 
     .contact-form {
         padding: 2rem;
     }
 }

/*
 * ==============================================================================
 * Footer
 * ==============================================================================
 */
.footer {
    background: var(--dark-color);
    color: var(--white-color);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-container {
    display: flex;
    justify-content: align-start;
    align-items: flex-start;
    gap: 300px;
    flex-wrap: wrap;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    max-width: 320px;
}

.footer-brand img {
    width: 36px;
    margin-bottom: 1rem;
}

.footer-tagline {
    color: #a3a3a3;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-grid {
    display: flex;
    gap: 160px;
    flex-wrap: wrap;
}

.footer-nav-grid {
    display: flex;
    gap: 5rem;
}

.footer-nav-col {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-col h4 {
    color: var(--white-color);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    position: relative;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-col a {
    color: #a3a3a3;
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--primary-color);
    padding-left: 2px;
}

.footer-bottom {
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #737373;
    font-size: 0.875rem;
}

