:root {
    --primary-dark-blue: #0A192F;
    --secondary-dark-blue: #1A2B42;
    --accent-red: #FF5C5C;
    --accent-red-hover: #E73C3C;
    --soft-red: #FF8A8A;


    --accent-cyan: #64FFDA;
    --accent-orange: #FFCA8A;

    --text-light: #CCD6F6;
    --text-dark: #8892B0;
    --white: #FFFFFF;
    --border-light: rgba(255, 255, 255, 0.1);
    --shadow-dark: rgba(0, 0, 0, 0.4);


    --gradient-blue-red: linear-gradient(90deg, #1A2B42 0%, #FF5C5C 100%);
    --gradient-cyan-blue: linear-gradient(90deg, var(--accent-cyan) 0%, #3a7bd5 100%);
    --gradient-red-orange: linear-gradient(90deg, var(--accent-red) 0%, var(--accent-orange) 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-light);
    background-color: var(--primary-dark-blue);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--white);
    margin-bottom: 0.8em;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5em, 4vw + 1em, 5em);
}

h2 {
    font-size: clamp(1.8em, 5vw + 0.5em, 3.5em);
    color: var(--accent-red);
    text-align: center;
    margin-bottom: 1.5em;
    word-break: break-word;
    hyphens: auto;
}

h3 {
    font-size: 1.8em;
    color: var(--white);
}

a {
    color: var(--accent-red);
    text-decoration: none;
    transition: color 0.3s ease, border-bottom 0.3s ease;
}

a:hover {
    color: var(--soft-red);
    border-bottom: 1px solid var(--soft-red);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2em;
}

.particles-full-page {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: var(--primary-dark-blue);
    z-index: -1;
    background: radial-gradient(circle at 15% 50%, rgba(26, 43, 66, 0.4) 0%, rgba(10, 25, 47, 0) 50%),
    radial-gradient(circle at 85% 50%, rgba(231, 76, 60, 0.2) 0%, rgba(10, 25, 47, 0) 50%),
    var(--primary-dark-blue);
}

.header {
    background-color: rgba(10, 25, 47, 0.95);
    padding: 1em 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 5px 20px var(--shadow-dark);
    min-height: 80px;
    display: flex;
    align-items: center;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2em;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    border-bottom: none;
}

.logo-link:hover {
    border-bottom: none;
}

.logo-image {
    height: 65px;
    transition: transform 0.3s ease-out, filter 0.3s ease-out;
}

.logo-link:hover .logo-image {
    transform: scale(1.05);
    filter: drop-shadow(0 0 5px var(--accent-red));
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-links li {
    margin-left: 2.5em;
}

.nav-links a {
    color: var(--text-light);
    font-size: 1.1em;
    padding: 0.5em 0;
    position: relative;
    transition: color 0.3s ease;
    letter-spacing: 0.8px;
    font-weight: 600;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--accent-red);
    left: 0;
    bottom: -3px;
    transition: width 0.3s ease-out;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--accent-red);
}

.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px;
    z-index: 1;
}

.hero-content {
    position: relative;
    max-width: 900px;
    padding: 0 2em;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInSlideUp 1.5s ease-out forwards 0.5s;
}

@keyframes fadeInSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 {
    font-size: 5em;
    margin-bottom: 0.1em;
    line-height: 1.1;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    min-height: 1.1em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content h1 .typing-text {
    color: var(--white);
}

.hero-content h1 .cursor {
    color: var(--accent-red);
    animation: blinkCursor 0.75s infinite;
    opacity: 1;
    display: inline-block;
    width: 10px;
}

@keyframes blinkCursor {
    50% {
        opacity: 0;
    }
}


.hero-content .role {
    font-size: clamp(1.2em, 2vw + 0.5em, 2em);
    color: var(--text-light);
    margin-bottom: 0.5em;
    letter-spacing: 1px;
}

.hero-content .city {
    font-size: clamp(1em, 1.5vw + 0.5em, 1.4em);
    color: var(--text-dark);
    margin-bottom: 2.5em;
}

.hero-buttons {
    margin-top: 3em;
    display: flex;
    justify-content: center;
    gap: 1.5em;
}

.btn {
    display: inline-block;
    padding: 1.1em 3em;
    border-radius: 50px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1.5px;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-size: 1em;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn:hover::before {
    transform: scaleX(1);
}

.btn-primary {
    background: linear-gradient(90deg, var(--accent-red) 0%, var(--soft-red) 100%);
    color: var(--white);
    box-shadow: 0 5px 20px rgba(255, 92, 92, 0.4);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 92, 92, 0.6);
    color: var(--white);
}

.btn-secondary {
    background-color: var(--secondary-dark-blue);
    color: var(--accent-red);
    border: 2px solid var(--accent-red);
    box-shadow: 0 5px 20px rgba(26, 43, 66, 0.3);
}

.btn-secondary:hover {
    background-color: var(--accent-red);
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 92, 92, 0.6);
    border-color: var(--accent-red);
}

