/* ===== RESET & BASE STYLES ===== */

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

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --bg-primary: #ffffff;
    --bg-secondary: #f7fafc;
    --bg-dark: #1a202c;
    --border-color: #e2e8f0;
    --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 20px 40px rgba(0, 0, 0, 0.2);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}


/* Mobile touch optimization */

@media (max-width: 768px) {
    body {
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
    /* Allow text selection for content */
    p,
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    span,
    div {
        -webkit-user-select: text;
        -moz-user-select: text;
        -ms-user-select: text;
        user-select: text;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* ===== NAVIGATION ===== */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}


/* Mobile navbar optimization */

@media (max-width: 768px) {
    .navbar {
        padding: 0.6rem 0;
    }
    .nav-container {
        padding: 0 10px;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .nav-logo a {
        font-size: 1.3rem;
    }
    .nav-menu {
        flex: 1;
        justify-content: center;
        min-width: 0;
    }
}

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

.nav-logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: scale(1.05);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
    padding: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}


/* ===== HOME SECTION ===== */

.home-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.home-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}


/* ===== BACKGROUND EFFECTS ===== */

.moon {
    position: absolute;
    top: 10%;
    right: 10%;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.3) 70%);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    animation: float 6s ease-in-out infinite;
    z-index: 1;
}

.firefly {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.9) 15%, rgba(255, 255, 255, 0.7) 40%, rgba(255, 255, 255, 0.3) 70%, transparent 100%);
    border-radius: 50%;
    animation: firefly 12s ease-in-out infinite;
    z-index: 1;
    box-shadow: 0 0 20px rgba(255, 255, 255, 1), 0 0 35px rgba(255, 255, 255, 0.6);
}

.firefly:nth-child(1) {
    top: 5%;
    left: 10%;
    animation-delay: 0s;
}

.firefly:nth-child(2) {
    top: 15%;
    left: 85%;
    animation-delay: 1.5s;
}

.firefly:nth-child(3) {
    top: 25%;
    left: 20%;
    animation-delay: 3s;
}

.firefly:nth-child(4) {
    top: 35%;
    left: 75%;
    animation-delay: 4.5s;
}

.firefly:nth-child(5) {
    top: 45%;
    left: 15%;
    animation-delay: 6s;
}

.firefly:nth-child(6) {
    top: 55%;
    left: 80%;
    animation-delay: 7.5s;
}

.firefly:nth-child(7) {
    top: 65%;
    left: 25%;
    animation-delay: 9s;
}

.firefly:nth-child(8) {
    top: 75%;
    left: 70%;
    animation-delay: 10.5s;
}

.firefly:nth-child(9) {
    top: 85%;
    left: 10%;
    animation-delay: 12s;
}

.firefly:nth-child(10) {
    top: 95%;
    left: 60%;
    animation-delay: 13.5s;
}

.firefly:nth-child(11) {
    top: 8%;
    left: 50%;
    animation-delay: 15s;
}

.firefly:nth-child(12) {
    top: 18%;
    left: 30%;
    animation-delay: 16.5s;
}

.firefly:nth-child(13) {
    top: 28%;
    left: 90%;
    animation-delay: 18s;
}

.firefly:nth-child(14) {
    top: 38%;
    left: 40%;
    animation-delay: 19.5s;
}

.firefly:nth-child(15) {
    top: 48%;
    left: 65%;
    animation-delay: 21s;
}

.firefly:nth-child(16) {
    top: 58%;
    left: 5%;
    animation-delay: 22.5s;
}

.firefly:nth-child(17) {
    top: 68%;
    left: 95%;
    animation-delay: 24s;
}

.firefly:nth-child(18) {
    top: 78%;
    left: 35%;
    animation-delay: 25.5s;
}

.firefly:nth-child(19) {
    top: 88%;
    left: 80%;
    animation-delay: 27s;
}

.firefly:nth-child(20) {
    top: 12%;
    left: 70%;
    animation-delay: 28.5s;
}

.stars {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s ease-in-out infinite;
}

.star:nth-child(1) {
    top: 15%;
    left: 20%;
    animation-delay: 0s;
}

