/* Modern Reset and Base Styles */
html {
    scroll-behavior: smooth;
}

:root {
    --primary-color: #00ff94;
    --secondary-color: #0066ff;
    --dark-bg: #0a192f;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark-bg);
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Canvas Background */
#bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Glassmorphism */
.glass-nav, .glass-section {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
}

/* Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
}

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

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

.logo img {
    height: 40px;
    width: auto;
    border-radius: 50%;
    object-fit: cover;
}

.logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
}

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

.glitch {
    font-size: 4rem;
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    text-shadow: 0.05em 0 0 var(--primary-color),
                -0.05em -0.025em 0 var(--secondary-color);
    animation: glitch 1s infinite;
}

@keyframes glitch {
    0% {
        text-shadow: 0.05em 0 0 var(--primary-color),
                    -0.05em -0.025em 0 var(--secondary-color);
    }
    25% {
        text-shadow: -0.05em -0.025em 0 var(--primary-color),
                    0.025em 0.025em 0 var(--secondary-color);
    }
    50% {
        text-shadow: 0.025em 0.05em 0 var(--primary-color),
                    0 -0.05em 0 var(--secondary-color);
    }
}

.subtitle {
    font-size: 1.5rem;
    margin: 1rem 0 2rem;
    opacity: 0.8;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 0 1rem;
}

.primary {
    background: var(--primary-color);
    color: var(--dark-bg);
}

.secondary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Sections */
section {
    padding: 100px 2rem;
    margin: 2rem auto;
    max-width: 1200px;
}

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

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

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

.skill-bar {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.skill-progress {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    height: 30px;
    border-radius: 10px;
    position: relative;
    width: 0;
    transition: width 1.5s ease;
}

.skill-progress span {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--dark-bg);
    font-weight: 600;
}

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

.project-card {
    background: var(--glass-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-info {
    padding: 1.5rem;
}

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

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

.btn-small {
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn-small:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 148, 0.2);
}

.btn-small:active {
    transform: translateY(0);
    box-shadow: none;
}

.btn-small i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.btn-small:hover i {
    transform: translateX(3px);
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

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

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

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

.contact-item a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
}

.form-group textarea {
    height: 150px;
    resize: none;
}

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

/* Responsive Styles */
@media screen and (max-width: 1024px) {
    .hero-content {
        max-width: 600px;
    }
    
    .glitch {
        font-size: 3rem;
    }
    
    section {
        padding: 80px 1.5rem;
    }
}

@media screen and (max-width: 768px) {
    /* Navigation */
    nav {
        padding: 0 1rem;
    }
    
    nav ul {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--glass-bg);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 1.5rem;
    }
    
    nav ul.active {
        display: flex;
    }
    
    .mobile-menu {
        display: block;
        font-size: 1.5rem;
        color: var(--primary-color);
        cursor: pointer;
    }

    /* Hero Section */
    .glitch {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .btn {
        margin: 0;
        width: 100%;
        text-align: center;
    }

    /* Skills & Projects */
    .skills-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    /* Contact Section */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media screen and (max-width: 480px) {
    /* General */
    .section-title {
        font-size: 2rem;
    }
    
    /* Hero */
    .glitch {
        font-size: 2rem;
    }
    
    /* Project Cards */
    .project-card {
        margin: 0 1rem;
    }
    
    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }
}

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

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: #fff;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* Tech Stack */
.tech-stack {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.tech-badge {
    background: var(--glass-bg);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    font-size: 0.9rem;
}

/* About Section */
.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.about-image-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.about-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.about-text {
    text-align: center;
    max-width: 800px;
}

.mobile-menu {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
}

.mobile-menu i {
    transition: transform 0.3s ease;
}

.mobile-menu i.fa-times {
    transform: rotate(180deg);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    position: relative;
}

.mouse::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}
