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

:root {
    --github-dark: #0d1117;
    --github-gray: #161b22;
    --github-primary: #010409;
    --github-text: #c9d1d9;
    --github-blue: #58a6ff;
    --cyan-400: #22d3ee;
    --cyan-500: #06b6d4;
    --cyan-start: #06b6d4;
    --cyan-end: #22d3ee;
    --purple-400: #c084fc;
    --purple-500: #a855f7;
    --purple-start: #7c3aed;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(1, 4, 9, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(88, 166, 255, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

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

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--cyan-400), var(--purple-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-link {
    color: var(--github-text);
    text-decoration: none;
    transition: color 0.3s;
    cursor: pointer;
}

.nav-link:hover {
    color: var(--github-blue);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--github-text);
    transition: all 0.3s;
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(1, 4, 9, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        border-bottom: 1px solid rgba(88, 166, 255, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--github-dark), var(--github-gray), var(--github-dark));
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 64rem;
    padding: 6rem 1.5rem;
}

.profile-container {
    margin-bottom: 2rem;
    display: inline-block;
}

.profile-image {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    object-fit: cover;
    padding: 4px;
    background: linear-gradient(135deg, var(--cyan-400), var(--purple-500));
    animation: float 3s ease-in-out infinite;
}

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

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--cyan-400), var(--purple-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.code-keyword {
    font-family: 'Courier New', monospace;
    color: var(--github-blue);
}

.code-text {
    color: var(--github-text);
}

.code-string {
    color: #7ee787;
}

.hero-description {
    font-size: 1.125rem;
    margin-bottom: 3rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 1.25rem;
    }
}

.btn {
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--cyan-start), var(--cyan-end));
    color: var(--github-dark);
}

.btn-primary:hover {
    transform: scale(1.05);
}

.btn-outline {
    border: 2px solid var(--github-blue);
    color: var(--github-blue);
}

.btn-outline:hover {
    background: var(--github-blue);
    color: var(--github-dark);
    transform: scale(1.05);
}

.floating-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
    animation: float 3s ease-in-out infinite;
}

.particle1 {
    top: 25%;
    left: 25%;
    width: 8px;
    height: 8px;
    background: var(--cyan-start);
}

.particle2 {
    top: 33%;
    right: 33%;
    width: 4px;
    height: 4px;
    background: var(--purple-start);
    animation-delay: 1s;
}

.particle3 {
    bottom: 25%;
    left: 33%;
    width: 6px;
    height: 6px;
    background: var(--github-blue);
    animation-delay: 2s;
}

.particle4 {
    bottom: 33%;
    right: 25%;
    width: 4px;
    height: 4px;
    background: var(--cyan-end);
    animation-delay: 0.5s;
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .section-header h2 {
        font-size: 3rem;
    }
}

.section-subtitle {
    font-size: 1.125rem;
    color: rgba(201, 209, 217, 0.8);
    max-width: 42rem;
    margin: 0 auto;
}

/* About Section */
.about {
    padding: 5rem 0;
    background: rgba(22, 27, 34, 0.5);
}

.about-grid {
    display: grid;
    gap: 3rem;
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.about-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.card {
    background: var(--github-gray);
    border: 1px solid var(--github-gray);
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: all 0.3s;
}

.card:hover {
    border-color: rgba(88, 166, 255, 0.3);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--github-blue);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-title-large {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--github-blue);
    margin-bottom: 1.5rem;
}

.icon {
    width: 20px;
    height: 20px;
}

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

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    border: 1px solid;
}

.badge-cyan {
    background: rgba(34, 211, 238, 0.2);
    border-color: rgba(34, 211, 238, 0.3);
}

.badge-purple {
    background: rgba(192, 132, 252, 0.2);
    border-color: rgba(192, 132, 252, 0.3);
}

.badge-blue {
    background: rgba(34, 211, 238, 0.2);
    border-color: rgba(147, 51, 234, 0.3);
}

.badge-mixed {
    background: rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.3);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.skill-item {
    background: var(--github-dark);
    padding: 0.75rem;
    border-radius: 0.5rem;
    text-align: center;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    transition: all 0.3s;
}

.skill-item:hover {
    background: rgba(88, 166, 255, 0.1);
}

/* Certifications Section */
.certifications {
    padding: 5rem 0;
    background: var(--github-primary);
}

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

.cert-card {
    background: var(--github-gray);
    border: 1px solid var(--github-gray);
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.cert-card:hover {
    border-color: rgba(88, 166, 255, 0.3);
    transform: translateY(-4px);
}

.cert-icon {
    width: 40px;
    height: 40px;
    color: var(--github-blue);
    margin: 0 auto 1rem;
}

.cert-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
    min-height: 3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cert-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
}

.cert-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--github-blue);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.3s;
    justify-content: center;
}

.cert-link:hover {
    color: var(--cyan-400);
}

.link-icon {
    width: 16px;
    height: 16px;
}

/* Projects Section */
.projects {
    padding: 5rem 0;
    background: rgba(22, 27, 34, 0.5);
}

.projects-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.project-card {
    background: var(--github-gray);
    border: 1px solid var(--github-gray);
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: all 0.3s;
}

.project-card:hover {
    border-color: rgba(88, 166, 255, 0.3);
    transform: translateY(-4px);
}

.project-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--github-blue);
    margin-bottom: 1rem;
}

.project-description {
    color: rgba(201, 209, 217, 0.9);
    margin-bottom: 1rem;
}

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

.tag {
    padding: 0.25rem 0.75rem;
    background: rgba(88, 166, 255, 0.1);
    border: 1px solid rgba(88, 166, 255, 0.2);
    border-radius: 0.375rem;
    font-size: 0.75rem;
    color: var(--github-blue);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--github-blue);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.project-link:hover {
    color: var(--cyan-400);
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: var(--github-primary);
}

.contact-grid {
    display: grid;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.contact-card {
    background: var(--github-gray);
    border: 1px solid var(--github-gray);
    border-radius: 0.5rem;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s;
    text-decoration: none;
    color: var(--github-text);
}

.contact-card:hover {
    border-color: rgba(88, 166, 255, 0.3);
    transform: translateY(-4px);
}

.contact-icon {
    width: 48px;
    height: 48px;
    color: var(--github-blue);
    margin: 0 auto 1rem;
}

.contact-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--github-blue);
    margin-bottom: 0.5rem;
}

.contact-card p {
    color: rgba(201, 209, 217, 0.8);
    word-break: break-all;
}

/* Footer */
.footer {
    background: var(--github-dark);
    border-top: 1px solid rgba(88, 166, 255, 0.1);
    padding: 2rem 0;
    text-align: center;
}

.footer .container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

@media (min-width: 768px) {
    .footer .container {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--github-text);
    transition: color 0.3s;
}

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

.footer-links svg {
    width: 24px;
    height: 24px;
}
