/* GENERAL */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* HTML & Body Base */
html, body {
    width: 100%;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    scroll-behavior: smooth;
}

/* Body Specific */
body {
    font-family: "Poppins", sans-serif;
    background-color: rgb(4, 4, 4);
    min-height: 100vh;
}

/* Base Section Styles */
section {
    width: 100%;
}

.hero-container {
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    background-color: rgb(10, 10, 10);
    position: relative; 
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(
        to bottom,
        rgba(10, 10, 10, 0.1) 0%,
        rgb(10, 10, 10) 100%
    );
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    mix-blend-mode: overlay;
}

.title-container {
    text-align: left;
    padding: 2rem;
    position: relative;
    z-index: 2;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.text-group {
    margin-top: 30vh;
    cursor: default;
}

.title-text {
    font-size: 4.5rem;
    margin-bottom: 0.5rem;
    color: rgba(240, 240, 240, .8);
    font-weight: 600;
}

.subtitle-text {
    font-size: 4.5rem;
    margin-bottom: 0;
    background: linear-gradient(45deg, rgb(74, 35, 90) 0%,  RGB(128, 0 , 0) 100%);
    color: transparent;
    background-clip: text;
    font-weight: 600;
}

/* Socials buttons */
.social-container {
    display: flex;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
    margin-bottom: 5rem;
}

.social-btn {
    padding: 0.5rem 1.2rem;
    background-color: transparent;
    border: 2px solid rgb(220, 220, 220);
    border-radius: 50px;
    color: rgba(240, 240, 240, 0.8);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(5px);
}

.social-btn:hover {
    background-color: rgb(220, 220, 220);
    color: rgb(60, 60, 60);
    scale: 1.05;
}

/* HAMBURGER ICON */
#hamburger-nav {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 3;
}

.hamburger-menu {
    position: relative;
    display: inline-block;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 24px;
    width: 30px;
    margin-bottom: .8rem;
    cursor: pointer;
}

.hamburger-icon span {
    width: 100%;
    height: 2px;
    background-color: rgba(240, 240, 240, 0.8);
    transition: none;
}

/* HAMBURGER MENU */
.menu-links {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: rgba(240, 240, 240, 0.8);
    border-radius: 1.5rem;
    width: 200px;
    max-height: 0;
    overflow: hidden;
}

.menu-links.open {
    max-height: 400px;
}

.menu-links a {
    display: block;
    padding: 16px 24px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 420;
    color: rgb(0, 0, 0);
    text-decoration: none;
}

.menu-links li {
    list-style: none;
}

.menu-links a:hover {
    background-color: rgba(0, 0, 0, 0.08);
}

.menu-links li:hover {
    scale: 1.05;
    transition: all 0.3s ease;
}

/* TURN HAMBURGER ICON TO X */
.hamburger-icon.open span:first-child {
    transform: rotate(45deg) translate(10px, 5px);
}

.hamburger-icon.open span:nth-child(2) {
    opacity: 0;
}

.hamburger-icon.open span:last-child {
    transform: rotate(-45deg) translate(10px, -5px);
}

.hamburger-icon span:first-child {
    transform: none;
}

.hamburger-icon span:first-child {
    opacity: 1;
}

.hamburger-icon span:first-child {
    transform: none;
}

/* ABOUT SECTION */
#about {
    padding: 4rem 4rem;
    min-height: 60vh;
    position: relative;
    width: 100%;
    border-top: 2px solid rgba(50, 50, 50, 0.7);
    border-bottom: 2px solid rgba(50, 50, 50, 0.7);
}

.section-heading {
    font-size: 2rem;
    font-weight: 600;
    color: rgba(240, 240, 240, 0.8);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    position: relative;
    cursor: default;
}

.about-content {
    color: rgba(240, 240, 240, 0.7);
    font-weight: 300;
    align-content: center;
    margin: 0 auto;
    line-height: 2;
    font-size: 1.5rem;
}

/* EXPERIENCE SECTION */
#experience {
    padding: 4rem 0;
    min-height: 100vh;
    position: relative;
    width: 100%;
    border-bottom: 4px solid rgba(50, 50, 50, 0.7);
}

/* Container for margin sizing */
.cards-grid-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem 4rem;
}

/* Three equal columns */
.cards-grid-thirds {
    display: grid;
    /* 3 columns, 1 fraction of the space each */
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 1rem;
}

.top-cards {
    margin-bottom: 4rem;
}

.card {
    background: rgba(60, 60, 60, .8);
    border-radius: 12px;
    padding: 2rem;
    /* inner shadow at bottom */
    box-shadow: inset 0 -4px 12px rgba(0, 0, 0, 0.6);
}

.card:hover {
    transform: scale(1.05);
    transition: 0.3s ease-in-out;
}

.card-text {
    font-size: 4rem;
    text-align: center;
}

/* PROJECTS SECTION */
#projects {
    padding: 4rem 4rem;
    min-height: 10vh;
    position: relative;
    width: 100%;
    margin-top: -1px;
    background: linear-gradient(135deg, rgb(15, 78, 96) 0%, rgb(45, 68, 89) 40%, rgb(145, 28, 28) 100%);
    border-bottom: 4px solid rgba(50, 50, 50, 0.7);
}

.project-container {
    color: rgb(0, 0, 0);
    background-color: rgba(240, 240, 240, .8);
    text-align: left;
    padding: 2rem 2rem;
    border-radius: 12px;
    line-height: 1.5;
    word-spacing: 2;
    font-size: 1.2rem;
    max-width: 80%;
    /* inner shadow at bottom */
    box-shadow: inset 0 -2px 6px rgba(0, 0, 0, 0.6);
}

.project-title {
    font-weight: bold;
    font-size: 2rem;
    margin-bottom: 4px;
}

/* CONTACT ME SECTION */
#contact {
    padding: 4rem 4rem;
    min-height: 10vh;
    position: relative;
    width: 100%;
    background: rgba(20, 20, 20, .8);
    border-bottom: 4px solid rgba(50, 50, 50, 0.7);
}

.contact-heading {
    font-size: 3rem;
    font-weight: 600;
    color: rgba(240, 240, 240, 0.8);
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    position: relative;
    cursor: default;
}

.contact-info-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-container {
    text-align: center;
}

.contact-container a {
    color: rgba(240, 240, 240, 0.8);
    text-decoration: none;
    font-weight: 300;
}

.contact-container:hover {
    transform: scale(1.05);
    transition: 0.3ms ease-in-out;
}

.contact-container a:hover {
    color: #007ACC;
}

/* FOOTER SECTION */
.footer {
    width: 100%;
    padding: 1.5rem 0;
    margin-top: 4rem;
    background: rgba(0, 0, 0, 0.2);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-copyright {
    color: rgba(240, 240, 240, 0.6);
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}
