/*=========================================================
DJ Ahmed Khan Website
Master Stylesheet
Version 2.0
=========================================================*/


/*=========================================================
ROOT VARIABLES
=========================================================*/

:root {
    --header-height: 146px;
    --header-height-condensed: 100px;

    --accent-color: #27b7d6;
    --accent-light: #7ce8ff;

    --header-background: #111111;
    --page-background: #f5f5f5;
    --text-color: #111111;

    --content-width: 1100px;
}


/*=========================================================
GLOBAL RESET
=========================================================*/

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height-condensed) + 20px);
}

body {
    margin: 0;
    padding-top: var(--header-height);
    background: var(--page-background);
    color: var(--text-color);
    font-family: Verdana, Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}


/*=========================================================
ACCESSIBILITY
=========================================================*/

.skip-link {
    position: fixed;
    top: -70px;
    left: 12px;
    z-index: 10000;
    padding: 10px 14px;
    border-radius: 4px;
    background: var(--accent-color);
    color: #071215;
    font-weight: bold;
    text-decoration: none;
}

.skip-link:focus {
    top: 12px;
}

:focus-visible {
    outline: 3px solid rgba(39, 183, 214, 0.65);
    outline-offset: 3px;
}


/*=========================================================
FIXED HEADER
=========================================================*/

.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 5000;

    padding: 12px 15px 10px;

    background:
        linear-gradient(
            180deg,
            #1b1b1b,
            var(--header-background)
        );

    border-bottom: 2px solid var(--accent-color);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);

    color: #ffffff;
    text-align: center;

    transition:
        padding 0.28s ease,
        box-shadow 0.28s ease,
        background 0.28s ease;
}

.site-header.is-condensed {
    padding-top: 6px;
    padding-bottom: 6px;

    background: rgba(17, 17, 17, 0.98);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.65);
}


/*=========================================================
SITE TITLE
=========================================================*/

.site-title {
    margin: 0 0 8px;

    color: #ffffff;

    font-size: clamp(28px, 4vw, 38px);
    font-weight: bold;
    line-height: 1.05;
    letter-spacing: 1px;

    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.75);

    transition:
        margin 0.28s ease,
        font-size 0.28s ease,
        transform 0.28s ease;
}

.site-title a {
    color: #ffffff;
    text-decoration: none;
}

.site-title a:hover,
.site-title a:focus-visible {
    color: var(--accent-light);
    outline: none;
}

.site-header.is-condensed .site-title {
    margin-bottom: 4px;
    font-size: clamp(20px, 3vw, 27px);
}


/*=========================================================
MAIN NAVIGATION
=========================================================*/

.site-navigation {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;

    gap: 3px;

    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0;
}

.site-navigation a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 28px;

    margin: 0;
    padding: 6px 12px;

    border: 1px solid #303030;
    border-radius: 3px;

    background: #1a1a1a;
    color: #f2f2f2;

    font-size: 11px;
    font-weight: bold;
    line-height: 1;
    letter-spacing: 0.35px;

    text-align: center;
    text-decoration: none;

    transition:
        min-height 0.28s ease,
        padding 0.28s ease,
        font-size 0.28s ease,
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.site-navigation a:hover,
.site-navigation a:focus-visible {
    border-color: var(--accent-color);
    background: #202020;
    color: var(--accent-light);

    box-shadow: 0 0 10px rgba(39, 183, 214, 0.5);

    transform: translateY(-1px);
    outline: none;
}

.site-navigation a:active {
    background: #0d3a4c;
    color: #ffffff;

    transform: translateY(0);
}

.site-navigation a[aria-current="page"] {
    border-color: var(--accent-color);
    background: var(--accent-color);
    color: #071215;

    box-shadow: 0 0 9px rgba(39, 183, 214, 0.45);
}

.site-header.is-condensed .site-navigation a {
    min-height: 24px;
    padding: 4px 10px;
    font-size: 10px;
}


/*=========================================================
SOCIAL MEDIA ICONS
=========================================================*/

.social-icons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;

    gap: 14px;

    margin: 9px auto 0;
    padding: 0;

    transition:
        gap 0.28s ease,
        margin 0.28s ease;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    border-radius: 50%;

    color: #ffffff;

    font-size: 22px;
    line-height: 1;

    text-decoration: none;

    transition:
        width 0.28s ease,
        height 0.28s ease,
        font-size 0.28s ease,
        color 0.2s ease,
        background 0.2s ease,
        text-shadow 0.2s ease,
        transform 0.2s ease;
}

