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

body {
    font-family: 'Arial', sans-serif;
    /* Background Image with dark overlay for text readability */
    /*background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)), url('background-image.jpg') center top/cover no-repeat;*/
    
    /* Alternative: Solid Black Background */
     background: #000000; 
    
    color: white;
    overflow-x: hidden;
    transition: all 0.3s ease;
    position: relative;
}











/* Dark mode default styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 4rem;
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 1rem 2rem;
    border-radius: 15px;
}

.section-title:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.25), rgba(0, 153, 204, 0.15));
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    color: #00ffff;
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 45px rgba(0, 212, 255, 0.4), 0 0 30px rgba(0, 255, 255, 0.3);
    border: 2px solid rgba(0, 212, 255, 0.7);
    text-shadow: 0 0 25px rgba(0, 255, 255, 0.8);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    border-radius: 2px;
    transition: all 0.4s ease;
}

.section-title:hover::after {
    width: 120px;
    height: 4px;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.6);
}

/* About Section Dark Mode */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    color: #00d4ff;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.about-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.info-item {
    padding: 1rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 10px;
    transition: all 0.3s;
    color: #ccc;
}

.info-item:hover {
    background: rgba(0, 212, 255, 0.3);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.3), 0 0 15px rgba(0, 255, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.7);
}

.team-btn {
    text-decoration: none;
    cursor: pointer;
    display: block;
}

.team-btn span {
    color: #aaa;
    font-size: 0.9rem;
    margin-top: 0.3rem;
    display: block;
}

.team-btn:hover span {
    color: #00d4ff;
}

.details-btn {
    text-decoration: none;
    cursor: pointer;
    display: block;
}

.details-btn span {
    color: #aaa;
    font-size: 0.9rem;
    margin-top: 0.3rem;
    display: block;
}

.details-btn:hover span {
    color: #00d4ff;
}

/* Details Page Styles */
.details-page {
    padding: 8rem 5% 4rem;
    min-height: 100vh;
    position: relative;
}

/* Animated Background */
.details-bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.floating-shape {
    position: absolute;
    background: linear-gradient(45deg, rgba(0, 212, 255, 0.1), rgba(0, 153, 204, 0.05));
    border-radius: 50%;
    animation: floatShape 20s ease-in-out infinite;
}

.shape-1 {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation-delay: 5s;
}

.shape-3 {
    width: 80px;
    height: 80px;
    bottom: 30%;
    left: 20%;
    animation-delay: 10s;
}

.shape-4 {
    width: 120px;
    height: 120px;
    top: 40%;
    right: 30%;
    animation-delay: 15s;
}

@keyframes floatShape {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-30px) rotate(180deg);
        opacity: 0.6;
    }
}

.page-header {
    text-align: center;
    margin-bottom: 6rem;
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #00d4ff, #0099cc, #00ffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    }
    50% {
        text-shadow: 0 0 40px rgba(0, 212, 255, 0.8), 0 0 60px rgba(0, 255, 255, 0.4);
    }
}

.page-subtitle {
    font-size: 1.2rem;
    color: #aaa;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-line {
    width: 100px;
    height: 3px;
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    margin: 1rem auto;
    border-radius: 2px;
    position: relative;
}

.section-line::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #00d4ff;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.8);
}

.details-section {
    margin-bottom: 5rem;
}

.education-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #00d4ff, #0099cc);
    transform: translateX(-50%);
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.education-item {
    position: relative;
    margin-bottom: 4rem;
    display: flex;
    align-items: center;
}

.education-item:nth-child(even) .education-card {
    margin-left: auto;
    margin-right: 2rem;
}

.education-item:nth-child(odd) .education-card {
    margin-right: auto;
    margin-left: 2rem;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    border-radius: 50%;
    border: 4px solid #000;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.8);
    z-index: 2;
    animation: pulse 2s infinite;
}

.education-card {
    width: 45%;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(0, 153, 204, 0.08));
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}

.education-card:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.3), rgba(0, 153, 204, 0.2));
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 212, 255, 0.4), 0 0 30px rgba(0, 255, 255, 0.3);
    border-color: #00ffff;
}

.education-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
    transition: all 0.3s ease;
}

.education-card:hover .education-icon {
    transform: rotateY(360deg) scale(1.1);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.6);
}

.education-badge {
    display: inline-block;
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.achievements {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.achievement-tag {
    background: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 212, 255, 0.4);
}

.education-content h3 {
    color: #00d4ff;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.institution {
    color: #ccc;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.year {
    color: #00d4ff;
    font-weight: 600;
    margin-bottom: 1rem;
}

.description {
    color: #aaa;
    line-height: 1.6;
}

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

.cert-item {
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.12), rgba(0, 153, 204, 0.06));
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.cert-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.cert-item:hover::before {
    left: 100%;
}

.cert-item:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.25), rgba(0, 153, 204, 0.15));
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 212, 255, 0.4), 0 0 30px rgba(0, 255, 255, 0.3);
    border-color: #00ffff;
}

.cert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.cert-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
    transition: all 0.3s ease;
}

.cert-item:hover .cert-icon {
    transform: rotateY(360deg) scale(1.1);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.6);
}

.cert-badge {
    background: linear-gradient(45deg, #00ff88, #00cc6a);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3);
}

.cert-skills {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.skill-tag {
    background: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 212, 255, 0.4);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: rgba(0, 212, 255, 0.3);
    transform: translateY(-2px);
}

.cert-content h3 {
    color: #00d4ff;
    margin-bottom: 0.5rem;
}

.issuer {
    color: #ccc;
    margin-bottom: 0.3rem;
}

.additional-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.info-card {
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.12), rgba(0, 153, 204, 0.06));
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.info-card:hover::before {
    left: 100%;
}

.info-card:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.25), rgba(0, 153, 204, 0.15));
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 212, 255, 0.4), 0 0 30px rgba(0, 255, 255, 0.3);
    border-color: #00ffff;
}

.info-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
    transition: all 0.3s ease;
}

.info-card:hover .info-icon {
    transform: rotateY(360deg) scale(1.1);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.6);
}

