/* --- CSS Reset & Variables --- */
:root {
    --bg-primary: #fff7fa;
    --bg-secondary: #ffedf2;
    --text-primary: #1a0f18;
    --text-secondary: #4a3644;
    --accent-primary: #ff758f;
    --accent-secondary: #ff8fa3;
    
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.8);
    --glass-shadow: 0 8px 32px 0 rgba(255, 202, 212, 0.07);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#youtube-player {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    opacity: 0;
    pointer-events: none;
    z-index: -100;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background gradient orb and canvas */
#network-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
    opacity: 0.6;
}

body::before {
    content: '';
    position: fixed;
    top: -20%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(244, 172, 183, 0.15) 0%, rgba(255, 247, 250, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    bottom: -20%;
    right: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(255, 202, 212, 0.1) 0%, rgba(255, 247, 250, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}

/* --- Typography & Utilities --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.bg-darker {
    background-color: rgba(0, 0, 0, 0.03);
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: var(--transition-medium);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(244, 172, 183, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(244, 172, 183, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-primary);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: rgba(244, 172, 183, 0.1);
    transform: translateY(-3px);
}

.btn-primary-small {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #fff;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: var(--transition-fast);
}

.btn-primary-small:hover {
    box-shadow: 0 4px 15px rgba(244, 172, 183, 0.4);
    transform: translateY(-2px);
}

/* --- Glassmorphism Components --- */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 247, 250, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-fast);
}

.glass-nav.scrolled {
    background: rgba(255, 247, 250, 0.95);
    box-shadow: var(--glass-shadow);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    transition: var(--transition-medium);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(244, 172, 183, 0.6);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--glass-shadow);
}

/* --- Navigation --- */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo .blink {
    color: var(--accent-primary);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a:not(.btn-primary-small) {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
}

.nav-links a:not(.btn-primary-small):hover {
    color: var(--text-primary);
}

.nav-links a:not(.btn-primary-small)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--accent-primary);
    transition: var(--transition-fast);
}

.nav-links a:not(.btn-primary-small):hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
}

/* --- Hero Section --- */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px; /* Offset for nav */
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hero-text {
    flex: 1.2;
    position: relative;
    z-index: 10;
}

