:root {
    --primary-color: #fff;
    --secondary-color: #2563eb;
    --bg-dark: #18181b;
    --bg-darker: #111113;
    --accent: #fff;
    --text-color: #fff;
    --muted: #a1a1aa;
    --outline: #fff;
    --card-bg: #232329;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    scroll-behavior: smooth;
}

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

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

/* Header/Hero Section */
header {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    position: relative;
    padding-top: 7rem;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 3rem;
}

.hero-text {
    flex: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--muted);
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.hero-desc {
    color: var(--muted);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

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

.social-links a {
    color: var(--primary-color);
    font-size: 1.5rem;
    border: 1px solid var(--outline);
    border-radius: 50%;
    padding: 0.7rem;
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.social-links a:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
}

.stats-row {
    display: flex;
    gap: 3rem;
    margin-bottom: 2.5rem;
}
.stat {
    text-align: left;
}
.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}
.stat-label {
    color: var(--muted);
    font-size: 1rem;
}

.profile-image {
    width: 340px;
    height: 340px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--outline);
    box-shadow: 0 0 40px 0 rgba(0,0,0,0.5);
    background: #222; /* fallback background */
    display: block;
    margin: 0 auto;
}

/* Navigation */
nav {
    background: transparent;
    box-shadow: none;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 2rem 0 0 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
    letter-spacing: 0.1em;
}

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

.nav-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    border: 1px solid var(--outline);
    border-radius: 2rem;
    padding: 0.4rem 1.5rem;
    background: transparent;
    transition: background 0.2s, color 0.2s;
    font-size: 1rem;
}

.nav-links a:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
}

nav .btn-contact {
    border: 1px solid var(--outline);
    background: transparent;
    color: var(--primary-color);
    border-radius: 2rem;
    padding: 0.4rem 1.5rem;
    margin-left: 2rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
nav .btn-contact:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
}

/* Sections */
section {
    background: var(--bg-darker);
    padding: 5rem 0;
    border-top: 1px solid #232329;
}

.section-title {
    color: var(--primary-color);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    text-align: left;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

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

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

.skill-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.skill-card:hover::before {
    opacity: 0.05;
}

.skill-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.skill-card p {
    position: relative;
    z-index: 1;
}

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

.project-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.project-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover img {
    transform: scale(1.05);
}

/* Project Card Overlay and Info Improvements */
.project-image {
    position: relative;
    overflow: hidden;
}
.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 20, 20, 0.85);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 10;
    backdrop-filter: blur(2px);
    gap: 1rem;
    border-radius: 16px;
}
.project-card:hover .project-overlay {
    opacity: 1;
}
.project-link {
    color: #fff;
    background: #2563eb;
    border-radius: 1.2rem;
    padding: 0.5rem 1.3rem;
    margin: 0 0.2rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s, transform 0.2s;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.project-link:hover {
    background: #1e40af;
    transform: translateY(-2px) scale(1.05);
}
.project-info {
    padding: 1.5rem;
    background: #18181b;
    color: #fff;
}
.project-info h3 {
    color: #fff;
    margin-bottom: 0.5rem;
}
.project-info p {
    color: #fff;
}
.project-tags .tag {
    background: #232329;
    color: #fff;
    border-radius: 1rem;
    padding: 0.2rem 0.8rem;
    font-size: 0.9rem;
    margin-right: 0.5rem;
    margin-top: 0.5rem;
    display: inline-block;
}

/* Contact Section */
.contact-section {
    background: var(--light-bg);
    position: relative;
    overflow: hidden;
}

.contact-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 320px;
}

.contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.contact-content p {
    margin-bottom: 0;
    font-size: 1.2rem;
}

.social-links {
    margin-top: 0.5rem;
}

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