.info-content h3 {
    color: #00d4ff;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.info-content p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.info-detail {
    color: #00d4ff;
    font-size: 0.9rem;
    font-style: italic;
}

.language-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.language-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.lang-name {
    color: #ccc;
    font-weight: 500;
}

.lang-level {
    background: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 212, 255, 0.4);
}

.achievement-list {
    list-style: none;
    padding: 0;
}

.achievement-list li {
    color: #ccc;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.achievement-list li i {
    color: #00d4ff;
    width: 16px;
}

.interests-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}

.interest-tag {
    background: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(0, 212, 255, 0.4);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.interest-tag:hover {
    background: rgba(0, 212, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

/* Contact CTA Section */
.details-cta {
    margin-top: 6rem;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(0, 153, 204, 0.08));
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.details-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: ctaShine 4s ease-in-out infinite;
}

@keyframes ctaShine {
    0%, 100% {
        transform: rotate(45deg) translate(-50%, -50%);
    }
    50% {
        transform: rotate(45deg) translate(50%, 50%);
    }
}

.cta-content h2 {
    font-size: 2.5rem;
    color: #00d4ff;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.cta-content p {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.cta-btn {
    padding: 1rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.cta-btn.primary {
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    color: white;
    border: 2px solid transparent;
}

.cta-btn.primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 212, 255, 0.5), 0 0 20px rgba(0, 255, 255, 0.3);
}

.cta-btn.secondary {
    background: transparent;
    color: #00d4ff;
    border: 2px solid #00d4ff;
}

.cta-btn.secondary:hover {
    background: #00ffff;
    color: #000;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 255, 255, 0.5), 0 0 20px rgba(0, 255, 255, 0.3);
    border-color: #00ffff;
}

/* Light mode styles for details page */
body.light-mode .education-item,
body.light-mode .cert-item,
body.light-mode .info-card {
    background: rgba(0, 123, 255, 0.1);
    border-color: rgba(0, 123, 255, 0.3);
}

body.light-mode .education-item:hover,
body.light-mode .cert-item:hover,
body.light-mode .info-card:hover {
    background: rgba(0, 123, 255, 0.2);
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.3);
}