.star:nth-child(2) {
    top: 25%;
    left: 80%;
    animation-delay: 0.5s;
}

.star:nth-child(3) {
    top: 35%;
    left: 40%;
    animation-delay: 1s;
}

.star:nth-child(4) {
    top: 45%;
    left: 70%;
    animation-delay: 1.5s;
}

.star:nth-child(5) {
    top: 55%;
    left: 30%;
    animation-delay: 2s;
}

.star:nth-child(6) {
    top: 65%;
    left: 90%;
    animation-delay: 2.5s;
}

.star:nth-child(7) {
    top: 75%;
    left: 10%;
    animation-delay: 3s;
}

.star:nth-child(8) {
    top: 85%;
    left: 60%;
    animation-delay: 3.5s;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

@keyframes firefly {
    0% {
        opacity: 0.2;
        transform: translateY(0px) translateX(0px) scale(0.8);
    }
    15% {
        opacity: 1;
        transform: translateY(-20px) translateX(25px) scale(1.5);
    }
    30% {
        opacity: 0.8;
        transform: translateY(-40px) translateX(-15px) scale(1.2);
    }
    45% {
        opacity: 1;
        transform: translateY(-60px) translateX(30px) scale(1.4);
    }
    60% {
        opacity: 0.9;
        transform: translateY(-35px) translateX(-25px) scale(1.1);
    }
    75% {
        opacity: 1;
        transform: translateY(-80px) translateX(20px) scale(1.3);
    }
    90% {
        opacity: 0.6;
        transform: translateY(-50px) translateX(-30px) scale(0.9);
    }
    100% {
        opacity: 0.2;
        transform: translateY(0px) translateX(0px) scale(0.8);
    }
}

@keyframes twinkle {
    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.home-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.home-image {
    text-align: center;
}

.avatar-container {
    position: relative;
    display: inline-block;
}

.avatar-background {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    border-radius: 50%;
    animation: rotate 3s linear infinite;
    z-index: -1;
}

.avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, transparent 30%, rgba(255, 255, 255, 0.1) 70%);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

.profile-img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-heavy);
    transition: transform 0.3s ease;
}

.profile-img:hover {
    transform: scale(1.05);
}

.home-text {
    color: white;
}

.home-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    text-align: left;
}

.title-line {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
    font-size: 2.5rem;
    font-weight: 600;
    color: white;
}

.title-line:nth-child(1) {
    animation-delay: 0.2s;
    font-size: 2rem;
    font-weight: 400;
    opacity: 0.9;
}

.title-line:nth-child(2) {
    animation-delay: 0.4s;
    font-size: 2.8rem;
    font-weight: 700;
}

.title-line:nth-child(3) {
    animation-delay: 0.6s;
    font-size: 1.8rem;
    font-weight: 500;
    opacity: 0.8;
}

.highlight {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.85;
    line-height: 1.6;
    font-weight: 400;
}

.home-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.8;
    font-weight: 500;
    margin-top: 0.2rem;
}

.home-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.social-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    margin: 0 15px;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border-color: white;
}

.social-btn.github {
    color: #333;
    background: rgba(255, 255, 255, 0.9);
}

.social-btn.facebook {
    color: #1877f2;
    background: rgba(255, 255, 255, 0.9);
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-secondary);
    color: white;
    box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border: 2px solid white;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}


/* ===== SECTION STYLES ===== */

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.achievement-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease;
}

.achievement-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.achievement-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.achievement-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.achievement-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}


/* ===== SKILLS SECTION ===== */

.skills-section {
    padding: 100px 0;
    background: var(--bg-primary);
}

.skills-content {
    max-width: 1200px;
    margin: 0 auto;
}

.skills-category {
    margin-bottom: 4rem;
}

.skills-category h3 {
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
    color: var(--text-primary);
    text-align: center;
    font-weight: 600;
}

.skills-category h3 i {
    color: var(--accent-color);
    margin-right: 0.5rem;
}

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

.skill-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.skill-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.skill-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.skill-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}


/* ===== PROJECTS SECTION ===== */

