/* ===============================
   PHAT ICE — GLOBAL STYLESHEET
   Author: Arcta Studio
   Vibe: Luxury | Ice | Precision
   Mobile-First Approach
================================ */

/* ---------- FONT IMPORTS ---------- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Inter:wght@300;400;500&display=swap');

/* ---------- ROOT VARIABLES ---------- */
:root {
    --ice-blue: #4fd1ff;
    --ice-blue-deep: #0aa9ff;
    --glacier-blue: #0b3c5d;
    --frost-white: #f5fbff;
    --polar-black: #05080c;
    --steel-dark: #0f172a;

    --glass-white: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-blur: blur(14px);

    --glow-blue: rgba(79, 209, 255, 0.6);

    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 8px;

    --transition-fast: 0.2s ease;
    --transition-med: 0.4s ease;

    /* Mobile-first spacing variables */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
}

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

html, body {
    background: radial-gradient(circle at top, #08131f, #020409);
    color: var(--frost-white);
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.5; /* Slightly tighter for mobile */
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 8vw, 2.4rem); /* Smaller on mobile */
    margin-bottom: var(--space-sm);
}

h2 {
    font-size: clamp(1.5rem, 6vw, 1.8rem);
    margin-bottom: var(--space-sm);
}

h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-xs);
}

p {
    max-width: 70ch;
    opacity: 0.9;
    margin-bottom: var(--space-sm);
    font-size: 0.95rem; /* Slightly smaller for mobile readability */
}

/* ---------- UTILITY CLASSES ---------- */
.container {
    width: 100%;
    padding-left: var(--space-md);
    padding-right: var(--space-md);
    margin-left: auto;
    margin-right: auto;
}

/* Tablet breakpoint */
@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

/* Desktop breakpoint */
@media (min-width: 1024px) {
    .container {
        max-width: 1200px;
    }
}

/* ---------- NAVIGATION ---------- */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: var(--glass-blur);
    background: linear-gradient(
        to bottom,
        rgba(5,8,12,0.95),
        rgba(5,8,12,0.6)
    );
    border-bottom: 1px solid var(--glass-border);
}

.nav-inner {
    padding: var(--space-sm) var(--space-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 40px; /* Smaller on mobile */
    filter: drop-shadow(0 0 12px var(--glow-blue));
}

/* Mobile menu toggle (hamburger) */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 110;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background: var(--frost-white);
    border-radius: 3px;
    transition: var(--transition-fast);
}

/* Mobile navigation */
.nav-links {
    list-style: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: rgba(5, 8, 12, 0.98);
    backdrop-filter: var(--glass-blur);
    padding: var(--space-xl) var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    transition: right 0.3s ease;
    border-left: 1px solid var(--glass-border);
    z-index: 105;
}

.nav-links.active {
    right: 0;
}

.nav-links a {
    color: var(--frost-white);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
    transition: var(--transition-fast);
    display: inline-block;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--ice-blue), var(--ice-blue-deep));
    transition: var(--transition-med);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Tablet navigation */
@media (min-width: 768px) {
    .logo img {
        height: 52px;
    }
    
    .menu-toggle {
        display: none;
    }
    
    .nav-links {
        position: static;
        width: auto;
        max-width: none;
        height: auto;
        background: transparent;
        backdrop-filter: none;
        padding: 0;
        flex-direction: row;
        gap: var(--space-md);
        border-left: none;
    }
    
    .nav-inner {
        padding: var(--space-sm) var(--space-xl);
    }
}

/* Desktop navigation */
@media (min-width: 1024px) {
    .nav-links {
        gap: var(--space-lg);
    }
    
    .nav-links a {
        font-size: 1rem;
    }
}

/* ---------- GLASS CARD ---------- */
.glass {
    background: var(--glass-white);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-md); /* Smaller padding on mobile */
    box-shadow: 0 0 0 1px rgba(255,255,255,0.05), 0 20px 40px rgba(0,0,0,0.6);
}

@media (min-width: 768px) {
    .glass {
        padding: var(--space-lg);
    }
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem; /* Slightly smaller on mobile */
    border-radius: 999px;
    background: linear-gradient(135deg, var(--ice-blue), var(--ice-blue-deep));
    color: #001018;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 25px var(--glow-blue);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    text-decoration: none;
    width: 100%; /* Full width on mobile */
    max-width: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px var(--glow-blue);
}

/* Tablet and desktop buttons */
@media (min-width: 480px) {
    .btn {
        width: auto;
        padding: 0.9rem 1.8rem;
        font-size: 1rem;
    }
}

/* ---------- HERO SECTION ---------- */
.hero {
    padding: var(--space-xl) var(--space-md);
    text-align: center;
    animation: fadeInUp 1s ease both;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 768px) {
    .hero {
        padding: var(--space-2xl) var(--space-xl);
        min-height: 70vh;
    }
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- GALLERY GRID ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: var(--space-sm);
    padding: 0 var(--space-md);
}

.gallery-grid img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    transition: transform var(--transition-med);
}

.gallery-grid img:hover {
    transform: scale(1.03);
}

/* Tablet gallery */
@media (min-width: 600px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
}

/* Desktop gallery */
@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-lg);
    }
}

/* ---------- FOOTER ---------- */
footer {
    padding: var(--space-xl) var(--space-md);
    text-align: center;
    opacity: 0.6;
    font-size: 0.85rem;
}

@media (min-width: 768px) {
    footer {
        padding: var(--space-2xl) var(--space-xl);
        font-size: 0.9rem;
    }
}

/* ---------- MOBILE-FIRST UTILITIES ---------- */
.hide-mobile {
    display: none;
}

.show-mobile {
    display: block;
}

@media (min-width: 768px) {
    .hide-mobile {
        display: block;
    }
    
    .show-mobile {
        display: none;
    }
}

/* ---------- RESPONSIVE SPACING ---------- */
.section {
    padding: var(--space-xl) 0;
}

@media (min-width: 768px) {
    .section {
        padding: var(--space-2xl) 0;
    }
}

/* ---------- TOUCH-FRIENDLY INTERACTIONS ---------- */
@media (max-width: 768px) {
    button, 
    .btn, 
    .nav-links a,
    [role="button"] {
        min-height: 44px; /* Apple's recommended minimum touch target */
        min-width: 44px;
    }
    
    .nav-links a {
        padding: var(--space-xs) 0;
    }
}