:root {
    --primary-color: #4b9fe9;
    --primary-hover: #8cb7e4;
    --secondary-color: #8b9196;
    --background: #131313;
    --background-white: #1d1d1d;
    --background-gradient-light: var(--background);
    --text-primary: #f9fafa;
    --border: #232323;
    --text-secondary: #eeeeee;
    --text-muted: #dedede;
    --shadow-light: rgba(0, 0, 0, 0.05);
    --shadow-medium: rgba(0, 0, 0, 0.1);
    --shadow-dark: rgba(0, 0, 0, 0.15);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a:hover {
    color: var(--primary-hover);
    transform: scale(1.05);
}

ul {
    list-style: none;
    padding: 0;
}

section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    opacity: 0;
    animation: fadeIn 1s ease-in forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1,
h2,
h3,
h4 {
    margin-bottom: 20px;
    color: var(--text-secondary);
}

h1 {
    font-size: 3em;
}

h2 {
    font-size: 2.5em;
}

h3 {
    font-size: 1.8em;
}

h4 {
    margin-top: 15px;
    margin-bottom: 10px;
}

p {
    margin-bottom: 15px;
}

.project h3 {
    margin-top: 0;
    margin-bottom: 15px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    hyphens: auto;
}

.project h4 {
    margin-top: 12px;
    margin-bottom: 8px;
}

.project p {
    margin-bottom: 10px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    max-width: 100%;
    hyphens: auto;
}

.project ul {
    margin-bottom: 10px;
}

.project li {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    hyphens: auto;
}

.project a {
    word-wrap: break-word;
    overflow-wrap: break-word;
    display: inline-block;
    max-width: 100%;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: linear-gradient(to right, var(--background-white), var(--background-gradient-light));
    box-shadow: 0 2px 10px var(--shadow-medium);
    z-index: 1000;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--primary-color);
}

.hero-header {
    color: var(--text-primary);
    font-size: 6rem;
    margin-left: 2%;
    text-align: left;
    margin-bottom: -2.5%;
    animation: flyInFromLeft 0.6s ease-in-out forwards;
    opacity: 0;
    margin-top: 3%;
}

.hero-name {
    color: var(--text-primary);
    font-size: 4rem;
    margin-left: 8%;
    margin-top: 4%;
    position: relative;
    text-align: left;
    animation: flyInFromLeft 0.8s ease-in-out forwards;
    opacity: 0;
}

.hero-name::before {
    content: '';
    position: absolute;
    left: 0;
    right: auto;
    bottom: 25%;
    width: 8%;
    height: 2px;
    margin-left: -9%;
    background-color: var(--primary-color);
    animation: flyInFromLeft 1s ease-in-out forwards;
    opacity: 0;
}

.hero-desc {
    color: var(--text-secondary);
    margin-left: 2%;
    margin-top: 4%;
    font-size: 2rem;
    animation: flyInFromLeft 1s ease-in-out forwards;
    opacity: 0;
}

nav ul {
    display: flex;
    gap: 30px;
}

nav ul li a {
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-hover);
}

#hero {
    width: 100%;
    text-align: center;
    background: linear-gradient(to bottom, var(--background), var(--background));
    animation-delay: 0.2s;
}

#hero h1 {
    margin-bottom: 10px;
}

#hero p {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto;
}

#about {
    background-color: var(--background-white);
    border-radius: 10px;
    box-shadow: 0 4px 20px var(--shadow-light);
    animation-delay: 0.4s;
}

#about ul {
    list-style-type: disc;
    padding-left: 20px;
}

#portfolio {
    border: 4px solid var(--border);
    border-radius: 10px;
    animation-delay: 0.6s;
    position: relative;
    overflow: hidden;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
    margin-bottom: 10%;
    margin-top: 10%;
}

.projects {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    gap: 0;
    background-color: var(--background);
    padding: 0;
    margin: 0;
    will-change: transform;
    width: 100%;
    align-items: flex-start;
    box-sizing: border-box;
}