.projects-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(102, 126, 234, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-link {
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
}

.project-content {
    padding: 2rem;
}

.project-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.project-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: var(--gradient-primary);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

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


/* ===== CONTACT SECTION ===== */

.contact-section {
    padding: 100px 0;
    background: var(--bg-primary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateX(5px);
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    color: var(--text-primary);
}

.contact-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.contact-form {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-light);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}


/* Mobile form optimization */

@media (max-width: 768px) {
    .form-group input,
    .form-group textarea {
        padding: 1.2rem;
        font-size: 16px;
        /* Prevent zoom on iOS */
        border-radius: 8px;
    }
    .form-group input:focus,
    .form-group textarea:focus {
        transform: scale(1.02);
    }
    /* Mobile button optimization */
    .btn {
        min-height: 48px;
        /* Touch target size */
        padding: 15px 30px;
        font-size: 16px;
        border-radius: 25px;
    }
    .btn:active {
        transform: scale(0.98);
    }
    .social-btn {
        min-width: 48px;
        min-height: 48px;
    }
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}


/* ===== FOOTER ===== */

.footer {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: white;
    padding: 3rem 0 1.5rem;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), var(--primary-color), var(--accent-color), transparent);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.footer-section {
    text-align: left;
}

.footer-section h3 {
    color: var(--accent-color);
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gradient-secondary);
    border-radius: 1px;
}

.footer-section p {
    color: #cbd5e0;
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: #cbd5e0;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: inline-block;
    position: relative;
}

.footer-section ul li a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.footer-section ul li a::before {
    content: '→';
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--accent-color);
}

.footer-section ul li a:hover::before {
    opacity: 1;
    left: -20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
    grid-column: 1 / -1;
    text-align: center;
}

.footer-bottom p {
    color: #a0aec0;
    font-size: 0.9rem;
    font-weight: 400;
}


/* ===== RESPONSIVE DESIGN ===== */


/* Tablet và Mobile nhỏ */

@media (max-width: 768px) {
    .hamburger {
        display: none;
    }
    .nav-menu {
        display: flex;
        flex-direction: row;
        position: static;
        background: transparent;
        width: auto;
        height: auto;
        text-align: center;
        padding: 0;
        box-shadow: none;
        overflow: visible;
        gap: 0.5rem;
    }
    .nav-menu li {
        margin: 0;
        opacity: 1;
        transform: none;
        transition: none;
    }
    .nav-menu.active li {
        opacity: 1;
        transform: none;
    }
    .nav-menu li:nth-child(1) {
        transition-delay: 0s;
    }
    .nav-menu li:nth-child(2) {
        transition-delay: 0s;
    }
    .nav-menu li:nth-child(3) {
        transition-delay: 0s;
    }
    .nav-menu li:nth-child(4) {
        transition-delay: 0s;
    }
    .nav-menu li:nth-child(5) {
        transition-delay: 0s;
    }
    .nav-menu.active {
        left: auto;
    }
    .nav-menu li {
        margin: 0;
    }
    .nav-link {
        font-size: 0.9rem;
        padding: 0.5rem 0.8rem;
        display: block;
        border-radius: 5px;
        transition: all 0.3s ease;
        white-space: nowrap;
    }
    .nav-link:hover {
        background: var(--gradient-primary);
        color: white;
        transform: none;
    }
    /* Home Section Mobile */
    .home-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding-top: 2rem;
    }
    .home-title {
        font-size: 1.8rem;
        text-align: center;
    }
    .title-line {
        font-size: 1.8rem;
    }
    .title-line:nth-child(1) {
        font-size: 1.5rem;
    }
    .title-line:nth-child(2) {
        font-size: 2rem;
    }
    .title-line:nth-child(3) {
        font-size: 1.4rem;
    }
    .home-stats {
        justify-content: center;
        gap: 1.5rem;
    }
    .stat-number {
        font-size: 1.8rem;
    }
    .stat-label {
        font-size: 0.8rem;
    }
    .home-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 15px 30px;
    }
    .social-buttons {
        justify-content: center;
        gap: 1rem;
    }
    .social-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin: 0 10px;
    }
    /* Profile Image Mobile */
    .profile-img {
        width: 250px;
        height: 250px;
    }
    /* About Section Mobile */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .achievement-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    .achievement-icon {
        align-self: center;
    }
    /* Skills Section Mobile */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .skill-card {
        padding: 1.5rem;
    }
    .skill-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    /* Projects Section Mobile */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .project-content {
        padding: 1.5rem;
    }
    .project-tech {
        justify-content: center;
    }
    .project-links {
        justify-content: center;
    }
    /* Contact Section Mobile */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    .contact-form {
        padding: 1.5rem;
    }
    /* Footer Mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    .footer-section {
        text-align: center;
    }
    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    /* Section Titles Mobile */
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    .container {
        padding: 0 15px;
    }
    /* Mobile background effects */
    .moon {
        width: 60px;
        height: 60px;
        top: 5%;
        right: 5%;
    }
    .firefly {
        display: none;
    }
    .star {
        width: 1.5px;
        height: 1.5px;
    }
    /* Reduce animations on mobile for better performance */
    .avatar-background {
        animation: rotate 6s linear infinite;
    }
    .avatar-overlay {
        animation: pulse 3s ease-in-out infinite;
    }
    .firefly {
        animation: none;
    }
    .moon {
        animation: float 8s ease-in-out infinite;
    }
    .star {
        animation: twinkle 4s ease-in-out infinite;
    }
    /* Scroll indicator mobile */
    .scroll-indicator {
        bottom: 20px;
    }
    .scroll-arrow {
        width: 25px;
        height: 25px;
    }
}


