:root {
    --primary-color: #00ff88;
    --secondary-color: #0a192f;
    --text-color: #e6f1ff;
    --background-color: #0a192f;
    --accent-color: #64ffda;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Cursor */
.cursor-glow {
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    mix-blend-mode: screen;
    filter: blur(5px);
    transform: translate(-50%, -50%);
    z-index: 9999;
    opacity: 0.5;
}

/* Navigation */
.nav-bar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    z-index: 1000;
}

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

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

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    position: relative;
    padding: 0.5rem 0;
}

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

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

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

.hero-content {
    text-align: center;
    z-index: 1;
    width: 100%;
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.profile-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.profile-photo {
    width: 250px;
    height: 250px;
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.profile-photo::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), transparent);
    animation: rotate 10s linear infinite;
}

.profile-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent, var(--primary-color));
    border-radius: 50%;
    animation: rotate 10s linear infinite reverse;
}

#profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 1;
    border: 4px solid var(--background-color);
}

.hero-text {
    text-align: center;
}

.glitch-text {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    color: var(--primary-color);
}

.typing-text {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
}

.grid {
    width: 100%;
    height: 100%;
    background-image: linear-gradient(var(--primary-color) 1px, transparent 1px),
                      linear-gradient(90deg, var(--primary-color) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes gridMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(50px); }
}

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

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

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

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3);
}

/* Projects */
.projects {
    padding: 5rem 10%;
}

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

.project-card {
    background: rgba(13, 17, 23, 0.95);
    border-radius: 6px;
    padding: 1.5rem;
    transition: transform 0.3s ease;
    border: 1px solid #30363d;
}

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

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

.project-card-header i {
    color: #7d8590;
    font-size: 1.2rem;
}

.project-card h3 {
    color: #2f81f7;
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.project-card p {
    color: #7d8590;
    margin: 0.5rem 0 1rem 0;
    font-size: 0.875rem;
    line-height: 1.5;
}

.project-card .technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.project-card .technologies span {
    font-size: 0.75rem;
    color: #7d8590;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.project-card .technologies span::before {
    content: '';
    display: inline-block;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background-color: #2f81f7;
}

.project-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    color: #7d8590;
    font-size: 0.75rem;
}

.project-stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.project-stat i {
    font-size: 1rem;
}

.btn.primary {
    background: #238636;
    color: #ffffff;
    border: 1px solid rgba(240, 246, 252, 0.1);
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn.primary:hover {
    background: #2ea043;
    transform: none;
    box-shadow: none;
}

/* About */
.about {
    padding: 5rem 10%;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.about-container {
    width: 100%;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.about-text {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.stat-item {
    background: rgba(0, 255, 136, 0.1);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.2);
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

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

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .profile-container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .profile-photo {
        width: 200px;
        height: 200px;
    }
    
    .hero-text {
        text-align: center;
    }
}

/* Skills */
.skills {
    padding: 5rem 10%;
    background: rgba(255, 255, 255, 0.05);
}

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

.skill-category {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 255, 136, 0.2);
}

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

.skill-items {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 15px;
    border: 1px solid var(--primary-color);
    transition: transform 0.2s ease;
}

.skill-item:hover {
    transform: scale(1.05);
    background: rgba(0, 255, 136, 0.15);
}

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

/* Language */
.language-switch {
    display: flex;
    gap: 8px;
    margin-left: 20px;
}

.lang-btn {
    background: none;
    border: 1px solid var(--accent-color);
    color: var(--text-color);
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: var(--accent-color);
    color: var(--background-color);
}

.lang-btn.active {
    background: var(--accent-color);
    color: var(--background-color);
}

@media (max-width: 768px) {
    .language-switch {
        margin: 10px 0;
    }
}

footer {
    padding: 3rem 10%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    margin-top: 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.social-link {
    color: var(--text-color);
    font-size: 1.8rem;
    transition: all 0.3s ease;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    color: var(--primary-color);
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.2);
}

.footer-text {
    color: var(--text-color);
    opacity: 0.8;
}

.footer-text p:first-child {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Design */
@media (max-width: 768px) {
    .nav-bar {
        padding: 1rem 5%;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .projects, .skills {
        padding: 3rem 5%;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

section {
    animation: fadeIn 1s ease-out;
}

/* Animation classes */
[data-aos] {
    opacity: 0;
    transition: all 0.8s ease;
}

[data-aos="fade-up"] {
    transform: translateY(50px);
}

[data-aos="fade-right"] {
    transform: translateX(-50px);
}

[data-aos="fade-left"] {
    transform: translateX(50px);
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translate(0);
}