body.light-mode .education-icon,
body.light-mode .cert-icon {
    background: linear-gradient(45deg, #007bff, #0056b3);
}

body.light-mode .education-content h3,
body.light-mode .cert-content h3,
body.light-mode .info-card h3,
body.light-mode .year {
    color: #007bff;
}

body.light-mode .institution,
body.light-mode .issuer,
body.light-mode .description,
body.light-mode .info-card p {
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }
    
    .timeline-line {
        left: 2rem;
    }
    
    .education-item:nth-child(even) .education-card,
    .education-item:nth-child(odd) .education-card {
        width: calc(100% - 4rem);
        margin-left: 4rem;
        margin-right: 0;
    }
    
    .timeline-dot {
        left: 2rem;
    }
    
    .certifications-grid {
        grid-template-columns: 1fr;
    }
    
    .additional-info {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .floating-shape {
        display: none;
    }
}

.info-item strong {
    color: #00d4ff;
    display: block;
    margin-bottom: 0.5rem;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image img {
    width: 420px;
    height: 420px;
    border-radius: 20px;
    object-fit: cover;
    object-position: center 30%;
    border: none;
    transition: all 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

body.light-mode {
    background: linear-gradient(rgba(248, 249, 250, 0.9), rgba(233, 236, 239, 0.9)), url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=1920&h=1080&fit=crop') center/cover;
    color: #333;
}

body.light-mode .navbar {
    background: rgba(248, 249, 250, 0.9);
}

body.light-mode .logo:hover {
    filter: brightness(0.8);
}

body.light-mode .nav-menu a {
    color: #333;
}

body.light-mode .nav-menu a::before {
    background: linear-gradient(90deg, transparent, rgba(0, 123, 255, 0.2), transparent);
}

body.light-mode .nav-menu a:hover {
    color: #0056ff;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.25), rgba(0, 86, 179, 0.15));
    border-color: rgba(0, 123, 255, 0.7);
    box-shadow: 0 15px 35px rgba(0, 123, 255, 0.4), 0 0 20px rgba(0, 86, 255, 0.3);
    text-shadow: 0 0 15px rgba(0, 86, 255, 0.8);
}



body.light-mode .name {
    background: linear-gradient(45deg, #007bff, #0056b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-mode .greeting {
    color: #007bff;
}

body.light-mode .title,
body.light-mode .description {
    color: #666;
}

body.light-mode .typing-text {
    color: #007bff;
    border-right-color: #007bff;
}

body.light-mode .social-links a {
    background: rgba(0, 123, 255, 0.1);
    border-color: #007bff;
    color: #007bff;
}

body.light-mode .social-links a:hover {
    background: #0056ff;
    color: white;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 86, 255, 0.5), 0 0 20px rgba(0, 86, 255, 0.3);
    border-color: #0056ff;
}

body.light-mode .btn-primary {
    background: linear-gradient(45deg, #007bff, #0056b3);
}

body.light-mode .btn-secondary {
    color: #007bff;
    border-color: #007bff;
}

body.light-mode .btn-secondary:hover {
    background: #0056ff;
    color: white;
    box-shadow: 0 15px 35px rgba(0, 86, 255, 0.5), 0 0 20px rgba(0, 86, 255, 0.3);
    border-color: #0056ff;
    transform: translateY(-5px) scale(1.05);
}ry:hover {
    background: #0056ff;
    color: white;
    box-shadow: 0 15px 35px rgba(0, 86, 255, 0.5), 0 0 20px rgba(0, 86, 255, 0.3);
    border-color: #0056ff;
    transform: translateY(-5px) scale(1.05);
}

body.light-mode .stat-item {
    background: rgba(0, 123, 255, 0.1);
    border-color: rgba(0, 123, 255, 0.3);
}

body.light-mode .stat-item:hover {
    background: rgba(0, 123, 255, 0.2);
}

body.light-mode .stat-item h3 {
    color: #007bff;
}

body.light-mode .stat-item p {
    color: #666;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 3%;
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 20, 25, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    min-height: 70px;
    box-sizing: border-box;
}

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

.logo {
    width: 80px;
    height: 60px;
    object-fit: contain;
    transition: all 0.3s ease;
    cursor: pointer;
}

.logo:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.6rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: transparent;
    border: 2px solid transparent;
    white-space: nowrap;
    display: inline-block;
    margin: 0.2rem;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.nav-menu a:hover::before {
    left: 100%;
}

.nav-menu a:hover {
    color: #00ffff;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.3), rgba(0, 153, 204, 0.2));
    border-color: rgba(0, 212, 255, 0.8);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.4), 0 0 15px rgba(0, 255, 255, 0.2);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.6);
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}



.hire-btn {
    background: linear-gradient(45deg, #ff6b9d, #c44569);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: transform 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    white-space: nowrap;
}

.hire-btn:hover {
    transform: translateY(-2px);
}

.hero {
    min-height: 100vh;
    padding: 8rem 5% 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 107, 157, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(0, 153, 204, 0.1) 0%, transparent 50%);
    animation: gradientShift 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes gradientShift {
    0%, 100% { opacity: 0.3; transform: scale(1) rotate(0deg); }
    50% { opacity: 0.6; transform: scale(1.1) rotate(180deg); }
}

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

.greeting {
    color: #00d4ff;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: slideInLeft 1s ease-out 0.5s forwards;
}

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

.name {
    font-size: 4.5rem;
    font-weight: 900;
    font-family: 'Georgia', 'Times New Roman', serif;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    opacity: 0;
    animation: slideInUp 1s ease-out 0.8s forwards, textGlow 3s ease-in-out 2s infinite;
}

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

@keyframes textGlow {
    0%, 100% { text-shadow: 0 0 20px rgba(0, 212, 255, 0.3); }
    50% { text-shadow: 0 0 40px rgba(0, 212, 255, 0.8), 0 0 60px rgba(0, 255, 255, 0.4); }
}

.title {
    font-size: 1.5rem;
    color: #ccc;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: slideInRight 1s ease-out 1.1s forwards;
}

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

.typing-text {
    color: #00d4ff;
    border-right: 2px solid #00d4ff;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { border-color: #00d4ff; }
    51%, 100% { border-color: transparent; }
}

.description {
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.4s forwards;
}

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

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

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid #00d4ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00d4ff;
    text-decoration: none;
    transition: all 0.3s;
    opacity: 0;
    transform: translateY(20px);
    animation: socialSlideIn 0.6s ease-out forwards;
}

.social-links a:nth-child(1) { animation-delay: 0.2s; }
.social-links a:nth-child(2) { animation-delay: 0.4s; }
.social-links a:nth-child(3) { animation-delay: 0.6s; }
.social-links a:nth-child(4) { animation-delay: 0.8s; }

@keyframes socialSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.social-links a:hover {
    background: #00ffff;
    color: #0f1419;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 255, 255, 0.5), 0 0 20px rgba(0, 255, 255, 0.3);
    border-color: #00ffff;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    opacity: 0;
    animation: bounceIn 1s ease-out 1.8s forwards;
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.3); }
    50% { opacity: 1; transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

.btn-primary {
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: transform 0.3s;
}

.btn-secondary {
    background: transparent;
    color: #00d4ff;
    border: 2px solid #00d4ff;
    padding: 1rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary:hover, .btn-secondary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 212, 255, 0.4);
}

.btn-secondary:hover {
    background: #00ffff;
    color: #0f1419;
    box-shadow: 0 15px 35px rgba(0, 255, 255, 0.5), 0 0 20px rgba(0, 255, 255, 0.3);
    border-color: #00ffff;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-container {
    position: relative;
    width: 350px;
    height: 350px;
    opacity: 0;
    animation: zoomIn 1s ease-out 1.2s forwards;
}

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

.image-container:hover {
    transform: scale(1.05);
}

.image-container img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 30%;
    transition: all 0.3s ease;
    border: 5px solid transparent;
    background: linear-gradient(45deg, #00d4ff, #0099cc, #ff6b9d, #c44569) border-box;
    background-clip: padding-box;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.4), inset 0 0 0 5px rgba(0, 212, 255, 0.2);
}

.image-container:hover img {
    filter: brightness(1.1) contrast(1.1);
    box-shadow: 0 0 50px rgba(0, 212, 255, 0.6), inset 0 0 0 5px rgba(0, 212, 255, 0.4);
    transform: scale(1.05);
}

body.light-mode .image-container img {
    background: linear-gradient(45deg, #007bff, #0056b3, #28a745, #20c997) border-box;
    box-shadow: 0 0 30px rgba(0, 123, 255, 0.4), inset 0 0 0 5px rgba(0, 123, 255, 0.2);
}

body.light-mode .image-container:hover img {
    box-shadow: 0 0 50px rgba(0, 123, 255, 0.6), inset 0 0 0 5px rgba(0, 123, 255, 0.4);
}

.stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-top: 6rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
    opacity: 0;
    animation: slideInBottom 1s ease-out 2.2s forwards;
}

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

.stat-item {
    position: relative;
    text-align: center;
    padding: 1.5rem 1rem 2rem;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(0, 153, 204, 0.08));
    border: 2px solid transparent;
    border-radius: 20px;
    cursor: pointer;
    overflow: hidden;
    backdrop-filter: blur(15px);
    animation: floatBox 4s ease-in-out infinite, glowBox 3s ease-in-out infinite;
    min-height: 140px;
}



.stat-item:nth-child(1) { animation-delay: 0s; }
.stat-item:nth-child(2) { animation-delay: 0.5s; }
.stat-item:nth-child(3) { animation-delay: 1s; }
.stat-item:nth-child(4) { animation-delay: 1.5s; }

@keyframes floatBox {
    0%, 100% {
        transform: translateY(0px);
        box-shadow: 0 8px 32px rgba(0, 212, 255, 0.1);
    }
    50% {
        transform: translateY(-8px);
        box-shadow: 0 16px 40px rgba(0, 212, 255, 0.2);
    }
}

