/* BASE STYLES a*/

html {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
}

/*This helps with centering text i think idk*/
body {
    margin: 0;
    padding: 0;
    width: 100%;
    background-color: #f4f4f4;
}

h1 {
    text-align: center;
    font-weight: 700;
}

b {
    font-family:Arial Black, Helvetica, sans-serif
}


/* HEADER & NAVBAR */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    padding: 0px;
    box-sizing: border-box;
    transition: all 0.4s ease-in-out;
    box-shadow: none;
    z-index: 1000;
}

.ticker {
    display: none;
    width: 100%;
    background-color: #7facdc;
    color: #f4f4f4;
    white-space: nowrap;
    overflow:hidden;
    padding: 8px 0;
    font-size: 19px;
}

header.sticky .ticker {
    display:block;
}

.ticker-track {
    width: max-content;
    display: flex;
    gap:200px;
    animation: tickerMove 15s linear infinite;
}

.ticker-track span {
    flex-shrink: 0;
}

@keyframes tickerMove {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.nav-container {
    position:relative;
    display: flex;
    grid-template-columns: 1fr auto;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    height:85px;
    margin: 0 auto;
    padding: 20px 40px;
    box-sizing: border-box;
    transition: 
        height 0.6s cubic-bezier(0.22, 1, 0.36, 1), padding 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.logo {
    position:absolute;
    left:50%;
    top:50%;
    text-decoration: none;
    color: inherit;
    transform: translate(-50%,-50%);
    transform-origin: center;
    transition:
        left 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
    text-align: center;
    transition:
        font-size 0.7s cubic-bezier(0.22, 1, 0.36, 1), color 0.4s ease;
    color:#f4f4f4;

}

.nav-links {
    position: absolute;
    right: 40px;
    top: 50%;
    display: flex;
    align-items: center;
    gap: 25px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) translateX(20px);
    transition:
        opacity 0.5s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-item {
    position:relative;
    display: inline-block;
    text-decoration: none;
    color: #ffffff;
    font-size: 17px;
    transition: color 0.2s ease;
}

.nav-item:hover {
    color: #ffffff;
}

.nav-item::after {
    content: "";
    position:absolute;
    bottom: 1px;
    left: 50%;
    height:2px;
    width:100%;
    background: white;
    transform:translateX(-50%) scaleX(0);
    transform-origin: center;
    transition:transform 0.2s ease;
}

.nav-item:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* DROPDOWN LOGIC */

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #7facdc;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.1);
    border-radius: 4px;
    z-index: 1001;
    overflow: hidden;
}

.dropdown-content a {
    position: relative;
    display: block;
    color: #ffffff;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-content a:hover {
    background-color: #7facdc;
    color: #6a6a6a;
}

.dropdown-content a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 1px;
    width: calc(100% - 32px); /*Compensates for padding ig?*/
    height: 2px;
    background: white;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* STICKY HEADER */

header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    padding: 0;
    background-color: #7facdc;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

header.sticky h1 {
    margin: 0;
    font-size: 25px;
}

header.sticky .nav-container {
    height: 60px;
    padding: 15px 50px;
}

header.sticky .logo {
    left: 40px;
    transform: translateY(-50%);
}

header.sticky .logo h1 {
    color: #f9fbfc;
}

header.sticky .nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%) translateX(0);
}

header.sticky .nav-item {
    color: #f9fbfc;
    transition: all 0.2s ease;
}

header.sticky .nav-item:hover {
    color: #606060;
}

header.sticky ~ .hero-section .typewriter-container {
    width: fit-content;
    margin: 0 auto;
}


/* HERO SECTION */

.hero-section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction:column;
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
    position:relative;
}

.hero-section::before {
    content: "";
    position:absolute;
    inset:0;
    background:rgba(0,0,0,0.3);
}

/* TYPEWRITER EFFECT INDEX */

.typewriter-container {
    font-size: 30px;
    font-weight: bold;
    width: 100%;
    text-align:center;
    transition: all 0.4s ease-in-out;
    position:relative;
    z-index:1;
}

.base-text {
    color: #f4f4f4;
    text-shadow: 2px 2px 6px black;
}

#typewriter-text {
    color: #007acc;
    text-shadow: 2px 2px 6px black;
}

