@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Prompt:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');
:root {
    --bg-light: #EFEFEF;
    --text-dark: #1a1a1a;
    --accent-color: #01295d;
    --border-color: #080808;
    --menu-bg-dark: #020031;
    --menu-text-light: #EFEFEF;
}

body.dark-mode {
    --bg-light: #1a1a1a;
    --text-dark: #f5f5f5;
    --accent-color: #e0e0e0;
    --border-color: #333;
}

/* --- Global Resets & Typography --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Prompt', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

/* --- Header --- */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-light);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}


/* --- Mobile Menu Toggle (Hamburger Icon) --- */
.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    position: relative;
    z-index: 1001;
}

.menu-toggle .line {
    width: 25px;
    height: 2px;
    background-color: var(--text-dark);
    transition: all 0.3s ease;
}

.menu-toggle.active .line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active .line:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* --- Full-Screen Navigation Overlay --- */
.full-screen-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--menu-bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
}

.full-screen-menu.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.full-screen-menu ul {
    list-style: none;
    text-align: center;
}

.full-screen-menu ul li {
    margin-bottom: 1.5rem;
}

.full-screen-menu ul li a {
    color: var(--menu-text-light);
    font-size: 2.5rem;
    font-weight: 600;
    text-transform: uppercase;
    position: relative;
}

.full-screen-menu ul li a:hover {
    color: var(--menu-text-light);
    opacity: 0.8;
}

/* --- Hero Section --- */
.hero-section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-name {
    font-size: clamp(3rem, 10vw, 8rem);
    font-family: 'Prompt', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1;
    overflow: hidden;
}

.hero-name span {
    display: inline-block;
}

.hero-title {
    font-size: clamp(1rem, 3vw, 2rem);
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-top: 0.5rem;
    opacity: 0;
}

/* --- Vertical Side Text --- */
.side-text {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    z-index: 500;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    transition: font-size 0.3s ease;
}

.side-text:hover {
    opacity: 1;
    font-size: 1.2rem;
    transition: font-size 0.3s ease, opacity 0.3s ease;
}

.left-text {
    left: 2rem;
}

.right-text {
    right: 2rem;
}

.hover-item:hover {
    font-size: 3rem;
}

@media (max-width: 900px) {
    .side-text {
        display: none;
    }
}

/* --- Barba.js Transition Overlay --- */
#transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--accent-color);
    z-index: 9998;
    transform-origin: top center;
    transform: scaleY(0);
    pointer-events: none;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    header {
        padding: 1rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .full-screen-menu ul li a {
        font-size: 2rem;
    }

    .hero-name {
        font-size: clamp(2.5rem, 15vw, 6rem);
    }

    .hero-title {
        font-size: clamp(0.8rem, 4vw, 1.5rem);
    }
}


/* --- About Me Button --- */
.btn-about-me {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.8rem 2.5rem;
    background-color: transparent;
    color: var(--text-dark);
    border: 2px solid var(--text-dark);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
}

body.dark-mode .btn-about-me {
    color: var(--text-dark);
    border-color: var(--text-dark);
}


.btn-about-me:hover {
    background-color: var(--text-dark);
    color: var(--bg-light);
}

body.dark-mode .btn-about-me:hover {
    background-color: var(--text-dark);
    color: var(--bg-light);
}


/* --- About Section --- */
.about-section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 0;
    background-color: var(--bg-light);
    color: var(--text-dark);
    border-top: 1px solid var(--border-color);
}

.about-content {
    max-width: 900px;
    text-align: left;
    line-height: 1.8;
}

.about-content h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.about-content p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}


@media (max-width: 768px) {
    .about-section {
        padding: 3rem 0;
    }
    .about-content {
        padding: 0 1.5rem;
    }
}


/* General Content Section Styling */
.content-section {
    min-height: 100vh;
    padding: 6rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-light);
    flex-direction: column;
}

.content-section h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.content-section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 10px auto 2rem;
}

.section-description {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--text-dark);
}

