:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #0f172a;
    --accent: #8b5cf6;
    --light: #f8fafc;
    --gray: #64748b;
    --dark-gray: #334155;
    --success: #10b981;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: #f1f5f9;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

header {
    background-color: white;
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

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

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    font-size: 1.05rem;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

.nav-links a:hover, 
.nav-links a.active {
    color: var(--primary);
}

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

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

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary);
}

#hero {
    padding: 180px 0 100px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
    text-align: center;
}

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

.profile-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
    font-weight: bold;
    border: 5px solid white;
    box-shadow: var(--shadow);
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: var(--secondary);
    line-height: 1.2;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 30px;
    font-weight: 500;
}

.contact-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
}

.contact-item span {
    color: var(--primary);
    font-weight: 500;
}

section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 70px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--secondary);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.education-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 0 auto;
    transition: var(--transition);
}

.education-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.education-card h3 {
    font-size: 1.8rem;
    color: var(--secondary);
    margin-bottom: 15px;
}

.education-card p {
    font-size: 1.15rem;
    color: var(--dark-gray);
    margin-bottom: 10px;
}

.education-card .date {
    color: var(--primary);
    font-weight: 500;
    font-size: 1.05rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 30px;
}

.project-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.project-content {
    padding: 30px;
}

.project-card h3 {
    font-size: 1.6rem;
    color: var(--secondary);
    margin-bottom: 15px;
}

.project-card p {
    margin-bottom: 20px;
    color: var(--dark-gray);
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.tech-tag {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-dark);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-link {
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition);
    display: inline-block;
    text-align: center;
    flex: 1;
}

.code-link {
    background: var(--primary);
    color: white;
}

.code-link:hover {
    background: var(--primary-dark);
}

.demo-link {
    background: white;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.demo-link:hover {
    background: rgba(37, 99, 235, 0.05);
}

.other-projects {
    text-align: center;
    margin-top: 40px;
    font-size: 1.15rem;
}

.other-projects a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    display: inline-block;
    margin-top: 10px;
}

.other-projects a:hover {
    text-decoration: underline;
}

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

.skills-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.skills-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.skills-card h3 {
    font-size: 1.8rem;
    color: var(--secondary);
    margin-bottom: 25px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.skills-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.skill-item {
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 1.05rem;
}

.languages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.language-item {
    text-align: center;
    padding: 20px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: var(--border-radius);
    color: var(--success);
    font-weight: 500;
    font-size: 1.2rem;
    transition: var(--transition);
}

.language-item:hover {
    background: rgba(16, 185, 129, 0.15);
    transform: scale(1.05);
}

#contact {
    background: linear-gradient(135deg, var(--secondary) 0%, #1e293b 100%);
    color: white;
    text-align: center;
}

#contact .section-title h2 {
    color: white;
}

#contact .section-title h2::after {
    background: var(--primary);
}

.contact-details {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.25rem;
    line-height: 2;
}

.contact-details a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    display: inline-block;
    margin: 5px 0;
}

.contact-details a:hover {
    text-decoration: underline;
    color: var(--accent);
}

.contact-icon {
    font-size: 1.4rem;
    margin-right: 8px;
    vertical-align: middle;
}

footer {
    background: var(--secondary);
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 30px 0;
    font-size: 1.05rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

@media (max-width: 992px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    h1 {
        font-size: 3rem;
    }
    
    .subtitle {
        font-size: 1.35rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        flex-direction: column;
        background: white;
        width: 80%;
        height: calc(100vh - 80px);
        padding: 40px 0;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        align-items: center;
        gap: 25px;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a::after {
        display: none;
    }
    
    #hero {
        padding: 160px 0 80px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.25rem;
    }
    
    .profile-img {
        width: 150px;
        height: 150px;
        font-size: 3.2rem;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 15px;
    }
    
    section {
        padding: 70px 0;
    }
    
    .section-title h2 {
        font-size: 2.2rem;
    }
    
    .education-card {
        padding: 30px;
    }
    
    .project-content {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    .subtitle {
        font-size: 1.15rem;
    }
    
    .profile-img {
        width: 130px;
        height: 130px;
        font-size: 2.8rem;
    }
    
    .contact-item {
        font-size: 1rem;
        gap: 8px;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .skills-container {
        grid-template-columns: 1fr;
    }
    
    .project-links {
        flex-direction: column;
    }
    
    .project-link {
        width: 100%;
    }
}