/*
Theme Name: Higggs Minimal
Author: Higggs Agency
Description: Ultra-minimal arty landing page.
Version: 1.3
*/

:root {
    --bg-color: #0e0e0e;
    --text-color: #f0f0f0;
    --accent: #ccff00; /* Acid Lime */
    --font-main: 'Inter', sans-serif;
    --font-mono: 'Space Mono', monospace;
}

/* RESET & LAYOUT */
* { box-sizing: border-box; }

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow: hidden;
    /* FIX FOR SAFARI FONT WEIGHT RENDERING */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* CENTER EVERYTHING */
body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* NOISE TEXTURE OVERLAY */
.noise {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.07;
    background-image: url('https://grainy-gradients.vercel.app/noise.svg');
}

/* LOGO TYPOGRAPHY */
.giant-type {
    font-size: clamp(4rem, 15vw, 12rem);
    line-height: 0.9;
    letter-spacing: -0.06em;
    margin: 0 0 1.5rem 0;
    font-weight: 800;
}

/* TRIPLE G ANIMATION & SPACING */
.g-wrapper { 
    /* THIS FIXES THE SAFARI/CHROME GAP DIFFERENCE */
    display: inline-flex; 
    vertical-align: baseline; /* Ensures it sits on the line with 'hi' and 's' */
}

.g { 
    display: block; /* Flex children work best as blocks */
    animation: floaty 4s ease-in-out infinite;
    
    /* NATURAL SPACING */
    margin: 0; 
    
    position: relative; 
    z-index: 1;
}

/* TIMING AND COLORS */
.g-1 { 
    animation-delay: 0s; 
    z-index: 3; 
}

.g-2 { 
    animation-delay: 0.5s; 
    z-index: 2; 
    /* Normal White/Grey */
}

.g-3 { 
    animation-delay: 1s; 
    /* LIME ACCENT ON LAST G ONLY */
    color: var(--accent); 
    font-style: italic;
    z-index: 1; 
}

@keyframes floaty {
    0%, 100% { transform: translateY(0) skewX(0deg); }
    50% { transform: translateY(-10px) skewX(-10deg); }
}

/* --- INTERACTION FOR THE 3RD G --- */

/* 1. Define the High-Energy Spin Animation */
@keyframes g-spin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); } /* Slight pulse */
    100% { transform: rotate(360deg) scale(1); }
}

/* 2. Target the Lime G on Hover (Desktop) and Active (Mobile Tap) */
.g-3:hover,
.g-3:active {
    /* Override the 'floaty' wave with the 'spin' */
    animation: g-spin 0.6s linear infinite; 
    
    /* Add a Glow Effect */
    text-shadow: 0 0 30px rgba(204, 255, 0, 0.6); 
    
    /* Change cursor to indicate it's interactive */
    cursor: pointer; 
    
    /* Optional: Make it white on interaction for contrast? 
       Uncomment line below if you want color change */
    /* color: #ffffff; */
}

/* STRAPLINE */
.strapline {
    font-family: var(--font-mono);
    font-size: clamp(0.8rem, 2vw, 1.2rem);
    letter-spacing: 0.25em;
    text-transform: lowercase;
    opacity: 0.7;
    margin-bottom: 4rem;
}

.bracket { color: var(--accent); font-weight: 700; }

/* MAILTO LINK */
.cta-container {
    margin-top: 2rem;
}

.email-link {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--text-color);
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 1rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: lowercase;
    letter-spacing: 0.05em;
}

.email-link:hover {
    background: var(--accent);
    color: var(--bg-color); 
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(204, 255, 0, 0.4); 
}