@import "variable.css";
@import "line.css";
@import "form.css";

/* Base Styles */
html {
    scroll-behavior: smooth;
}

h1 {
    color: var(--primary-text-color);
    font-size: 32px;
    line-height: 48px;
}

h2 {
    color: var(--primary-text-color);
    font-size: 28px;
    line-height: 42px;
}

h3 {
    color: var(--primary-text-color);
    font-size: 24px;
    line-height: 36px;
    margin-bottom: 15px;
}

p {
    color: var(--secondary-text-color);
    font-size: 18px;
    letter-spacing: 1.5px;
    line-height: 24px;
    margin-bottom: 10px;
}

/* Utility Styles */
.btn {
    text-decoration: none;
    padding: 12px 28px;
    cursor: pointer;
}

.btn-primary {
    border: 1px solid var(--primary-text-color);
    background-color: white;
    color: black;
    box-shadow: 0px 4px 25px 0px var(--shadow-color);
    transition: ease-in-out 0.2s;
}

.btn-primary:hover {
    background-color: rgba(0, 0, 0, 0.05); /* light overlay */
    box-shadow: 0px 6px 30px 0px var(--shadow-color);
    transform: translateY(-1px); /* slight lift */
    color: var(--primary-text-color);
}


.btn-secondary {
    border: 1px solid var(--border-color);
    background-color: var(--secondary-background-color-opacity);
    color: var(--primary-text-color);
    /* backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px); */
    box-shadow: 0px 4px 25px 0px var(--shadow-color);
    transition: ease-in-out 0.2s;
}

.btn-secondary:hover {
    background-color: var(--secondary-accent-color);
    color: white;
    box-shadow: 0px 8px 40px 0px var(--shadow-color);
    transform: translateY(-1px);
    /* backdrop-filter: blur(35px);
    -webkit-backdrop-filter: blur(35px); */
}

/* Navigation */
nav {
    width: 100%;
    padding: 1rem 50px;
    position: fixed;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    list-style-type: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    /* gap: 20px; */
    width: 460px;
}

nav li {
    height: 45px;
}

nav a {
    height: 100%;
    text-decoration: none;
    color: var(--primary-text-color);
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: center;
}

nav a:hover {
    font-weight: 600;
}

.topbar {
    background-color: var(--secondary-background-color-opacity);
    backdrop-filter: blur(30px);
    box-shadow: 0px 4px 25px 0px var(--shadow-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.4rem 1.2rem;
}

.sidebar {
    height: 100vh;
    width: 250px;
    position: fixed;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;  
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0px;
    background-color: var(--secondary-background-color-opacity);
    backdrop-filter: blur(10px);
}

.sidebar li {
    width: 100%;
    height: 50px;
}

.sidebar a {
    width: 100%;
    height: 100%;
    padding: 1.2rem;
}

.sidebar a:hover {
    background-color: var(--secondary-background-color);
}

.sidebar a:first-child:hover {
    background-color: none;
}

.hideSideBar, .showSideBar, .btn-resume {
    cursor: pointer;
}

.logo {
    font-size: 24px;
    font-weight: 600;
    width: 117px;
}

/* Hero section */
.hero {
    width: 100%;
    height: 95vh;
    background-image: url("../images/hero-image.jpg");
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero div {
    margin-top: 30px;
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.hero-p {
    margin-bottom: 20px;
}

.hero-h1 {
    font-size: 72px;
    margin-bottom: 15px;
    text-align: center;
}

.hero-h3 {
    font-size: 32px;
    color: var(--secondary-text-color);
}

.wrapper {
    background-color: var(--primary-background-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0px 50px;
}

.section {
    max-width: 1200px;
    width: 100%;
    margin: 100px 0px 30px 0px;
}

.service-cards-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.service-card {
    background-image: linear-gradient(90deg, var(--primary-card-color), var(--secondary-card-color));
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0px 4px 24px 0px var(--shadow-color);
    padding: 0.8rem 1.2rem;
}

.service-icon {
    color: var(--primary-accent-color);
    width: 45px;
    height: 45px;
    margin: 10px 0px 20px 0px; 
}

.project-cards-section {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.project-card {
    background-image: linear-gradient(90deg, var(--primary-card-color), var(--secondary-card-color));
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0px 4px 24px 0px var(--shadow-color);
    display: grid;
    grid-template-rows: 250px 1fr;
    overflow: hidden;
}

.project-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-card-content {
    padding: 0.8rem 1.2rem;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px
}

.contact-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.social-icons-list-btm {
    margin-top: 20px;
}

.social-icon {
    width: 45px;
    height: 45px;
    margin-right: 20px;
}

@media screen and (max-width: 800px) {
    .hero-p {
        margin-bottom: 10px;
    }

    .hero-h1 {
        font-size: 40px;
        margin-bottom: 5px;
    }

    .hero-h3 {
        font-size: 24px;
        text-align: center;
    }

    .section {
        max-width: 400px;
        margin: 50px 0px 30px 0px;
    }

    .topbar, .sidebar, .btn-resume-i {
        display: none;
    }

    .service-cards-container {
        display: flex;
        flex-direction: column;
    }

    .project-cards-section {
        display: flex;
        flex-direction: column;
    }
}

@media screen and (min-width: 800px) {
    .sidebar {
        display: none;
    }
    
    .showSideBar {
        display: none;
    }
}

@media screen and (max-width: 840px) {
    .contact-container {
        display: flex;
        flex-direction: column;
    }

    .social-icons-list {
        display: none;
    }
}

@media screen and (min-width: 840px) {
    .social-icons-list-btm {
        display: none;
    }
}

@media screen and (max-width: 1280px) {
    .project-cards-section {
        grid-template-columns: 1fr 1fr;
    }

    .service-cards-container {
        grid-template-columns: 1fr 1fr;
    }

    .service-card:last-child {
        grid-column: span 2;
    }
}

