:root {
    --primary-color: #4dabf7;
    --bg-dark: #0f111a;
    --bg-secondary: #1a1d29;
    --bg-tertiary: #24283b;
    --text-main: #f8f9fa;
    --text-secondary: #ced4da;
    --text-dim: #9499b7;
    --white: #ffffff;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-dark);
    scroll-behavior: smooth;
}

.body-pt-nav {
    padding-top: 70px;
}

.text-highlight {
    color: var(--primary-color);
}

.nav-toggle-icon {
    color: var(--white);
}

.about-img {
    max-width: 350px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    height: auto;
}

.contact-card {
    background-color: var(--bg-tertiary);
}

.navbar {
    background-color: rgba(15, 17, 26, 0.9);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar-icon {
    max-width: 45px;
    height: auto;
}

.navbar-brand {
    font-weight: 700;
    color: var(--white) !important;
    letter-spacing: 1px;
}

.navbar-brand:hover {
    text-shadow: 0px 0px 7px rgba(77, 171, 247, 0.9);
}

.nav-link {
    font-weight: 500;
    color: var(--text-secondary) !important;
    margin: 0 10px;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
}

.hero {
    background: linear-gradient(rgba(15, 17, 26, 0.85), rgba(15, 17, 26, 0.95)),
        url('https://images.unsplash.com/photo-1498050108023-c5249f4df085?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.hero p {
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

section {
    padding: 100px 0;
}

.bg-light-custom {
    background-color: var(--bg-secondary) !important;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title::after {
    content: '';
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

p.lead-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.project-card {
    background-color: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
}

.project-card:hover {
    transform: translateY(-12px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(77, 171, 247, 0.2);
}

.project-img {
    height: 220px;
    object-fit: cover;
    filter: brightness(0.7);
    transition: filter 0.3s ease;
}

.project-card:hover .project-img {
    filter: brightness(1);
}

.card-title {
    color: var(--white);
    font-weight: 600;
}

.card-text {
    color: var(--text-dim);
}

.resume-item {
    padding: 25px;
    border-left: 4px solid var(--primary-color);
    background: var(--bg-tertiary);
    margin-bottom: 25px;
    border-radius: 0 8px 8px 0;
    transition: background 0.3s;
}

.resume-item:hover {
    background: #2d324d;
}

.resume-item h5 {
    color: var(--white);
    margin-bottom: 5px;
}

.resume-item .date-info {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: block;
}

.resume-item .desc {
    color: var(--text-secondary);
}

.btn-primary {
    background-color: var(--primary-color);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: #339af0;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(77, 171, 247, 0.4);
}

.btn-outline-light {
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.2);
}

.form-control {
    background-color: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: 12px;
}

.form-control::placeholder {
    color: rgba(194, 194, 194, 0.219);
}

.form-control:focus {
    background-color: var(--bg-dark);
    border-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 0 0 0.25rem rgba(77, 171, 247, 0.1);
}

.form-label {
    color: var(--text-secondary);
    font-weight: 500;
}

footer {
    background-color: #05060a;
    color: var(--text-dim);
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.social-icons a {
    color: var(--text-secondary);
    font-size: 1.8rem;
    margin: 0 20px;
    transition: all 0.3s;
}

.social-icons a:hover {
    color: var(--primary-color);
    transform: translateY(-5px);
}

.badge-skill {
    background-color: rgba(77, 171, 247, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(77, 171, 247, 0.3);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
}

.animate-text {
    animation: fadeInUp 0.9s ease both;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    will-change: opacity, transform;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    will-change: opacity, transform;
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    will-change: opacity, transform;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

.reveal.visible,
.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: translate(0, 0);
}

.reveal.hidden { opacity: 0; transform: translateY(40px); }
.reveal-left.hidden { opacity: 0; transform: translateX(-50px); }
.reveal-right.hidden { opacity: 0; transform: translateX(50px); }

:root {
    /* Desktop */
    --section-padding: 100px;
    --hero-title-size: clamp(2.5rem, 8vw, 4.5rem);
    --hero-subtitle-size: 1.25rem;
    --project-image-height: 220px;
    --about-image-size: 350px;
    --card-padding: 1.5rem;
    --container-padding: 1rem;
}

@media (max-width: 991px) {
    :root {
        --section-padding: 80px;
        --hero-subtitle-size: 1.1rem;
        --project-image-height: 200px;
        --about-image-size: 280px;
    }

    .navbar-collapse {
        background-color: var(--bg-tertiary);
        padding: 1rem;
        border-radius: 12px;
        margin-top: 10px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
        --hero-title-size: clamp(2rem, 7vw, 2.8rem);
        --hero-subtitle-size: 1rem;
        --project-image-height: 180px;
        --about-image-size: 230px;
        --card-padding: 1rem;
        --container-padding: 1.2rem;
    }

    .hero-buttons .btn {
        width: 100%;
        margin-bottom: 12px !important;
    }

    .resume-item {
        border-left: none;
        border-top: 4px solid var(--primary-color);
        border-radius: 0 0 8px 8px;
        padding: 18px;
    }
}

@media (max-width: 480px) {
    :root {
        --hero-title-size: clamp(1.6rem, 6vw, 2rem);
        --project-image-height: 160px;
        --about-image-size: 200px;
    }
}

html {
    overflow-x: hidden;
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    padding-top: 70px;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

section {
    padding: var(--section-padding) 0;
}

.container {
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.hero h1 {
    font-size: var(--hero-title-size);
    padding-inline: 10px;
}

.hero p {
    font-size: var(--hero-subtitle-size);
    padding-inline: 15px;
}

.project-img {
    height: var(--project-image-height);
    object-fit: cover;
}

.about-img {
    max-width: var(--about-image-size);
    width: 100%;
    height: auto;
}

.contact-card,
.project-card {
    padding: var(--card-padding);
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, p, span {
    overflow-wrap: break-word;
}