.section {
    padding: 8em 0;
    text-align: center;
    position: relative;
    z-index: 10;
    margin-bottom: 2em;
    box-shadow: 0 0 30px var(--shadow-dark);

    background-color: #020a18;
    overflow: hidden;

    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.5);
}

.section::before, .section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.section::before {
    background-image: linear-gradient(0deg, rgba(100, 255, 218, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 255, 218, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 30s linear infinite;
    opacity: 0.5;
}

.section::after {
    background-image: radial-gradient(var(--accent-cyan) 1px, transparent 1px);
    background-size: 150px 150px;
    animation: stars-twinkle 5s ease-in-out infinite;
    opacity: 0;
}

@keyframes grid-move {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 50px 50px;
    }
}

@keyframes stars-twinkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        opacity: 0.6;
        transform: scale(1);
    }
}

.section:nth-child(odd) {
    background-color: transparent;
}

.section:nth-child(even) {
    background-color: transparent;
}


.section h2 {
    margin-bottom: 2em;
    position: relative;
    display: inline-block;
    font-size: 3.5em;
    text-shadow: 0 0 5px var(--accent-red),
    0 0 15px var(--accent-red),
    0 0 30px rgba(255, 92, 92, 0.5);
}

.section h2::after {
    content: '';
    position: absolute;
    width: 70%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-red) 0%, var(--soft-red) 100%);
    left: 15%;
    bottom: -10px;
    border-radius: 2px;
}

.fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-image {
    width: 300px;
    height: 300px;
    background-color: var(--secondary-dark-blue);
    border-radius: 50%;
    margin: 2em auto;
    overflow: hidden;
    box-shadow: 0 0 0 10px rgba(10, 25, 47, 0.8);
    position: relative;
    transition: all 0.5s ease-out;
}

.about-image:hover {
    transform: scale(1.05);
}

.about-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 110%;
    height: 110%;
    background: conic-gradient(
            transparent,
            transparent,
            var(--accent-cyan)
    );
    animation: rotate-border 4s linear infinite;
    transform-origin: center center;
}

@keyframes rotate-border {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 1;
}

.section p {
    max-width: 800px;
    margin: 1.5em auto;
    font-size: 1.15em;
    color: var(--text-dark);
    text-shadow: 0 0 5px rgba(10, 25, 47, 0.5);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5em;
    margin-top: 3em;
    text-align: left;
}

.skill-category {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 2.5em;
    border-radius: 12px;
    box-shadow: 0 8px 30px var(--shadow-dark);
    border-bottom: 5px solid var(--accent-red);
    transition: transform 0.4s ease, box-shadow 0.4s ease, background-color 0.4s ease, opacity 0.5s ease, height 0.5s ease, margin 0.5s ease;
    position: relative;
    overflow: hidden;
    background-image: linear-gradient(0deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 25px 25px;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 92, 92, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.skill-category:hover::before {
    opacity: 1;
}

.skill-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(255, 92, 92, 0.3);
    background-color: rgba(255, 255, 255, 0.08);
}

.skill-category h3 {
    color: var(--accent-cyan); /**/
    margin-bottom: 1.2em;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 0.8em;
    position: relative;
    z-index: 1;
}

.skill-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 1;
}

.skill-category li {
    margin-bottom: 1em;
    font-size: 1.1em;
    color: var(--text-light);
    position: relative;
    padding-left: 1.8em;
    transition: color 0.3s ease, transform 0.3s ease;
}

.skill-category li::before {
    content: '→'; /**/
    color: var(--soft-red);
    position: absolute;
    left: 0;
    font-weight: bold;
    animation: pulseArrow 1.5s infinite ease-in-out;
}