@keyframes glowBox {
    0%, 100% {
        background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(0, 153, 204, 0.08));
        border-color: rgba(0, 212, 255, 0.3);
    }
    50% {
        background: linear-gradient(135deg, rgba(0, 212, 255, 0.25), rgba(0, 153, 204, 0.15));
        border-color: rgba(0, 212, 255, 0.5);
    }
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #00d4ff, #0099cc, #ff6b9d, #c44569);
    border-radius: 25px;
    padding: 2px;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-item::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.stat-item:hover {
    transform: translateY(-20px) scale(1.08);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.4), rgba(0, 153, 204, 0.25));
    box-shadow: 0 25px 70px rgba(0, 212, 255, 0.5), 0 0 30px rgba(0, 255, 255, 0.4), 0 0 0 2px rgba(0, 212, 255, 0.8);
}

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

.stat-item:hover::after {
    opacity: 1;
    transform: rotate(45deg) translate(50%, 50%);
}



.stat-item:hover .stat-icon {
    transform: translateX(-50%) rotateY(360deg) scale(1.1);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.6);
}

.stat-item h3 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #00d4ff;
    margin: 0.8rem 0 0.6rem;
    position: relative;
    z-index: 2;
    animation: glowText 3s ease-in-out infinite, scaleText 4s ease-in-out infinite;
}

@keyframes glowText {
    0%, 100% {
        text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
        color: #00d4ff;
    }
    50% {
        text-shadow: 0 0 30px rgba(0, 212, 255, 0.8), 0 0 40px rgba(0, 212, 255, 0.4);
        color: #00ffff;
    }
}

@keyframes scaleText {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.stat-item:hover h3 {
    transform: scale(1.1);
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.8);
}

.stat-item p {
    color: #ccc;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    line-height: 1.3;
    position: relative;
    z-index: 2;
    animation: fadeText 5s ease-in-out infinite;
}

@keyframes fadeText {
    0%, 100% {
        opacity: 0.8;
        color: #ccc;
    }
    50% {
        opacity: 1;
        color: #fff;
    }
}

.stat-item:hover p {
    color: #fff;
}



/* Light mode styles for stats */
body.light-mode .stat-item {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.15), rgba(0, 86, 179, 0.08));
    box-shadow: 0 8px 32px rgba(0, 123, 255, 0.1);
}

body.light-mode .stat-item::before {
    background: linear-gradient(135deg, #007bff, #0056b3, #28a745, #20c997);
}

body.light-mode .stat-item::after {
    background: linear-gradient(45deg, transparent, rgba(0, 123, 255, 0.1), transparent);
}

body.light-mode .stat-item:hover {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.4), rgba(0, 86, 179, 0.25));
    box-shadow: 0 25px 70px rgba(0, 123, 255, 0.5), 0 0 30px rgba(0, 86, 255, 0.4), 0 0 0 2px rgba(0, 123, 255, 0.8);
    transform: translateY(-20px) scale(1.08);
}



body.light-mode .stat-item h3 {
    color: #007bff;
    text-shadow: 0 0 20px rgba(0, 123, 255, 0.5);
}

body.light-mode .stat-item:hover h3 {
    text-shadow: 0 0 30px rgba(0, 123, 255, 0.8);
}

body.light-mode .stat-item p {
    color: #666;
}

body.light-mode .stat-item:hover p {
    color: #333;
}

/* About Section */
.about {
    padding: 8rem 5% 4rem;
    background: rgba(0, 0, 0, 0.1);
}

/* Light mode styles for About section */
body.light-mode .about {
    background: rgba(248, 249, 250, 0.5);
}

body.light-mode .section-title {
    background: linear-gradient(45deg, #007bff, #0056b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-mode .section-title:hover {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.25), rgba(0, 86, 179, 0.15));
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    color: #0056ff;
    box-shadow: 0 20px 45px rgba(0, 123, 255, 0.4), 0 0 30px rgba(0, 86, 255, 0.3);
    border-color: rgba(0, 123, 255, 0.7);
    text-shadow: 0 0 25px rgba(0, 86, 255, 0.8);
}

body.light-mode .section-title::after {
    background: linear-gradient(45deg, #007bff, #0056b3);
}

body.light-mode .section-title:hover::after {
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.6);
}

body.light-mode .about-text h3 {
    color: #007bff;
}

body.light-mode .about-text p {
    color: #666;
}

body.light-mode .info-item {
    background: rgba(0, 123, 255, 0.1);
    border-color: rgba(0, 123, 255, 0.3);
}

body.light-mode .info-item:hover {
    background: rgba(0, 123, 255, 0.3);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.3), 0 0 15px rgba(0, 86, 255, 0.2);
    border-color: rgba(0, 123, 255, 0.7);
}

body.light-mode .info-item strong {
    color: #007bff;
}

body.light-mode .about-image img {
    border: none;
}

@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .name {
        font-size: 3rem;
        letter-spacing: 1px;
    }
    
    .stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .stat-item {
        padding: 1.5rem 1rem 1.8rem;
        min-height: 120px;
    }
    
    .stat-item h3 {
        font-size: 2rem;
        margin: 0.8rem 0 0.5rem;
    }
    
    .stat-item p {
        font-size: 0.8rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-info {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-top: 4rem;
    }
    
    .stat-item {
        padding: 1.2rem 0.8rem 1.5rem;
        margin: 0 0.5rem;
        min-height: 100px;
    }
    
    .stat-item h3 {
        font-size: 1.8rem;
        margin: 0.6rem 0 0.4rem;
    }
    
    .stat-item p {
        font-size: 0.75rem;
    }
    
    .modal-content {
        width: 98%;
        margin: 5% auto;
        padding: 1rem;
    }
    
    .project-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .demo-btn, .source-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Skills Section */
.skills {
    padding: 8rem 5% 4rem;
    background: rgba(0, 0, 0, 0.2);
}

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

.technical-skills h3,
.professional-skills h3 {
    font-size: 1.8rem;
    color: #00d4ff;
    margin-bottom: 2rem;
    text-align: center;
    border-bottom: 2px solid #00d4ff;
    padding-bottom: 0.5rem;
}

.skill-item {
    margin-bottom: 2rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: #ccc;
    font-weight: 500;
}

.skill-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    border-radius: 4px;
    width: 0;
    transition: width 2s ease-in-out;
}

