:root {
    /* Purple Hacker Mode (Default - Based on Logo) */
    --primary-color: #b99dfc;
    --secondary-color: #7c3aed;
    --bg-gradient: linear-gradient(135deg, #04013d 0%, #050238 50%, #0b011b 100%);
    --card-bg: rgba(139, 92, 246, 0.1);
    --text-color: #ffffff;
    --accent-color: #1a1a1b;
    --border-color: rgba(139, 92, 246, 0.3);
    --shadow-color: rgba(139, 92, 246, 0.4);
    --mode-icon: 'fa-user-secret';
}

[data-mode="blue-team"] {
    --primary-color: #00d4ff;
    --secondary-color: #0099cc;
    --bg-gradient: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    --accent-color: #00d4ff;
    --shadow-color: rgba(0, 212, 255, 0.3);
    --border-color: rgba(0, 212, 255, 0.2);
    --mode-icon: 'fa-bug';
}

[data-mode="forensics"] {
    --primary-color: #10b981;
    --secondary-color: rgb(15, 125, 92);
    --bg-gradient: linear-gradient(135deg, #053528 0%, #021e16 50%, #02251b 100%);
    --accent-color: #063926;
    --shadow-color: rgba(16, 185, 129, 0.3);
    --border-color: rgba(16, 185, 129, 0.2);
    --mode-icon: 'fa-magnifying-glass';
        /* --card-bg: rgba(0, 255, 115, 0.1); */

}

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

i.fab, i.fas, i.fa-solid, i.fa-regular, i.fa-brands {
    color: var(--secondary-color) !important;
}

.nav-link,
.contact-link,
.section-title,
h1, h2, h3, h4, h5, h6,
p, span, li, a {
    color: var(--primary-color);
}
/* Hide scrollbar visually but keep scroll functionality */
::-webkit-scrollbar {
    width: 0 !important;
    background: transparent !important;
}

::-webkit-scrollbar-thumb,
::-webkit-scrollbar-track {
    background: transparent !important;
}

html {
    scrollbar-width: none !important;
}
/* For Firefox */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--card-bg);
}

/* For Firefox */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--card-bg);
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-gradient);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    transition: all 0.5s ease;
}

.container {

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

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-gradient);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loading-text {
    font-size: 1.2rem;
    color: var(--primary-color);
}

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

/* Custom Cursor */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.1s ease;
    mix-blend-mode: difference;
}

.cursor-follower {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: all 0.3s ease;
}

/* Mode Switcher */
.mode-switcher {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mode-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background: var(--card-bg);
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.mode-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--shadow-color);
}

.mode-btn.active {
    background: var(--primary-color);
    color: white;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    color: var(--primary-color);
}

.nav-link {
    color: var(--primary-color) !important;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    position: fixed;
}



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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
}

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

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    position: relative;
}

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

.nav-link i {
    margin-left: 8px;
}

.mobile-menu-toggle {
    display: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    /* position: relative; */
    overflow: hidden;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--shadow-color) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    top: -50%;
    left: -50%;
}

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

.hero-content {
    /* position: relative; */
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--primary-color), var(--text-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    word-break: break-word;

}

.hero h2 {
    font-size: 1.5rem;
    color: #a0a0a0;
    margin-bottom: 2rem;
}

.hero-icons {
    display: flex;
    gap: 20px;
    margin: 2rem 0;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-icon {
    font-size: 2rem;
    color: var(--primary-color);
    animation: bounce 2s infinite;
}

.hero-icon:nth-child(2) { animation-delay: 0.2s; }
.hero-icon:nth-child(3) { animation-delay: 0.4s; }
.hero-icon:nth-child(4) { animation-delay: 0.6s; }

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

.hero-description {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}








.cta-button {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow-color);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-color);
}

/* Sections */
section {
    padding: 5rem 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
}

.about-image {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.about-image::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 60%, var(--primary-color) 100%);
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Skills Timeline */
.skills-timeline {
    position: relative;
    margin: 3rem 0;
}

.skills-timeline::before {
    content: '';
    position: absolute;
    right: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
}

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

.timeline-item:nth-child(odd) {
    text-align: left;
    padding-right: 50%;
}