/* Projects Section Specific Styling */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin-top: 2rem;
    text-align: left;
}

.project-card {
    background-color: #ffffff;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

body.dark-mode .project-card {
    background-color: #242424;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-color: #333;
}


.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.project-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.project-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.project-tags {
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tags span {
    background-color: var(--accent-color);
    color: var(--bg-light);
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    font-weight: 500;
}

body.dark-mode .project-tags span {
    background-color: var(--accent-color);
    color: var(--text-dark);
}

.project-link.button {
    font-size: 0.9rem;
    padding: 0.6rem 1.5rem;
    margin-top: 0;
}


/* Contact Section Specific Styling */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    max-width: 1000px;
    margin-top: 2rem;
    text-align: left;
}
.contact-form .button {
    width: auto;
    margin-top: 1.5rem;
    display: inline-block;
}

.button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--bg-light);
    padding: 0.8rem 2rem;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    border: 2px solid var(--accent-color);
}

.button:hover {
    background-color: transparent;
    color: var(--accent-color);
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .contact-info, .contact-form-container {
        padding: 1.5rem;
    }
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.contact-info p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-info a {
    color: var(--accent-color);
    text-decoration: underline;
}

.social-links {
    margin-top: 1.5rem;
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start;
}

@media (max-width: 768px) {
    .social-links {
        justify-content: center;
    }
}

.social-links a {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-color);
}

.contact-form {
    background-color: #ffffff;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

body.dark-mode .contact-form {
    background-color: #242424;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-color: #333;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
    background-color: #1a1a1a;
    border-color: #555;
    color: var(--bg-light);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(var(--accent-color-rgb), 0.2);
}

/* Adjust button for form */
.contact-form .button {
    width: auto;
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* Language Switcher Styles */
.lang-switcher {
    position: static;
    top: auto;
    right: auto;
    transform: none;
    display: flex;
    gap: 5px;
    z-index: 100;
}

.lang-switcher .lang-button {
    background-color: transparent;
    color: var(--text-dark);
    border: 1px solid var(--text-dark);
    padding: 5px 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.lang-switcher .lang-button:hover {
    background-color: rgba(var(--text-dark-rgb), 0.1);
}

.lang-switcher .lang-button.active {
    background-color: var(--accent-color);
    color: var(--bg-light);
    border-color: var(--accent-color);
}

body.dark-mode .lang-switcher .lang-button {
    color: var(--text-light);
    border-color: var(--text-light);
}

body.dark-mode .lang-switcher .lang-button:hover {
    background-color: rgba(var(--text-light-rgb), 0.1);
}

body.dark-mode .lang-switcher .lang-button.active {
    background-color: var(--accent-color);
    color: var(--bg-dark);
    border-color: var(--accent-color);
}

/* --- About Job Links --- */
.about-job a {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid var(--accent-color);
    transition: color 0.2s, border-color 0.2s;
    padding-bottom: 2px;
}

.about-job a:hover,
.about-job a:focus {
    color: var(--menu-text-light);
    background-color: var(--accent-color);
    border-radius: 4px;
    border-bottom: 2px solid var(--accent-color);
    text-decoration: none;
    padding: 2px 6px;
    transition: background-color 0.2s, color 0.2s;
}

/* --- Skills Section --- */
.hero-skills {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    justify-items: center;
    align-items: center;
    margin-top: 2rem;
}

@media (max-width: 900px) {
    .hero-skills {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .hero-skills {
        grid-template-columns: repeat(2, 1fr);
    }
}

.skill-card {
    background: var(--bg-light, #fff);
    color: var(--text-dark, #222);
    border: 1px solid var(--accent-color, #0078ff);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: center;
    transition: background 0.2s, color 0.2s, border 0.2s;
}

.skill-card:hover {
    background: var(--accent-color, #0078ff);
    color: #fff;
    border-color: var(--accent-color, #0078ff);
}

.skill-card img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    margin-right: 0.5em;
    vertical-align: middle;
}