@keyframes pulseArrow {
    0% {
        transform: translateX(0);
        opacity: 1;
    }
    50% {
        transform: translateX(5px);
        opacity: 0.7;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.skill-category li:hover {
    color: var(--white);
    transform: translateX(5px);
}


.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3em;
    margin-top: 3em;
}

.project-card {
    background-color: var(--secondary-dark-blue);
    padding: 2.5em;
    border-radius: 12px;
    box-shadow: 0 8px 30px var(--shadow-dark);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.4s ease, box-shadow 0.4s ease, background-color 0.4s ease, opacity 0.5s ease, height 0.5s ease, margin 0.5s ease;
    border-left: 5px solid var(--accent-red);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 92, 92, 0.1) 100%);
    transition: width 0.4s ease;
    z-index: 0;
}

.project-card:hover::before {
    width: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(255, 92, 92, 0.3);
    background-color: var(--primary-dark-blue);
}

.project-card h3 {
    color: var(--white);
    margin-top: 0;
    margin-bottom: 1em;
    position: relative;
    z-index: 1;
}

.project-card p {
    color: var(--text-dark);
    font-size: 1em;
    margin-bottom: 1.8em;
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

.project-techs {
    margin-top: 1.5em;
    margin-bottom: 2em;
    position: relative;
    z-index: 1;
}

.project-techs span {
    display: inline-block;
    background-color: rgba(100, 255, 218, 0.1);
    color: var(--accent-cyan);
    font-size: 0.85em;
    padding: 0.6em 1em;
    border-radius: 5px;
    margin-right: 0.8em;
    margin-bottom: 0.8em;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.project-techs span:nth-child(2n) {
    background-color: rgba(255, 92, 92, 0.15);
    color: var(--soft-red);
}

.project-techs span:nth-child(3n) {
    background-color: rgba(255, 202, 138, 0.15);
    color: var(--accent-orange);
}


.project-techs span:hover {
    background-color: var(--accent-cyan);
    color: var(--primary-dark-blue);
    transform: translateY(-2px);
}

.project-techs span:nth-child(2n):hover {
    background-color: var(--soft-red);
    color: var(--white);
}

.project-techs span:nth-child(3n):hover {
    background-color: var(--accent-orange);
    color: var(--primary-dark-blue);
}

.btn-project {
    display: inline-block;
    background-color: var(--accent-red);
    color: var(--white);
    padding: 0.9em 2em;
    border-radius: 8px;
    font-size: 0.95em;
    text-transform: none;
    letter-spacing: normal;
    transition: all 0.3s ease;
    border: none;
    align-self: flex-start;
    box-shadow: 0 3px 10px rgba(255, 92, 92, 0.3);
    position: relative;
    z-index: 1;
}

.btn-project:hover {
    background-color: var(--accent-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 92, 92, 0.5);
    color: var(--white);
}

.show-more-button {
    margin-top: 3em;
    display: none;
    padding: 1em 3em;
    font-size: 1em;
}


.additional-skills-list ul {
    list-style: none;
    padding: 0;
    margin-top: 2.5em;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.additional-skills-list li {
    background-color: var(--secondary-dark-blue);
    color: var(--text-light);
    padding: 1.2em 2.5em;
    margin: 1em;
    border-radius: 50px;
    font-size: 1.15em;
    display: flex;
    align-items: center;
    transition: color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.additional-skills-list li::before {
    content: '';
    position: absolute;
    width: 0;
    height: 100%;
    background: var(--gradient-red-orange);
    top: 0;
    left: 0;
    transition: width 0.4s ease;
    z-index: 0;
}

.additional-skills-list li:hover::before {
    width: 100%;
}

.additional-skills-list li .skill-text,
.additional-skills-list li i {
    position: relative;
    z-index: 1;
    transition: color 0.4s ease;
}

.additional-skills-list li:hover {
    color: var(--primary-dark-blue);
    transform: translateY(-7px) rotate(2deg);
    box-shadow: 0 8px 25px rgba(255, 202, 138, 0.4);
    border-color: var(--accent-orange);
}

.additional-skills-list li i {
    margin-right: 1em;
    color: var(--accent-cyan);
    font-size: 1.4em;
}

.additional-skills-list li:hover i {
    color: var(--primary-dark-blue);
}

#contact .contact-subtitle {
    font-size: clamp(1em, 1.5vw + 0.5em, 1.2em);
    color: var(--text-dark);
    margin-top: -2em;
    margin-bottom: 4em;
}

.contact-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2em;
    margin-bottom: 5em;
}

.contact-card {
    background-color: var(--secondary-dark-blue);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 2em;
    display: flex;
    align-items: center;
    gap: 1.5em;
    transition: all 0.3s ease-out;
    text-decoration: none;
}

.contact-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-cyan);
    box-shadow: 0 10px 30px rgba(100, 255, 218, 0.1);
    background-color: var(--primary-dark-blue);
}

