/* Base styles for mobile-first approach */
html {
  scroll-behavior: smooth;
}
body {
    display: flex;
    margin: 0;
    padding: 0;
    background-color: black;
    color: white;
    font-family: 'Times New Roman', Times, serif;
    flex-direction: column;
    width: 100%;

}
/* Back to Top Button Styles */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #222;
  color: #ffa600;
  border: none;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  opacity: 0.7;
  z-index: 1000;
  display: none; /* Hidden by default */
  transition: opacity 0.3s;
}
#backToTop:hover {
  opacity: 1;
  background: #ffa600;
  color: #222;
}

.top-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding-bottom: 20px;
}

/*
.topGlow {
    display:flex;
    position: absolute;
    border-radius: 50%;
    width: 100%;
    height: 15%;
    background-color: rgb(0, 255, 200);
    box-shadow: 0px 0px 40px 10px rgb(255, 255, 255);
    filter: blur();
    transform: translate(0, 50%);
    z-index: -1;
}
*/
#matrixRain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
}

video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-size: 2rem;
    font-weight: bold;
    gap: 10px;
    color: white;
    flex-direction: row;
    margin: 20px 40px;
}

.fa {
    text-decoration: none;
    color: white;
}

nav {
    display: flex;
    flex-wrap: wrap;
    margin: 60px 0;
    height: auto;
    width: 100%;
    text-transform: uppercase;
}

nav .nav-links {
    color: white;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    list-style-type: none;
    padding: 0;
    text-align: center;
    align-items: center;
}

nav .tabscont {
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    text-decoration: none;
    font-size: 2.5rem;
}

nav .tabscont .tabs a {
    color: white;
    text-decoration: none;
    transition: 0.2s ease;
}

nav .tabscont .tabs a:hover {
    text-shadow: 0 0 12px rgb(255, 255, 255);
    transform: translateY(-5px);
    transition: transform 0.2s ease, text-shadow 0.2s ease;
}

.topDescrp {
    display:flex;
    flex-direction: column;
}

.centerlogo {
    display: flex;
    background-image: url(Images/CSMK1-no-background.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    max-width: 800px;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    margin: 10px auto;
}

.middlesection {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    margin: 0 auto;
    margin-top: 10px;
}

.middlesection h1 {
    display: flex;
    color: white;
    font-size: 6rem;
    margin: 0;
    text-shadow: 0 0 10px #fff;
}

.middlesection p {
    display: flex;
    color: rgb(255, 255, 255);
    font-size: 3rem;
    margin: 20px;
    padding: 0 5%;
}

/* About Me Section */
.aboutMeCont {
    display: flex;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 10px 2px white;
    padding: 0;
    margin: 0 5% 5%;
}

.aboutMeBox {
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 300px;
    padding: 0;
}

.aboutTitle {
    display: flex;
    color: rgba(255, 255, 255, 0.808);
    font-size: 5rem;
    text-align: center;
    justify-content: center;
    order:-1;
}

.AboutME {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.MEimg {
    order: 0;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
}

.MEimgHeadshot {
    display: flex;
    max-width: 450px;
    max-height: 800px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.8);
}

.MEcontent {
    order: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0px;
    color: rgba(255, 255, 255, 0.89);
    width: 100%;
}

.MEcontent p {
    order:0;
    font-size: 2.75rem;
    text-align: center;
    margin-bottom: 1rem;
}

.infoButton {
    display: flex;
    background-color: rgb(53, 53, 53);
    color: white;
    font-size: 2.5rem;
    padding: 15px;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    margin: 0 auto;
    transition: background-color 0.3s ease;
}

.infoButton:hover {
    background-color: rgb(102, 102, 102);
}


/*-----Servvices Section---------*/
.ServicesCont {
    display: flex;
    align-items: center;
    flex-direction: column;
    height: auto;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 10px 2px white;
    padding: 0px;
    box-sizing: border-box;
    margin: 2% 5%;

}

.Servicetitle {
    display: flex;
    color: rgb(255, 255, 255, 0.75);
    font-size: 5rem;
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.ServList {
    display:flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2%;
    margin: 80px 0 20px 0;
}

.lists.cyb, .lists.misc, .lists.web {
    display:flex;
    flex-wrap: wrap;
    width: 30%;
    height: 35vh;
    border-radius: 10px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(66, 66, 66, 0.932);
    backdrop-filter: blur(20px);
}

.lists.cyb:hover, .lists.web:hover, .lists.misc:hover {
    box-shadow: 0 0 20px 2px rgba(255, 145, 0, 0.993);
    transform: scale(1.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;

}

.lists h1 {
    display:flex;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.911);
    font-size: 3rem;
    text-align: center;
    margin-bottom: 20px;
}

.lists ul {
    display: flex;
    flex-wrap:wrap;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    list-style-type: none;
    padding: 0;
}

.lists ul li {
    display:flex;
    color: rgba(255, 255, 255, 0.781);
    font-size: 2rem;
    margin: 10px 0;
    text-align: center;
}

.certs {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    margin-bottom: 60px;
    z-index:0;
}
 .certtitle {
    display: flex;
    color: rgba(255, 255, 255, 0.808);
    font-size: 5rem;
    text-align: center;
    justify-content: center;
    margin-bottom: 20px;
}

.Cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
    gap: 20px;
    flex-direction: row;
    box-sizing: border-box;
}

.certCard {
    display: flex;
    position: relative;
    color: white;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    width: 45%;
    max-width: 450px;
    height: 650px;
    border-radius: 20px;
    background-color: rgba(116, 116, 116, 0.507);
    overflow: hidden;
    padding: 5px;
}

.certCard::after {
    content: '';
    position: absolute;
    background: rgba(116, 116, 116);
    inset: 5px;
    border-radius: 16px;
}

.certCard::before {
    content: '';
    position: absolute;
    width: 170px;
    height: 125%;
    box-shadow: 0 0 60px 30px rgba(255,140,0,0.7), 0 0 120px 60px rgba(255,140,0,0.3); /* orange glow */
    filter: blur(25px);
    background: rgb(255, 255, 255);
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg)
    }
    to {
        transform: rotate(360deg)
    }
}

