/*scroll*/
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Times New Roman", Times, serif;
    background-color: #3c465d;
    color: #e5e7eb;
}

/* HEADER NAME */
.site-header {
    position: fixed;
    top: 20px;
    left: 50px;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 1px;
    z-index: 10;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 20px;
    right: 50px;
    display: flex;
    gap: 24px;
    z-index: 10;
}

.navbar a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
}

.navbar a:hover {
    color: #38bdf8;
}

/* HERO */
.hero {
    position: relative;
    min-height: 100vh;
    padding: 80px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* BACKGROUND WITH OVERLAY */
.hero-background {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            rgba(14, 22, 40, 0.55),
            rgba(14, 22, 40, 0.55)
        ),
        url('/static/background.jpg');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

/* CONTENT */
.hero-content {
    position: relative;
    z-index: 1;
    width: 85%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LEFT SIDE */
.hero-left {
    max-width: 40%;
}

.hero-left h1 {
    font-size: 28px;
    margin-bottom: 20px;
}

.hero-left ul {
    list-style: none;
    padding: 0;
}

.hero-left ul li {
    margin-bottom: 10px;
    font-size: 16px;
}

/* RIGHT SIDE */
.hero-right {
    position: relative;
    max-width: 45%;
    text-align: right;
}

.hero-right h2 {
    font-size: 48px;
    margin-bottom: 200px;
}

/* QUOTE */
.slogan {
    position: absolute;
    bottom: 80px;
    right: 0;
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-style: italic;
    opacity: 0.9;
}

.quote-author {
    position: absolute;
    bottom: 75px;
    right: 0;
    font-size: 14px;
    opacity: 0.7;
}

/* BUTTON */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #38bdf8;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 200;
    margin-top: 100px;
}

.btn:hover {
    background-color: #0ea5e9;
}

/* ABOUT SECTION */
.about {
    min-height: 100vh;
    display: flex;
    background: url('/static/background.jpeg') no-repeat center center;
    background-size: cover;
    position: relative;
    color: #ffffff;
}

/* Overlay for background opacity only */
.about::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.59); /* 59% opacity */
    z-index: 0;
}

/* LEFT PHOTO */
.about-photo {
    width: 50%;
    margin: 50px 40px 50px 50px;
    background-image: url('/static/engineers.jpeg');
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    z-index: 1;
    position: relative;
    opacity: 60%;
}

/* RIGHT TEXT */
.about-text {
    width: 50%;
    padding: 120px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 1;
    position: relative;
    text-align: center; /* Title centered */
}

/* Title */
.about-text h2 {
    font-size: 42px;
    margin-top: 70px;
    text-align: center;
}

/* Paragraphs */
.about-text p {
    font-size: 18px;
    line-height: 1.8;
    max-width: 500px; /* Not too wide */
    text-align: justify;
    margin-left: auto;
    margin-right: auto;
}

/* BUTTONS */
.about-buttons {
    
    display: flex;
    gap: 80px;
    justify-content: center; /* Center buttons */
    flex-wrap: wrap;
    
}

.about-buttons .btn {
    background-color: #38bdf8;
    color: white;
    
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.about-buttons .btn:hover {
    background-color: #0ea5e9;
}

/* PROJECTS SECTION */
.projects {
    min-height: 100vh;
    padding: 10px 40px;
    background-color: #060606;
    color: #ffffff;
}

.section-title {
    text-align: center;
    font-size: 42px;
}

/* GRID */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    justify-items: center;
}

/* PROJECT CARD */
.project-card {
    background-color: #181717;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    max-width: 350px;
    text-align: center;
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.project-info p {
    font-size: 16px;
    line-height: 1.6;
    color: #cbd5e1;
    text-align: justify;
}

/* HOVER EFFECT */
.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(113, 228, 4, 0.5);
}

/* EXPERIENCE SECTION */
.experience {
    min-height: 100vh;
    display: flex;
    background-color:#060606;
    color: #ffffff;
    padding: 100px 60px;
    position: relative;
}

/* LEFT SIDE: Title + Description */
.experience-left {
    width: 35%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 170px;
}

.experience-left h2 {
    font-size: 42px;
    margin-bottom: 20px;
    text-align: center;
}

.experience-left p {
    font-size: 18px;
    line-height: 1.8;
    text-align: justify;
    max-width: 500px;
}

/* RIGHT SIDE: PDF cards */
.experience-right {
    width: 60%;
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: flex-end; /* right cascade */
}

.pdf-card {
    width: 550px;
    height: 300px;
    background-color: #201d1d;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.pdf-card img {
    max-width: 80%;
    max-height: 70%;
    margin-bottom: 10px;
}

.pdf-card p {
    font-size: 14px;
    color: #cbd5e1;
}

.pdf-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(56, 189, 248, 0.5);
}