.project {
    background-color: var(--background-white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow-medium);
    opacity: 1;
    animation: fadeInProject 0.8s ease-in forwards;
    min-width: calc(100% - 10%);
    width: calc(100% - 10%);
    margin: 5%;
    flex-shrink: 0;
    box-sizing: border-box;
    user-select: none;
    overflow-y: visible;
    overflow-x: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

@keyframes fadeInProject {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project .image {
    margin: 10px 0;
    text-align: center;
    width: 100%;
}

.project img {
    width: 100%;
    max-width: 100%;
    max-height: 180px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px var(--shadow-medium);
    transition: transform 0.3s ease;
    object-fit: contain;
}

.project img:hover {
    transform: scale(1.02);
}

.image-desc {
    font-style: italic;
    color: var(--text-muted);
    margin-top: 3px;
    margin-bottom: 3px;
    font-size: 0.9em;
}

.project ul {
    list-style-type: disc;
    padding-left: 20px;
}

#contact {
    text-align: center;
    background: linear-gradient(135deg, var(--background-white), var(--background-gradient-light));
    border-radius: 20px;
    box-shadow: 0 8px 30px var(--shadow-medium);
    animation-delay: 0.8s;
    border: 2px solid var(--border);
    position: relative;
    overflow: hidden;
    margin-bottom: 3%;
}

#contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-hover));
    animation: slideIn 1s ease-out forwards;
    transform: translateX(-100%);
}

@keyframes slideIn {
    to {
        transform: translateX(0);
    }
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-intro {
    font-size: 1.2em;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

.contact-card-link {
    text-decoration: none;
    display: block;
    margin-bottom: 25px;
}

.contact-card-link:last-child {
    margin-bottom: 0;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 25px;
    background: var(--background);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
    text-align: left;
}

.contact-card-link:hover .contact-card {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-dark);
    border-color: var(--primary-color);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(253, 114, 91, 0.3);
}

.contact-icon svg,
.contact-icon img {
    width: 30px;
    height: 30px;
    color: var(--text-primary);
}

.contact-details {
    flex: 1;
}

.contact-details h3 {
    margin: 0 0 8px 0;
    font-size: 1.4em;
    color: var(--text-primary);
}

.contact-link {
    font-size: 1.1em;
    color: var(--primary-color);
    text-decoration: none;
    display: inline-block;
    word-break: break-all;
}

.contact-card-link:hover .contact-link {
    color: var(--primary-hover);
}

footer {
    text-align: center;
    padding: 20px;
    background-color: var(--background-gradient-light);
    color: var(--text-muted);
    font-size: 0.9em;
}

.hero-separator {
    width: 100%;
    height: 5px;
    margin-top: 4%;
    background: linear-gradient(to right, var(--primary-color), 25%, var(--background));
    border-radius: 2px;
    opacity: 1;
    transform: translateX(-100vw) scaleX(0);
    animation: fadeInSeparator 1.4s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

@keyframes fadeInSeparator {
    from {
        opacity: 1;
        transform: translateX(-100vw) scaleX(0);
    }
    to {
        opacity: 1;
        transform: translateX(0) scaleX(1);
    }
}

.hero-decor {
    position: absolute;
    top: 8%;
    left: 60%;
    width: 100%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 30px;
    pointer-events: none;
}

.decor-circle {
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0;
    animation: decorFlyIn 1s 0.2s forwards;
}

.decor-cross {
    width: 30px;
    height: 30px;
    position: relative;
    opacity: 0;
    animation: decorFlyIn 1s 0.2s forwards;
}
.decor-cross::before,
.decor-cross::after {
    content: '';
    position: absolute;
    left: 18px;
    top: 0;
    width: 4px;
    height: 30px;
    background: var(--primary-hover);
    border-radius: 2px;
}
.decor-cross::after {
    transform: rotate(90deg);
}

.decor-triangle {
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 35px solid var(--primary-hover);
    opacity: 0;
    animation: decorFlyIn 1s 0.2s forwards;
}

.credits-container {
    text-align: center;
    margin: 60px auto;
    background: var(--background-white);
    border-radius: 10px;
    box-shadow: 0 4px 20px var(--shadow-light);
    padding: 40px 30px;
    width: 80%;
}

.credits-container h1 {
    font-size: 3em;
    margin-bottom: 30px;
}

.credits-container h2 {
    font-size: 1.2em;
    margin-bottom: 5px;
}

.credits-container ul {
    font-size: 1.2em;
}

.credits-container a {
    color: var(--primary-color);
}

.back-to-index {
    display: inline-block;
    margin-bottom: 20px;
    font-size: 1.5em;
    color: var(--primary-color);
}

.icon {
    fill: #fff;
    width: 1.2em;
    height: 1.2em;
    vertical-align: middle;
    margin-right: 10px;
    margin-left: -2px;
    display: inline-block;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 60px 20px;
    max-width: 4000px;
    margin: 0 auto;
    opacity: 1;
    width: 100%;
}

#things-i-do {
    width: 100%;
    padding: 40px 20px;
    opacity: 0;
    animation: fadeIn 1s ease-in forwards;
    text-align: center;
}

#things-i-do h2 {
    font-size: 2.5em;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.skill-card {
    background: linear-gradient(145deg, var(--background-white), var(--background));
    border: 2px solid var(--border);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-hover));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(75, 159, 233, 0.2);
    border-color: var(--primary-color);
}

