/* ===================================
   JERALMI CANELA PORTFOLIO
   BASE STYLES - Shared Across Site
   Aesthetic: Dune / Blade Runner / Hyper Light Drifter
   =================================== */

/* ============ FONTS ============ */

/* Space Grotesk - Modern, geometric, readable */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* Modern Display Fonts for Enhanced Greeting System */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Orbitron:wght@400;500;600;700;800;900&family=Rajdhani:wght@300;400;500;600;700&family=Audiowide&family=Space+Mono:wght@400;700&family=Syne:wght@400;500;600;700;800&family=Antonio:wght@100;200;300;400;500;600;700&family=Chakra+Petch:wght@300;400;500;600;700&display=swap');

/* DotMatri - Strategic accent use only */
@font-face {
    font-family: "DotMatri";
    src: url("/assets/fonts/dotmatrix.woff") format("woff");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ============ BASE RESET ============ */

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

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    background-color: #fafafa;
    color: #1a1a1a;
    padding: 20px;
    line-height: 1.6;
    font-weight: 400;
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
    letter-spacing: 0.5px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.6;
}

/* ============ HEADER ============ */

.site-header {
    margin-bottom: 80px;
}

.header {
    text-align: center;
    margin-left: 0;
}

.header h1,
.header h1 a {
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 1%;
    color: #000;
    text-decoration: none;
    letter-spacing: 2px;
    font-family: "DotMatri", sans-serif;
}

.header h1 a:hover {
    opacity: 0.5;
}

/* Typewriter effect - Enhanced with randomization */
#typewriter {
    /* Base styles - will be overridden by JS */
    font-size: 64px;
    font-weight: normal;
    color: #000;
    white-space: nowrap;
    overflow: visible;
    display: inline-flex;
    position: relative;
    letter-spacing: 8px;
}

#typewriter::after {
    content: "_";
    display: inline-block;
    animation: blinkCursor 0.6s infinite;
}

@keyframes blinkCursor {
    50% {
        opacity: 0;
    }
}

/* ============ WAVE ANIMATIONS ============ */

@keyframes wave-slow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes wave-medium {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-25px); }
}

@keyframes wave-fast {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-30px); }
}

@keyframes wave-bouncy {
    0%, 100% { transform: translateY(0px); }
    25% { transform: translateY(-35px); }
    50% { transform: translateY(-10px); }
    75% { transform: translateY(-25px); }
}

/* ============ TEXT EFFECTS ============ */

.effect-shadow {
    text-shadow: 
        2px 2px 0 rgba(0,0,0,0.3),
        4px 4px 0 rgba(0,0,0,0.2),
        6px 6px 0 rgba(0,0,0,0.1);
}

.effect-heavy-shadow {
    text-shadow: 
        3px 3px 0 #999,
        6px 6px 0 #888,
        9px 9px 0 #777,
        12px 12px 0 #666;
}

/* ============ SUBHEADER / BIO ============ */

.subheader {
    text-align: center;
    margin-left: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.subheader p {
    font-size: 15px;
    color: #666;
    margin-top: 0.3%;
    line-height: 1.7;
    letter-spacing: 0;
    font-weight: 400;
}

/* ============ LINKS ============ */

.project-link,
.contact-link {
    color: #000;
    text-decoration: none;
    font-weight: normal;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.project-link:hover,
.contact-link:hover {
    border-bottom-color: #000;
    opacity: 1;
}

/* Twitter Icon */
.twitter-icon {
    vertical-align: middle;
    margin-right: 4px;
}

/* ============ LOADING DOTS ANIMATION ============ */

.loading-dots {
    display: inline-block;
    font-size: 16px;
    width: 18px;       
    text-align: left;  
    animation: loadingDots 1.5s infinite;
}

@keyframes loadingDots {
    0% { content: "."; }
    33% { content: ".."; }
    66% { content: "..."; }
    100% { content: ""; }
}

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

@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    .header h1,
    #typewriter {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .header h1,
    #typewriter {
        font-size: 20px;
    }
    
    .subheader p {
        font-size: 13px;
    }
}