.contact-card i {
    font-size: 2.5em;
    color: var(--accent-cyan);
    transition: all 0.3s ease-out;
}

.contact-card:hover i {
    color: var(--accent-red);
    transform: scale(1.1) rotate(-5deg);
}

.contact-card .contact-text {
    text-align: left;
}

.contact-card h4 {
    margin: 0 0 0.3em 0;
    color: var(--text-light);
    font-size: 1.2em;
}

.contact-card span {
    color: var(--text-dark);
    font-size: 1em;
    word-break: break-all;
}

.form-container {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--secondary-dark-blue);
    padding: 3em;
    border-radius: 10px;
    border-top: 4px solid var(--accent-red);
}

.form-container h3 {
    margin-top: 0;
    margin-bottom: 1.5em;
    color: var(--text-light);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5em;
}

.contact-form input,
.contact-form textarea {
    padding: 1.2em 1.5em;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background-color: var(--primary-dark-blue);
    color: var(--white);
    font-size: 1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-dark);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 4px rgba(100, 255, 218, 0.2);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn-primary {
    align-self: center;
    width: 80%;
    max-width: 300px;
    margin-top: 1em;
}

/*  */
.footer {
    background-color: var(--primary-dark-blue);
    padding: 2.5em 0;
    text-align: center;
    color: var(--text-dark);
    border-top: 1px solid var(--border-light);
    font-size: 1em;
    position: relative;
    z-index: 10;
}

@media (max-width: 992px) {
    h1 {
        font-size: 4em;
    }

    h2 {
        font-size: 2.8em;
    }

    .hero-content .role {
        font-size: 1.8em;
    }

    .hero-content .city {
        font-size: 1.2em;
    }

    .btn {
        padding: 1em 2.5em;
        font-size: 0.9em;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1em;
    }

    .btn-primary, .btn-secondary {
        align-self: center;
    }
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .container {
        padding: 0 1em;
    }

    h1 {
        font-size: 2.8em;
    }

    h2 {
        font-size: 2.2em;
    }

    .section {
        padding: 4em 0;
    }

    .navbar {
        flex-direction: column;
        padding: 1em;
    }

    .nav-links {
        margin-top: 1em;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0 1em;
    }

    .nav-links li {
        margin-left: 0;
    }

    .nav-links a {
        font-size: 1em;
    }

    .hero-content .role {
        font-size: 1.4em;
    }

    .hero-content .city {
        font-size: 1.1em;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        margin: 0;
        width: 90%;
        max-width: 300px;
    }

    .skills-grid,
    .projects-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2em;
    }

    .about-image {
        width: 220px;
        height: 220px;
    }

    .project-card {
        width: 100%;
        box-sizing: border-box;
    }

    .skill-category.mobile-hidden,
    .project-card.mobile-hidden {
        display: none;
        opacity: 0;
        transform: translateY(-20px);
        transition: opacity 0.5s ease, transform 0.5s ease;
    }

    .skill-category.mobile-hidden.show {
        display: block;
        opacity: 1;
        transform: translateY(0);
    }

    .project-card.mobile-hidden.show {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }

    .show-more-button {
        display: none;
        margin: 2.5em auto 0;
        width: 90%;
        max-width: 300px;
    }

    .show-more-button.visible {
        display: inline-block;
    }

    h1.typing-active {
        font-size: 2em !important;
    }

}

@media (max-width: 480px) {
    h1 {
        font-size: 2.8em;
    }

    h2 {
        font-size: 2em;
    }

    .hero-content .role {
        font-size: 1.2em;
    }

    .hero-content .city {
        font-size: 1em;
    }

    .logo {
        font-size: 1.6em;
    }

    .section p {
        font-size: 1em;
    }

    .additional-skills-list li {
        width: 90%;
    }
}