.skill-card:hover::before {
    transform: scaleX(1);
}

.skill-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(75, 159, 233, 0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.skill-card:hover .skill-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(75, 159, 233, 0.4);
}

.skill-icon-wrapper img {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1);
}

.skill-card h3 {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.skill-card p {
    font-size: 1em;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

#about-me {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
    box-sizing: border-box;
}

#about-me h2 {
    font-size: 2.5em;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

.about-text-card {
    background: linear-gradient(145deg, var(--background-white), var(--background));
    border: 2px solid var(--border);
    border-radius: 25px;
    padding: 50px 40px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.about-text-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-hover));
}

.about-greeting {
    display: block;
    font-size: 1.8em;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-intro p {
    font-size: 1.15em;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 15px;
    text-align: left;
}

.about-intro p:last-child {
    margin-bottom: 0;
}

.stats-grid {
    display: grid;
    margin-top: 5%;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.stat-card {
    background: linear-gradient(145deg, var(--background-white), var(--background));
    border: 2px solid var(--border);
    border-radius: 20px;
    padding: 30px 25px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(75, 159, 233, 0.2);
    border-color: var(--primary-color);
}

.stat-number {
    font-size: 3.5em;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1em;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.stat-bar {
    width: 100%;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-hover));
    border-radius: 3px;
    transform-origin: left;
    animation: fillProgress 1.2s ease-out forwards;
    animation-delay: 0.3s;
    transform: scaleX(0);
}

.programming-languages-container {
    border: 4px solid var(--border);
    border-radius: 10px;
    margin: 40px auto;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px var(--shadow-light);
    max-width: 1200px;
}

@media (max-width: 1350px) {
    .programming-languages-container {
        margin: 4% 2%;
    }
}

.programming-languages-container h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: var(--primary-color);
    text-align: center;
}

.languages-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.language-card {
    background: linear-gradient(135deg, var(--background), var(--background-gradient-light));
    padding: 30px 20px;
    flex: 0 1 calc(25% - 30px);
    min-width: 200px;
    max-width: 250px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px var(--shadow-medium);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid var(--border);
}

.language-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(75, 159, 233, 0.2);
    border-color: var(--primary-color);
}

.language-card img {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.language-card p {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.language-level {
    width: 100%;
    height: 10px;
    background-color: var(--border);
    border-radius: 5px;
    overflow: hidden;
    margin-top: 10px;
}

.language-level-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-hover));
    border-radius: 5px;
    transform-origin: left;
    animation: fillProgress 1s ease-out forwards;
    animation-delay: 0.5s;
    transform: scaleX(0);
}

@keyframes fillProgress {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

.programming-languages-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.programming-languages-list li {
    background: var(--background-gradient-light);
    padding: 10px 15px;
    border-radius: 5px;
    color: var(--text-primary);
    font-size: 1.2em;
    box-shadow: 0 2px 10px var(--shadow-medium);
    background: linear-gradient(to bottom, var(--background), var(--background-gradient-light));
    animation-duration: 0.4s;
    animation-delay: 0.4s;
}

@keyframes fadeInLine {
    from {
        opacity: 0;
        transform: scaleY(0);
    }
    to {
        opacity: 1;
        transform: scaleY(1);
    }
}



@media (max-width: 2100px) {
    .responsive-container {
        margin-left: 2%;
        margin-right: 2%;
    }
}

@keyframes decorFlyIn {
    from {
        opacity: 0;
        transform: translateX(50px) scale(0.5) rotate(-20deg);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1) rotate(0deg);
    }
}