.circular-skills {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

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

.circle {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: conic-gradient(#00d4ff 0deg, #00d4ff 0deg, rgba(255, 255, 255, 0.1) 0deg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 1s ease-in-out;
}

.circle .inner {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #0f1419;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: #00d4ff;
}

.circular-skill p {
    color: #ccc;
    font-weight: 500;
}

/* Light mode styles for Skills */
body.light-mode .skills {
    background: rgba(248, 249, 250, 0.8);
}

body.light-mode .technical-skills h3,
body.light-mode .professional-skills h3 {
    color: #007bff;
    border-bottom-color: #007bff;
}

body.light-mode .skill-info {
    color: #666;
}

body.light-mode .skill-bar {
    background: rgba(0, 0, 0, 0.1);
}

body.light-mode .skill-progress {
    background: linear-gradient(45deg, #007bff, #0056b3);
}

body.light-mode .circle {
    background: conic-gradient(#007bff 0deg, #007bff 0deg, rgba(0, 0, 0, 0.1) 0deg);
}

body.light-mode .circle .inner {
    background: #f8f9fa;
    color: #007bff;
}

body.light-mode .circular-skill p {
    color: #666;
}

/* Skills responsive */
@media (max-width: 768px) {
    .skills-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .circular-skills {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    
    .circle {
        width: 100px;
        height: 100px;
    }
    
    .circle .inner {
        width: 75px;
        height: 75px;
        font-size: 1rem;
    }
}
/* Services Section */
.services {
    padding: 8rem 5% 4rem;
    background: rgba(0, 0, 0, 0.1);
}

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

.service-card {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 153, 204, 0.05));
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 20px;
    padding: 2.5rem 1.8rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    backdrop-filter: blur(10px);
    min-height: 320px;
}

/* Projects page cards - same size as service cards */
.projects-grid .service-card {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 153, 204, 0.05));
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 20px;
    padding: 2.5rem 1.8rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    backdrop-filter: blur(10px);
    min-height: 320px;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transition: left 0.5s;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-20px) scale(1.05);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.3), rgba(0, 153, 204, 0.2));
    border-color: #00ffff;
    box-shadow: 0 25px 50px rgba(0, 212, 255, 0.4), 0 0 25px rgba(0, 255, 255, 0.3);
}

.service-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2.5rem;
    color: white;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.service-card:hover .service-icon {
    transform: rotateY(360deg) scale(1.1);
    box-shadow: 0 20px 50px rgba(0, 212, 255, 0.7), 0 0 30px rgba(0, 255, 255, 0.5);
}

.service-card h3 {
    color: #00d4ff;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.service-card p {
    color: #ccc;
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Light mode styles for Services */
body.light-mode .services {
    background: rgba(248, 249, 250, 0.5);
}

body.light-mode .service-card {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1), rgba(0, 86, 179, 0.05));
    border-color: rgba(0, 123, 255, 0.2);
}

body.light-mode .service-card::before {
    background: linear-gradient(90deg, transparent, rgba(0, 123, 255, 0.1), transparent);
}

body.light-mode .service-card:hover {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.3), rgba(0, 86, 179, 0.2));
    border-color: #0056ff;
    box-shadow: 0 25px 50px rgba(0, 123, 255, 0.4), 0 0 25px rgba(0, 86, 255, 0.3);
    transform: translateY(-20px) scale(1.05);
}

body.light-mode .service-icon {
    background: linear-gradient(135deg, #007bff, #0056b3);
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.3);
}

body.light-mode .service-card:hover .service-icon {
    box-shadow: 0 20px 50px rgba(0, 123, 255, 0.7), 0 0 30px rgba(0, 86, 255, 0.5);
    transform: rotateY(360deg) scale(1.1);
}

body.light-mode .service-card h3 {
    color: #007bff;
}

body.light-mode .service-card p {
    color: #666;
}

/* Services responsive */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .service-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .service-card h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .services {
        padding: 6rem 3% 3rem;
    }
    
    .service-card {
        padding: 1.5rem 1rem;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
}
/* Portfolio Timeline Section */
.portfolio {
    padding: 8rem 5% 4rem;
    background: rgba(0, 0, 0, 0.2);
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 4rem auto;
    padding: 2rem 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: linear-gradient(180deg, #00d4ff, #0099cc);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.timeline-item {
    padding: 2rem 3rem;
    position: relative;
    background-color: inherit;
    width: 50%;
    animation: slideIn 0.8s ease-out;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    border-radius: 50%;
    top: 2.5rem;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.8);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.8);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 212, 255, 1);
        transform: scale(1.1);
    }
    100% {
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.8);
        transform: scale(1);
    }
}

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

.timeline-item.left {
    left: 0;
}

.timeline-item.right {
    left: 50%;
}

.timeline-item.right::after {
    left: -10px;
}

.timeline-content {
    padding: 2rem;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 153, 204, 0.05));
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 15px;
    position: relative;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.3), rgba(0, 153, 204, 0.2));
    border-color: #00ffff;
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 45px rgba(0, 212, 255, 0.4), 0 0 25px rgba(0, 255, 255, 0.3);
}

.timeline-date {
    color: #00d4ff;
    font-size: 1.1rem;
    font-weight: 600;
    display: block;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.timeline-content h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.timeline-content ul {
    list-style: none;
    padding: 0;
}

.timeline-content li {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 0.8rem;
    padding-left: 1rem;
    position: relative;
}

.timeline-content li::before {
    content: '•';
    color: #00d4ff;
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: 0;
}

.timeline-image {
    margin-top: 1rem;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.timeline-image:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.3);
    border: 2px solid rgba(0, 212, 255, 0.5);
}