.timeline-item:nth-child(even) {
    text-align: right;
    padding-left: 50%;
}

.timeline-dot {
    position: absolute;
    right: 50%;
    top: 20px;
    transform: translateX(50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 4px solid var(--card-bg);
    z-index: 2;
}

.timeline-content {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    position: relative;
}

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

.timeline-item:nth-child(odd) .timeline-content::before {
    left: 100%;
    border-right-color: var(--card-bg);
}

.timeline-item:nth-child(even) .timeline-content::before {
    right: 100%;
    border-left-color: var(--card-bg);
}

.timeline-content h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.timeline-content small {
    color: var(--primary-color);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

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

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

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--shadow-color);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Account Recovery Section */
.recovery-section {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 3rem;
    margin: 2rem 0;
    border: 1px solid var(--border-color);
}

.recovery-header {
    text-align: center;
    margin-bottom: 2rem;
}

.recovery-header h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.recovery-header p {
    font-size: 1.2rem;
}

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

.platform-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.platform-item:hover {
    background: var(--shadow-color);
    transform: scale(1.05);
}

.platform-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.warning-box {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid #ffc107;
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 2rem;
    text-align: center;
}

.warning-box p {
    color: #ffc107;
    font-weight: bold;
}

/* Projects Timeline */
.projects-timeline {
    position: relative;
    margin: 3rem 0;
}

.projects-timeline::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
}

.project-timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-right: 3rem;
}

.project-timeline-dot {
    position: absolute;
    right: -10px;
    top: 20px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 4px solid var(--card-bg);
    z-index: 2;
}

.project-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border-right: 4px solid var(--primary-color);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateX(-10px);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.project-year {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.project-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.project-tags {
    margin-top: 1rem;
}

.project-tags span {
    background: var(--shadow-color);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-left: 0.5rem;
    display: inline-block;
    margin-bottom: 0.5rem;
}

/* Certifications */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.cert-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px var(--shadow-color);
}

.cert-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.cert-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.cert-card p {
    margin: 1rem 0;
    color: #a0a0a0;
}

.cert-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-top: 1rem;
    font-weight: bold;
}

.completed {
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
    border: 1px solid #00ff00;
}

.in-progress {
    background: rgba(255, 165, 0, 0.2);
    color: #ffa500;
    border: 1px solid #ffa500;
}

.aviation-certs {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--primary-color);
}

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

.testimonial-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    position: relative;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.testimonial-card::before {
    content: '\f10d';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 3rem;
    color: var(--primary-color);
    position: absolute;
    top: -10px;
    right: 20px;
    opacity: 0.3;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px var(--shadow-color);
}

.testimonial-content {
    margin-bottom: 1.5rem;
    font-style: italic;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.author-info h4 {
    color: var(--primary-color);
    margin-bottom: 0.2rem;
}

.author-info p {
    color: #a0a0a0;
    font-size: 0.9rem;
}

.stars {
    color: #ffd700;
    margin-top: 0.5rem;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px var(--shadow-color);
}

.contact-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 0.5rem;
}

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

.whatsapp-link {
    color: #25d366;
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    margin-top: 0.5rem;
}

.contact-card p {
    margin-top: 0.5rem;
    color: #a0a0a0;
    font-size: 0.9rem;
}

.location-info {
    text-align: center;
    margin-top: 3rem;
}

