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

body {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    background: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
}

/* ===== NAVIGATION BAR ===== */
nav {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 2rem;
}

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

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo span {
    background: linear-gradient(135deg, #8b5cf6, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    font-weight: 600;
    color: #334155;
    transition: 0.3s;
    font-size: 0.9rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: #3b82f6;
}

.btn-download {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.6rem 1.3rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 40px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-download:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

/* ===== HERO SECTION ===== */
.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
}

.hero-badge {
    background: #e0e7ff;
    color: #3b82f6;
    padding: 0.3rem 1rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #0f172a;
}

.hero-content h1 span {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-content p {
    color: #475569;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    max-width: 500px;
}

.stats-container {
    display: flex;
    gap: 2rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

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

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #3b82f6;
}

.stat-label {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}

.social-links-hero {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links-hero a {
    background: #f1f5f9;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    font-size: 1.2rem;
    transition: 0.3s;
    text-decoration: none;
}

.social-links-hero a:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-3px);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    width: 100%;
    max-width: 320px;
    border-radius: 50%;
    box-shadow: 0 25px 40px -12px rgba(0, 0, 0, 0.2);
    border: 4px solid white;
    object-fit: cover;
    aspect-ratio: 1/1;
}

/* ===== SECTIONS ===== */
section {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: #0f172a;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    margin: 0.8rem auto 0;
    border-radius: 2px;
}

/* ===== ABOUT ME SECTION ===== */
.about-wrapper {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    width: 100%;
    max-width: 320px;
    border-radius: 50%;
    box-shadow: 0 25px 40px -12px rgba(0, 0, 0, 0.2);
    border: 4px solid white;
    object-fit: cover;
    aspect-ratio: 1/1;
    transition: transform 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.02);
}

.about-text {
    flex: 1.5;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #0f172a;
}

.about-text h3 span {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.about-text p {
    color: #475569;
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* ===== SKILLS SECTION ===== */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.skill-category {
    flex: 1;
    min-width: 250px;
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 20px;
}

.skill-category h3 {
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #0f172a;
}

.skill-item {
    margin-bottom: 1.2rem;
}

.skill-name {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.3rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.skill-bar {
    background: #e2e8f0;
    height: 8px;
    border-radius: 10px;
    overflow: hidden;
}

.skill-progress {
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    height: 8px;
    border-radius: 10px;
    width: 0%;
    transition: width 1.2s ease;
}

/* ===== PROJECTS SECTION ===== */
.projects-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.project-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 45px rgba(15, 23, 42, 0.12);
    border-color: rgba(59, 130, 246, 0.2);
}

.project-card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.project-card-info {
    padding: 1.2rem 1.3rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.project-card-info h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #0f172a;
}

.project-card-info p {
    margin: 0;
    color: #64748b;
    line-height: 1.6;
}

.project-view-btn {
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 999px;
    padding: 0.75rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    align-self: flex-start;
    transition: background 0.25s ease, transform 0.25s ease;
}

.project-view-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

/* ===== CERTIFICATES SECTION ===== */
.certificates-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    justify-items: center;
}

.certificate-card {
    background: white;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
    max-width: 380px;
    width: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.certificate-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.12);
}

.certificate-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    background: #f8fafc;
}

.certificate-card-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.certificate-card-info h3 {
    margin: 0;
    font-size: 1.15rem;
    color: #0f172a;
    font-weight: 700;
}

.certificate-card-info p {
    margin: 0;
    color: #64748b;
    font-size: 0.95rem;
}

.certificate-view-btn {
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 999px;
    padding: 0.75rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
    align-self: flex-start;
    margin-top: 0.25rem;
}

.certificate-view-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

/* ===== EDUCATION SECTION ===== */
.education-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.edu-card {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 20px;
    text-align: center;
    flex: 1;
    min-width: 250px;
    transition: 0.3s;
    border-left: 4px solid #3b82f6;
}

.edu-card:hover {
    transform: translateY(-5px);
}

.edu-icon {
    font-size: 2rem;
    color: #3b82f6;
    margin-bottom: 0.5rem;
}

.edu-year {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

/* ===== CONTACT FORM ===== */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.submit-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 40px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.submit-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

/* ===== FOOTER ===== */
footer {
    background: #0f172a;
    color: #94a3b8;
    text-align: center;
    padding: 1.5rem;
    margin-top: 2rem;
}

/* ===== FILE PREVIEW MODAL ===== */
.file-preview-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1.5rem;
}

.file-preview-modal.open {
    display: flex;
}

.file-preview-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
}

.file-preview-card {
    position: relative;
    width: min(980px, 100%);
    max-height: 90vh;
    overflow: hidden;
    background: white;
    border-radius: 24px;
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.2);
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.file-preview-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: #f8fafc;
    color: #0f172a;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
    z-index: 2;
}

.file-preview-close:hover {
    background: #e2e8f0;
    transform: scale(1.05);
}

.file-preview-header {
    padding: 1.6rem 1.8rem 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.file-preview-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #0f172a;
}

.file-preview-header p {
    margin: 0.3rem 0 0;
    color: #475569;
    font-size: 0.9rem;
}

.file-preview-download {
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 999px;
    padding: 0.75rem 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.file-preview-download:hover {
    background: #2563eb;
}

.file-preview-body {
    flex: 1;
    overflow: auto;
    padding: 0 1.8rem 1.8rem;
}

.file-preview-body iframe,
.file-preview-body object,
.file-preview-body img,
.file-preview-body video {
    width: 100%;
    height: calc(75vh - 120px);
    border-radius: 20px;
    background: #f8fafc;
}

.file-preview-body pre {
    white-space: pre-wrap;
    word-break: break-word;
    background: #f1f5f9;
    padding: 1rem;
    border-radius: 16px;
    color: #0f172a;
    font-size: 0.95rem;
    max-height: calc(75vh - 120px);
    overflow: auto;
}

.file-preview-footer {
    padding: 0 1.8rem 1.8rem;
    color: #475569;
    font-size: 0.9rem;
}

.file-preview-body .preview-message {
    min-height: 320px;
    display: grid;
    place-items: center;
    color: #64748b;
    text-align: center;
    padding: 2rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero {
        flex-direction: column;
        text-align: center;
    }
    .about-wrapper {
        flex-direction: column;
        text-align: center;
    }
    .about-text h3 {
        text-align: center;
    }
    .project-card img,
    .certificate-card img {
        max-height: 300px;
        padding: 10px;
    }
    .certificates-container {
        grid-template-columns: 1fr;
    }
    .projects-gallery {
        grid-template-columns: 1fr;
    }
}