/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    padding-top: 0;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    padding: 0 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

body.dark-mode .header.scrolled {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.98), rgba(29, 78, 216, 0.98));
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 0;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    background: linear-gradient(135deg, #4285f4, #0052cc);
    color: white;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1.2rem;
}

.email {
    color: #666;
    font-size: 0.9rem;
}

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

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #4285f4;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: #4285f4;
    transition: width 0.3s ease;
}

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

.cta-btn {
    background: #4285f4;
    color: white !important;
    padding: 0.7rem 1.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    background: #0052cc;
    transform: translateY(-2px);
}

.cta-btn::after {
    display: none;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    background: none;
    border: 2px solid #4285f4;
    border-radius: 50px;
    padding: 0.5rem;
    cursor: pointer;
    position: relative;
    width: 50px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    overflow: hidden;
}

.dark-mode-toggle:hover {
    background: rgba(66, 133, 244, 0.1);
    transform: scale(1.05);
}

.dark-mode-toggle i {
    position: absolute;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    color: #4285f4;
}

.dark-mode-toggle .fa-moon {
    opacity: 1;
    transform: translateY(0);
}

.dark-mode-toggle .fa-sun {
    opacity: 0;
    transform: translateY(20px);
}

/* Dark mode active state */
body.dark-mode .dark-mode-toggle .fa-moon {
    opacity: 0;
    transform: translateY(-20px);
}

body.dark-mode .dark-mode-toggle .fa-sun {
    opacity: 1;
    transform: translateY(0);
    color: #ffd700;
}

body.dark-mode .dark-mode-toggle {
    border-color: #ffd700;
}

