/* ==========================================
   ROOT & GENERAL STYLES
   ========================================== */
:root {
    --primary-color: #0b0b0b; /* deep black for text/background */
    --muted: #111111;
    --accent-gold: #c9a66b; /* soft gold */
    --dark-bg: #0b0b0b;
    --light-bg: #f7f7f7;
    --text-dark: #111111;
    --text-muted: #6b6b6b;
    --border-color: #e9e9e9;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.9;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================
   NAVIGATION
   ========================================== */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-dark);
    font-weight: 600;
    letter-spacing: 0.12em;
    padding: 6px 10px;
    border-radius: 6px;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.menu-btn:hover {
    color: var(--accent-gold);
}

/* Dropdown behaviour when Menu is clicked */
.nav-menu.show {
    display: flex !important;
}

.nav-menu.dropdown {
    position: absolute;
    top: 64px;
    right: 20px;
    background: var(--white);
    padding: 12px 14px;
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    flex-direction: column;
    gap: 12px;
    z-index: 200;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.nav-menu {
    display: none; /* hidden by default so only 'Menu' shows */
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: color 0.25s ease, transform 0.25s ease;
}

.nav-link:hover {
    color: var(--accent-gold);
    transform: translateY(-2px);
}

.hamburger {
    display: none !important; /* keep hamburger hidden so only Menu appears */
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 5px 0;
    transition: 0.3s;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    background: var(--primary-color);
    color: var(--white);
    padding: 0 20px;
    text-align: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 800px;
}

.profile-pic-container {
    margin-bottom: 1.8rem;
    display: flex;
    justify-content: center;
}

.profile-pic {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255,255,255,0.12);
    box-shadow: 0 12px 30px rgba(11,11,11,0.25);
    transition: transform 0.35s ease;
}

.profile-pic:hover {
    transform: translateY(-4px) scale(1.02);
}