.certCard:hover {
    box-shadow: 0 0 20px 2px rgba(255, 145, 0, 0.993);
    transform: scale(1.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.certCard img {
    width: 50%;
    height: auto;
    border-radius: 10px;
    z-index: 1;
}

.cardDesc {
    display:flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    z-index: 1;
}
.certCard h2 {
    font-size: 2.75rem;
    margin: 10px 0;
    text-align: center;
    width: 80%;
    border-bottom: 3px solid rgba(255, 255, 255, 0.932);
}

.certCard p {
    font-size: 2.45rem;
    color: white;
    text-align: center;
}

/* Portfolio Section */
.PortTiles {
    display: flex;
    flex-direction: column;
    padding-bottom: 20px;
    border: none;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 10px 2px white;
    margin: 5% 5%;
}

.commingSoon {
    display:flex;
    font-size: 5rem;
    align-items: center;
    justify-content: center;
}

.PortTitle {
    display: flex;
    color: rgba(255, 255, 255, 0.808);
    font-size: 5rem;
    text-align: center;
    justify-content: center;
}

/*Contact Form Section---------------------*/
.ContactCont {
    display: flex;
    backdrop-filter: blur(10px);
    flex-direction:column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 10px 2px white;
    margin: 5% 5%;
}

.contactTitle {
    display: flex;
    color:rgba(255, 255, 255, 0.808);
    font-size: 5rem;
}

.FormCont {
    display:flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
}

.ContactForm {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    align-items: top;
    justify-content: top;
    padding: 5% 7% 0 5%;
    border: 2px solid rgba(255, 255, 255, 0.932);
    backdrop-filter: blur(25px);
    border-radius: 15px;
    margin: 0 10% 10% 10%
}

.label {
    color: white;
    font-size: 2rem;
    margin-bottom: 15px;
    align-items: left;
    justify-content:left;
    width: 100%;
}

.inputBox {
    width: 55%;
    padding: 20px;
    font-size: 1.5rem;
    border-radius: 5px;
    border: 2px solid rgba(255, 255, 255, 0.932);
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    margin-bottom: 20px;
}

.textArea {
    width: 100%;
    height: 300px;
    padding: 10px;
    font-size: 1.5rem;
    border-radius: 5px;
    border: 2px solid rgba(255, 255, 255, 0.932);
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.contactButton {
    display: flex;
    background-color: rgb(53, 53, 53);
    color: white;
    font-size: 2rem;
    padding: 15px;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    margin: 5% auto;
    transition: background-color 0.3s ease;
}

/*Coming Soon Section ----------------------------REMOVE ONCE COMPLETED*/
.ComingSoon {
    display:flex;
    flex-direction: column;
    color: white;
    font-size: 4rem;
    text-align: center;
}

.footerCont {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.932);
    padding: 20px;
    color: white;    
    gap: 50px;
    font-size: 1.25rem;
    border-top: 2px solid white;
}


/* Media Queries for larger devices */