body.dark-mode .dark-mode-toggle:hover {
    background: rgba(255, 215, 0, 0.1);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f8faff 0%, #e8f2ff 100%);
    min-height: 100vh;
    padding: 8rem 2rem 4rem;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-text {
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

.hero-subtitle {
    background: linear-gradient(135deg, #4285f4, #0052cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 3.8rem;
    letter-spacing: -1px;
}

.hero-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.download-cv-btn {
    display: inline-block;
    background: transparent;
    color: #4285f4;
    padding: 0.8rem 2rem;
    border: 2px solid #4285f4;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-bottom: 3rem;
}

.download-cv-btn:hover {
    background: #4285f4;
    color: white;
    transform: translateY(-2px);
}

/* Stats Section */
.stats {
    display: flex;
    gap: 3rem;
    background: linear-gradient(135deg, #4285f4, #0052cc);
    padding: 2rem 3rem;
    border-radius: 12px;
    color: white;
    margin-top: 2rem;
}

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

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.3;
}

/* Hero Image */
.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-img {
    width: 400px;
    height: 400px;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.profile-img:hover {
    transform: translateY(-10px);
}

/* Social Links */
.social-links {
    position: absolute;
    right: -2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-link {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #4285f4;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-link:hover {
    background: #4285f4;
    color: white;
    transform: translateX(5px) scale(1.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 3.2rem;
    }
    
    .stats {
        justify-content: center;
        gap: 2rem;
    }
    
    .social-links {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        flex-direction: row;
        justify-content: center;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu.active {
        display: flex;
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    .nav-menu.active .dark-mode-toggle {
        margin: 1rem 0;
        align-self: center;
    }
    
    .hero-section {
        padding: 6rem 1rem 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 2.8rem;
    }
    
    .profile-img {
        width: 300px;
        height: 300px;
    }
    
    .stats {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .stat-item {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        text-align: left;
    }
    
    .stat-number {
        margin-bottom: 0;
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 2.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .profile-img {
        width: 250px;
        height: 250px;
    }
}

/* Services Section */
.services-section {
    background: #f8faff;
    padding: 6rem 2rem;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #4285f4;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.service-item {
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-item.active {
    background: linear-gradient(135deg, #4285f4, #0052cc);
    color: white;
}

.service-item:not(.active) {
    background: transparent;
    color: #333;
}

.service-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 2.5rem;
    gap: 2rem;
}

.service-left {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-shrink: 0;
}

.service-number {
    font-size: 2rem;
    font-weight: 700;
    opacity: 0.8;
}

.service-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
}

.service-item:not(.active) .service-title {
    color: #4285f4;
}

.service-description {
    flex: 1;
    margin: 0 2rem;
}

.service-description p {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    opacity: 0.9;
}

.service-item:not(.active) .service-description p {
    color: #666;
    opacity: 1;
}

.service-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.service-item.active .service-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.service-item:not(.active) .service-icon {
    background: rgba(66, 133, 244, 0.1);
    color: #4285f4;
    border: 2px solid transparent;
}

.service-icon:hover {
    transform: scale(1.1);
}

.service-icon i {
    font-size: 1.2rem;
}

/* Services Responsive */
@media (max-width: 768px) {
    .services-section {
        padding: 4rem 1rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .service-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .service-left {
        gap: 1rem;
    }
    
    .service-number {
        font-size: 1.5rem;
    }
    
    .service-title {
        font-size: 1.4rem;
    }
    
    .service-description {
        margin: 0;
        order: 2;
    }
    
    .service-icon {
        align-self: flex-end;
        order: 3;
    }
}

/* Projects Section */
.projects-section {
    background: white;
    padding: 6rem 2rem;
}

.project-filters {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #4285f4, #0052cc);
    padding: 0.5rem;
    border-radius: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
}

.filter-btn {
    background: transparent;
    border: none;
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.filter-btn.active {
    background: white;
    color: #4285f4;
    opacity: 1;
    font-weight: 600;
}

.filter-btn:hover:not(.active) {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

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

.project-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    cursor: pointer;
}

.project-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.project-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
}

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

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

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

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

.project-info {
    text-align: center;
    color: white;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.project-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: white;
    color: #4285f4;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: #f0f0f0;
    transform: scale(1.1);
}

/* Project filtering animation */
.project-item.hide {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.project-item.show {
    opacity: 1;
    transform: scale(1);
    pointer-events: all;
}

/* Projects Responsive */
@media (max-width: 768px) {
    .projects-section {
        padding: 4rem 1rem;
    }
    
    .project-filters {
        flex-wrap: wrap;
        gap: 0.3rem;
        padding: 0.3rem;
        max-width: 100%;
    }
    
    .filter-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-image {
        height: 220px;
    }
}

/* Experience and Education Section */
.experience-education-section {
    background: #f8faff;
    padding: 6rem 2rem;
}

.exp-edu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.experience-column,
.education-column {
    position: relative;
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #4285f4;
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 2rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -2rem;
    top: 0;
    width: 16px;
    height: 16px;
    background: #4285f4;
    border: 4px solid #f8faff;
    border-radius: 50%;
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.2);
    box-shadow: 0 0 0 8px rgba(66, 133, 244, 0.2);
}

.timeline-content {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 20px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 12px solid white;
}

.timeline-item:hover .timeline-content {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(66, 133, 244, 0.15);
}

.timeline-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #4285f4;
    margin-bottom: 0.5rem;
}

.timeline-period {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    margin-bottom: 1rem;
    display: block;
}

.timeline-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

/* Responsive Design for Experience/Education */
@media (max-width: 968px) {
    .exp-edu-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .experience-education-section {
        padding: 4rem 1rem;
    }
    
    .timeline {
        padding-left: 1.5rem;
    }
    
    .timeline-item {
        padding-left: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .timeline-dot {
        left: -1.5rem;
        width: 12px;
        height: 12px;
    }
    
    .timeline-content {
        padding: 1.5rem;
    }
    
    .timeline-content::before {
        left: -10px;
        border-right-width: 10px;
    }
    
    .timeline-title {
        font-size: 1.2rem;
    }
    
    .timeline-description {
        font-size: 0.9rem;
    }
}

/* Skills Section */
.skills-section {
    background: linear-gradient(135deg, #4285f4, #0052cc);
    padding: 6rem 2rem;
    color: white;
}

.skills-section .section-title {
    color: white;
    text-align: center;
    margin-bottom: 4rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.skill-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.skill-item:hover::before {
    opacity: 1;
}

.skill-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.skill-item:hover .skill-icon {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.3);
}

.skill-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.skill-icon svg {
    width: 50px;
    height: 50px;
}

.skill-percentage {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.skill-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: white;
}

.skill-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #ffffff, #f0f8ff);
    border-radius: 3px;
    width: 0;
    transition: width 1.5s ease-in-out;
    position: relative;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8));
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-20px);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(20px);
        opacity: 0;
    }
}

/* Skills Responsive */
@media (max-width: 768px) {
    .skills-section {
        padding: 4rem 1rem;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 2rem;
    }
    
    .skill-item {
        padding: 2rem 1.5rem;
    }
    
    .skill-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .skill-icon img,
    .skill-icon svg {
        width: 35px;
        height: 35px;
    }
    
    .skill-percentage {
        font-size: 1.5rem;
    }
    
    .skill-name {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

/* Contact Section */
.contact-section {
    background: #f8faff;
    padding: 6rem 2rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.contact-info {
    padding-right: 2rem;
}

.contact-info .section-title {
    color: #4285f4;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.contact-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 3rem;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: #4285f4;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(66, 133, 244, 0.3);
}

.contact-text span {
    font-size: 1rem;
    color: #333;
    font-weight: 500;
}

/* Contact Form */
.contact-form-wrapper {
    background: linear-gradient(135deg, #4285f4, #0052cc);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(66, 133, 244, 0.3);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.send-btn {
    background: white;
    color: #4285f4;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: center;
    min-width: 150px;
}

.send-btn:hover {
    background: #f0f8ff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.send-btn:active {
    transform: translateY(-1px);
}

/* Contact Responsive */
@media (max-width: 968px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-info {
        padding-right: 0;
        text-align: center;
    }
    
    .contact-items {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 4rem 1rem;
    }
    
    .contact-form-wrapper {
        padding: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-info .section-title {
        font-size: 2rem;
    }
    
    .contact-items {
        gap: 1rem;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .contact-form-wrapper {
        padding: 1.5rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .send-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* Footer Section */
.footer {
    background: linear-gradient(135deg, #4285f4, #0052cc);
    padding: 3rem 2rem 2rem;
    color: white;
}

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

.footer-top {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-logo .logo {
    background: white;
    color: #4285f4;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.footer-logo .logo:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.footer-nav {
    width: 100%;
    display: flex;
    justify-content: center;
}

.footer-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.footer-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    opacity: 0.9;
}

.footer-link:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.footer-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: white;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.footer-link:hover::after {
    width: 100%;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
}

.copyright {
    font-size: 0.95rem;
    opacity: 0.8;
    margin: 0;
}

/* Footer Responsive */
@media (max-width: 768px) {
    .footer {
        padding: 2rem 1rem 1.5rem;
    }
    
    .footer-menu {
        flex-wrap: wrap;
        gap: 1.5rem;
        justify-content: center;
    }
    
    .footer-link {
        font-size: 0.9rem;
    }
    
    .footer-top {
        gap: 1.5rem;
        padding-bottom: 1.5rem;
    }
    
    .footer-bottom {
        padding-top: 1.5rem;
    }
}

@media (max-width: 480px) {
    .footer-menu {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-top {
        gap: 1rem;
    }
    
    .copyright {
        font-size: 0.85rem;
    }
}

/* Dark Mode Styles */
body.dark-mode {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

/* Dark Mode Header */
body.dark-mode .header {
    background: linear-gradient(135deg, #1e3a8a, #1d4ed8);
    border-bottom-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

body.dark-mode .logo {
    background: white;
    color: #4285f4;
}

body.dark-mode .email {
    color: rgba(255, 255, 255, 0.8);
}

body.dark-mode .nav-link {
    color: white;
}

body.dark-mode .nav-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

body.dark-mode .cta-btn {
    background: white;
    color: #4285f4 !important;
}

body.dark-mode .cta-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #0052cc !important;
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #4285f4, #0052cc, #4285f4);
    background-size: 200% 100%;
    animation: shimmer-progress 2s linear infinite;
    transition: width 0.1s ease-out;
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 10px rgba(66, 133, 244, 0.5);
}

@keyframes shimmer-progress {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Dark mode scroll progress */
body.dark-mode .scroll-progress {
    background: rgba(255, 255, 255, 0.1);
}

body.dark-mode .scroll-progress-bar {
    background: linear-gradient(90deg, #ffffff, #f0f8ff, #ffffff);
    background-size: 200% 100%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Scroll progress responsive */
@media (max-width: 768px) {
    .scroll-progress {
        height: 2px;
    }
}

/* Dark Mode Hero Section */
body.dark-mode .hero-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

body.dark-mode .hero-title {
    color: #ffffff;
}

body.dark-mode .hero-description {
    color: #b0b0b0;
}

body.dark-mode .download-cv-btn {
    background: transparent;
    color: #4285f4;
    border-color: #4285f4;
}

body.dark-mode .download-cv-btn:hover {
    background: #4285f4;
    color: white;
}

/* Dark Mode Services Section */
body.dark-mode .services-section {
    background: #2d2d2d;
}

body.dark-mode .service-item:not(.active) {
    background: #1a1a1a;
    color: #e0e0e0;
}

body.dark-mode .service-item:not(.active) .service-description p {
    color: #b0b0b0;
}

body.dark-mode .service-item:not(.active) .service-icon {
    background: rgba(66, 133, 244, 0.2);
}

/* Dark Mode Projects Section */
body.dark-mode .projects-section {
    background: #1a1a1a;
}

body.dark-mode .project-item {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

body.dark-mode .project-item:hover {
    box-shadow: 0 20px 50px rgba(66, 133, 244, 0.3);
}

/* Dark Mode Experience/Education Section */
body.dark-mode .experience-education-section {
    background: #1a1a1a;
}

body.dark-mode .timeline-content {
    background: linear-gradient(135deg, #4285f4, #0052cc);
    color: white;
    box-shadow: 0 5px 20px rgba(66, 133, 244, 0.3);
}

body.dark-mode .timeline-content::before {
    border-right-color: #4285f4;
}

body.dark-mode .timeline-title {
    color: white;
}

body.dark-mode .timeline-period {
    color: rgba(255, 255, 255, 0.8);
}

body.dark-mode .timeline-description {
    color: rgba(255, 255, 255, 0.9);
}

body.dark-mode .timeline-dot {
    border-color: #1a1a1a;
    background: white;
}

body.dark-mode .timeline::before {
    background: white;
}

/* Dark Mode Contact Section */
body.dark-mode .contact-section {
    background: #1a1a1a;
}

body.dark-mode .contact-description {
    color: #b0b0b0;
}

body.dark-mode .contact-text span {
    color: #e0e0e0;
}

/* Dark Mode Mobile Menu */
body.dark-mode .nav-menu.active {
    background: #1a1a1a;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .mobile-menu-toggle span {
    background: #e0e0e0;
}

/* Dark Mode Transitions */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Preserve gradient sections in dark mode - keep original gradient backgrounds */

/* Dark mode scrollbar */
body.dark-mode::-webkit-scrollbar {
    width: 8px;
}

body.dark-mode::-webkit-scrollbar-track {
    background: #1a1a1a;
}

body.dark-mode::-webkit-scrollbar-thumb {
    background: #4285f4;
    border-radius: 4px;
}

body.dark-mode::-webkit-scrollbar-thumb:hover {
    background: #0052cc;
}