.timeline-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: all 0.4s ease;
    filter: brightness(1) contrast(1) saturate(1);
}

.timeline-image:hover img {
    filter: brightness(1.1) contrast(1.1) saturate(1.2);
    transform: scale(1.05);
}

.timeline-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.3) 0%, rgba(0, 212, 255, 0.1) 50%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease-out;
    pointer-events: none;
    z-index: 1;
}

.timeline-image:hover::before {
    width: 300px;
    height: 300px;
    animation: rippleWave 0.8s ease-out;
}

@keyframes rippleWave {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    50% {
        width: 200px;
        height: 200px;
        opacity: 0.7;
    }
    100% {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}



.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 212, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.timeline-image:hover .image-overlay {
    opacity: 1;
}

.image-overlay i {
    color: white;
    font-size: 2rem;
    animation: pulse 1.5s infinite;
}



/* All Projects Button Hover Effect */
.all-projects-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.5);
    background: linear-gradient(45deg, #0099cc, #00d4ff);
}

.all-projects-btn:active {
    transform: translateY(-2px) scale(1.02);
}

.modal-header {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.modal-header img {
    width: 100%;
    max-width: 400px;
    height: auto;
    min-height: 200px;
    object-fit: cover;
    border-radius: 10px;
    flex: 1;
}

.project-info h2 {
    color: #00d4ff;
    margin-bottom: 0.5rem;
}

.project-info span {
    color: #ccc;
    font-size: 1.1rem;
}

.modal-body h3 {
    color: #00d4ff;
    margin-bottom: 1rem;
    border-bottom: 2px solid #00d4ff;
    padding-bottom: 0.5rem;
}

.modal-body p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 2rem;
}

#projectTechnologies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.tech-tag {
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
}

#projectFeatures li {
    color: #ccc;
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

#projectFeatures li::before {
    content: '✓';
    color: #00d4ff;
    position: absolute;
    left: 0;
}

body.light-mode .image-overlay {
    background: rgba(0, 123, 255, 0.8);
}

body.light-mode .timeline-image:hover {
    box-shadow: 0 20px 40px rgba(0, 123, 255, 0.3);
    border-color: rgba(0, 123, 255, 0.5);
}

body.light-mode .timeline-image::before {
    background: radial-gradient(circle, rgba(0, 123, 255, 0.3) 0%, rgba(0, 123, 255, 0.1) 50%, transparent 70%);
}



body.light-mode .project-info h2,
body.light-mode .modal-body h3 {
    color: #007bff;
    border-bottom-color: #007bff;
}

body.light-mode .project-info span,
body.light-mode .modal-body p,
body.light-mode #projectFeatures li {
    color: #666;
}

body.light-mode .tech-tag {
    background: linear-gradient(45deg, #007bff, #0056b3);
}

body.light-mode #projectFeatures li::before {
    color: #007bff;
}

body.light-mode .timeline-image:hover {
    box-shadow: 0 20px 40px rgba(0, 123, 255, 0.3);
    border-color: rgba(0, 123, 255, 0.5);
}

/* Light mode styles */
body.light-mode .timeline::after {
    background: linear-gradient(180deg, #007bff, #0056b3);
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.5);
}

body.light-mode .timeline-item::after {
    background: linear-gradient(45deg, #007bff, #0056b3);
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.8);
}

body.light-mode .timeline-content {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1), rgba(0, 86, 179, 0.05));
    border-color: rgba(0, 123, 255, 0.3);
}

body.light-mode .timeline-content:hover {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.3), rgba(0, 86, 179, 0.2));
    border-color: #0056ff;
    box-shadow: 0 20px 45px rgba(0, 123, 255, 0.4), 0 0 25px rgba(0, 86, 255, 0.3);
    transform: translateY(-10px) scale(1.02);
}

body.light-mode .timeline-date {
    color: #007bff;
    text-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

body.light-mode .timeline-content h3 {
    color: #333;
}

body.light-mode .timeline-content li {
    color: #666;
}

body.light-mode .timeline-content li::before {
    color: #007bff;
}

/* Responsive */
@media (max-width: 768px) {
    .timeline::after {
        left: 2rem;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 4rem;
        padding-right: 1rem;
    }
    
    .timeline-item.left,
    .timeline-item.right {
        left: 0;
    }
    
    .timeline-item::after {
        left: 1.5rem;
    }
    
    .timeline-content {
        padding: 1.5rem;
    }
    
    .timeline-content h3 {
        font-size: 1.3rem;
    }
}

/* Contact Section */
.contact {
    padding: 8rem 5% 4rem;
    background: rgba(0, 0, 0, 0.1);
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(0, 212, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.2);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.contact-details h3 {
    color: #00d4ff;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-details p {
    color: #ccc;
    font-size: 1rem;
}

.contact-form {
    background: rgba(0, 212, 255, 0.05);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

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

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

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaa;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00d4ff;
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

.contact-form .btn-primary {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.contact-form .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 212, 255, 0.4);
}

/* Light mode styles */
body.light-mode .portfolio {
    background: rgba(248, 249, 250, 0.8);
}

body.light-mode .contact {
    background: rgba(248, 249, 250, 0.5);
}

body.light-mode .portfolio-overlay {
    background: rgba(0, 123, 255, 0.9);
}

body.light-mode .contact-item {
    background: rgba(0, 123, 255, 0.1);
    border-color: rgba(0, 123, 255, 0.3);
}

body.light-mode .contact-item:hover {
    background: rgba(0, 123, 255, 0.2);
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.2);
}

body.light-mode .contact-icon {
    background: linear-gradient(45deg, #007bff, #0056b3);
}

body.light-mode .contact-item:hover .contact-icon {
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.5);
}

body.light-mode .contact-details h3 {
    color: #007bff;
}

body.light-mode .contact-details p {
    color: #666;
}

body.light-mode .contact-form {
    background: rgba(0, 123, 255, 0.05);
    border-color: rgba(0, 123, 255, 0.2);
}

body.light-mode .form-group input,
body.light-mode .form-group textarea {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 123, 255, 0.3);
    color: #333;
}

