/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-weight: '100'
    line-height: 1.6;
    color: #333;
    overflow: hidden; /* Prevent body scroll */
    height: 100vh;
}

a, a:active, a:visited {
  color: white;  
  font-weight: 400;
}

a:hover {
  color: #fdd;
}

strong {
  font-weight: 500;
}


/* Split-screen layout container */
.layout-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* Left panel - Hero (2/3 width, fixed) */
.hero-panel {
    width: 66.666%;
    height: 100vh;
    background-image: url('images/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}


/* Hero overlay content */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    text-align: left;
    color: white;
    padding: 2rem;
    background: linear-gradient(transparent 0%, transparent 70%, rgba(0, 0, 0, 0.6) 85%, rgba(0, 0, 0, 0.9) 100%);
}

/* Pi trigger */
.pi-trigger {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    user-select: none;
    transition: opacity 0.3s ease;
    font-family: 'Times New Roman', serif;
}

.pi-trigger:hover {
    opacity: 0.3;
}

.hero-overlay h1 {
    font-size: 3.5rem;
    font-weight: 100;
    margin-bottom: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-overlay .subtitle {
    font-size: 1.5rem;
    font-weight: 200;
    margin-bottom: 0.5rem;
    opacity: 0.9;    
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-overlay .location {
    font-size: 1rem;
    font-weight: 200;
    opacity: 0.8;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Right panel - Content (1/3 width, scrollable) */
.content-panel {
    width: 33.333%;
    height: 100vh;
    background: #151515;
    overflow-y: auto;
    overflow-x: hidden;
    color: #ddd;
}

.content-inner {
    padding: 2rem 4rem;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    width: 600px;
    margin: 0 auto;
}

/* Hello header */
.hello-header {
    font-size: 2.5rem;
    font-weight: 200;
    text-align: left;
    margin-top: 2rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57);
    background-size: 300% 300%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 8s ease infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Bio section */
.bio {
    margin-bottom: 3rem;
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 300;
}

.bio p {
    margin-bottom: 1.25rem;
}

/* Gallery section */
.gallery {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.gallery h2 {
    font-size: 1.75rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    text-align: center;
}

.gallery-grid {
    display: flex;
    gap: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.gallery-grid img {
    flex: 1 1 0;
    min-width: 0;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid img:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Social links section */
.social-links {
    margin-bottom: 2rem;
}

.social-links h2 {
    font-size: 1.75rem;
    color: #002136;
    font-weight: 300;
    margin-bottom: 1.5rem;
    text-align: center;
}

.links-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 0;
    max-width: 100%;
}

.links-grid a {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 50%;
    font-size: 0.96rem;
    transition: all 0.3s ease;

    width: 36px;
    height: 36px;
}

/* Position each circle with exact spacing - 6 circles need 5 equal gaps */
.links-grid a:nth-child(6n+1) { margin-left: 0; }
.links-grid a:nth-child(6n+2) { margin-left: calc((100% - 6 * 36px) / 5); }
.links-grid a:nth-child(6n+3) { margin-left: calc((100% - 6 * 36px) / 5); }
.links-grid a:nth-child(6n+4) { margin-left: calc((100% - 6 * 36px) / 5); }
.links-grid a:nth-child(6n+5) { margin-left: calc((100% - 6 * 36px) / 5); }
.links-grid a:nth-child(6n+6) { margin-left: calc((100% - 6 * 36px) / 5); }

.links-grid a:hover {
    background: #444;
    color: #fdd;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 33, 54, 0.3);
}

.links-grid a i {
    font-size: 1.2em;
}

/* Footer */
footer {
    margin-top: auto;
    padding-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: #bbb;
    opacity: 0.5;
}

/* Responsive design */
@media (max-width: 1500px) {
    .hero-panel {
        width: 60%;
    }
    
    .content-panel {
        width: 40%;
    }
    
    .hero-overlay h1 {
        font-size: 2.5rem;
    }
    
    .hero-overlay .subtitle {
        font-size: 1.3rem;
    }
    
    .content-inner {
        padding: 1.5rem 3rem;
        width: auto;
    }
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden !important;
        overflow-y: auto;
        height: auto;
    }
    
    .layout-container {
        flex-direction: column;
        height: auto;
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }
    
    .hero-panel {
        width: 100%;
        height: 40vh;
        background-attachment: scroll;
        position: relative;
    }
    
    .hero-overlay h1 {
        font-size: 2rem;
    }
    
    .hero-overlay .subtitle {
        font-size: 1.2rem;
    }
    
    .hero-overlay .location {
        font-size: 1rem;
    }
    
    .content-panel {
        width: 100% !important;
        height: auto;
        overflow-x: hidden !important;
        overflow-y: visible;
    }
    
    .content-inner {
        padding: 1.5rem 1rem;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0;
        box-sizing: border-box !important;
    }
}

@media (max-width: 480px) {
    body {
        overflow-x: hidden;
        overflow-y: auto;
        height: auto;
    }
    
    .layout-container {
        flex-direction: column;
        height: auto;
        width: 100vw;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .hero-panel {
        height: 50vh;
        width: 100%;
        background-attachment: scroll;
    }
    
    .hero-overlay {
        padding: 1rem;
    }
    
    .hero-overlay h1 {
        font-size: 1.75rem;
    }
    
    .content-panel {
        width: 100%;
        height: auto;
        overflow-y: visible;
        overflow-x: hidden;
    }
    
    .content-inner {
        padding: 1rem;
        width: 100% !important;
        max-width: 100%;
        margin: 0;
        box-sizing: border-box;
    }
    
    .content-inner * {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .bio {
        font-size: 0.95rem;
    }
    
    .gallery h2, .social-links h2 {
        font-size: 1.5rem;
    }
    
    .links-grid {
        justify-content: space-between;
        gap: 0.5rem;
    }
    
    .links-grid a {
        width: 30px;
        height: 30px;
        font-size: 0.84rem;
        margin-left: 0 !important;
    }
    
    .links-grid a i {
        font-size: 1.08em;
    }
}

/* Custom scrollbar for content panel */
.content-panel::-webkit-scrollbar {
    width: 6px;
}

.content-panel::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.content-panel::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.content-panel::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Print styles */
@media print {
    .layout-container {
        flex-direction: column;
        height: auto;
    }
    
    .hero-panel {
        width: 100%;
        height: 300px;
        background-attachment: scroll;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
    
    .content-panel {
        width: 100%;
        height: auto;
        overflow: visible;
    }
    
    .gallery-grid img {
        break-inside: avoid;
    }
    
    .links-grid a {
        border: 2px solid #002136;
        color: #002136;
        background: transparent;
    }
}

/* Glitch overlay */
.glitch-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden;
}

.glitch-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.glitch-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 8vw;
    font-weight: bold;
    color: #ff0000;
    text-shadow: 
        2px 0 #ff00ff,
        -2px 0 #00ffff,
        0 2px #ffff00,
        0 -2px #00ff00;
    animation: glitch-text 0.1s infinite;
    font-family: 'Courier New', monospace;
    white-space: nowrap;
}

@keyframes glitch-text {
    0% { transform: translate(-50%, -50%) skew(0deg); }
    20% { transform: translate(-48%, -52%) skew(5deg); color: #00ff00; }
    40% { transform: translate(-52%, -48%) skew(-3deg); color: #ff00ff; }
    60% { transform: translate(-50%, -50%) skew(2deg); color: #00ffff; }
    80% { transform: translate(-49%, -51%) skew(-1deg); color: #ffff00; }
    100% { transform: translate(-50%, -50%) skew(0deg); color: #ff0000; }
}

.glitch-noise {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(255, 0, 255, 0.1) 2px,
            rgba(255, 0, 255, 0.1) 4px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 255, 255, 0.1) 2px,
            rgba(0, 255, 255, 0.1) 4px
        );
    animation: noise 0.2s infinite;
}

@keyframes noise {
    0% { transform: translate(0, 0); }
    10% { transform: translate(-5px, -10px); }
    20% { transform: translate(-10px, 5px); }
    30% { transform: translate(5px, -25px); }
    40% { transform: translate(-5px, 25px); }
    50% { transform: translate(-10px, 5px); }
    60% { transform: translate(15px, 0px); }
    70% { transform: translate(0px, 15px); }
    80% { transform: translate(-15px, 0px); }
    90% { transform: translate(10px, 5px); }
    100% { transform: translate(5px, 0px); }
}

.glitch-static {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 0, 0, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 255, 0, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(0, 0, 255, 0.3) 0%, transparent 50%);
    animation: static 0.1s infinite;
}

@keyframes static {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

.glitch-bars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent 0px,
            transparent 50px,
            rgba(255, 255, 255, 0.1) 50px,
            rgba(255, 255, 255, 0.1) 52px
        );
    animation: bars 0.5s infinite;
}

@keyframes bars {
    0% { transform: translateY(0); }
    100% { transform: translateY(100px); }
}

.glitch-square {
    position: absolute;
    border-radius: 50%;
    animation: square-glitch 0.5s ease-out forwards;
    mix-blend-mode: difference;
}

@keyframes square-glitch {
    0% { 
        transform: scale(0) rotate(0deg);
        opacity: 1;
    }
    50% { 
        transform: scale(1.5) rotate(180deg);
        opacity: 0.8;
    }
    100% { 
        transform: scale(0.5) rotate(360deg);
        opacity: 0;
    }
}