@media (max-width: 850px) {
    .hero-decor {
        display: none;
    }
}



@media (min-width: 3500px) {
    .hero-decor {
        display: none;
    }
}

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.carousel-button {
    background: var(--primary-color);
    border: none;
    color: var(--text-primary);
    font-size: 2.5em;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}

.carousel-button svg {
    width: 24px;
    height: 24px;
    display: block;
}

.carousel-button:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: scale(1.1);
}

.carousel-button:disabled {
    background: var(--secondary-color);
    cursor: not-allowed;
    opacity: 0.5;
}

.carousel-button:active:not(:disabled) {
    transform: scale(0.95);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
    padding-bottom: 20px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--secondary-color);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot:hover {
    background: var(--primary-hover);
    transform: scale(1.2);
}

.carousel-dot.active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 6px;
}

#project-header {
    text-align: center;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 15px 20px;
    }

    nav ul {
        flex-direction: column;
        gap: 12px;
        margin-top: 15px;
        text-align: center;
    }

    .hero-header {
        font-size: 3rem;
        margin-left: 5%;
        margin-top: 8%;
    }

    .hero-name {
        font-size: 2rem;
        margin-left: 5%;
        margin-top: 5%;
    }

    .hero-desc {
        font-size: 1.2rem;
        margin-left: 5%;
        margin-top: 5%;
    }

    .hero-separator {
        margin-top: 8%;
    }

    #hero {
        padding: 40px 15px;
    }

    section {
        padding: 30px 15px;
    }

    .project {
        padding: 20px 15px;
    }

    #portfolio {
        padding-left: 10px;
        padding-right: 10px;
        margin-top: 5%;
        margin-bottom: 5%;
    }

    .carousel-button {
        width: 45px;
        height: 45px;
        font-size: 1.8em;
    }

    .carousel-button svg {
        width: 18px;
        height: 18px;
    }

    .content-wrapper {
        flex-direction: column;
        gap: 20px;
        padding: 20px 15px;
    }

    #things-i-do {
        padding: 30px 0;
    }

    #things-i-do h2 {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .skills-grid {
        gap: 15px;
        grid-template-columns: 1fr;
    }

    .skill-card {
        padding: 25px 20px;
    }

    .skill-card h3 {
        font-size: 1.2em;
    }

    .skill-card p {
        font-size: 0.95em;
    }

    .skill-icon-wrapper {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }

    .skill-icon-wrapper img {
        width: 30px;
        height: 30px;
    }

    #about-me {
        padding: 30px 0;
    }

    #about-me h2 {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .about-text-card {
        padding: 25px 20px;
        border-radius: 15px;
    }

    .about-greeting {
        font-size: 1.4em;
        margin-bottom: 15px;
    }

    .about-intro p {
        font-size: 1em;
        line-height: 1.7;
    }

    .stats-grid {
        gap: 12px;
        margin-top: 8%;
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 20px 15px;
        border-radius: 15px;
    }

    .stat-number {
        font-size: 2.5em;
    }

    .stat-label {
        font-size: 1em;
    }

    .programming-languages-container {
        padding: 25px 15px;
        margin: 5% 3%;
    }

    .programming-languages-container h2 {
        font-size: 1.8em;
        margin-bottom: 20px;
    }

    .languages-container {
        gap: 15px;
    }

    .language-card {
        min-width: 140px;
        max-width: none;
        flex: 1 1 calc(50% - 15px);
        padding: 20px 15px;
    }

    .language-card img {
        width: 50px;
        height: 50px;
        margin-bottom: 10px;
    }

    .language-card p {
        font-size: 1.1em;
        margin-bottom: 10px;
    }

    #contact {
        padding: 30px 20px;
        margin: 5% 3%;
        border-radius: 15px;
    }

    #contact h2 {
        font-size: 1.8em;
    }

    .contact-intro {
        font-size: 1em;
        margin-bottom: 25px;
    }

    .contact-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 20px 15px;
    }

    .contact-icon {
        width: 50px;
        height: 50px;
    }

    .contact-icon svg,
    .contact-icon img {
        width: 24px;
        height: 24px;
    }

    .contact-details h3 {
        font-size: 1.2em;
    }

    .contact-link {
        font-size: 0.9em;
    }

    footer {
        padding: 15px;
        font-size: 0.85em;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .hero-header {
        font-size: 2.2rem;
    }

    .hero-name {
        font-size: 1.5rem;
    }

    .hero-desc {
        font-size: 1rem;
    }

    .skill-card,
    .stat-card,
    .about-text-card {
        padding: 20px 15px;
    }

    .stat-number {
        font-size: 2em;
    }

    .language-card {
        flex: 1 1 100%;
    }

    .carousel-nav {
        gap: 10px;
    }

    .carousel-button {
        width: 40px;
        height: 40px;
    }

    .carousel-dots {
        gap: 8px;
    }

    .carousel-dot {
        width: 10px;
        height: 10px;
    }

    .carousel-dot.active {
        width: 24px;
    }
}

