* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #fff;
    min-height: 100vh;
}

/* Web Fonts */
@font-face {
    font-family: 'Sheikah';
    src: url('/fonts/sheikah.woff2') format('woff2'),
         url('/fonts/sheikah.woff') format('woff'),
         url('/fonts/sheikah.otf') format('opentype'),
         url('/fonts/sheikah.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'HyliaSerif';
    src: url('/fonts/hyliaserif.woff2') format('woff2'),
         url('/fonts/hyliaserif.woff') format('woff'),
         url('/fonts/hyliaserif.otf') format('opentype'),
         url('/fonts/hyliaserif.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Navigation Bar */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.28);
    padding: 0.8rem 1.5rem;
    z-index: 1000;
    backdrop-filter: blur(8px);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    transition: color 0.25s ease, transform 0.25s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

nav a:hover {
    color: #00d4ff;
    transform: translateY(-2px);
}

/* Sections Base */
section {
    min-height: 100vh;
    padding: 6rem 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Hero Section - Full Background Image */
.hero {
    background: url('/images/background.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    text-align: center;
    padding: 2rem;
}

/* Contact Section - colorized darker variant of the same background */
#contact {
    /* darker blue color overlay on top of the same hero image */
    background: linear-gradient(180deg, rgba(2,36,80,0.72), rgba(1,20,50,0.84)), url('/images/background.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    background-blend-mode: multiply;
}

/* keep subtle radial accents but do not fully obscure the image */
#contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 40%, rgba(0, 212, 255, 0.04) 0%, transparent 30%),
        radial-gradient(circle at 85% 80%, rgba(138, 43, 226, 0.03) 0%, transparent 30%);
    z-index: 0;
}

#contact > * {
    position: relative;
    z-index: 1;
}

.section-content {
    width: 100%;
    max-width: 900px;
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0.12));
    padding: 2.25rem 2.5rem;
    border-radius: 14px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 50px rgba(2,6,23,0.6), inset 0 1px 0 rgba(255,255,255,0.02);
}

section h2 {
    font-size: 2.2rem;
    margin-bottom: 0.25rem; /* reduced spacing to bring h3 closer */
    text-align: center;
    color: #00d4ff;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 18px rgba(0, 212, 255, 0.35);
    font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

section h3 {
    /* Sheikah decorative subheader at requested size with default spacing */
    font-family: 'Sheikah', 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 18px; /* explicit 18px */
    line-height: 1.3; /* comfortable default */
    margin-top: 0.12rem; /* small positive gap to reduce distance */
    margin-bottom: 1rem; /* default spacing below */
    color: #bff6ff; /* subtle, lighter cyan */
    text-align: center;
    letter-spacing: normal; /* default letter spacing */
    text-shadow: 0 2px 10px rgba(30, 200, 255, 0.08);
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-transform: none; /* preserve glyph shapes */
}

section p {
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 1rem;
    color: #d8eef6;
}

/* Contact list styles */
.contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0 2rem;
    padding: 0;
}

.contact-item a {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    color: inherit;
    text-decoration: none;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.contact-item a:hover {
    transform: translateX(6px);
    opacity: 0.98;
}

/* Prevent time element from appearing as a link */
#contact-time {
    pointer-events: none;
}

#contact-time:hover {
    transform: none;
    opacity: 1;
}

.icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px; /* give svg some breathing room */
    box-shadow: 0 6px 18px rgba(2,6,23,0.5), inset 0 1px 0 rgba(255,255,255,0.02);
}

/* Ensure inline SVGs fill the icon area and scale properly */
.icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.contact-item span.contact-text {
    font-size: 0.98rem;
    color: #e6fbff;
}

/* Make icons slightly different backgrounds */
.contact-item:nth-child(1) .icon { background: linear-gradient(180deg,#6f2cff,#7a59ff); }
.contact-item:nth-child(2) .icon { background: linear-gradient(180deg,#ff3b3b,#ff5050); }
.contact-item:nth-child(3) .icon { background: linear-gradient(180deg,#ff7aa4,#ff9bbf); }
.contact-item:nth-child(4) .icon { background: linear-gradient(180deg,#00d4ff,#00a1d7); }
.contact-item:nth-child(5) .icon { background: linear-gradient(180deg,#9befff,#6fd3ff); }

/* small screens: icons smaller */
@media (max-width: 520px) {
    .icon { width: 24px; height: 24px; flex: 0 0 24px; padding: 3px; }
    .contact-item span.contact-text { font-size: 0.95rem; }
}

/* Make first paragraph slightly more prominent */
.section-content p:first-of-type {
    opacity: 0.98;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    nav ul {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    nav a {
        font-size: 0.95rem;
    }
    
    .hero h1 {
        font-size: 1.3rem; /* mobile adjustment */
        margin-top: 1.5rem;
        letter-spacing: 0.2px;
    }

    .hero-subtitle {
        font-size: 0.8rem;
        margin-top: 0.6rem;
    }
    
    .logo {
        max-width: 100px; /* mobile logo size */
    }
    
    .hero-content {
        padding: 1.5rem 1rem;
        max-width: 85vw;
    }
    
    section h2 {
        font-size: 1.6rem;
    }
    
    section h3 {
        font-size: 16px;
    }
    
    .section-content {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.1rem; /* extra small screens */
        letter-spacing: 0.1px;
        word-spacing: -0.05em; /* tighten word spacing to help fit */
    }

    .hero-subtitle {
        font-size: 0.7rem;
    }
    
    .logo {
        max-width: 70px;
    }
    
    .hero-content {
        padding: 1rem 0.8rem;
        max-width: 80vw;
    }
}

.logo {
    max-width: 180px; /* fixed desktop logo width as requested */
    width: 100%;
    height: auto;
    filter: drop-shadow(6px 6px 8px rgba(0, 0, 0, 0.6));
    /* drop shadow moved to lower-right with reduced blur */
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 3rem;
    background: rgba(50, 50, 50, 0.4);
    border-radius: 16px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(2,6,23,0.6), inset 0 1px 0 rgba(255,255,255,0.02);
    max-width: 90vw;
}

.hero h1 {
    font-size: clamp(1.5rem, 8vw, 2.5rem); /* responsive size using clamp */
    font-weight: 400;
    color: #ffffff;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.65);
    margin-top: 2rem;
    letter-spacing: 1px;
    font-family: 'HyliaSerif', serif; /* HyliaSerif for elegant gaming aesthetic */
    text-transform: uppercase;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-wrap: break-word;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    color: #e0e0e0;
    margin-top: 0.8rem;
    letter-spacing: 0.5px;
    font-style: italic;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}