:root {
    --primary: #6E57E0;
    --primary-light: #8A78E5;
    --primary-dark: #5040B3;
    --secondary: #2EC4B6;
    --text: #F5F5F5;
    --text-dark: #1A1A1A;
    --bg: #121212;
    --bg-light: #1E1E1E;
    --bg-lighter: #2A2A2A;
    --accent: #FF9F1C;
    --danger: #E71D36;

    --transition-speed: 0.3s;
    --transition-function: cubic-bezier(0.65, 0, 0.35, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* outline: 1px solid red;  */
    /* Debugging: Highlight all elements */
    
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    overflow: hidden;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color var(--transition-speed) var(--transition-function);
}

a:hover {
    color: var(--accent);
}

img {
    max-width: 100%;
}

/* Custom cursor */
.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary);
    pointer-events: none;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: transform 0.2s ease;
    opacity: 0.7;
    display: none;
}

@media (min-width: 768px) {
    .cursor {
        display: block;
    }
}

.cursor.grow {
    transform: translate(-50%, -50%) scale(2);
    background-color: var(--accent);
}

/* Navigation dots */
.nav-dots {
    position: fixed;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    z-index: 10;
}

.nav-dots ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.nav-dots li {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all var(--transition-speed) var(--transition-function);
    position: relative;
}

.nav-dots li:hover {
    background-color: var(--primary-light);
    transform: scale(1.2);
}

.nav-dots li.active {
    background-color: var(--primary);
    transform: scale(1.3);
}

.nav-dots li .tooltip {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    background-color: var(--bg-lighter);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.nav-dots li:hover .tooltip {
    opacity: 1;
}

/* Main container for horizontal scrolling - SIMPLIFIED APPROACH */
.horizontal-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

/* Main content container adjustments */
.section {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 2rem;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.5s ease, transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
}

.section.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    z-index: 1;
}

.section .content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
}

/* Section title styling */
.section-title {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--text);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 5px;
    background-color: var(--primary);
    border-radius: 10px;
}

/* Hero Section */
#hero {
    background-color: var(--bg);
    position: relative;
    overflow: hidden;
}

.hero-text {
    max-width: 800px;
}

.hero-text h1 {
    font-size: 5rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text);
    max-width: 600px;
    opacity: 0.8;
}

.cta-container {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--primary);
    color: white;
    border-radius: 50px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all var(--transition-speed) var(--transition-function);
    border: 2px solid var(--primary);
    cursor: pointer;
}

.cta-button:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
    color: white;
    box-shadow: 0 5px 15px rgba(110, 87, 224, 0.4);
}

.cta-button.outline {
    background-color: transparent;
    color: var(--primary);
}

.cta-button.outline:hover {
    background-color: var(--primary);
    color: white;
}

/* Network visualization */
.network-visualization {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.15;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    color: var(--text);
    opacity: 0.7;
    font-size: 20px;
}

.scroll-indicator i {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

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

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

.about-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-around;
}

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

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Space Grotesk', sans-serif;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--text);
    opacity: 0.8;
}

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

.skill-category {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.skill-category h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--primary);
}

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

.skill-item {
    position: relative;
}

.skill-progress {
    height: 8px;
    background-color: var(--bg-lighter);
    border-radius: 10px;
    margin-bottom: 0.5rem;
    position: relative;
    overflow: hidden;
    width: 0;
    transition: width 1s cubic-bezier(0.65, 0, 0.35, 1);
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 10px;
}

.skill-name {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
}

.tech-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.tech-item {
    background-color: var(--bg-lighter);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 0.9rem;
    color: var(--text);
    transition: all var(--transition-speed) var(--transition-function);
}

.tech-item:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

/* Projects Section - Redesigned */
#projects {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
}

.project-card {
    background-color: var(--bg-light);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 32px rgba(110, 87, 224, 0.4);
}

.project-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.project-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.project-title {
    font-size: 1.4rem;
    color: var(--text);
    margin: 0;
}

