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

/* Root Variables */
:root {
    --primary-color: #0a0a0a;
    --secondary-color: #1a1a1a;
    --accent-color: #00ff88;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --border-color: #333333;
    --hover-color: #252525;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Base Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--primary-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar {
    position: relative;
}

.profile-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
    object-fit: cover;
}

.profile-info .name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.profile-info .username {
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.profile-info .role {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-color);
}

/* Introduction Section */
.intro {
    text-align: center;
    padding: 4rem 0;
}

.intro h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.highlight {
    color: var(--text-primary);
}

.typewriter {
    color: var(--accent-color);
    font-weight: 600;
    position: relative;
}

.typewriter::after {
    content: '|';
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.contact-btn {
    margin-top: 2rem;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #25d366;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
}

/* Skills Section */
.skills {
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
}

.skills h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

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

.skill-category {
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
}

.skill-category h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-item {
    background: var(--primary-color);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.skill-item:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: scale(1.05);
}

/* Projects Section */
.projects {
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
}

.projects h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

/* Project Carousel */
.project-carousel {
    max-width: 1200px;
    margin: 0 auto;
}

.carousel-container {
    position: relative;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.3);
    background: var(--secondary-color);
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    width: 500%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.project-slide {
    position: relative;
    width: 20%;
    height: 100%;
    flex-shrink: 0;
}

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

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

.project-slide:hover .project-carousel-image {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.8) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-slide.active .project-overlay {
    opacity: 1;
}

.project-details {
    text-align: center;
    color: white;
    padding: 2rem;
    max-width: 600px;
    transform: translateY(20px);
    transition: transform 0.6s ease;
}

.project-slide.active .project-details {
    transform: translateY(0);
}

.project-details h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
    font-weight: 700;
}

.project-details p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.project-tech span {
    background: rgba(0, 255, 136, 0.2);
    color: var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    border: 1px solid var(--accent-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-tech span:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: scale(1.05);
}

.project-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.project-btn {
    padding: 0.8rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.project-btn {
    background: var(--accent-color);
    color: var(--primary-color);
}

.project-btn:hover {
    background: #00cc6a;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 255, 136, 0.3);
}

.project-btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.project-btn-secondary:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

/* Carousel Navigation */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.carousel-btn:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn-prev {
    left: 30px;
}

.carousel-btn-next {
    right: 30px;
}

.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 100;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 20px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
}

.indicator {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: scale(1.3);
}

.indicator:hover {
    border-color: white;
    transform: scale(1.2);
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: var(--text-secondary);
    border-radius: 50%;
    text-decoration: none;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 255, 136, 0.3);
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.heart {
    color: #ff6b6b;
    animation: pulse 1.5s infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .intro h2 {
        font-size: 2rem;
    }
    
    .intro-text {
        font-size: 1rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    /* Project Carousel Responsive */
    .carousel-wrapper {
        height: 400px;
    }
    
    .project-details h3 {
        font-size: 2rem;
    }
    
    .project-details p {
        font-size: 1rem;
    }
    
    .carousel-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .carousel-btn-prev {
        left: 20px;
    }
    
    .carousel-btn-next {
        right: 20px;
    }
    
    .nav-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .profile-section {
        flex-direction: column;
        text-align: center;
    }
    
    .intro h2 {
        font-size: 1.8rem;
    }
    
    .skill-category {
        padding: 1.5rem;
    }
    
    /* Project Carousel Mobile */
    .carousel-wrapper {
        height: 350px;
    }
    
    .project-details {
        padding: 1rem;
    }
    
    .project-details h3 {
        font-size: 1.5rem;
    }
    
    .project-details p {
        font-size: 0.9rem;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .carousel-btn-prev {
        left: 10px;
    }
    
    .carousel-btn-next {
        right: 10px;
    }
    
    .project-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .project-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}

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

.skill-category,
.project-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary-color);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00cc6a;
}
