:root {
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --accent: #0ea5e9;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --dark-card: #334155;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --border: #475569;
    --success: #10b981;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', sans-serif;
    background: var(--dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
    linear-gradient(to right, rgba(37, 99, 235, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(37, 99, 235, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
}

nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 0 5%;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.5px;
    z-index: 1001;
}

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

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

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

.nav-links a:hover {
    color: var(--text);
}

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

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

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
    padding: 5px;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--text);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 5% 80px 5%;
    position: relative;
}

.hero-grid {
    max-width: 1400px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-content .highlight {
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content .subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-tags {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.tag {
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
}

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

.btn-primary:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--primary-light);
    background: rgba(37, 99, 235, 0.1);
}

.hero-visual {
    position: relative;
    height: 500px;
}

.code-window {
    background: var(--dark-light);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.window-header {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.window-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border);
}

.window-dot:nth-child(1) { background: #ef4444; }
.window-dot:nth-child(2) { background: #f59e0b; }
.window-dot:nth-child(3) { background: #10b981; }

.code-content {
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.8;
}

.code-line {
    display: flex;
    gap: 1rem;
    padding: 0.25rem 0;
}

.line-number {
    color: var(--text-muted);
    user-select: none;
}

.code-text .keyword { color: #c678dd; }
.code-text .function { color: #61afef; }
.code-text .string { color: #98c379; }
.code-text .comment { color: var(--text-muted); }

.stats {
    background: var(--dark-light);
    padding: 4rem 5%;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stats-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}

.stat-item {
    text-align: center;
}

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

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

section {
    padding: 6rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-muted);
}

.about-text p {
    margin-bottom: 1.5rem;
}

.about-highlights {
    background: var(--dark-light);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.highlight-item:last-child {
    margin-bottom: 0;
}

.highlight-icon {
    width: 48px;
    height: 48px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.highlight-text h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--text);
}

.highlight-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

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

.skill-category {
    background: var(--dark-light);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.skill-category:hover {
    border-color: var(--primary-light);
    transform: translateY(-5px);
}

.skill-category h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-badge {
    background: rgba(37, 99, 235, 0.1);
    color: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

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

.project-card {
    background: var(--dark-light);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-light), var(--accent));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-5px);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.project-icon {
    font-size: 2rem;
}

.project-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.project-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 4px;
    color: var(--accent);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: gap 0.3s ease;
}

.project-link:hover {
    gap: 0.75rem;
}

.education-card {
    background: var(--dark-light);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2.5rem;
    max-width: 700px;
    margin: 0 auto;
}

.education-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.education-card h3 {
    font-size: 1.6rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.education-card .degree {
    font-size: 1.1rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.education-card .duration {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.education-icon {
    font-size: 3rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.contact-card {
    background: var(--dark-light);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-5px);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.contact-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.contact-card a {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

footer {
    background: var(--dark-light);
    border-top: 1px solid var(--border);
    padding: 3rem 5%;
    text-align: center;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

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

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--text);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 1024px) {
    .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    }

    .hero-visual {
    height: 350px;
    order: 2;
    }

    .hero-content {
    order: 1;
    }

    .stats{
    margin-top: 150px;
    }

    .stats-grid {        
    grid-template-columns: repeat(2, 1fr);
    }

    .about-content {
    grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    nav {
    padding: 0 3%;
    }

    .nav-content {
    padding: 1rem 0;
    }

    .hamburger {
    display: flex;
    }

    .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 70%;
    max-width: 300px;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    transition: right 0.4s ease;
    border-left: 1px solid var(--border);
    }

    .nav-links.active {
    right: 0;
    }

    .nav-links a {
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    }

    .nav-links a::after {
    bottom: 0;
    }

    .hero {
    padding: 100px 3% 60px 3%;
    }

    .hero-content h1 {
    font-size: 2.2rem;
    }

    .hero-content .subtitle {
    font-size: 1.1rem;
    }

    .hero-visual {
    height: 300px;
    }

    .code-content {
    font-size: 0.8rem;
    }

    .section-title {
    font-size: 2rem;
    }

    .stats-grid {
    /* grid-template-columns: 1fr; */
    gap: 2rem;
    }

    .stat-number {
    font-size: 2.5rem;
    }

    section {
    padding: 4rem 3%;
    }

    .projects-grid,
    .skills-grid {
    grid-template-columns: 1fr;
    }

    .hero-buttons {
    flex-direction: column;
    width: 100%;
    }

    .btn {
    width: 100%;
    justify-content: center;
    }
}

@media (max-width: 480px) {
    .logo {
    font-size: 1.2rem;
    }

    .nav-links {
    width: 80%;
    max-width: 280px;
    }

    .hero {
    padding: 90px 5% 40px 5%;
    }

    .hero-content h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    }

    .hero-content .subtitle {
    font-size: 1rem;
    }

    .hero-tags {
    gap: 0.5rem;
    margin-bottom: 2rem;
    }

    .tag {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    }

    .hero-visual {
    height: 280px;
    }

    .code-window {
    padding: 0.75rem;
    }

    .code-content {
    font-size: 0.75rem;
    line-height: 1.6;
    }

    .stats{
    margin-top: 175px;
    }

    .stat-number {
    font-size: 2rem;
    }

    .stat-label {
    font-size: 0.85rem;
    }

    section {
    padding: 3rem 5%;
    }

    .section-title {
    font-size: 1.6rem;
    }

    .section-subtitle {
    font-size: 0.95rem;
    }

    .about-text {
    font-size: 1rem;
    }

    .skill-category,
    .project-card,
    .contact-card {
    padding: 1.5rem;
    }

    .education-card {
    padding: 1.5rem;
    }

    .education-header {
    flex-direction: column;
    gap: 1rem;
    }

    .education-icon {
    font-size: 2rem;
    }
}