:root {
    --bg-primary: #0a192f;
    --bg-secondary: #112240;
    --text-primary: #e6f1ff;
    --text-secondary: #8892b0;
    --accent: #64ffda;
    --hover: #00b4d8;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Cursor Follower */
.cursor-follower {
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s;
    transform: translate(-50%, -50%);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

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

.glitch {
    font-size: 4rem;
    font-weight: 700;
    position: relative;
    text-shadow: 0.05em 0 0 var(--accent),
                -0.025em -0.05em 0 #fe3d7c,
                0.025em 0.05em 0 #7b2ff7;
    animation: glitch 500ms infinite;
}

.typewriter {
    font-size: 2rem;
    margin: 1rem 0;
    color: var(--text-secondary);
    overflow: hidden;
    border-right: 0.15em solid var(--accent);
    white-space: nowrap;
    animation: typing 3.5s steps(30, end),
               blink-caret 0.75s step-end infinite;
}

/* Skills Section */
.skills {
    padding: 6rem 0;
    background-color: var(--bg-secondary);
}

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

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

.skill-category {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

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

.skill-list {
    list-style: none;
}

.skill-list li {
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.skill-list i {
    color: var(--accent);
}

/* Projects Section */
.projects {
    padding: 6rem 0;
}

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

.project-card {
    background-color: var(--bg-secondary);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
    border-color: var(--accent);
}

.project-image {
    height: 200px;
    background-color: rgba(100, 255, 218, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.project-card:hover .project-image {
    background-color: rgba(100, 255, 218, 0.1);
}

.image-placeholder i {
    font-size: 4rem;
    color: var(--accent);
}

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

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

.project-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.project-tech {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.project-tech span {
    background-color: rgba(100, 255, 218, 0.1);
    color: var(--accent);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.project-tech span:hover {
    background-color: rgba(100, 255, 218, 0.2);
    transform: translateY(-2px);
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background-color: var(--bg-secondary);
}

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

.contact-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

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

.contact-item a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Footer */
.footer {
    padding: 2rem 0;
    text-align: center;
    background-color: var(--bg-primary);
}

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

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

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

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

/* Animations */
@keyframes glitch {
    0% {
        text-shadow: 0.05em 0 0 var(--accent),
                    -0.025em -0.05em 0 #fe3d7c,
                    0.025em 0.05em 0 #7b2ff7;
    }
    14% {
        text-shadow: 0.05em 0 0 var(--accent),
                    -0.025em -0.05em 0 #fe3d7c,
                    0.025em 0.05em 0 #7b2ff7;
    }
    15% {
        text-shadow: -0.05em -0.025em 0 var(--accent),
                    0.025em 0.025em 0 #fe3d7c,
                    -0.05em -0.05em 0 #7b2ff7;
    }
    49% {
        text-shadow: -0.05em -0.025em 0 var(--accent),
                    0.025em 0.025em 0 #fe3d7c,
                    -0.05em -0.05em 0 #7b2ff7;
    }
    50% {
        text-shadow: 0.025em 0.05em 0 var(--accent),
                    0.05em 0 0 #fe3d7c,
                    0 -0.05em 0 #7b2ff7;
    }
    99% {
        text-shadow: 0.025em 0.05em 0 var(--accent),
                    0.05em 0 0 #fe3d7c,
                    0 -0.05em 0 #7b2ff7;
    }
    100% {
        text-shadow: -0.025em 0 0 var(--accent),
                    -0.025em -0.025em 0 #fe3d7c,
                    -0.025em -0.05em 0 #7b2ff7;
    }
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--accent) }
}

/* Media Queries */
@media screen and (max-width: 768px) {
    .hero-content {
        text-align: center;
    }
    
    .contact-info {
        flex-direction: column;
    }
    
    .glitch {
        font-size: 3rem;
    }
    
    .typewriter {
        font-size: 1.5rem;
    }
}