.hero-title {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
    line-height: 1.05;
    animation: slideInDown 0.8s ease;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    color: rgba(255,255,255,0.92);
    animation: slideInUp 0.8s ease;
    letter-spacing: 0.02em;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-ghost {
    background: transparent;
    color: inherit;
    padding: 10px 26px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.16);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.btn-ghost:hover {
    border-color: rgba(201,166,107,0.95);
    color: var(--accent-gold);
    transform: translateY(-3px);
}

/* ==========================================
   CONTACT BAR
   ========================================== */
.contact-bar {
    background: var(--light-bg);
    padding: 2rem 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* ==========================================
   SECTIONS
   ========================================== */
section {
    padding: 80px 20px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--text-dark), var(--accent-gold));
    border-radius: 2px;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
.about {
    background: var(--light-bg);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.1rem;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.highlight-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease;
}

.highlight-card:hover {
    transform: translateX(10px);
}

.highlight-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.highlight-card p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ==========================================
   SKILLS SECTION
   ========================================== */
.skills {
    background: var(--white);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
}

.skill-category h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-tag {
    background: var(--white);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* ==========================================
   SERVICES SECTION
   ========================================== */
.services {
    background: var(--light-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(108, 92, 231, 0.15);
}

.service-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-item h3 {
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.service-item p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

/* ==========================================
   EXPERIENCE SECTION
   ========================================== */
.experience {
    background: var(--light-bg);
}

.experience-timeline {
    position: relative;
    padding: 2rem 0;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
}

.timeline-item {
    margin-bottom: 3rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
}

.timeline-item:nth-child(even) .timeline-content {
    grid-column: 1;
}

.timeline-item:nth-child(odd) .timeline-content {
    grid-column: 3;
}

.timeline-marker {
    grid-column: 2;
    display: flex;
    justify-content: center;
    z-index: 10;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 4px solid var(--light-bg);
    display: block;
}

.timeline-content {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.position {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.experience-list {
    list-style: none;
    margin-top: 1rem;
}

.experience-list li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    line-height: 1.6;
}

.experience-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* ==========================================
   EDUCATION SECTION
   ========================================== */
.education {
    background: var(--white);
}

.education-card {
    background: var(--light-bg);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-top: 4px solid var(--primary-color);
}

.education-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.degree {
    color: var(--secondary-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.period {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.courses h4 {
    color: var(--text-dark);
    margin: 2rem 0 1rem;
    font-size: 1.1rem;
}

.grades-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.grades-table tr {
    border-bottom: 1px solid var(--border-color);
}

.grades-table td {
    padding: 0.8rem;
    text-align: left;
    color: var(--text-light);
}

.grades-table td:last-child {
    text-align: right;
    font-weight: 600;
}

.grades-table tr:hover {
    background: rgba(108, 92, 231, 0.05);
}

.grade {
    color: var(--primary-color);
}

.grade-high {
    color: var(--secondary-color);
    font-weight: bold;
}

/* ==========================================
   CERTIFICATIONS SECTION
   ========================================== */
.certifications {
    background: var(--light-bg);
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.cert-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.cert-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(108, 92, 231, 0.2);
}

.cert-icon {
    font-size: 3rem;
    color: #ffd700;
    margin-bottom: 1rem;
}

.cert-card h3 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.cert-issuer {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.cert-desc {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.cert-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cert-card:hover .cert-actions {
    opacity: 1;
}

.cert-actions i {
    margin-right: 0.5rem;
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
/* ==========================================
   PROJECTS SECTION
   ========================================== */
.projects {
    background: var(--light-bg);
    padding: 2rem 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(11,11,11,0.06);
    background: var(--white);
    display: flex;
    flex-direction: column;
}

.project-media {
    flex-shrink: 0;
}

.project-media img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: top center;
    display: block;
    vertical-align: bottom;
    transition: transform 0.6s ease;
}

.project-card:hover .project-media img {
    transform: scale(1.04);
}

.project-overlay {
    position: static;
    background: var(--white);
    color: var(--text-dark);
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-overlay h3 {
    margin: 0 0 8px 0;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.project-overlay .meta {
    margin: 6px 0;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

.project-overlay .tech {
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.project-link {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255,255,255,0.9);
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.project-link:hover {
    background: var(--accent-gold);
    color: var(--white);
    transform: translateY(-3px);
}

.contact {
    background: var(--white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-info > p {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-details {
    margin-bottom: 2rem;
}

.detail-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.detail-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 0.3rem;
}

.detail-item h4 {
    color: var(--text-dark);
    margin-bottom: 0.3rem;
}

.detail-item a,
.detail-item p {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.detail-item a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-5px);
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.contact-form .btn {
    margin-top: 1rem;
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-message.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ==========================================
   UPDATED PROJECTS SECTION
   ========================================== */
.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.project-header h3 {
    color: var(--primary-color);
    margin: 0;
    flex: 1;
}

.github-icon {
    color: var(--text-dark);
    font-size: 1.3rem;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.github-icon:hover {
    color: var(--primary-color);
}

.project-desc {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tool-tag {
    background: var(--light-bg);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ==========================================
   AVAILABILITY SECTION
   ========================================== */
.availability {
    background: var(--light-bg);
}

.availability-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.availability-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.availability-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(108, 92, 231, 0.15);
}

.availability-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.availability-card h3 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.availability-card p {
    color: var(--text-light);
    margin: 0.3rem 0;
    font-size: 0.95rem;
}

.availability-card p.small {
    font-size: 0.85rem;
    color: #95a5a6;
}

/* ==========================================
   WHY HIRE ME SECTION
   ========================================== */
.why-hire {
    background: var(--white);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.why-card {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.why-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(108, 92, 231, 0.1);
    border-color: var(--primary-color);
}

.why-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.why-card h3 {
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.why-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

/* ==========================================
   RATES SECTION
   ========================================== */
.rates {
    background: var(--light-bg);
}

.rates-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.rate-option {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    flex: 1;
    min-width: 250px;
    transition: all 0.3s ease;
}

.rate-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(108, 92, 231, 0.15);
}

.rate-option h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.rate-price {
    font-size: 2rem;
    color: var(--text-dark);
    font-weight: bold;
    margin: 1rem 0;
}

.rate-desc {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

.rate-divider {
    font-size: 1.2rem;
    color: var(--text-light);
    font-weight: 600;
}

.rates-note {
    text-align: center;
    color: var(--text-light);
    font-size: 0.95rem;
    font-style: italic;
    margin-top: 1rem;
}

/* ==========================================
   CERTIFICATE MODAL
   ========================================== */
.cert-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}

.cert-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.cert-modal-content {
    background-color: var(--white);
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cert-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.cert-modal-header h2 {
    color: var(--primary-color);
    margin: 0;
    font-size: 1.5rem;
}

.cert-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-modal-close:hover {
    color: var(--primary-color);
}

.cert-modal-body {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    background: var(--light-bg);
}

#certPdfViewer {
    width: 100%;
    height: 500px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.cert-modal-footer {
    display: flex;
    gap: 1rem;
    padding: 2rem;
    border-top: 1px solid var(--border-color);
    justify-content: center;
    flex-wrap: wrap;
}

.cert-modal-footer .btn {
    margin: 0;
}

/* ==========================================
   RESPONSIVE MODAL
   ========================================== */
@media (max-width: 768px) {
    .cert-modal-content {
        width: 95%;
        max-height: 95vh;
    }

    #certPdfViewer {
        height: 400px;
    }

    .cert-modal-header {
        padding: 1rem;
    }

    .cert-modal-body {
        padding: 1rem;
    }

    .cert-modal-footer {
        padding: 1rem;
        flex-direction: column;
    }

    .cert-modal-footer .btn {
        width: 100%;
    }
}
.footer {
    background: var(--dark-bg);
    color: var(--white);
    text-align: center;
    padding: 2rem 20px;
}

.footer p {
    margin: 0.5rem 0;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
    }

    .nav-menu.open {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        background: var(--white);
        position: absolute;
        top: 64px;
        right: 20px;
        padding: 12px 16px;
        border-radius: 8px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 0.8rem;
    }

    .contact-bar {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .experience-timeline::before {
        left: 15px;
    }

    .timeline-item {
        grid-template-columns: 30px 1fr;
        gap: 1rem;
    }

    .timeline-item:nth-child(even) .timeline-content,
    .timeline-item:nth-child(odd) .timeline-content {
        grid-column: 2;
    }

    .timeline-marker {
        grid-column: 1;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .grades-table {
        font-size: 0.9rem;
    }

    .grades-table td {
        padding: 0.6rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    section {
        padding: 40px 15px;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .skills-grid,
    .certifications-grid {
        grid-template-columns: 1fr;
    }

    .skill-tags {
        gap: 0.5rem;
    }

    .skill-tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
}
