/* GENERAL */

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

:root {
    --primary-color: white;
    --primary-color-2: rgb(250, 250, 250);
    --primary-color-3: rgb(181, 181, 181);
    --background-color: rgb(255, 255, 255);
    --secondary-color: black;
    --secondary-color-2: rgb(85, 85, 85);
    --button-background: rgb(53, 53, 53);
    --button-text-hover: grey;
    --button-border: rgb(53, 53, 53) 0.1rem solid;
    --button-border-2: rgb(255, 255, 255) 0.1rem solid;
    --container-border: rgb(163, 163, 163);
}

/* Dark Mode */

[theme="dark"] {
    --primary-color: black;
    --primary-color-2: rgb(39, 39, 39);
    --primary-color-3: rgb(74, 74, 74);
    --background-color: rgb(33, 33, 33);
    --secondary-color: white;
    --secondary-color-2: rgb(170, 170, 170);
    --button-background: rgb(202, 202, 202);
    --button-text-hover: lightgrey;
    --button-border: rgb(202, 202, 202) 0.1rem solid;
    --button-border-2: rgb(0, 0, 0) 0.1rem solid;
    --container-border: rgb(92, 92, 92);
}

* {
    margin: 0;
    padding: 0;
}

h3 {
    color: var(--secondary-color);
}

body {
    font-family: "Poppins", sans-serif;
    background-color: var(--background-color);
}

html {
    scroll-behavior: smooth;
}

p {
    color: var(--secondary-color-2);
}

/* TRANSITION */

a,
.btn {
    transition: all 300ms ease;
}

/* DESKTOP NAV */

nav,
.nav-links {
    display: flex;
    align-items: center;
}

nav {
    justify-content: space-around;
    height: 17vh;
}

.nav-links {
    gap: 2rem;
    list-style: none;
    font-size: 1.5rem;
}

nav li:last-child {
    width: max-content;
    display: flex;
    margin: auto;
    padding: 10px;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    text-decoration-color: var(--primary-color);
}

a:hover {
    text-decoration: underline;
    text-underline-offset: 1rem;
    text-decoration-color: var(--secondary-color);
}

nav a:hover {
    color: var(--secondary-color);
    text-decoration-color: var(--secondary-color);
}

.logo {
    font-size: 2rem;
    color: var(--secondary-color);
}

.logo:hover {
    cursor: default;
}

/* HAMBURGER MENU */

#hamburger-nav {
    display: none;
}

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

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

.hamburger-icon span {
    width: 100%;
    height: 2px;
    background-color: var(--secondary-color);
    transition: all 0.3 ease-in-out;
}

.menu-links {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--primary-color);
    width: fit-content;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3 ease-in-out;
}

.menu-links a {
    display: block;
    padding: 10px;
    text-align: center;
    font-size: 1.5rem;
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3 ease-in-out;
}

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

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

.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;
}

/* SECTIONS */

section {
    padding-top: 4vh;
    height: 96vh;
    margin: 0 10rem;
    box-sizing: border-box;
    min-height: fit-content;
}

.section-container {
    display: flex;
}
/* Timeline container */
.timeline-container {
    position: relative;
    margin: 2rem 0;
    padding-left: 2rem;
    border-left: 3px solid var(--container-border);
}

/* Timeline items */
.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 2rem;
}

.timeline-dot {
    position: absolute;
    left: -9px;
    top: 0;
    width: 18px;
    height: 18px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    border: 3px solid var(--primary-color);
}

.timeline-content {
    background-color: var(--primary-color-2);
    border: var(--button-border);
    border-radius: 1rem;
    padding: 1rem 1.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.timeline-content h2 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.timeline-content h3 {
    color: var(--secondary-color-2);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.timeline-content ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    color: var(--secondary-color-2);
}

.timeline-content li {
    margin-bottom: 0.5rem;
}


/* PROFILE SECTION */

#profile {
    display: flex;
    justify-content: center;
    gap: 5rem;
    height: 80vh;
}

.section__pic-container {
    display: flex;
    height: 400px;
    width: 400px;
    margin: auto 0;
}

.section__text {
    align-self: center;
    text-align: center;
}

.section__text p {
    font-weight: 600;
}

.section__text__p1 {
    text-align: center;
}

.section__text__p2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.title {
    color: var(--secondary-color);
    font-size: 3rem;
    text-align: center;
}

#socials-container {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    gap: 1rem;
}

/* ICONS */

.icon {
    cursor: pointer;
    height: 2rem;
}

/* BUTTONS */

.btn-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn {
    font-weight: 600;
    transition: all 300ms ease;
    padding: 1rem;
    width: 8rem;
    border-radius: 2rem;
}