/* Mobile rất nhỏ */

@media (max-width: 480px) {
    .navbar {
        padding: 0.5rem 0;
    }
    .nav-container {
        padding: 0 8px;
        gap: 0.3rem;
    }
    .nav-logo a {
        font-size: 1.2rem;
    }
    .nav-menu {
        gap: 0.3rem;
    }
    .nav-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
    .home-title {
        font-size: 1.4rem;
    }
    .title-line {
        font-size: 1.4rem;
    }
    .title-line:nth-child(1) {
        font-size: 1.2rem;
    }
    .title-line:nth-child(2) {
        font-size: 1.6rem;
    }
    .title-line:nth-child(3) {
        font-size: 1.1rem;
    }
    .home-subtitle {
        font-size: 1rem;
    }
    .home-stats {
        flex-direction: column;
        gap: 1rem;
    }
    .stat-number {
        font-size: 1.5rem;
    }
    .profile-img {
        width: 200px;
        height: 200px;
    }
    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    .social-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        margin: 0 8px;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .skill-card {
        padding: 1.2rem;
    }
    .project-content {
        padding: 1.2rem;
    }
    .contact-form {
        padding: 1.2rem;
    }
    .container {
        padding: 0 10px;
    }
}


/* Mobile landscape */

@media (max-width: 768px) and (orientation: landscape) {
    .home-content {
        padding-top: 1rem;
        gap: 1.5rem;
    }
    .profile-img {
        width: 180px;
        height: 180px;
    }
    .home-title {
        font-size: 1.6rem;
    }
    .title-line {
        font-size: 1.6rem;
    }
    .title-line:nth-child(1) {
        font-size: 1.3rem;
    }
    .title-line:nth-child(2) {
        font-size: 1.8rem;
    }
    .title-line:nth-child(3) {
        font-size: 1.2rem;
    }
    .home-stats {
        gap: 1rem;
    }
    .stat-number {
        font-size: 1.6rem;
    }
}


/* Tablet */

@media (min-width: 769px) and (max-width: 1024px) {
    .home-content {
        gap: 3rem;
    }
    .profile-img {
        width: 280px;
        height: 280px;
    }
    .home-title {
        font-size: 2.2rem;
    }
    .title-line {
        font-size: 2.2rem;
    }
    .title-line:nth-child(1) {
        font-size: 1.8rem;
    }
    .title-line:nth-child(2) {
        font-size: 2.5rem;
    }
    .title-line:nth-child(3) {
        font-size: 1.6rem;
    }
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ===== ANIMATIONS ===== */

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

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

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


/* ===== UTILITY CLASSES ===== */

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

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}