.cursor {
    color: #f4f4f4;
    text-shadow: 2px 2px 6px black;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* SCROLL TESTING and Box/row system*/

.scroll-spacer {
    height: 150vh; /* Extra tall for scroll testing */
    background-color: #f4f4f4;
}

.row {
    width: 100%;
    display:flex;
    align-items:stretch;
    box-sizing:border-box;
}

.box {
    flex: 1;
    max-width:50%;
    box-sizing:border-box;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    padding: 20px;
}

.bgnice {
    margin:50px;
    background-color:#ffffff;
    border-left-color:gray;
}

.midcenter {
    display:flex;
    align-items:center;
    justify-content:center;
}

.box:not(.placeholder) {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.box:not(.placeholder):hover{
    transform: translateY(-4px);
    box-shadow: 0 0 20px rgba(120,169,212,0.35);
}

.xl {
    font-size: 100px;
    text-align: left;
}

.centerclass {
    text-align:center !important;
    font-size:75px;
    margin-bottom:0px;
    
}

.centerclass::after {
    content: "";
    display: block;
    width: 120px;
    height: 3px;
    background: #8bc4ee;
    margin: 15px auto 0;
    margin-bottom: 15px;
    border-radius: 50px;
    box-shadow: 0 0 12px rgba(139,196,238,0.5);
}

.Notforheader::after {
    content: "";
    display: block;
    width: 120px;
    height: 3px;
    background: #8bc4ee;
    margin: 15px auto 0;
    border-radius: 50px;
    box-shadow: 0 0 12px rgba(139,196,238,0.5);
}

.Ifordark {
    text-align:center !important;
    font-size:75px;
    color:#7facdc;
}

li i {
color:#7facdc;
}

.graybg {
    background-color: #1e293b !important;
    color:#f4f4f4;
}


/* CONTACT */

.bluebg {
    background-color: #1c3b5e !important;
    color:#f4f4f4;
}

.form-center {
    background-color:#f4f4f4;
    border-left-color:gray;
    
}


/* SOCIALS */

.centerpls {
    justify-content:center;
    align-items:center;
    display:flex;
}

button {
    background-color:#7facdc;
    border:none;
    color:#f4f4f4;
    padding:15px 32px;
    text-align:center;
    text-decoration:none;
    display:inline-block;
    font-size:20px;
    cursor:pointer;
}

button:hover {
    text-decoration:underline;
}


/* FOOTER */

footer p {
    padding: 20px;
    text-align:center;
}


/* OTHER */

.fixpls {
    position:absolute;
    left:0;
    width:100%;
}


/* Image Carousel */

.carousel-container {
    position:relative;
    width: 100%;
    margin:auto;
}

.slide {
    display:none;
}

.slide img {
    width: 100%;
    height: 500px;
    display:block;
}
.prev, .next {
    cursor:pointer;
    position:absolute;
    top:50%;
    padding:16px;
    color:white;
    font-size:18px;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.caption {
    position:absolute;
    bottom: 8px;
    text-align:center;
}

.dot {
    height:15px;
    width:15px;
    margin: 0 2px;
    background-color: #bbb;
}

.active {
    background-color: #717171;
}



@media (max-width: 700px) {
    .row {
        flex-direction:column;
        align-items:center;
    }
    .box {
        border-right: none;
        border-left: none;
        border-bottom: 4px solid transparent;
        max-width: 100%;
        width:100%;
        margin:20px auto;
        box-sizing: border-box;
    }

    /* Mobile header */

    .nav-container {
        display:flex;
        flex-direction: column;
        align-items: center;
        height:auto;
        min-height:85px;
        padding: 15px 20px;
    }

    .logo {
        grid-column: auto;
        justify-self: center;
        position:static;
        transform:none;
        margin:0;
    }

    .nav-links {
        position:static;
        transform:none;
        opacity:0;
        pointer-events:auto;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        width: 100%;
    }

    header.sticky .nav-container {
        padding: 15px 20px;
        height:auto;
        min-height:70px;
        padding:10px 20px;
    }

    header.sticky .logo {
        margin-left: 0;
        justify-self: center;
        position:static;
        left:auto;
        transform:none;
        margin:0;
    }

    .ticker {
        display: none !important;
    }

    .contact-container {
        padding: 25px 15px 50px 15px;
    }

    .contact-form {
        padding: 25px 20px;
    }

    .centerclass,
    .Ifordark {
        font-size: 50px;
    }

    header h1 {
        font-size:24px;
    }

    header.sticky h1 {
        font-size:21px;
    }

    header.sticky .nav-links {
        position:static;
        right:auto;
        top:auto;
        transform:none;
        opacity:1;
        pointer-events:none;
        margin-top:8px;
    }

    

    
}

.placeholder {
    visibility: hidden;
}