.project-description {
    font-size: 0.95rem;
    color: var(--text);
    opacity: 0.8;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

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

.project-tags span {
    background-color: var(--bg-lighter);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--primary-light);
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.project-tags span:hover {
    color: var(--accent);
    border-color: var(--accent);
}

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

.project-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.project-link i {
    font-size: 1.1rem;
    color: var(--primary);
    transition: color 0.3s ease;
}

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

.project-link:hover i {
    color: var(--primary-light);
}

.projects-more {
    margin-top: 2rem;
    text-align: center;
}

.more-link {
    color: var(--primary-light);
    font-size: 1.1rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.more-link:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.project-link {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.projects-more {
    text-align: center;
    margin-top: 2rem;
}

.more-link {
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.more-link i {
    transition: transform var(--transition-speed) var(--transition-function);
}

.more-link:hover i {
    transform: translateX(5px);
}

/* Experience Section */
.timeline {
    position: relative;
    padding-left: 3rem;
    overflow: hidden;
   
}

.timeline:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background-color: var(--primary-light);
    opacity: 0.4;
}

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

.timeline-dot {
    position: absolute;
    left: -3.5rem;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--primary);
    border: 4px solid var(--bg);
}

.timeline-content {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
    color: var(--text);
}

.timeline-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: var(--primary-light);
    font-weight: 500;
}

.timeline-date {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: var(--text);
    opacity: 0.7;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: flex-start;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: flex-start;
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
}

.contact-item i {
    color: var(--primary);
    font-size: 1.5rem;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 1rem;
    color: var(--text);
}

.form-group input,
.form-group textarea {
    padding: 0.8rem 1rem;
    background-color: var(--bg-lighter);
    border: 1px solid var(--bg-lighter);
    border-radius: 4px;
    color: var(--text);
    font-size: 1rem;
    transition: border-color var(--transition-speed) var(--transition-function);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* Footer */
footer {
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
}

.footer-content {
    font-size: 0.9rem;
    color: var(--text);
    opacity: 0.7;
}

.last-updated {
    margin-top: 0.5rem;
    font-size: 0.8rem;
}

/* Form Success Message */
.form-success {
    text-align: center;
    padding: 2rem;
}

.form-success i {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.form-success h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Particles */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: var(--primary-light);
    border-radius: 50%;
    opacity: 0.1;
    animation: float 15s infinite ease-in-out;
}

/* Responsive styles */
@media (max-width: 1024px) {

    .about-container,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .projects-container {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    .section .content {
        padding: 2rem 1rem;
    }
}

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 3.5rem;
    }

    .hero-text h2 {
        font-size: 2rem;
    }

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

    .nav-dots {
        right: 1rem;
    }

    .skill-category {
        padding: 1.5rem;
    }

    .section {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2.8rem;
    }

    .cta-container {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-button {
        width: 100%;
        text-align: center;

    }

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

    .project-card {
        min-width: 100%;
    }
}

/* Animation for nodes */
@keyframes float {
    0% {
        transform: translateY(0) translateX(0);
    }

    50% {
        transform: translateY(-15px) translateX(15px);
    }

    100% {
        transform: translateY(0) translateX(0);
    }
}

/* Profile Picture Styles */
.profile-picture-container {
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    animation: fadeIn 1s ease forwards;
    opacity:0;
}

.profile-picture {
    width: 900px;
    height: 900px;
    /* border-radius: 50%; */
    object-fit: cover;
    /* border: 4px solid var(--primary); */
    /* box-shadow: 0 8px 30px rgba(110, 87, 224, 0.3); */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: profileFadeIn 1s ease forwards;
    -webkit-filter: drop-shadow(2px 2px 0 rgb(110, 87, 224, 0.4)) drop-shadow(-10px -10px 0 rgb(110, 87, 224, 0.4));
    filter: drop-shadow(2px 2px 0 rgb(110, 87, 224, 0.4)) drop-shadow(-10px -10px 0 rgb(110, 87, 224, 0.4));

    position: fixed;
    bottom: 0px;
    right: 20px;
    height: auto;
    z-index: 10;

}

.profile-picture-filter {
    filter: grayscale(100%) brightness(0.8);
    
}

.profile-picture:hover {
    transform: scale(1.05) rotate(3deg);
    filter: drop-shadow(3px 5px 20px rgba(110, 87, 224, 0.5)) drop-shadow(-10px -10px 0 rgb(110, 87, 224, 0.4));
}

@keyframes profileFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .profile-picture {
        width: 100px;
        bottom: 10px;
        right: 10px;
    }
}
/* Drone Container */
.drone-container {
    position: absolute;
    width: 120px; /* Adjust size as needed */
    height: auto;
    z-index: 1000;
    pointer-events: none; /* Prevent interactions with the drone */
    animation: moveDrone 30s ease-in-out infinite, droneFadeInOut 8s infinite; /* Added fade animation */
}

/* Drone Image */
.drone {
    width: 100%;
    height: auto;
}

/* Greeting Message */
.greeting-message {
    position: absolute;
    top: -50px; /* Position above the drone */
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 20px;
    font-family: 'Space Grotesk', sans-serif;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    animation: fadeInOut 5s infinite; /* Smooth fading effect */
}

/* Keyframe Animation for Smooth Drone Movement */
@keyframes moveDrone {
    0% {
        transform: translate(20px, 20px);
    }
    12.5% {
        transform: translate(40vw, 30vh); /* New random position */
    }
    25% {
        transform: translate(80vw, 10vh);
    }
    37.5% {
        transform: translate(60vw, 35vh); /* New random position */
    }
    50% {
        transform: translate(70vw, 50vh);
    }
    62.5% {
        transform: translate(30vw, 60vh); /* New random position */
    }
    75% {
        transform: translate(10vw, 70vh);
    }
    87.5% {
        transform: translate(20vw, 40vh); /* New random position */
    }
    100% {
        transform: translate(20px, 20px);
    }
}

/* Fade-in and fade-out animation for the greeting message */
@keyframes fadeInOut {
    0%, 100% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}

/* Fade animation for the drone */
@keyframes droneFadeInOut {
    0%, 100% {
        opacity: 0.2;
    }
    50% {
        opacity: 1;
    }
}

/* Responsive Drone Size for Mobile View */
@media (max-width: 768px) {
    .drone-container {
        width: 60px; /* Smaller size for mobile */
    }

    .greeting-message {
        font-size: 100%; /* Adjust font size for mobile */
        top: -40px; /* Adjust position for mobile */
    }
}

/* Ensure the drone only appears on the home page */
