/* Reset và Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #424242;
    background: linear-gradient(135deg, #f8fafe 0%, #ffffff 25%, #f0f4f8 50%, #ffffff 75%, #f8fafe 100%);
    background-attachment: fixed;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #2196F3;
    border: 2px solid #2196F3;
}

.btn-secondary:hover {
    background: #2196F3;
    color: white;
    transform: translateY(-2px);
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #2196F3;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #2196F3, #BBDEFB);
    border-radius: 2px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-logo h2 {
    color: #2196F3;
    font-size: 1.8rem;
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #424242;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #2196F3;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2196F3;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #2196F3;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #e8f4fd 0%, #f8fafe 25%, #ffffff 50%, #f0f7ff 75%, #e3f2fd 100%);
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    animation: fadeInLeft 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    color: #424242;
    margin-bottom: 1rem;
}

.highlight {
    color: #2196F3;
    background: linear-gradient(135deg, #2196F3, #1976D2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.hero-description {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

.hero-image {
    display: flex;
    justify-content: center;
    animation: fadeInRight 1s ease-out;
}

.image-container {
    position: relative;
}

.profile-img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: 0 10px 30px rgba(33, 150, 243, 0.3);
    position: relative;
    z-index: 2;
}

.image-background {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #BBDEFB, #2196F3);
    border-radius: 50%;
    z-index: 1;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid #2196F3;
    border-bottom: 2px solid #2196F3;
    transform: rotate(45deg);
}

/* About Section */
.about {
    padding: 100px 0;
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 50%, #f8fafe 100%);
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.about-paragraph {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-align: justify;
}

.personal-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.value-item:hover {
    transform: translateY(-5px);
}

.value-item i {
    font-size: 3rem;
    color: #2196F3;
    margin-bottom: 1rem;
}

.value-item h4 {
    color: #424242;
    margin-bottom: 1rem;
}

.value-item p {
    color: #666;
    font-size: 1rem;
}

/* Skills Section */
.skills {
    padding: 100px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 50%, #ffffff 100%);
}

.skills-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.skills-category h3 {
    color: #2196F3;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.skill-item {
    margin-bottom: 2rem;
}

.skill-name {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #424242;
}

.skill-bar {
    height: 8px;
    background: #EEEEEE;
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(135deg, #2196F3, #BBDEFB);
    border-radius: 4px;
    width: 0;
    transition: width 1.5s ease-in-out;
}

.soft-skills {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    align-items: center;
    width: 100%;
    margin-top: 24px; 
}

.soft-skill-tag {
    white-space: nowrap;
    padding: 8px 16px;
    background: #f0f0f0;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 500;
}

/* Experience Section */
.experience {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafe 0%, #f0f7ff 50%, #e8f4fd 100%);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #2196F3, #BBDEFB);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 80px;
}

.timeline-dot {
    position: absolute;
    left: 21px;
    top: 0;
    width: 20px;
    height: 20px;
    background: #2196F3;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px #BBDEFB;
}

.timeline-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.timeline-content h3 {
    color: #2196F3;
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    color: #424242;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.timeline-date {
    color: #666;
    font-style: italic;
    font-size: 0.9rem;
}

.timeline-content ul {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.timeline-content li {
    margin-bottom: 0.5rem;
    color: #666;
}

/* Projects Section */
.projects {
    padding: 100px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 25%, #f8fafe 75%, #ffffff 100%);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(33, 150, 243, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #2196F3;
    font-size: 1.2rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.project-link:hover {
    transform: scale(1.1);
}

.project-content {
    padding: 2rem;
}

.project-content h3 {
    color: #424242;
    margin-bottom: 1rem;
}

.project-content p {
    color: #666;
    margin-bottom: 1.5rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: linear-gradient(135deg, #E3F2FD, #BBDEFB);
    color: #1976D2;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Education Section */
.education {
    padding: 100px 0;
    background: linear-gradient(135deg, #e8f4fd 0%, #f0f7ff 50%, #f8fafe 100%);
}

.education-content {
    max-width: 1000px;
    margin: 0 auto;
}

.education-item {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
}

.education-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2196F3, #BBDEFB);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.5rem;
}

.education-details h3 {
    color: #2196F3;
    margin-bottom: 0.5rem;
}

.education-details h4 {
    color: #424242;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.education-date {
    color: #666;
    font-style: italic;
    font-size: 0.9rem;
}

.certification-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.cert-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.cert-item:hover {
    transform: translateY(-5px);
}

.cert-item i {
    font-size: 3rem;
    color: #2196F3;
    margin-bottom: 1rem;
}

.cert-item h4 {
    color: #424242;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.cert-item p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.cert-item span {
    color: #2196F3;
    font-weight: 500;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 50%, #ffffff 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h3 {
    color: #2196F3;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item i {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #E3F2FD, #BBDEFB);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #2196F3;
    flex-shrink: 0;
}

.contact-item span {
    color: #424242;
    font-weight: 500;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2196F3, #BBDEFB);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
}

.contact-form {
    background: #F5F5F5;
    padding: 2rem;
    border-radius: 15px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #EEEEEE;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2196F3;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: #424242;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* Animations */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-10px) translateX(-50%);
    }
    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .profile-img,
    .image-background {
        width: 250px;
        height: 250px;
    }
    
    .skills-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .education-item {
        flex-direction: column;
        text-align: center;
    }
    
    .timeline {
        padding-left: 1rem;
    }
    
    .timeline::before {
        left: 15px;
    }
    
    .timeline-dot {
        left: 6px;
    }
    
    .timeline-item {
        padding-left: 50px;
    }
    
    .personal-values {
        grid-template-columns: 1fr;
    }
    
    .certification-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 200px;
    }
    
    .profile-img,
    .image-background {
        width: 200px;
        height: 200px;
    }
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #EEEEEE;
    border-top: 5px solid #2196F3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Additional Background Enhancements */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* Subtle overlay patterns */
.hero::before,
.about::before,
.skills::before,
.experience::before,
.projects::before,
.education::before,
.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(33, 150, 243, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(33, 150, 243, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

/* Card backgrounds with subtle gradients */
.value-item,
.project-card,
.cert-item,
.education-item,
.timeline-content {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border: 1px solid rgba(33, 150, 243, 0.1);
}

.contact-form {
    background: linear-gradient(135deg, #f8fafe 0%, #ffffff 100%);
    border: 1px solid rgba(33, 150, 243, 0.1);
}

/* Enhanced navbar */
.navbar {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 254, 0.95) 100%);
    border-bottom: 1px solid rgba(33, 150, 243, 0.1);
}

.navbar.scrolled {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 254, 0.98) 100%);
    box-shadow: 0 2px 20px rgba(33, 150, 243, 0.15);
}

/* Dark Mode Toggle */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dark-mode-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(33, 150, 243, 0.1);
    color: #2196F3;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.dark-mode-toggle:hover {
    background: rgba(33, 150, 243, 0.2);
    transform: translateY(-2px);
}

.dark-mode-toggle:active {
    transform: translateY(0);
}

/* Dark Mode Styles */
body.dark-mode .dark-mode-toggle {
    background: rgba(100, 181, 246, 0.2);
    color: #bbdefb;
}
body.dark-mode .navbar {
    background: rgba(26, 26, 46, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .navbar.scrolled {
    background: rgba(26, 26, 46, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

body.dark-mode .nav-link {
    color: #e0e0e0;
}

body.dark-mode .hero {
    background: linear-gradient(135deg, #0f1a2e 0%, #16213e 25%, #1a1a2e 50%, #16213e 75%, #0f1a2e 100%);
}

body.dark-mode .hero-title {
    color: #e0e0e0;
}

body.dark-mode .hero-subtitle,
body.dark-mode .hero-description {
    color: #b0b0b0;
}

body.dark-mode .profile-img {
    border: 5px solid #1a1a2e;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

body.dark-mode .section-title {
    color: #64b5f6;
}

body.dark-mode .about {
    background: linear-gradient(135deg, #16213e 0%, #1a1a2e 50%, #0f3460 100%);
}

body.dark-mode .about-paragraph {
    color: #b0b0b0;
}

body.dark-mode .value-item,
body.dark-mode .project-card,
body.dark-mode .cert-item,
body.dark-mode .education-item,
body.dark-mode .timeline-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}

body.dark-mode .value-item h4,
body.dark-mode .project-content h3,
body.dark-mode .cert-item h4,
body.dark-mode .education-details h3,
body.dark-mode .education-details h4,
body.dark-mode .timeline-content h3,
body.dark-mode .timeline-content h4 {
    color: #64b5f6;
}

body.dark-mode .value-item p,
body.dark-mode .project-content p,
body.dark-mode .cert-item p,
body.dark-mode .education-date,
body.dark-mode .timeline-date,
body.dark-mode .timeline-content li {
    color: #b0b0b0;
}

body.dark-mode .skills {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #1a1a2e 100%);
}

body.dark-mode .skills-category h3 {
    color: #64b5f6;
}

body.dark-mode .skill-name {
    color: #e0e0e0;
}

body.dark-mode .skill-bar {
    background: #2d2d44;
}

body.dark-mode .experience {
    background: linear-gradient(135deg, #0f3460 0%, #16213e 50%, #1a1a2e 100%);
}

body.dark-mode .timeline::before {
    background: linear-gradient(to bottom, #64b5f6, #bbdefb);
}

body.dark-mode .timeline-dot {
    background: #64b5f6;
    border: 3px solid #1a1a2e;
    box-shadow: 0 0 0 3px #bbdefb;
}

body.dark-mode .projects {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 25%, #0f3460 75%, #1a1a2e 100%);
}

body.dark-mode .education {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

body.dark-mode .education-icon {
    background: linear-gradient(135deg, #64b5f6, #bbdefb);
    color: #1a1a2e;
}

body.dark-mode .contact {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #1a1a2e 100%);
}

body.dark-mode .contact-form {
    background: linear-gradient(135deg, #16213e 0%, #1a1a2e 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
    background: #2d2d44;
    border: 2px solid #444466;
    color: #e0e0e0;
}

body.dark-mode .form-group input:focus,
body.dark-mode .form-group textarea:focus {
    border-color: #64b5f6;
}

body.dark-mode .contact-item span {
    color: #e0e0e0;
}

body.dark-mode .footer {
    background: #0f1a2e;
}

body.dark-mode .btn-primary {
    background: linear-gradient(135deg, #64b5f6, #1976d2);
    box-shadow: 0 4px 15px rgba(100, 181, 246, 0.3);
}

body.dark-mode .btn-secondary {
    color: #64b5f6;
    border: 2px solid #64b5f6;
}

body.dark-mode .btn-secondary:hover {
    background: #64b5f6;
    color: #1a1a2e;
}

body.dark-mode .soft-skill-tag {
    background: linear-gradient(135deg, #1a237e, #283593);
    color: #bbdefb;
}

body.dark-mode .tech-tag {
    background: linear-gradient(135deg, #1a237e, #283593);
    color: #bbdefb;
}

body.dark-mode .dark-mode-toggle {
    background: linear-gradient(135deg, #f57c00, #ef6c00);
    box-shadow: 0 4px 15px rgba(245, 124, 0, 0.3);
}

body.dark-mode .dark-mode-toggle:hover {
    background: rgba(100, 181, 243, 0.3);
}

/* Animated Sun/Moon Icon */
.dark-mode-toggle .sun-icon,
.dark-mode-toggle .moon-icon {
    position: absolute;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.dark-mode-toggle .sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.dark-mode-toggle .moon-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

body.dark-mode .dark-mode-toggle .sun-icon {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

body.dark-mode .dark-mode-toggle .moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .nav-controls {
        position: absolute;
        right: 70px;
        top: 50%;
        transform: translateY(-50%);
    }
}

/* Lazy loading styles */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Fallback for no-JS environments */
.no-js img[loading="lazy"] {
    display: none;
}

/* Loading skeleton for images */
.image-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .scroll-indicator,
    .dark-mode-toggle:hover,
    .project-card:hover {
        animation: none;
        transform: none;
    }
}

/* Portfolio Filtering */
.filter-controls {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 2rem 0;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    background: rgba(33, 150, 243, 0.1);
    color: #2196F3;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: #2196F3;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(33, 150, 243, 0.3);
}

.project-card.filtered {
    display: none;
}

/* Dark mode for filter buttons */
body.dark-mode .filter-btn {
    background: rgba(100, 181, 246, 0.2);
    color: #bbdefb;
}

body.dark-mode .filter-btn:hover,
body.dark-mode .filter-btn.active {
    background: #64b5f6;
    color: #1a1a2e;
}

/* Responsive adjustments for filters */
@media (max-width: 768px) {
    .filter-controls {
        gap: 0.3rem;
    }
    
    .filter-btn {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }
}