.btn-color-1,
.btn-color-2 {
    border: var(--button-border);
    color: var(--secondary-color-2);
}

.btn-color-1:hover,
.btn-color-2:hover {
    cursor: pointer;
}

.btn-color-1,
.btn-color-2:hover {
    background: var(--button-background);
    color: var(--primary-color);
}

.btn-color-1:hover {
    background: var(--secondary-color);
}

.btn-color-2 {
    background: none;
}

.btn-color-2:hover {
    border: var(--button-border);
    background: var(--secondary-color);
}

.btn-container {
    gap: 1rem;
}

/* ABOUT SECTION */

#about {
    position: relative;
}

.about-containers {
    gap: 2rem;
    margin-bottom: 2rem;
    margin-top: 2rem;
}

.about-details-container {
    justify-content: center;
    flex-direction: column;
}

.about-containers,
.about-details-container {
    display: flex;
}

.about-pic {
    border-radius: 2rem;
}

.arrow {
    position: absolute;
    right: -5rem;
    bottom: 2.5rem;
}

.details-container {
    padding: 1.5rem;
    flex: 1;
    background: var(--primary-color-2);
    border-radius: 2rem;
    border: var(--button-border);
    border-color: var(--container-border);
    text-align: center;
}

.section-container {
    gap: 4rem;
    height: 80%;
}

.section__pic-container {
    height: 400px;
    width: 400px;
    margin: auto 0;
}

/* EXPERIENCE SECTION */

#experience {
    position: relative;
}

.experience-sub-title {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

.experience-details-container {
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.article-container {
    display: flex;
    text-align: initial;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 2.5rem;
    justify-content: space-around;
}

article {
    display: flex;
    width: 10rem;
    justify-content: space-around;
    gap: 0.5rem;
}

article .icon {
    cursor: default;
}

/* PROJECTS SECTION */

#projects {
    position: relative;
}

.color-container {
    border-color: var(--container-border);
    background: var(--primary-color-2);
}

.project-img {
    border-radius: 2rem;
    width: 90%;
    height: 90%;
}

.project-title {
    margin: 1rem;
    color: var(--secondary-color);
}

.project-btn {
    color: var(--secondary-color);
    border-color: var(--container-border);
}

/* CONTACT */

#contact {
    display: flex;
    justify-content: center;
    flex-direction: column;
    height: 70vh;
}

.contact-info-upper-container {
    display: flex;
    justify-content: center;
    border-radius: 2rem;
    border: var(--button-border);
    border-color: var(--container-border);
    background: var(--background-color);
    margin: 2rem auto;
    padding: 0.5rem;
}

.contact-info-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem;
}

.contact-info-container p {
    font-size: larger;
}

.contact-icon {
    cursor: default;
}

.email-icon {
    height: 2.5rem;
}

/* FOOTER SECTION */

footer {
    height: 26vh;
    margin: 0 1rem;
}

footer p {
    text-align: center;
}
.contact-info-upper-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-info-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--primary-color-2);
    padding: 1rem 2rem;
    border-radius: 1.5rem;
    border: var(--button-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.contact-info-container p a {
    text-decoration: none;
    color: var(--secondary-color-2);
}

.contact-info-container p a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1rem 0;
}

.footer-socials .icon {
    height: 2.5rem;
    transition: transform 0.2s ease;
}

.footer-socials .icon:hover {
    transform: scale(1.2);
}
.footer-socials {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1rem 0;
}

.footer-socials a {
    font-size: 2rem;
    color: var(--secondary-color-2);
    transition: color 0.3s ease, transform 0.2s ease;
}

.footer-socials a:hover {
    color: var(--secondary-color);
    transform: scale(1.2);
}
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: var(--primary-color-2);
    border: var(--button-border);
    border-color: var(--container-border);
    border-radius: 1.5rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

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

.project-info {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.project-title {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.project-desc {
    font-size: 1rem;
    color: var(--secondary-color-2);
    margin-bottom: 0.5rem;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.project-tags span {
    background: var(--secondary-color);
    color: var(--primary-color);
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
}

.project-buttons {
    display: flex;
    gap: 1rem;
}

.project-buttons .btn i {
    margin-right: 0.5rem;
    vertical-align: middle;
}
/* BLOG.CSS */

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

/* ROOT VARIABLES */
:root {
    --primary-color: white;
    --background-color: rgb(255, 255, 255);
    --secondary-color: black;
    --secondary-color-2: rgb(85, 85, 85);
    --container-bg: rgb(250, 250, 250);
    --button-bg: rgb(53, 53, 53);
    --button-hover: rgb(85, 85, 85);
}

/* DARK MODE */
[theme="dark"] {
    --primary-color: black;
    --background-color: rgb(33, 33, 33);
    --secondary-color: white;
    --secondary-color-2: rgb(170, 170, 170);
    --container-bg: rgb(39, 39, 39);
    --button-bg: rgb(202, 202, 202);
    --button-hover: rgb(255, 255, 255);
}

/* GENERAL STYLES */
body {
    font-family: "Poppins", sans-serif;
    background-color: var(--background-color);
    color: var(--secondary-color-2);
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--button-hover);
}

/* HERO / HEADER */
#blog-hero {
    text-align: center;
    padding: 6rem 2rem 4rem;
}

#blog-hero h1 {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

#blog-hero p {
    font-size: 1.2rem;
    color: var(--secondary-color-2);
}

