/* ==========================================================
   ICE WOLF SYS — GLOBAL.CSS
   FULL RESPONSIVE MSP / SAAS VERSION
========================================================== */

/* ==========================================================
   RESET
========================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
}

/* ==========================================================
   VARIABLES
========================================================== */

:root {

    /* COLORS */
    --bg: #081224;
    --bg-alt: #111827;

    --card: rgba(17, 24, 39, 0.88);

    --primary: #38bdf8;
    --primary-hover: #0ea5e9;

    --text: #f3f4f6;
    --text-muted: #9ca3af;

    --border: rgba(255,255,255,0.08);

    /* EFFECTS */
    --radius: 18px;

    --shadow:
        0 10px 30px rgba(0,0,0,0.28);

}

/* ==========================================================
   BODY
========================================================== */

body {

    font-family:
        "Inter",
        Arial,
        sans-serif;

    font-size: 16px;
    line-height: 1.6;

    color: var(--text);

    background:
        linear-gradient(
            180deg,
            #081224 0%,
            #09182f 100%
        );

    -webkit-font-smoothing: antialiased;
}

/* ==========================================================
   TYPOGRAPHY
========================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin-bottom: 0.8rem;
}

p {
    color: var(--text-muted);
    max-width: 75ch;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ==========================================================
   IMAGES
========================================================== */

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================
   GLOBAL SECTIONS
========================================================== */

section {

    width: 100%;
    max-width: 1280px;

    margin: auto;

    padding:
        clamp(3rem, 5vw, 5rem)
        clamp(1rem, 3vw, 2rem);
}

/* ==========================================================
   HEADER
========================================================== */

header.header {

    position: sticky;
    top: 0;
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 1rem 2rem;

    background:
        rgba(17,24,39,0.85);

    backdrop-filter: blur(14px);

    border-bottom:
        1px solid var(--border);
}

/* LOGO */

header .logo {

    display: flex;
    align-items: center;

    gap: 14px;
}

header .logo img {

    width: 58px;
    height: 58px;

    border-radius: 14px;
}

header .logo span {

    font-size: 1.2rem;
    font-weight: 700;
}

/* NAV */

nav.menu {

    display: flex;
    align-items: center;

    gap: 28px;

    flex-wrap: wrap;
}

nav.menu a {

    position: relative;

    font-weight: 600;

    transition: all 0.25s ease;
}

nav.menu a:hover {
    color: var(--primary);
}

/* CONTROLS */

.header-controls {

    display: flex;
    align-items: center;

    gap: 14px;
}

/* BUTTON */

#theme-toggle {

    width: 48px;
    height: 48px;

    border: none;
    border-radius: 12px;

    background: var(--primary);

    color: white;

    cursor: pointer;

    transition: all 0.25s ease;
}

#theme-toggle:hover {

    background: var(--primary-hover);

    transform: translateY(-2px);
}

/* ==========================================================
   HERO
========================================================== */

.hero {

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 60px;

    min-height: 70vh;
}

.hero-text {
    flex: 1;
}

.hero-text p {

    margin-bottom: 2rem;

    font-size: 1.1rem;
}

.hero img {

    width: min(100%, 380px);
}

/* ==========================================================
   BUTTONS
========================================================== */

.btn-primary,
.btn-secondary {

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 14px 22px;

    border-radius: 12px;

    font-weight: 700;

    transition: all 0.25s ease;
}

/* PRIMARY */

.btn-primary {

    background: var(--primary);

    color: white;

    border: none;
}

.btn-primary:hover {

    background: var(--primary-hover);

    transform: translateY(-2px);
}

/* SECONDARY */

.btn-secondary {

    border:
        2px solid var(--primary);

    color: var(--primary);
}

.btn-secondary:hover {

    background: var(--primary);

    color: white;
}

/* ==========================================================
   CARDS
========================================================== */

.service-card,
.portfolio-card,
.contact-card,
.msp-box {

    background: var(--card);

    border:
        1px solid var(--border);

    border-radius: var(--radius);

    padding: 28px;

    backdrop-filter: blur(12px);

    box-shadow: var(--shadow);

    transition: all 0.25s ease;
}

.service-card:hover,
.portfolio-card:hover {

    transform:
        translateY(-4px);

    border-color:
        var(--primary);
}

/* ==========================================================
   GRID LAYOUTS
========================================================== */

.service-list,
.portfolio-grid {

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(260px, 1fr));

    gap: 24px;

    margin-top: 30px;
}

