/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #1a1a1a;
    color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header styles */
header {
    padding: 1rem 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
}

nav ul li {
    margin: 0 1rem;
}

/* Styles for nav ul li a */
nav ul li a {
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

nav ul li a:hover {
    background-color: #ffd700;
    color: #1a1a1a;
}

.search-icon {
    font-size: 1.2rem;
    color: #ffffff;
}


/* Hero section styles */
#hero {
    padding: 4rem 0;
}

#hero .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content h1 span {
    display: inline-block;
}

.hero-content h1 span:nth-child(1) { color: #FF6B6B; }
.hero-content h1 span:nth-child(2) { color: #4ECDC4; }
.hero-content h1 span:nth-child(3) { color: #45B7D1; }
.hero-content h1 span:nth-child(4) { color: #F7A072; }


.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.cta-button {
    background-color: #1a1a1a;
    color: #ffd700;
    border: 2px solid #ffd700;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
}

.hero-image {
    flex: 1;
    text-align: right;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    filter: grayscale(100%);
}

/* About section styles */
#about {
    padding: 4rem 0;
}

#about h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Skills section styles */
#skills {
    padding: 4rem 0;
}

#skills h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.skill-item {
    background-color: #2a2a2a;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
}

.skill-item img {
    max-width: 60%;
    height: auto;
}

/* Projects section styles */
#projects {
    padding: 4rem 0;
}

#projects h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.project-item {
    background-color: #2a2a2a;
    border-radius: 10px;
    overflow: hidden;
}

.project-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-item h3 {
    font-size: 1.5rem;
    margin: 1rem;
}

.project-item p {
    margin: 0 1rem 1rem;
    color: #cccccc;
}

.project-link {
    display: inline-block;
    margin: 0 1rem 1rem;
    padding: 0.5rem 1rem;
    background-color: #ffd700;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
}

/* Contact section styles */
.contact-section {
    background-color: #1a1a1a;
    color: white;
    padding: 4rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #ffd700;
    font-size: 2rem;
}

.contact-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    background-color: #2d2d2d;
    padding: 1rem;
    border-radius: 8px;
    transition: transform 0.2s;
}

.contact-item:hover {
    transform: translateY(-2px);
}

.contact-item a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.2s;
}

.contact-item a:hover {
    color: #ffd700;
}

.icon {
    color: #ffd700;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #333;
}

.social-links a {
    color: #666;
    transition: color 0.2s;
}

.social-links a:hover {
    color: #ffd700;
}

.thanks-message {
    text-align: center;
    margin-top: 2rem;
    color: #ffd700;
    font-style: italic;
    font-size: 1.2rem;
}

/* Contact form styles */
.contact-form {
    max-width: 600px;
    margin: 2rem auto 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #4a4a4a;
    background-color: #2a2a2a;
    color: #ffffff;
    border-radius: 5px;
}

.form-group textarea {
    height: 150px;
}

.submit-button {
    background-color: #ffd700;
    color: #1a1a1a;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: #e5c100;
}

/* Responsive adjustments for contact section */
@media (max-width: 768px) {
    .contact-section {
        padding: 2rem 0;
    }

    .contact-header {
        font-size: 1.75rem;
    }

    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .social-links {
        flex-wrap: wrap;
        justify-content: space-around;
    }
    .contact-form {
        max-width: 100%;
        padding: 0 1rem;
    }
}

/* Animations and effects */
@keyframes floating {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.hero-content h1, 
.hero-content p, 
.hero-image img,
.skill-item,
.project-item {
    animation: floating 3s ease-in-out infinite;
    animation-delay: calc(var(--delay, 0) * 0.2s);
}

/* Custom cursor */
* {
    cursor: none !important;
}

.custom-cursor {
    width: 20px;
    height: 20px;
    background: rgba(255, 215, 0, 0.3);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    transition: all 0.1s ease;
    mix-blend-mode: difference;
}

.custom-cursor-dot {
    width: 4px;
    height: 4px;
    background: #ffd700;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    transition: all 0.08s ease;
}

/* Responsive design */
@media (max-width: 1024px) {
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        align-items: flex-start;
    }

    nav {
        margin-top: 1rem;
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin: 0.5rem 0;
    }

    #hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content,
    .hero-image {
        flex: none;
    }

    .hero-image {
        margin-top: 2rem;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
    .contact-section {
        padding: 1.5rem 0;
    }

    .contact-header {
        font-size: 1.5rem;
    }

    .contact-item {
        padding: 0.75rem;
    }

    .social-links {
        gap: 1rem;
    }
}

/* Smooth scrolling for all devices */
html {
    scroll-behavior: smooth;
}

/* Preserve custom cursor only on larger screens */
@media (max-width: 768px) {
    * {
        cursor: auto !important;
    }
    
    .custom-cursor,
    .custom-cursor-dot {
        display: none;
    }
}

.orbit-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.orbit-circle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #8a2be2; /* Purple color */
    border-radius: 50%;
    filter: blur(1px);
    pointer-events: none;
    transition: all 0.05s ease; /* Faster transition for smoother movement */
}

.orbit-circle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: inherit;
    border-radius: inherit;
    filter: blur(5px);
    opacity: 0.5;
}

/* Glow effect */
.orbit-circle {
    box-shadow: 0 0 15px #8a2be2, 0 0 30px #8a2be2, 0 0 45px #8a2be2;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 15px #8a2be2, 0 0 30px #8a2be2, 0 0 45px #8a2be2;
    }
    50% {
        box-shadow: 0 0 20px #8a2be2, 0 0 40px #8a2be2, 0 0 60px #8a2be2;
    }
    100% {
        box-shadow: 0 0 15px #8a2be2, 0 0 30px #8a2be2, 0 0 45px #8a2be2;
    }
}

/* Stationary pointer styles */
.stationary-pointer {
    position: fixed;
    width: 6px;
    height: 6px;
    background: #ffffff; /* White color */
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    box-shadow: 0 0 5px #ffffff, 0 0 10px #ffffff;
}