.social-icons a:hover,
.social-icons a:focus-visible {
    background: rgba(39, 183, 214, 0.08);
    color: var(--accent-color);

    text-shadow: 0 0 12px rgba(39, 183, 214, 0.7);

    transform: scale(1.12);
    outline: none;
}

.social-icons a:active {
    transform: scale(1.04);
}

.site-header.is-condensed .social-icons {
    gap: 11px;
    margin-top: 5px;
}

.site-header.is-condensed .social-icons a {
    width: 22px;
    height: 22px;
    font-size: 17px;
}


/*=========================================================
MAIN PAGE CONTENT
=========================================================*/

main {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 30px 20px;
}

.page-title {
    margin: 0 0 10px;

    font-size: 2rem;
    font-weight: bold;
    line-height: 1.25;

    text-align: center;
}

.intro {
    margin: 0 auto 30px;

    font-size: 1.1rem;
    line-height: 1.65;

    text-align: center;
}

hr {
    width: 55%;
    height: 3px;

    margin: 25px auto;

    border: none;
    background: #888888;
}


/*=========================================================
FOOTER
=========================================================*/

.site-footer {
    margin-top: 40px;
    padding: 25px 20px;

    border-top: 2px solid var(--accent-color);

    background: #111111;
    color: #ffffff;

    text-align: center;
}

.site-footer p {
    margin: 4px 0;
}

.site-footer a {
    color: var(--accent-light);
}

.site-footer a:hover,
.site-footer a:focus-visible {
    color: #ffffff;
}


/*=========================================================
BACK TO TOP BUTTON
=========================================================*/

.back-to-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 4000;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    border: 1px solid var(--accent-color);
    border-radius: 50%;

    background: #111111;
    color: #ffffff;

    font-size: 19px;

    cursor: pointer;

    opacity: 0;
    visibility: hidden;

    transform: translateY(10px);

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease,
        transform 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
    background: var(--accent-color);
    color: #071215;
}


/*=========================================================
TABLET AND MOBILE
=========================================================*/

@media screen and (max-width: 768px) {

    :root {
        --header-height: 170px;
        --header-height-condensed: 130px;
    }

    .site-header {
        padding: 10px 8px 9px;
    }

    .site-title {
        margin-bottom: 7px;
        font-size: 27px;
    }

    .site-header.is-condensed .site-title {
        margin-bottom: 4px;
        font-size: 21px;
    }

    .site-navigation {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));

        gap: 3px;

        width: 100%;
    }

    .site-navigation a {
        width: 100%;
        min-height: 27px;

        padding: 5px 3px;

        font-size: 9px;
        letter-spacing: 0.15px;
    }

    .site-header.is-condensed .site-navigation a {
        min-height: 23px;

        padding: 4px 2px;

        font-size: 8px;
    }

    .social-icons {
        gap: 11px;
        margin-top: 7px;
    }

    .social-icons a {
        width: 24px;
        height: 24px;

        font-size: 19px;
    }

    .site-header.is-condensed .social-icons {
        gap: 9px;
        margin-top: 4px;
    }

    .site-header.is-condensed .social-icons a {
        width: 19px;
        height: 19px;

        font-size: 15px;
    }

    main {
        padding: 25px 15px;
    }

    .page-title {
        font-size: 1.6rem;
    }

    .intro {
        font-size: 1rem;
    }

    hr {
        width: 75%;
    }

}


/*=========================================================
SMALL MOBILE
=========================================================*/

@media screen and (max-width: 420px) {

    :root {
        --header-height: 164px;
        --header-height-condensed: 126px;
    }

    .site-title {
        font-size: 24px;
    }

    .site-header.is-condensed .site-title {
        font-size: 19px;
    }

    .site-navigation a {
        padding: 5px 1px;
        font-size: 8px;
    }

    .site-header.is-condensed .site-navigation a {
        padding: 4px 1px;
        font-size: 7.5px;
    }

    .social-icons {
        gap: 8px;
    }

    .social-icons a {
        width: 22px;
        height: 22px;

        font-size: 17px;
    }

    .site-header.is-condensed .social-icons a {
        width: 18px;
        height: 18px;

        font-size: 14px;
    }

}


/*=========================================================
REDUCED MOTION
=========================================================*/

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }

}