/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0f0f0f;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #00ff9f;
    cursor: pointer;
}

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

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #00ff9f;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #00ff9f;
    transition: width 0.3s ease;
}

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

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
    background: linear-gradient(135deg, #0f0f0f 0%, #001f1f 100%);
}

.hero-container {
    max-width: 1000px;
}

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

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

.hero-photo {
    margin-bottom: 1rem;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #00ff9f;
    box-shadow: 0 10px 30px rgba(0, 255, 159, 0.3);
    transition: all 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 255, 159, 0.4);
}

.hero-text {
    text-align: center;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ffffff, #00ff9f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease;
}

.hero-tagline {
    font-size: 1.5rem;
    color: #cccccc;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-education {
    font-size: 1.1rem;
    color: #00ff9f;
    font-weight: 500;
    margin-bottom: 0.5rem;
    animation: fadeInUp 1s ease 0.3s both;
}

.hero-schools {
    font-size: 1rem;
    color: #888888;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.5s both;
}

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

.btn-primary {
    background: #00ff9f;
    color: #0f0f0f;
}

.btn-primary:hover {
    background: #00cc7f;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 255, 159, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #00ff9f;
}

.btn-secondary:hover {
    background: #00ff9f;
    color: #0f0f0f;
    transform: translateY(-2px);
}

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

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 3rem;
    color: #00ff9f;
}

/* Projects Section */
.projects {
    padding: 6rem 0;
    background: #001f1f;
}

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

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 159, 0.2);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: #00ff9f;
    box-shadow: 0 10px 30px rgba(0, 255, 159, 0.2);
}

.project-card h3 {
    color: #00ff9f;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.project-card p {
    color: #cccccc;
    margin-bottom: 1rem;
}

.project-card a {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 500;
}

.project-card a:hover {
    text-decoration: underline;
}

/* Writing Section */
.writing {
    padding: 6rem 0;
    background: #0f0f0f;
}

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

.writing-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 159, 0.2);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.writing-card:hover {
    transform: translateY(-5px);
    border-color: #00ff9f;
    box-shadow: 0 10px 30px rgba(0, 255, 159, 0.2);
}

.writing-card h3 {
    color: #00ff9f;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.writing-card .date {
    color: #888888;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.writing-card a {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 500;
}

.writing-card a:hover {
    text-decoration: underline;
}

/* Experience Section */
.experience {
    padding: 6rem 0;
    background: #001f1f;
}

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

.experience-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 159, 0.2);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.experience-card:hover {
    transform: translateY(-5px);
    border-color: #00ff9f;
    box-shadow: 0 10px 30px rgba(0, 255, 159, 0.2);
}

.experience-card h3 {
    color: #00ff9f;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.experience-card .company {
    color: #ffffff;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.experience-card .period {
    color: #888888;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.experience-card p {
    color: #cccccc;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: #0f0f0f;
    text-align: center;
}

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

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    text-decoration: none;
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    min-width: 100px;
}

.social-link:hover {
    color: #00ff9f;
    transform: translateY(-5px);
}

.social-link i {
    font-size: 2rem;
}

.social-link span {
    font-size: 0.9rem;
    font-weight: 500;
}

.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    color: #888888;
}

/* Loading State */
.loading {
    text-align: center;
    color: #888888;
    font-style: italic;
    grid-column: 1 / -1;
}

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

.fade-in {
    animation: fadeInUp 0.8s ease both;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(15, 15, 15, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
    }

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

    .hamburger {
        display: flex;
    }

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

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

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

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-tagline {
        font-size: 1.25rem;
    }

    .hero-education {
        font-size: 1rem;
    }

    .hero-schools {
        font-size: 0.9rem;
    }

    .profile-image {
        width: 150px;
        height: 150px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 200px;
        justify-content: center;
    }

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

    .social-links {
        gap: 1rem;
    }

    .social-link {
        min-width: 80px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero {
        padding: 0 1rem;
    }

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

    .profile-image {
        width: 120px;
        height: 120px;
    }

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

/* Skills Section */
.skills {
    padding: 6rem 0;
    background: #001f1f;
}

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

.skill-category {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 159, 0.2);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    border-color: #00ff9f;
    box-shadow: 0 10px 30px rgba(0, 255, 159, 0.2);
}

.skill-category h3 {
    color: #00ff9f;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

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

.skill-tag {
    background: rgba(0, 255, 159, 0.1);
    color: #00ff9f;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(0, 255, 159, 0.3);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: rgba(0, 255, 159, 0.2);
    transform: translateY(-2px);
}

/* Certifications Section */
.certifications {
    padding: 6rem 0;
    background: #0f0f0f;
}

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

.certification-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 159, 0.2);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.certification-card:hover {
    transform: translateY(-5px);
    border-color: #00ff9f;
    box-shadow: 0 10px 30px rgba(0, 255, 159, 0.2);
}

.certification-icon {
    background: rgba(0, 255, 159, 0.1);
    color: #00ff9f;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.certification-content {
    flex: 1;
}

.certification-content h3 {
    color: #00ff9f;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.certification-issuer {
    color: #ffffff;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.certification-date {
    color: #888888;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.certification-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #ff6b35;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.certification-link:hover {
    background: rgba(255, 107, 53, 0.1);
    border-color: #ff6b35;
    transform: translateY(-2px);
}

.certification-link i {
    font-size: 0.8rem;
}