.terminal-prompt {
    font-family: monospace;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    background: rgba(255, 202, 212, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: inline-block;
    border: 1px solid var(--glass-border);
}

.terminal-prompt .user { color: #ffcad4; }
.terminal-prompt .dir { color: #52b788; }

.name {
    font-size: clamp(2.5rem, 4vw + 1rem, 4.2rem);
    font-weight: 900;
    margin-bottom: 0rem;
    line-height: 1.1;
    color: var(--text-primary);
    white-space: nowrap;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.05);
    -webkit-box-reflect: below -15px linear-gradient(transparent, rgba(0,0,0,0.2));
}

.nickname {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Floral Decorations */
.floral-deco {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.5;
    z-index: 1;
    pointer-events: none;
    animation: float-flower 6s ease-in-out infinite;
    filter: drop-shadow(0 4px 6px rgba(244, 172, 183, 0.3));
}

.sakura-1 { top: 25%; left: 15%; font-size: 2rem; animation-delay: 0s; }
.sakura-2 { bottom: 35%; right: 20%; font-size: 1.8rem; animation-delay: 2s; }
.sakura-3 { top: 35%; right: 15%; font-size: 2.2rem; animation-delay: 1s; opacity: 0.3; }

@keyframes float-flower {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

.role {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.goal {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.image-wrapper {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    z-index: 2;
    border: 4px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    -webkit-box-reflect: below 10px linear-gradient(transparent, transparent, rgba(0,0,0,0.3));
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.image-wrapper:hover img {
    transform: scale(1.05);
}

.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0%, var(--accent-primary) 30%, var(--accent-secondary) 70%, transparent 100%);
    filter: blur(30px);
    opacity: 0.5;
    z-index: 1;
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
}

.card-header i {
    font-size: 1.8rem;
    color: var(--accent-primary);
}

.card-header h3 {
    font-size: 1.5rem;
}

.timeline-item h4 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.timeline-item h5 {
    font-size: 1rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    font-weight: 500;
}

.timeline-item p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.timeline-item .date {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(244, 172, 183, 0.1);
    color: var(--accent-primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.gpa {
    background: rgba(255, 202, 212, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: inline-block;
    color: var(--text-primary) !important;
}

.skill-categories {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-category h4 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-weight: 500;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.tags span {
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.tags span:hover {
    background: rgba(244, 172, 183, 0.1);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-2px);
}

.tags span i {
    margin-right: 0.5rem;
    color: var(--accent-primary);
}

/* --- Experience / Activities Timeline --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 2px;
    background: var(--glass-border);
}

.timeline-event {
    position: relative;
    padding-left: 60px;
    margin-bottom: 3rem;
}

.timeline-event:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    top: 0;
    left: 11px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 4px solid var(--accent-primary);
    box-shadow: 0 0 10px rgba(244, 172, 183, 0.3);
    z-index: 2;
}

.timeline-content .date {
    display: block;
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.2rem;
}

.timeline-content h4 {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 1rem;
}

.timeline-content p {
    color: var(--text-secondary);
}

/* --- Projects Section --- */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.project-icon {
    font-size: 2.5rem;
    color: var(--accent-primary);
}

.project-links a {
    font-size: 1.2rem;
    color: var(--text-secondary);
    padding: 0.5rem;
    border-radius: 50%;
    background: rgba(255, 202, 212, 0.05);
    transition: var(--transition-fast);
}

.project-links a:hover {
    color: var(--accent-primary);
    background: rgba(244, 172, 183, 0.1);
    transform: translateY(-2px);
}

.project-content h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.project-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.tech-stack span {
    font-size: 0.8rem;
    font-family: var(--font-heading);
    color: var(--accent-primary);
    background: rgba(244, 172, 183, 0.05);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    border: 1px solid rgba(244, 172, 183, 0.2);
}

/* --- Certifications Section --- */
.cert-award-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.column-title {
    font-size: 1.6rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.column-title i {
    color: var(--accent-primary);
}

.cert-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.glass-list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: var(--transition-fast);
}

.glass-list-item:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(244, 172, 183, 0.3);
}

.glass-list-item.highlight {
    border-color: rgba(255, 202, 212, 0.3);
    background: rgba(255, 202, 212, 0.05);
    flex-direction: column;
    align-items: flex-start;
}

.glass-list-item.highlight .item-icon {
    align-self: flex-start;
}

.glass-list-item.highlight .item-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.item-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 202, 212, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.glass-list-item.highlight .item-icon {
    background: rgba(244, 172, 183, 0.1);
    color: #ffcad4;
}

.item-info h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.item-info span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* --- Footer --- */
.glass-footer {
    background: rgba(255, 247, 250, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--glass-border);
    padding: 5rem 0 2rem;
    text-align: center;
}

.contact-subtext {
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.contact-item i {
    color: var(--accent-primary);
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 2rem;
}

/* --- Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-delay {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out 0.2s, transform 0.8s ease-out 0.2s;
}

.fade-in.appear, .fade-in-delay.appear {
    opacity: 1;
    transform: translateY(0);
}

/* --- New Image Styles --- */
.activity-image {
    margin-top: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.activity-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.activity-image:hover img {
    transform: scale(1.02);
}

.activity-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.activity-image-grid img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    transition: transform 0.4s ease;
}

.activity-image-grid img:hover {
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.cert-thumb {
    margin-top: 1.2rem;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    border: 2px solid rgba(244, 172, 183, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    position: relative;
}

.cert-thumb::after {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 2rem;
    transition: transform 0.3s ease;
    pointer-events: none;
}

.cert-thumb:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

.cert-thumb img {
    width: 100%;
    height: auto;
    display: block;
    cursor: zoom-in;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.cert-thumb:hover img {
    transform: scale(1.03);
    filter: brightness(0.85);
}

.item-info {
    flex-grow: 1;
    width: 100%;
}

/* --- My Interests Section --- */
.interests-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

.interest-card {
    text-align: center;
    padding: 2.5rem 2rem;
    cursor: default;
}

.interest-card:hover {
    transform: translateY(-8px);
    border-color: rgba(244, 172, 183, 0.5);
    box-shadow: 0 20px 40px rgba(244, 172, 183, 0.15);
}

.interest-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    line-height: 1;
    transition: transform 0.3s ease;
}

.interest-card:hover .interest-icon {
    transform: scale(1.2) rotate(-5deg);
}

.interest-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.interest-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.interest-photo {
    margin-top: 1.2rem;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.interest-photo img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.interest-card:hover .interest-photo img {
    transform: scale(1.05);
}

.interest-photo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 1.2rem;
}

.interest-photo-grid img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    transition: transform 0.4s ease;
}

.interest-card:hover .interest-photo-grid img {
    transform: scale(1.05);
}

.interest-card.has-photo {
    text-align: left;
}

.interest-card.has-photo .interest-icon {
    text-align: left;
}

@media (max-width: 768px) {
    .interests-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .interests-grid {
        grid-template-columns: 1fr;
    }
}

/* Rotated certificate image removed as it's now properly formatted */

/* --- Life & Interests Section --- */
.hobby-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 3rem;
}

.hobby-tags span {
    padding: 0.6rem 1.4rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1.5px solid rgba(244, 172, 183, 0.4);
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    backdrop-filter: blur(8px);
    transition: var(--transition-fast);
}

.hobby-tags span:hover {
    background: rgba(244, 172, 183, 0.15);
    border-color: var(--accent-primary);
    transform: translateY(-3px);
}

/* Big Gallery Grid */
.big-gallery {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    grid-template-rows: 320px 320px;
    gap: 1rem;
}

.big-gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
}

.big-gallery-item.tall {
    grid-row: span 2;
}

.big-gallery-item.wide {
    grid-column: span 2;
}

.big-gallery-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.big-gallery-col .big-gallery-item {
    flex: 1;
}

.big-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.big-gallery-item:hover img {
    transform: scale(1.06);
}

@media (max-width: 992px) {
    .big-gallery {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 260px 260px 260px;
    }
    .big-gallery-item.tall {
        grid-row: span 1;
    }
    .big-gallery-col {
        flex-direction: row;
    }
}

@media (max-width: 600px) {
    .big-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .big-gallery-item, .big-gallery-col .big-gallery-item {
        height: 240px;
    }
    .big-gallery-item.wide {
        grid-column: span 1;
    }
    .big-gallery-col {
        flex-direction: column;
    }
}

/* --- Beyond the Screen Gallery --- */
.beyond-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.gallery-masonry {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 260px;
    gap: 1rem;
    margin-bottom: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.gallery-item.tall {
    grid-row: span 2;
}

.gallery-item.wide {
    grid-column: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 15, 24, 0.85) 0%, rgba(26, 15, 24, 0.2) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 1.5rem;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.gallery-overlay span {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
}

.gallery-overlay small {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.8rem;
    margin-top: 0.2rem;
}

@media (max-width: 768px) {
    .gallery-masonry {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 200px;
    }
    .gallery-item.tall {
        grid-row: span 1;
    }
    .gallery-overlay {
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .gallery-masonry {
        grid-template-columns: 1fr;
        grid-auto-rows: 220px;
    }
    .gallery-item.wide {
        grid-column: span 1;
    }
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 2rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .name {
        font-size: 3.2rem;
    }
    
    .goal {
        margin: 0 auto 2.5rem;
    }
    
    .image-wrapper {
        width: 280px;
        height: 280px;
    }
    
    .glow-effect {
        width: 300px;
        height: 300px;
    }
    
    .about-grid, .projects-grid, .cert-award-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(255, 247, 250, 0.95);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transition: 0.3s ease;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .name {
        font-size: 2.5rem;
    }
}

/* --- Splash Screen --- */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-primary);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.splash-screen.hidden {
    transform: translateY(-100%);
}

.splash-text {
    font-family: monospace;
    font-size: 2.5rem;
    color: var(--accent-primary);
    border-right: 3px solid var(--accent-primary);
    padding-right: 5px;
    animation: blink-cursor-splash 0.75s step-end infinite;
    white-space: pre-wrap;
    text-align: center;
}

@keyframes blink-cursor-splash {
    from, to { border-color: transparent; }
    50% { border-color: var(--accent-primary); }
}

/* --- Music Toggle --- */
.music-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--accent-primary);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1000;
    box-shadow: var(--glass-shadow);
    transition: var(--transition-medium);
    display: flex;
    justify-content: center;
    align-items: center;
}

.music-toggle:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.9);
    color: var(--accent-secondary);
}

.music-toggle.playing {
    animation: pulse-music 2s infinite;
}

@keyframes pulse-music {
    0% { box-shadow: 0 0 0 0 rgba(244, 172, 183, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(244, 172, 183, 0); }
    100% { box-shadow: 0 0 0 0 rgba(244, 172, 183, 0); }
}

@media (max-width: 768px) {
    .splash-text {
        font-size: 1.5rem;
    }
}

#youtube-player {
    position: fixed;
    top: -9999px;
    left: -9999px;
    width: 1px;
    height: 1px;
    pointer-events: none;
}