@media (max-width: 850px) {
    .hero-name::before {
        display: none;
    }
}

@media (max-width: 2200px) {
    .hero-decor {
        display: none;
    }
}

@keyframes flyInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (min-width: 1400px) {
    h1 {
        font-size: 5em;
    }
    h2 {
        font-size: 3.5em;
    }
    h3 {
        font-size: 2.7em;
    }
    .hero-header {
        font-size: 10rem;
    }
    .hero-name {
        font-size: 6rem;
    }
    .hero-desc {
        font-size: 3rem;
    }
    p,
    li {
        font-size: 1.6em;
    }
}

.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.fullscreen-overlay.active {
    opacity: 1;
    visibility: visible;
}

.fullscreen-container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.fullscreen-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.fullscreen-image.animate-zoom {
    animation: zoomIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes zoomIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.fullscreen-close {
    position: absolute;
    top: -50px;
    right: -10px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 3em;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
    opacity: 0;
    animation: fadeInControl 0.3s ease 0.15s forwards;
}

@keyframes fadeInControl {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fullscreen-close:hover {
    color: var(--primary-color);
    transform: rotate(90deg) scale(1.2);
}

.fullscreen-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    border: none;
    color: var(--text-primary);
    font-size: 3em;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    z-index: 10001;
    padding: 0;
    opacity: 0;
    animation: fadeInControl 0.3s ease 0.15s forwards;
}

.fullscreen-nav svg {
    width: 28px;
    height: 28px;
    display: block;
}

.fullscreen-nav:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.fullscreen-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.fullscreen-prev {
    left: -80px;
}

.fullscreen-next {
    right: -80px;
}

.fullscreen-caption {
    margin-top: 20px;
    color: var(--text-primary);
    font-size: 1.2em;
    text-align: center;
    font-style: italic;
    max-width: 80%;
    opacity: 0;
    animation: fadeInControl 0.3s ease 0.2s forwards;
}

.fullscreen-counter {
    margin-top: 10px;
    color: var(--primary-color);
    font-size: 1em;
    font-weight: bold;
    opacity: 0;
    animation: fadeInControl 0.3s ease 0.25s forwards;
}

.muted {
    color: var(--text-muted);
    text-align: center;
    font-size: 1.2em;
}

@media (max-width: 768px) {
    .fullscreen-nav {
        width: 50px;
        height: 50px;
        font-size: 2.5em;
    }

    .fullscreen-nav svg {
        width: 24px;
        height: 24px;
    }

    .fullscreen-prev {
        left: 10px;
    }

    .fullscreen-next {
        right: 10px;
    }

    .fullscreen-close {
        top: 10px;
        right: 10px;
        font-size: 2.5em;
    }

    .fullscreen-caption {
        font-size: 1em;
        max-width: 90%;
    }

    .fullscreen-image {
        max-height: 70vh;
    }
}
