/* ==========================================
   44 ENERGY OFFICIAL LINKS
   Professional Glass UI
========================================== */


/* ==========================================
   VARIABLES
========================================== */

:root {

    --primary: #0c2d48;
    --secondary: #124e78;
    --accent: #1f6f8b;

    --white: #ffffff;

    --glass: rgba(255,255,255,.10);
    --glass-border: rgba(255,255,255,.15);

    --shadow:
        0 15px 40px rgba(0,0,0,.28);

    --shadow-hover:
        0 20px 45px rgba(0,0,0,.35);

    --scrollbar:
        rgba(255,255,255,.40);

    --scrollbar-hover:
        rgba(255,255,255,.60);
}


/* ==========================================
   RESET
========================================== */

* {

    margin: 0;
    padding: 0;

    box-sizing: border-box;
}


/* ==========================================
   HTML
========================================== */

html {

    scroll-behavior: smooth;
}


/* ==========================================
   BODY
========================================== */

html,
body {

    min-height: 100%;
}


body {

    font-family:
        'Montserrat',
        Arial,
        sans-serif;

    color: var(--white);

    min-height: 100vh;
    min-height: 100dvh;

    display: flex;

    justify-content: center;

    padding: 40px 20px;

    overflow-x: hidden;

    position: relative;

    background-color:
        var(--primary);

    background-image:

        radial-gradient(
            circle at top right,
            rgba(31,111,139,.45) 0%,
            transparent 45%
        ),

        radial-gradient(
            circle at bottom left,
            rgba(18,78,120,.35) 0%,
            transparent 40%
        ),

        linear-gradient(
            180deg,
            #0c2d48 0%,
            #124e78 100%
        );

    background-repeat: no-repeat;

    background-size: cover;

    background-attachment: fixed;

    -webkit-font-smoothing: antialiased;

    -moz-osx-font-smoothing: grayscale;

    -webkit-tap-highlight-color: transparent;
}


/* ==========================================
   WATERMARK
========================================== */

body::before {

    content: "";

    position: fixed;

    inset: 0;

    background-image:
        url("Images/44 Energy Logo Final.jpeg");

    background-repeat: no-repeat;

    background-position: center;

    background-size: 60%;

    opacity: .07;

    pointer-events: none;

    z-index: 0;
}


/* ==========================================
   CONTAINER
========================================== */

.container {

    position: relative;

    z-index: 2;

    width: 100%;

    max-width: 700px;

    margin: 0 auto;

    text-align: center;
}


/* ==========================================
   LOGO
========================================== */

.logo {

    display: block;

    width: 230px;

    max-width: 85%;

    height: auto;

    margin: 0 auto 35px;

    filter:
        drop-shadow(
            0 10px 25px rgba(0,0,0,.35)
        );
}


/* ==========================================
   PROFILE BUTTON
========================================== */

.profile-btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    min-height: 48px;

    padding: 13px 22px;

    margin-bottom: 25px;

    border-radius: 12px;

    color: var(--white);

    text-decoration: none;

    font-size: 14px;

    font-weight: 600;

    background:
        rgba(255,255,255,.12);

    border:
        1px solid rgba(255,255,255,.20);

    -webkit-backdrop-filter:
        blur(12px);

    backdrop-filter:
        blur(12px);

    transition:
        transform .25s ease,
        background .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}


.profile-btn:hover {

    transform:
        translateY(-2px);

    background:
        rgba(255,255,255,.18);

    border-color:
        rgba(255,255,255,.30);

    box-shadow:
        0 10px 30px rgba(0,0,0,.25);
}


.profile-btn i {

    transition:
        transform .25s ease;
}


.profile-btn:hover i {

    transform:
        translateX(4px);
}


/* ==========================================
   GLASS CARDS
========================================== */

.section {

    position: relative;

    margin-bottom: 20px;

    overflow: hidden;

    border-radius: 18px;

    background:
        var(--glass);

    border:
        1px solid var(--glass-border);

    -webkit-backdrop-filter:
        blur(18px) saturate(180%);

    backdrop-filter:
        blur(18px) saturate(180%);

    box-shadow:

        var(--shadow),

        inset
        0 1px 0
        rgba(255,255,255,.08);

    transition:
        transform .35s ease,
        box-shadow .35s ease,
        border-color .35s ease;
}


/* ==========================================
   CARD HOVER
========================================== */

.section:hover {

    transform:
        translateY(-4px);

    border-color:
        rgba(255,255,255,.25);

    box-shadow:
        var(--shadow-hover);
}