body.light-mode .form-group input::placeholder,
body.light-mode .form-group textarea::placeholder {
    color: #666;
}

body.light-mode .form-group input:focus,
body.light-mode .form-group textarea:focus {
    border-color: #007bff;
    background: rgba(0, 123, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-item {
        gap: 1rem;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}
/* Portfolio Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

.modal-content {
    position: relative;
    margin: 2rem auto;
    padding: 1.5rem;
    width: 90%;
    max-width: 900px;
    background: rgba(15, 20, 25, 0.98);
    border-radius: 15px;
    border: 2px solid #00d4ff;
    text-align: left;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.3);
    max-height: 90vh;
    overflow-y: auto;
    cursor: move;
    user-select: none;
}

.modal-content.dragging {
    transition: none;
    z-index: 2001;
}

.modal-header {
    cursor: move;
    user-select: none;
}

.close {
    position: sticky;
    top: 0;
    right: 0;
    float: right;
    color: #00d4ff;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.close:hover {
    color: white;
}

#modalImage {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.modal-info h3 {
    color: #00d4ff;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.modal-info p {
    color: #ccc;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Light mode modal */
body.light-mode .modal-content {
    background: rgba(248, 249, 250, 0.95);
    border-color: #007bff;
}

body.light-mode .close {
    color: #007bff;
}

body.light-mode .modal-info h3 {
    color: #007bff;
}

body.light-mode .modal-info p {
    color: #666;
}

/* Modal responsive */
@media (max-width: 768px) {
    .modal {
        padding: 10px;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem auto;
        padding: 1rem;
        max-height: 95vh;
        cursor: default;
    }
    
    .modal-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .modal-header img {
        width: 100%;
        max-width: none;
        height: 200px;
    }
    
    .project-info h2 {
        font-size: 1.3rem;
    }
    
    .modal-body h3 {
        font-size: 1.2rem;
    }
    
    .close {
        font-size: 1.5rem;
        width: 35px;
        height: 35px;
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 2001;
    }
    
    .project-buttons {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .demo-btn, .source-btn {
        width: 100% !important;
        justify-content: center !important;
        padding: 1rem 2rem !important;
    }
}
/* Modal Gallery */
.modal-gallery {
    margin: 1.5rem 0;
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.gallery-thumb {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.gallery-thumb:hover {
    border-color: #00d4ff;
    transform: scale(1.05);
}

/* Light mode gallery */
body.light-mode .gallery-thumb:hover {
    border-color: #007bff;
}

/* Gallery responsive */
@media (max-width: 768px) {
    .gallery-thumbnails {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.3rem;
    }
    
    .gallery-thumb {
        height: 60px;
    }
}
/* Falling Dots Animation */
.falling-dots-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.falling-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #00d4ff;
    border-radius: 50%;
    opacity: 0.7;
    animation: fall 25s linear infinite;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

@keyframes fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Light mode dots */
body.light-mode .falling-dot {
    background: #007bff;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}



/* Floating Icons in Home Section */
.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 2;
}

.floating-icon {
    position: absolute;
    font-size: 3rem;
    color: rgba(0, 212, 255, 0.5);
    animation: float 6s ease-in-out infinite;
}

.floating-icon:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 8s;
}

.floating-icon:nth-child(2) {
    top: 60%;
    left: 80%;
    animation-delay: 1s;
    animation-duration: 7s;
}

.floating-icon:nth-child(3) {
    top: 30%;
    left: 85%;
    animation-delay: 2s;
    animation-duration: 9s;
}

.floating-icon:nth-child(4) {
    top: 70%;
    left: 15%;
    animation-delay: 3s;
    animation-duration: 6s;
}

.floating-icon:nth-child(5) {
    top: 15%;
    left: 70%;
    animation-delay: 4s;
    animation-duration: 8s;
}

.floating-icon:nth-child(6) {
    top: 80%;
    left: 60%;
    animation-delay: 5s;
    animation-duration: 7s;
}

.floating-icon:nth-child(7) {
    top: 40%;
    left: 5%;
    animation-delay: 1.5s;
    animation-duration: 9s;
}

.floating-icon:nth-child(8) {
    top: 50%;
    left: 90%;
    animation-delay: 2.5s;
    animation-duration: 6s;
}

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

/* Animated Text Effect */
.animated-text {
    position: relative;
    overflow: hidden;
}

.animated-text::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.4), transparent);
    animation: textShine 3s ease-in-out 2s infinite;
}

@keyframes textShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

body.light-mode .animated-text::after {
    background: linear-gradient(90deg, transparent, rgba(0, 123, 255, 0.4), transparent);
}

body.light-mode .floating-icon {
    color: rgba(0, 123, 255, 0.5);
}

/* Testimonials Section */
.testimonials {
    padding: 8rem 5% 4rem;
    background: rgba(0, 0, 0, 0.1);
}

.testimonials-slider {
    position: relative;
    max-width: 300px;
    margin: 3rem auto 2rem;
    height: 300px;
}

.testimonial-circle {
    position: absolute;
    width: 300px;
    height: 300px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    opacity: 0;
    transform: rotateY(90deg);
    transition: all 0.8s ease;
}

.testimonial-circle.active {
    opacity: 1;
    transform: rotateY(0deg);
}

.client-image {
    margin-top: 1rem;
}

.client-image img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
    }
    to {
        box-shadow: 0 0 50px rgba(0, 212, 255, 0.8);
    }
}

.testimonial-text {
    margin-bottom: 1rem;
}

.testimonial-text p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.testimonial-text h4 {
    margin-bottom: 0.3rem;
    font-size: 1rem;
}

.testimonial-text span {
    font-size: 0.8rem;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #00d4ff;
    transform: scale(1.2);
}

.quote-icon {
    font-size: 2rem;
    color: #00d4ff;
    margin-bottom: 1rem;
}