/* BLOG GRID */
.blog-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 5rem;
}

.blog-card {
    background: var(--container-bg);
    border: 1px solid var(--button-border);
    border-radius: 1.5rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-content {
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.blog-card-content h3 {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.blog-card-content p {
    color: var(--secondary-color-2);
    font-size: 1rem;
    line-height: 1.5rem;
}

/* TAGS */
.blog-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.blog-tags span {
    background: var(--secondary-color);
    color: var(--primary-color);
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 0.5rem;
}

/* BUTTONS */
.btn {
    padding: 0.6rem 1.5rem;
    background: var(--button-bg);
    color: var(--primary-color);
    border: none;
    border-radius: 2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn:hover {
    background: var(--button-hover);
}

/* CONTACT / AUTHOR SECTION */
.blog-contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 3rem 2rem;
}

.blog-contact-info {
    background: var(--container-bg);
    border-radius: 1.5rem;
    padding: 1rem 2rem;
    text-align: center;
    width: 220px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-contact-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.blog-contact-info img {
    height: 2.5rem;
    margin-bottom: 0.5rem;
}

.blog-contact-info p a {
    color: var(--secondary-color-2);
}

.blog-contact-info p a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* SCROLL REVEAL */
[data-sr] {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

[data-sr].active {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE */
@media screen and (max-width: 768px) {
    .blog-container {
        padding: 2rem;
        gap: 1.5rem;
    }
    #blog-hero h1 {
        font-size: 2.5rem;
    }
}

@media screen and (max-width: 480px) {
    #blog-hero h1 {
        font-size: 2rem;
    }
    .blog-card img {
        height: 150px;
    }
}


   

    

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

/* ==========================
   ROOT VARIABLES
========================== */
:root {
    --primary-color: #ffffff;
    --background-color: #fefefe;
    --secondary-color: #000000;
    --secondary-color-2: #555555;
    --container-bg: #fafafa;
    --button-bg: #353535;
    --button-hover: #777;
    --border: #dcdcdc;
    --accent: #0077ff;
}

/* DARK MODE */
[theme="dark"] {
    --primary-color: #000000;
    --background-color: #212121;
    --secondary-color: #ffffff;
    --secondary-color-2: #aaa;
    --container-bg: #272727;
    --button-bg: #cacaca;
    --button-hover: #fff;
    --border: #555;
    --accent: #1a73e8;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: var(--background-color);
    color: var(--secondary-color-2);
    line-height: 1.6;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent);
}

/* ==========================
   HEADER / NAV
========================== */
header {
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--background-color);
    z-index: 100;
}

.nav {
    max-width: 1100px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
}

.logo {
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -1px;
    cursor: pointer;
}

.nav-right {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn {
    border: 1px solid var(--border);
    background: transparent;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.btn.accent {
    background: var(--accent);
    color: #fff;
    border: none;
}

/* ==========================
   BLOG GRID
========================== */
.container {
    max-width: 1100px;
    margin: auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.blog-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: var(--container-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-content {
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.blog-card-content h3 {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.blog-meta {
    font-size: 13px;
    color: var(--secondary-color-2);
}

/* ==========================
   ARTICLE PAGE
========================== */
#article-container {
    max-width: 900px;
    margin: auto;
    padding: 2rem;
}

#article-container h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

#article-container .blog-meta {
    font-size: 14px;
    color: var(--secondary-color-2);
    margin-bottom: 1.5rem;
}

#article-container img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

#article-container p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* ==========================
   SIDEBAR
========================== */
.sidebar {
    position: sticky;
    top: 80px;
    height: fit-content;
}

.box {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    background: var(--container-bg);
}

.tags span {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid var(--border);
    font-size: 13px;
    margin: 4px 4px 0 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tags span:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* ==========================
   RESPONSIVE
========================== */
@media (max-width: 900px) {
    .container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .blog-card img {
        height: 150px;
    }

    #article-container h1 {
        font-size: 2rem;
    }
}
