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

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #ec4899;
    --dark: #0f172a;
    --darker: #020617;
    --light: #f1f5f9;
    --gray: #94a3b8;
    --card-bg: #1e293b;
}

html { scroll-behavior: smooth; }

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: 0.3s;
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    padding: 0.7rem 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light);
    text-decoration: none;
}

.logo span { color: var(--primary); }

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

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
    position: relative;
}

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

.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { width: 100%; }

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--light);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    padding: 8rem 2rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content { flex: 1; }

.hero-greeting {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.hero-name {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.hero-name span {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title {
    font-size: 1.4rem;
    color: var(--gray);
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.hero-desc {
    color: var(--gray);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
}

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

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

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

.social-links a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    color: var(--light);
    border-radius: 50%;
    text-decoration: none;
    transition: 0.3s;
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* Code window */
.hero-image { flex: 1; display: flex; justify-content: center; }

.code-window {
    background: var(--darker);
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    overflow: hidden;
    border: 1px solid #1e293b;
}

.code-header {
    background: #1e293b;
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.code-title {
    margin-left: auto;
    color: var(--gray);
    font-size: 0.85rem;
}

.code-body {
    padding: 1.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.7;
    color: #e2e8f0;
    overflow-x: auto;
}

.kw { color: #c792ea; }
.var { color: #82aaff; }
.prop { color: #f78c6c; }
.str { color: #c3e88d; }

/* Sections */
.section { padding: 6rem 2rem; }
.section-alt { background: var(--darker); }

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

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
}

.section-title span {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* About */
.about-text p {
    color: var(--gray);
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}

.about-text strong { color: var(--light); }

.about-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    background: var(--card-bg);
    border-radius: 10px;
    transition: 0.3s;
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

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

.info-item h4 { font-size: 0.9rem; color: var(--gray); font-weight: 400; }
.info-item p { font-size: 1rem; font-weight: 500; }

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

.skill-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: 0.3s;
    border: 1px solid transparent;
}

.skill-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.2);
}

.skill-card i { font-size: 3rem; margin-bottom: 1rem; }
.skill-card h3 { margin-bottom: 1rem; font-size: 1.2rem; }

.progress-bar {
    background: var(--darker);
    height: 8px;
    border-radius: 10px;
    overflow: hidden;
}

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

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

.project-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    transition: 0.3s;
    border: 1px solid transparent;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.2);
}

.project-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    color: white;
}

.project-card h3 { margin-bottom: 0.8rem; font-size: 1.2rem; }
.project-card p { color: var(--gray); margin-bottom: 1.2rem; font-size: 0.95rem; }

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tags span {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

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

.contact-info h3 { font-size: 1.6rem; margin-bottom: 1rem; }
.contact-info > p { color: var(--gray); margin-bottom: 2rem; }

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
    color: var(--gray);
}

.contact-item i {
    width: 45px;
    height: 45px;
    background: var(--card-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

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

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    background: var(--card-bg);
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--light);
    font-size: 1rem;
    font-family: inherit;
    transition: 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.contact-form textarea { resize: vertical; }

/* Footer */
footer {
    background: var(--darker);
    text-align: center;
    padding: 2rem;
    color: var(--gray);
    border-top: 1px solid var(--card-bg);
}

/* Responsive */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 6rem;
    }
    .hero-name { font-size: 2.5rem; }
    .hero-buttons, .social-links { justify-content: center; }
    .contact-content { grid-template-columns: 1fr; }
    .section-title { font-size: 2rem; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 60px;
        left: -100%;
        flex-direction: column;
        background: var(--dark);
        width: 100%;
        padding: 2rem;
        transition: 0.3s;
        gap: 1.5rem;
    }
    .nav-links.active { left: 0; }
    .menu-toggle { display: block; }
    .hero-name { font-size: 2rem; }
    .hero-title { font-size: 1.1rem; }
}