/* Responsive Design */
@media (max-width: 900px) {
    .header-content {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    .profile-image {
        width: 180px;
        height: 180px;
    }
    .stats-row {
        gap: 1.5rem;
        flex-direction: column;
        align-items: center;
    }
    .hero-title {
        font-size: 2rem;
        text-align: center;
    }
    .hero-subtitle, .hero-desc {
        text-align: center;
    }
}
@media (max-width: 600px) {
    .container {
        padding: 0 0.7rem;
    }
    nav {
        position: static;
        background: var(--card-bg);
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        width: 100%;
        z-index: 100;
    }
    .nav-container {
        flex-direction: column;
        align-items: center;
        gap: 0.7rem;
        width: 100%;
        padding-bottom: 0.7rem;
    }
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 40px;
        height: 40px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 200;
        margin-bottom: 0.5rem;
        position: relative;
    }
    .menu-toggle span {
        display: block;
        width: 28px;
        height: 3px;
        margin: 4px 0;
        background: #fff;
        border-radius: 2px;
        transition: all 0.3s;
        position: relative;
    }
    .menu-toggle.open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .menu-toggle.open span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    .nav-links {
        display: none;
        flex-direction: column;
        gap: 0.7rem;
        width: 100%;
        align-items: center;
        margin-bottom: 1.2rem;
        background: var(--card-bg);
        border-radius: 0 0 16px 16px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        padding-bottom: 1rem;
    }
    .nav-container.nav-open .nav-links {
        display: flex;
    }
    .logo {
        font-size: 1.1rem;
        text-align: center;
        margin-bottom: 0.5rem;
    }
    .profile-image {
        width: 100px;
        height: 100px;
    }
    .hero-title {
        font-size: 1.1rem;
        text-align: center;
        word-break: break-word;
        margin-bottom: 0.7rem;
    }
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    .hero-desc {
        font-size: 0.95rem;
        margin-bottom: 0.7rem;
    }
    .stats-row {
        flex-direction: column;
        gap: 2.2rem;
        align-items: center;
        margin-bottom: 2.2rem;
    }
    .stat {
        margin-bottom: 0.7rem;
    }
    .projects-grid, .oss-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    .project-card, .oss-card {
        padding: 1.2rem 0.7rem;
    }
    .section-title {
        font-size: 1.3rem;
        text-align: center;
    }
    .about-content {
        grid-template-columns: 1fr !important;
        max-width: 95vw;
        margin: 0 auto;
        padding: 0 0.5rem;
    }
    .about-text {
        font-size: 1rem;
        line-height: 1.7;
        max-width: 500px;
        margin: 0 auto;
        padding: 0.5rem 0;
        text-align: left;
        word-break: break-word;
    }
    .contact-section .container {
        min-height: 220px;
        padding: 1.5rem 0;
    }
    .contact-content p {
        font-size: 1rem;
    }
    .social-links {
        gap: 1.2rem;
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 1.5rem;
        margin-bottom: 2.2rem;
    }
    .social-links a {
        font-size: 1.5rem;
        padding: 0.7rem;
        margin: 0.2rem;
    }
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

.floating {
    animation: float 4s ease-in-out infinite;
}

.oss-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.oss-card {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.10);
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: box-shadow 0.2s, transform 0.2s;
}
.oss-card:hover {
    box-shadow: 0 10px 24px rgba(0,0,0,0.18);
    transform: translateY(-4px) scale(1.02);
}
.oss-card h3 {
    margin-bottom: 0.7rem;
    font-size: 1.3rem;
    font-weight: 700;
}
.oss-card h3 a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}
.oss-card h3 a:hover {
    color: #2563eb;
}
.oss-card p {
    color: #ccc;
    margin-bottom: 1.2rem;
    font-size: 1rem;
}
.oss-link {
    color: #fff;
    background: #2563eb;
    border-radius: 1.2rem;
    padding: 0.4rem 1.2rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s, color 0.2s;
    display: inline-block;
}
.oss-link:hover {
    background: #1e40af;
    color: #fff;
}
.oss-card.all-packages {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    box-shadow: none;
    padding: 0;
}
.oss-card.all-packages a {
    color: #2563eb;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    padding: 0.5rem 1.2rem;
    border-radius: 1.2rem;
    background: #232329;
    transition: background 0.2s, color 0.2s;
}
.oss-card.all-packages a:hover {
    background: #2563eb;
    color: #fff;
}

.menu-toggle {
    display: none;
}
@media (max-width: 600px) {
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 40px;
        height: 40px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 200;
        margin-bottom: 0.5rem;
        position: relative;
    }
    .menu-toggle span {
        display: block;
        width: 28px;
        height: 3px;
        margin: 4px 0;
        background: #fff;
        border-radius: 2px;
        transition: all 0.3s;
        position: relative;
    }
    .menu-toggle.open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .menu-toggle.open span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
} 