/* ==========================================
   GLASS SHINE
========================================== */

.section::before {

    content: "";

    position: absolute;

    inset: 0;

    background:

        linear-gradient(
            130deg,

            rgba(255,255,255,.12),

            rgba(255,255,255,.03) 40%,

            transparent 75%
        );

    pointer-events: none;

    z-index: 0;
}


/* ==========================================
   SECTION HEADER
========================================== */

.section-header {

    position: relative;

    z-index: 2;

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 15px;

    padding: 18px 22px;

    min-height: 56px;

    font-weight: 600;

    font-size: 15px;

    line-height: 1.4;

    text-align: left;

    cursor: pointer;

   -webkit-user-select: none;

    user-select: none;

    background:
        rgba(0,0,0,.18);

    transition:
        background .3s ease;
}


.section-header:hover {

    background:
        rgba(255,255,255,.08);
}


/* ==========================================
   CHEVRON
========================================== */

.section-header > i {

    flex-shrink: 0;

    width: 20px;

    text-align: center;

    transition:
        transform .35s ease;
}


/* Rotate when active */

.section.active
.section-header > i {

    transform:
        rotate(180deg);
}


/* ==========================================
   ACCORDION LINKS
========================================== */

.links {

    position: relative;

    z-index: 2;

    display: flex;

    flex-direction: column;

    width: 100%;

    max-height: 0;

    padding: 0;

    overflow: hidden;

    opacity: 0;

    visibility: hidden;

    transition:
        max-height .45s ease,
        opacity .30s ease,
        padding .30s ease;
}


/* ==========================================
   ACTIVE SECTION
========================================== */

.section.active .links {

    max-height: 700px;

    padding: 8px 0;

    opacity: 1;

    visibility: visible;
}


/* ==========================================
   LINK ITEMS
========================================== */

.links a {

    position: relative;

    display: flex;

    align-items: center;

    gap: 14px;

    width: 100%;

    min-height: 48px;

    padding: 15px 22px;

    color: var(--white);

    text-decoration: none;

    font-size: 14px;

    line-height: 1.5;

    text-align: left;

    overflow: hidden;

    transition:
        background .25s ease,
        padding-left .25s ease;
}


.links a:hover {

    background:
        rgba(255,255,255,.08);

    padding-left: 28px;
}


/* ==========================================
   LINK ICONS
========================================== */

.links i {

    flex: 0 0 22px;

    width: 22px;

    min-width: 22px;

    text-align: center;
}


/* ==========================================
   AREAS WE OPERATE IN
========================================== */

.scroll-section.active .links {

    max-height: 350px;

    overflow-y: auto;

    overflow-x: hidden;

}


/* ==========================================
   AREAS SCROLLBAR
   Chrome / Edge / Safari / Opera
========================================== */

.scroll-section .links::-webkit-scrollbar {

    width: 7px;

    height: 7px;
}


.scroll-section .links::-webkit-scrollbar-track {

    background:
        transparent;

    border-radius: 20px;
}


.scroll-section .links::-webkit-scrollbar-thumb {

    background:
        var(--scrollbar);

    border-radius: 20px;

    border:
        1px solid
        rgba(255,255,255,.10);
}


.scroll-section .links::-webkit-scrollbar-thumb:hover {

    background:
        var(--scrollbar-hover);
}


.scroll-section .links::-webkit-scrollbar-thumb:active {

    background:
        rgba(255,255,255,.75);
}


/* ==========================================
    GLOBAL PAGE SCROLLBAR
========================================== */


html::-webkit-scrollbar {

    width: 8px;

    height: 8px;
}


html::-webkit-scrollbar-track {

    background:
        #123a68;
}


html::-webkit-scrollbar-thumb {

    background:
        rgba(255,255,255,.33);

    border-radius: 20px;
}


html::-webkit-scrollbar-thumb:hover {

    background:
        rgba(255,255,255,.55);
}


/* ==========================================
   FOOTER
========================================== */

.footer {

    margin-top: 35px;

    padding-bottom: 10px;

    text-align: center;

    font-size: 14px;

    line-height: 1.6;

    opacity: .8;
}


/* ==========================================
   ACCESSIBILITY
========================================== */

.section-header:focus-visible,
.links a:focus-visible,
.profile-btn:focus-visible {

    outline:
        2px solid
        rgba(255,255,255,.85);

    outline-offset: 3px;

    border-radius: 6px;
}


/* ==========================================
   RIPPLE EFFECT
========================================== */