.testimonial-content p {
    color: #ccc;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.client-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.client-details h4 {
    color: #00d4ff;
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.client-details span {
    color: #aaa;
    font-size: 0.9rem;
}

body.light-mode .testimonials {
    background: rgba(248, 249, 250, 0.5);
}

body.light-mode .client-image img {
    box-shadow: 0 0 30px rgba(0, 123, 255, 0.5);
    animation: glowLight 2s ease-in-out infinite alternate;
}

@keyframes glowLight {
    from {
        box-shadow: 0 0 30px rgba(0, 123, 255, 0.5);
    }
    to {
        box-shadow: 0 0 50px rgba(0, 123, 255, 0.8);
    }
}

body.light-mode .dot {
    background: rgba(0, 123, 255, 0.3);
}

body.light-mode .dot.active {
    background: #007bff;
}

body.light-mode .quote-icon {
    color: #007bff;
}

body.light-mode .testimonial-content p {
    color: #666;
}

body.light-mode .client-avatar {
    background: linear-gradient(45deg, #007bff, #0056b3);
}

body.light-mode .client-details h4 {
    color: #007bff;
}

body.light-mode .client-details span {
    color: #666;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    position: relative;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #00d4ff;
    margin: 3px 0;
    transition: 0.3s;
    display: block;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Show mobile toggle on mobile devices */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex !important;
    }
    
    .nav-buttons {
        display: none;
    }
}

/* Active navigation */
.nav-link.active {
    color: #00d4ff !important;
}

/* Button links */
.btn-primary, .btn-secondary {
    text-decoration: none;
    display: inline-block;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.9);
    padding: 4rem 5% 2rem;
    border-top: 1px solid rgba(0, 212, 255, 0.3);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #00d4ff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-section h4 {
    color: #00d4ff;
    margin-bottom: 1rem;
}

.footer-section p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

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

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

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #00d4ff;
}

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

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid #00d4ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00d4ff;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: #00d4ff;
    color: #0f1419;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    color: #ccc;
}

/* Light mode footer */
body.light-mode .footer {
    background: rgba(248, 249, 250, 0.95);
    border-top-color: rgba(0, 123, 255, 0.3);
}

body.light-mode .footer-section h3,
body.light-mode .footer-section h4 {
    color: #007bff;
}

body.light-mode .footer-section p,
body.light-mode .footer-section ul li a {
    color: #666;
}

body.light-mode .footer-section ul li a:hover {
    color: #007bff;
}

body.light-mode .footer-social a {
    background: rgba(0, 123, 255, 0.1);
    border-color: #007bff;
    color: #007bff;
}

body.light-mode .footer-social a:hover {
    background: #007bff;
    color: white;
}

body.light-mode .footer-bottom {
    border-top-color: rgba(0, 123, 255, 0.2);
    color: #666;
}

body.light-mode .mobile-menu-toggle span {
    background: #007bff;
}

body.light-mode .nav-link.active {
    color: #007bff !important;
}

/* Ensure mobile toggle is visible in light mode */
body.light-mode .mobile-menu-toggle {
    display: none;
}

@media (max-width: 768px) {
    body.light-mode .mobile-menu-toggle {
        display: flex !important;
    }
}

/* Large Desktop */
@media (max-width: 1400px) {
    .nav-menu {
        gap: 1.2rem;
    }
    
    .nav-menu a {
        font-size: 0.95rem;
        padding: 0.5rem 0.8rem;
    }
    
    .hire-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

/* Medium Desktop */
@media (max-width: 1200px) {
    .navbar {
        padding: 0.6rem 2%;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .nav-menu a {
        font-size: 0.9rem;
        padding: 0.4rem 0.7rem;
    }
    
    .hire-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .logo {
        width: 70px;
        height: 50px;
    }
}

/* Small Desktop / Large Tablet */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 0.8rem;
    }
    
    .nav-menu a {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
    }
    
    .hire-btn {
        padding: 0.4rem 0.7rem;
        font-size: 0.75rem;
    }
}

/* Tablet */
@media (max-width: 900px) {
    .nav-menu {
        gap: 0.5rem;
    }
    
    .nav-menu a {
        font-size: 0.8rem;
        padding: 0.3rem 0.5rem;
    }
    
    .hire-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(15, 20, 25, 0.95);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
        backdrop-filter: blur(10px);
        z-index: 999;
        overflow-y: auto;
        display: flex;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 0.8rem 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .nav-menu a {
        font-size: 1.4rem;
        padding: 1rem 2rem;
        margin: 0.5rem 0;
        border-radius: 30px;
        width: 80%;
        text-align: center;
        min-height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        text-decoration: none;
    }
    
    body.light-mode .nav-menu {
        background: rgba(248, 249, 250, 0.95);
    }
    
    body.light-mode .nav-menu a {
        color: #333;
    }
    
    /* Ensure nav menu is visible */
    .nav-menu {
        display: flex !important;
    }
    
    .nav-menu.active {
        display: flex !important;
        left: 0 !important;
    }
    
    /* Mobile-friendly touch targets */
    .social-links a {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .btn-primary, .btn-secondary {
        min-height: 50px;
        font-size: 1.1rem;
    }
    
    .contact-item {
        padding: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .service-card {
        margin-bottom: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-social a {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* Modal Button Styles */
.demo-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 212, 255, 0.5), 0 0 20px rgba(0, 255, 255, 0.3);
}

.source-btn:hover {
    background: #00ffff !important;
    color: #0f1419 !important;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 255, 255, 0.5), 0 0 20px rgba(0, 255, 255, 0.3);
    border-color: #00ffff;
}

body.light-mode .demo-btn {
    background: linear-gradient(45deg, #007bff, #0056b3);
}

body.light-mode .demo-btn:hover {
    box-shadow: 0 15px 35px rgba(0, 123, 255, 0.5), 0 0 20px rgba(0, 86, 255, 0.3);
}

body.light-mode .source-btn {
    color: #007bff;
    border-color: #007bff;
}

body.light-mode .source-btn:hover {
    background: #0056ff !important;
    color: white !important;
    border-color: #0056ff;
    box-shadow: 0 15px 35px rgba(0, 86, 255, 0.5), 0 0 20px rgba(0, 86, 255, 0.3);
}