/* =========================
   RESET / GLOBAL DEFAULTS
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow-x: hidden;          /* prevent horizontal scroll caused by any element */
    width: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'SF Pro Display', 'Helvetica Neue', 'Poppins', system-ui, sans-serif;
    background: #0a1f1a;
    color: #e2e8f0;
    line-height: 1.6;
}

/* =========================
   MAIN CONTENT AREA
========================= */

main {
    padding: 5vh 4vw;            /* fluid padding, prevents overflow */
    min-height: 70vh;
    width: 100%;
}

/* =========================
   RESPONSIVE TYPOGRAPHY
   (uses clamp for fluid scaling)
========================= */

h1 {
    font-size: clamp(2rem, 8vw, 3.5rem);
    margin-bottom: 0.5em;
    color: #f8fafc;
    line-height: 1.2;
}

h2 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    margin-bottom: 0.5em;
    color: #f1f5f9;
}

h3 {
    font-size: clamp(1.25rem, 4vw, 1.8rem);
    margin-bottom: 0.5em;
    color: #f1f5f9;
}

p {
    font-size: clamp(0.875rem, 2vw, 1rem);
    color: #cbd5e1;
    margin-bottom: 1em;
    line-height: 1.5;
}

a {
    background: linear-gradient(135deg, #4ade80, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-decoration: none;
    transition: opacity 0.2s;
}

a:hover {
    opacity: 0.8;
}

/* =========================
   CONTAINER CLASS – responsive + safe
========================= */

.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 clamp(16px, 5vw, 40px);   /* fluid horizontal padding */
    box-sizing: border-box;
}

/* =========================
   UTILITY CLASSES (optional)
========================= */

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* =========================
   PREVENT HORIZONTAL OVERFLOW
   (catches any image or element that might be too wide)
========================= */

img, picture, video, canvas, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================
   RESPONSIVE ADJUSTMENTS FOR SMALL SCREENS
========================= */

@media (max-width: 768px) {
    main {
        padding: 4vh 3vw;
    }
    .container {
        padding: 0 4vw;
    }
}

@media (max-width: 480px) {
    main {
        padding: 3vh 4vw;
    }
    p {
        line-height: 1.4;
    }
}