.location-info h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.location-info p {
    font-size: 1.1rem;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    left: 30px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-whatsapp 2s infinite;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

@keyframes pulse-whatsapp {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Footer */
footer {
    background: rgba(15, 15, 35, 0.9);
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
}

.footer-love {
    margin-top: 0.5rem;
    color: #a0a0a0;
}

.footer-love i {
    color: #e74c3c;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .mode-switcher {
        right: 15px;
        gap: 12px;
    }

    .mode-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(15, 15, 35, 0.98);
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

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

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image {
        width: 200px;
        height: 200px;
        font-size: 3rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding-right: 2rem;
        padding-left: 2rem;
        text-align: right;
    }

    .skills-timeline::before,
    .projects-timeline::before {
        right: 20px;
    }

    .timeline-dot,
    .project-timeline-dot {
        right: 10px;
    }

    .mode-switcher {
        right: 10px;
        gap: 10px;
    }

    .mode-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .services-grid,
    .cert-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .platforms-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .hero-icons {
        justify-content: center;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        left: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero h2 {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 0.9rem;
    }

    .about-image {
        width: 150px;
        height: 150px;
        font-size: 2rem;
    }

    .service-card,
    .contact-card,
    .cert-card,
    .testimonial-card {
        padding: 1.5rem;
    }

    .recovery-section {
        padding: 2rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    .logo-img {
        width: 35px;
        height: 35px;
    }

    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

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

/* AOS Custom Styles */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Glitch Effect */
@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

/* Rainbow Animation for Easter Egg */
@keyframes rainbow {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

/* Float Animation for Particle Effect */
@keyframes float-up {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.7;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Progress Bar */
#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    z-index: 9999;
    transition: width 0.3s ease;
    width: 0%;
}

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

/* Loading animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 100%, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translate3d(-100%, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translate3d(100%, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Focus styles for accessibility */
.nav-link:focus,
.cta-button:focus,
.contact-link:focus,
.mode-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .loading-screen,
    .cursor,
    .cursor-follower,
    .mode-switcher,
    .whatsapp-float,
    .scroll-to-top {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .navbar {
        position: static !important;
        background: white !important;
        color: black !important;
    }

    section {
        break-inside: avoid;
    }
}


@media (max-width: 1500px) {
    html, body {
        width: 100vw !important;
        overflow-x: hidden !important;
    }
    .navbar {
        width: 100vw !important;
        min-width: 0 !important;
        left: 0 !important;
        right: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }
    .nav-container {
        width: 90vw !important;
        max-width: 100vw !important;
        margin: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
    }
    .container {
        width: 100vw !important;
        max-width: 100vw !important;
        margin: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
    }
}

/* Improved Mobile Responsiveness */
@media (max-width: 768px) {
    /* Hero Section Fixes */
    .hero {
        height: auto;
        padding: 100px 0 50px;
        text-align: center;
    }

    .hero h1 {
        font-size: 2rem;
        line-height: 1.3;
        word-break: break-word;
    }

    .hero h2 {
        font-size: 1.2rem;
    }

    .hero-content {
        padding-top: 60px; /* Space for navbar */
    }

    .hero-icons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-description {
        font-size: 1rem;
        margin-left: auto;
        margin-right: auto;
    }

    /* Mode Switcher Fixes */
    .mode-switcher {
        position: fixed;
        bottom: 80px;
        right: 15px;
        top: auto;
        flex-direction: column;
        transform: none;
        z-index: 999;
    }

    .mode-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    /* General Layout Fixes */
    .container {
        padding: 0 15px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    /* Navigation Fixes */
    .navbar {
        padding: 0.5rem 0;
    }

    .logo {
        font-size: 1.3rem;
    }

    .logo-img {
        width: 30px;
        height: 30px;
    }

    /* Timeline Fixes */
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .skills-timeline::before {
        right: 15px;
    }

    .timeline-dot {
        right: 5px;
    }
}

@media (max-width: 480px) {
    /* Extra Small Devices */
    .hero h1 {
        font-size: 1.8rem;
    }

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

    .hero-icons i {
        font-size: 1.5rem;
    }

    .cta-button {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }

    /* Mode Switcher Adjustments */
    .mode-switcher {
        bottom: 70px;
        right: 10px;
    }

    .mode-btn {
        width: 36px;
        height: 36px;
    }

    /* Timeline Adjustments */
    .timeline-content {
        padding: 1rem;
    }

    /* Service Cards */
    .service-card {
        padding: 1.5rem;
    }

    /* Contact Cards */
    .contact-card {
        padding: 1.5rem;
    }
}

/* Fix for viewport constraints */
@media (max-width: 1500px) {
    .navbar, .nav-container, .container {
        width: 100% !important;
        max-width: 100% !important;
    }

    .nav-container {
        padding: 0 15px !important;
    }
}

/* Prevent horizontal scrolling */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}
/* End Responsive Design */