/* ==========================================================
   PAGE LAYOUTS
========================================================== */

.service-page,
.portfolio-page,
.about-page,
.contact-page,
.legal-page {

    width: 100%;
    max-width: 1200px;

    margin: auto;
}

/* ==========================================================
   CONTACT PAGE
========================================================== */

.contact-header {
    margin-bottom: 40px;
}

.contact-intro {

    font-size: 1.05rem;
}

/* LAYOUT */

.contact-container {

    display: grid;

    grid-template-columns: 2fr 1fr;

    gap: 30px;
}

/* FORM */

.contact-form {

    display: flex;
    flex-direction: column;

    gap: 20px;
}

.form-group {

    display: flex;
    flex-direction: column;
}

.contact-form label {

    margin-bottom: 8px;

    font-weight: 600;
}

/* INPUTS */

.contact-form input,
.contact-form textarea {

    width: 100%;

    padding: 14px 16px;

    border-radius: 12px;

    border:
        1px solid var(--border);

    background:
        rgba(255,255,255,0.03);

    color: var(--text);

    font-size: 15px;

    transition: all 0.25s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {

    color: #94a3b8;
}

/* FOCUS */

.contact-form input:focus,
.contact-form textarea:focus {

    outline: none;

    border-color: var(--primary);

    box-shadow:
        0 0 0 3px rgba(56,189,248,0.22);
}

/* TEXTAREA */

.contact-form textarea {

    min-height: 180px;

    resize: vertical;
}

/* BUTTON */

.contact-form .btn-primary {

    width: fit-content;

    min-width: 180px;
}

/* DETAILS */

.contact-details p {

    margin-bottom: 20px;
}

.contact-details ul {

    padding-left: 18px;
}

.contact-details li {

    margin-bottom: 10px;
}

/* ==========================================================
   MSP TABLES
========================================================== */

.msp-wrapper {

    display: flex;

    gap: 24px;

    flex-wrap: wrap;

    margin-top: 40px;
}

.msp-box {

    flex: 1;

    min-width: 320px;
}

/* TABLE */

.msp-table {

    width: 100%;

    border-collapse: collapse;

    overflow: hidden;

    border-radius: 12px;
}

.msp-table th {

    background: var(--primary);

    color: white;

    text-align: left;

    padding: 14px;
}

.msp-table td {

    padding: 14px;

    border-bottom:
        1px solid var(--border);
}

.msp-table tr:nth-child(even) {

    background:
        rgba(255,255,255,0.03);
}

.msp-table tr:hover {

    background:
        rgba(56,189,248,0.08);
}

/* NOTE */

.msp-note {

    margin-top: 18px;

    padding: 14px;

    border-radius: 12px;

    background:
        rgba(255,255,255,0.04);

    color: var(--text-muted);

    font-size: 13px;
}

/* ==========================================================
   FOOTER
========================================================== */

.footer {

    margin-top: 4rem;

    padding: 2rem;

    text-align: center;

    background:
        rgba(17,24,39,0.88);

    border-top:
        1px solid var(--border);

    color: var(--text-muted);
}

/* ==========================================================
   ACCESSIBILITY
========================================================== */

button,
input,
textarea {

    font-family: inherit;
}

button {

    cursor: pointer;
}

a:focus,
button:focus,
input:focus,
textarea:focus {

    outline: none;
}

/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 992px) {

    /* HERO */

    .hero {

        flex-direction: column;

        text-align: center;

        min-height: auto;
    }

    .hero-text p {

        margin-left: auto;
        margin-right: auto;
    }

    /* CONTACT */

    .contact-container {

        grid-template-columns: 1fr;
    }

}

/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 768px) {

    /* HEADER */

    header.header {

        flex-direction: column;

        padding: 1rem;
    }

    nav.menu {

        justify-content: center;

        gap: 18px;
    }

    /* CARDS */

    .service-card,
    .portfolio-card,
    .contact-card,
    .msp-box {

        padding: 22px;
    }

    /* BUTTONS */

    .btn-primary,
    .btn-secondary {

        width: 100%;
    }

    /* CONTACT */

    .contact-form .btn-primary {

        width: 100%;
    }

}

/* ==========================================================
   SMALL MOBILE
========================================================== */

@media (max-width: 480px) {

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    section {

        padding:
            2.5rem
            1rem;
    }

    header .logo span {

        font-size: 1rem;
    }

    nav.menu {

        gap: 14px;
    }

    nav.menu a {

        font-size: 0.95rem;
    }

}