.ripple {

    position: absolute;

    width: 12px;

    height: 12px;

    background:
        rgba(255,255,255,.25);

    border-radius: 50%;

    transform:
        translate(-50%,-50%)
        scale(0);

    animation:
        ripple .6s ease-out;

    pointer-events: none;

    z-index: 3;
}


@keyframes ripple {

    to {

        transform:
            translate(-50%,-50%)
            scale(30);

        opacity: 0;
    }
}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 768px) {

    body {

        padding:
            24px
            16px;

        background-attachment:
            scroll;
    }


    .logo {

        width: 180px;

        max-width: 80%;
    }


    .section {

        border-radius: 15px;

        margin-bottom: 16px;
    }


    .section-header {

        padding:
            16px 18px;

        font-size: 14px;
    }


    .links a {

        padding:
            14px 18px;

        font-size: 13px;
    }


    .links a:hover {

        padding-left:
            24px;
    }


    .scroll-section.active .links {

        max-height:
            320px;
    }


    body::before {

        background-size:
            95%;

        opacity:
            .05;
    }


    .profile-btn {

        margin-bottom:
            20px;

        font-size:
            13px;
    }
}


/* ==========================================
   SMALL MOBILE
========================================== */

@media (max-width: 600px) {

    body {

        padding:
            15px;
    }


    .container {

        width: 100%;
    }


    .logo {

        width:
            160px;

        max-width:
            80%;
    }


    .section-header {

        padding:
            16px;

        font-size:
            14px;
    }


    .links a {

        padding:
            14px 16px;

        font-size:
            13px;
    }


    .scroll-section.active .links {

        max-height:
            300px;
    }
}


/* ==========================================
   VERY SMALL MOBILE
========================================== */

@media (max-width: 400px) {

    body {

        padding:
            12px;
    }


    .logo {

        width:
            145px;
    }


    .section {

        border-radius:
            13px;
    }


    .section-header {

        padding:
            14px;

        font-size:
            13px;
    }


    .links a {

        padding:
            13px 14px;

        font-size:
            12px;
    }


    .scroll-section.active .links {

        max-height:
            280px;
    }
}


/* ==========================================
   TOUCH DEVICES
========================================== */

@media (hover: none) {

    .section:hover {

        transform:
            none;

        border-color:
            var(--glass-border);

        box-shadow:
            var(--shadow);
    }


    .section-header:hover {

        background:
            rgba(0,0,0,.18);
    }


    .links a:hover {

        background:
            transparent;

        padding-left:
            22px;
    }


    .profile-btn:hover {

        transform:
            none;

        background:
            rgba(255,255,255,.12);

        border-color:
            rgba(255,255,255,.20);

        box-shadow:
            none;
    }


    .profile-btn:hover i {

        transform:
            none;
    }
}


/* ==========================================
   SAFARI / BACKDROP FALLBACK
========================================== */

@supports not (
    (backdrop-filter: blur(10px))
    or
    (-webkit-backdrop-filter: blur(10px))
) {

    .section,
    .profile-btn {

        background:
            rgba(15,45,72,.92);
    }
}


/* ==========================================
   REDUCED MOTION
========================================== */

@media (prefers-reduced-motion: reduce) {

    html {

        scroll-behavior:
            auto;
    }


    *,
    *::before,
    *::after {

        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            0.01ms !important;

        scroll-behavior:
            auto !important;
    }


    .section:hover {

        transform:
            none;
    }
}


/* ==========================================
   HIGH CONTRAST / FORCED COLORS
========================================== */

@media (forced-colors: active) {

    .section,
    .profile-btn {

        background:
            Canvas;

        color:
            CanvasText;

        border:
            1px solid CanvasText;
    }


    .section-header,
    .links a,
    .footer {

        color:
            CanvasText;
    }


    .links a:hover {

        background:
            Highlight;

        color:
            HighlightText;
    }
}


/* ==========================================
   PRINT
========================================== */

@media print {

    body {

        display:
            block;

        background:
            #ffffff;

        color:
            #000000;

        padding:
            20px;
    }


    body::before {

        display:
            none;
    }


    .section {

        background:
            #ffffff;

        color:
            #000000;

        border:
            1px solid #cccccc;

        box-shadow:
            none;


        -webkit-backdrop-filter:
            none;
        
        backdrop-filter:
            none;

        

        break-inside:
            avoid;
    }


    .section-header,
    .links a,
    .footer {

        color:
            #000000;
    }


    .section-header {

        background:
            #ffffff;
    }


    .links {

        max-height:
            none !important;

        opacity:
            1 !important;

        visibility:
            visible !important;
    }
}