/* ==========================================================================
   Premium Dark Mode & Glassmorphism Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --bg-dark: #07080d;
    --bg-card: rgba(17, 18, 27, 0.65);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-active: rgba(99, 102, 241, 0.4);
    
    --primary: #6366f1; /* Indigo */
    --primary-glow: rgba(99, 102, 241, 0.4);
    --secondary: #06b6d4; /* Teal */
    --secondary-glow: rgba(6, 182, 212, 0.4);
    
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-dark: #6b7280;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Decorative Background Blobs */
.bg-glow-1, .bg-glow-2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.45;
}

.bg-glow-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-glow);
    top: 10%;
    left: -150px;
    animation: floatBlob 20s infinite alternate;
}

.bg-glow-2 {
    width: 500px;
    height: 500px;
    background: var(--secondary-glow);
    bottom: 20%;
    right: -200px;
    animation: floatBlob 25s infinite alternate-reverse;
}

@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, 80px) scale(1.1); }
    100% { transform: translate(-20px, -40px) scale(0.9); }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: #ffffff;
    font-weight: 700;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

/* Base Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 8rem 0 4rem 0;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

header.scrolled {
    padding: 1rem 0;
    background: rgba(7, 8, 13, 0.75);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

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

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    padding: 0.25rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover {
    color: #ffffff;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary));
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #ffffff;
    transform: translateY(-3px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 6rem;
    padding-bottom: 4rem;
}

/* Hero Grid Layout */
.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-content {
    max-width: 700px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

.hero-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Premium Floating Profile Image Frame */
.hero-image-wrapper {
    position: relative;
    width: 320px;
    height: 380px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    border-radius: 30px;
    overflow: visible;
}

/* Aesthetic Animated Background Glow & Shapes */
.hero-image-bg {
    position: absolute;
    top: 15%;
    left: 5%;
    width: 90%;
    height: 80%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 30px;
    z-index: 1;
    box-shadow: 0 15px 35px var(--primary-glow);
    animation: shapeMorph 8s ease-in-out infinite alternate, floatingBg 6s ease-in-out infinite alternate;
}

.hero-profile-img {
    width: 320px;
    height: 380px;
    object-fit: cover;
    z-index: 2;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.6));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    border: 3px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 35px var(--primary-glow);
    animation: floatingImg 6s ease-in-out infinite, shapeMorph 8s ease-in-out infinite alternate;
}

/* Keyframes for Shape Morphing background */
@keyframes shapeMorph {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    50% {
        border-radius: 70% 30% 30% 70% / 50% 60% 40% 50%;
    }
    100% {
        border-radius: 40% 60% 50% 50% / 60% 30% 70% 40%;
    }
}

/* Floating animation for image */
@keyframes floatingImg {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Gentle pulse and rotate animation for bg */
@keyframes floatingBg {
    0% {
        transform: rotate(0deg) scale(0.98);
        filter: hue-rotate(0deg) blur(5px);
    }
    50% {
        transform: rotate(3deg) scale(1.02);
        filter: hue-rotate(15deg) blur(12px);
    }
    100% {
        transform: rotate(-3deg) scale(0.98);
        filter: hue-rotate(-15deg) blur(5px);
    }
}

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

.section-subtitle {
    font-size: 0.9rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.section-title {
    font-size: 2.5rem;
    margin-top: 0.5rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 4rem;
    align-items: start;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 2.5rem;
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.profile-img-container {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 3px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 17px;
}

.profile-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.profile-info p {
    color: var(--primary);
    font-weight: 500;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.skills-container {
    margin-top: 3rem;
}

.skills-container h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

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

.skill-item h5 {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.skill-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 10px;
    width: 0;
    transition: width 1.5s ease-in-out;
}

/* Projects Section */
.project-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3.5rem;
}

.filter-btn {
    padding: 0.6rem 1.8rem;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

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

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(16px);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-glass-active);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.15);
}

.project-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #111;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.project-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.project-title {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.project-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.tech-tag {
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.3rem 0.8rem;
    border-radius: 30px;
    color: var(--text-main);
    border: 1px solid var(--border-glass);
}

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

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

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

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 4rem;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 2.5rem;
    backdrop-filter: blur(16px);
}

.contact-info-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.contact-info-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.social-links {
    margin-top: 3rem;
    display: flex;
    gap: 1.5rem;
}

.social-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.8rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.6rem;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 0.9rem 1.2rem;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
    background: rgba(255, 255, 255, 0.04);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Contact feedback */
.form-alert {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    display: none;
}

.form-alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
}

.form-alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

/* Footer */
footer {
    padding: 4rem 0;
    border-top: 1px solid var(--border-glass);
    text-align: center;
    background: #040508;
    color: var(--text-dark);
}

footer p {
    font-size: 0.9rem;
}

/* Admin Dashboard Styles */
.admin-body {
    background: #090a0f;
}

.admin-header {
    background: rgba(13, 15, 24, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.admin-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-badge {
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--primary);
    padding: 0.2rem 0.6rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 3rem 0;
}

.admin-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 1rem;
}

/* Styled Admin Tables */
.table-responsive {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    color: var(--text-main);
    font-size: 0.95rem;
}

.admin-table th {
    font-family: var(--font-heading);
    font-weight: 600;
    color: #ffffff;
    padding: 1rem;
    border-bottom: 2px solid var(--border-glass);
    background: rgba(255, 255, 255, 0.02);
}

.admin-table td {
    padding: 1.2rem 1rem;
    border-bottom: 1px solid var(--border-glass);
    vertical-align: top;
}

.admin-table tr:hover {
    background: rgba(255, 255, 255, 0.01);
}

.badge-cat {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-cat-web {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.badge-cat-mobile {
    background: rgba(6, 182, 212, 0.15);
    color: var(--secondary);
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.badge-cat-design {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Admin Login Styles */
.login-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 3rem;
    backdrop-filter: blur(16px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    text-align: center;
}

.login-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.login-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
}

.login-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

/* Animations for Skills trigger */
.skills-active .skill-progress {
    width: var(--progress);
}

/* Education Timeline Styles */
.education-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.education-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 31px;
    width: 2px;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 80px;
}

.timeline-badge {
    position: absolute;
    left: 15px;
    top: 5px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 3px solid var(--primary);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 0.8rem;
    box-shadow: 0 0 10px var(--primary-glow);
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    backdrop-filter: blur(16px);
    transition: var(--transition);
}

.timeline-content:hover {
    border-color: var(--border-glass-active);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.1);
}

.timeline-year {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.timeline-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.timeline-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Certifications Styles */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.cert-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    backdrop-filter: blur(16px);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    overflow: hidden;
}

.cert-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-glass-active);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.15);
}

.cert-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/11;
    background: #11131c;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-glass);
}

.cert-img-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.cert-icon-placeholder {
    font-size: 3rem;
    color: var(--secondary);
    opacity: 0.6;
    transition: var(--transition);
}

.cert-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 8, 13, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.cert-overlay i {
    font-size: 1.5rem;
    color: #fff;
    transform: translateY(10px);
    transition: var(--transition);
}

.cert-card:hover .cert-overlay {
    opacity: 1;
}

.cert-card:hover .cert-overlay i {
    transform: translateY(0);
}

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

.cert-card:hover .cert-icon-placeholder {
    transform: scale(1.08);
    opacity: 0.9;
}

.cert-info-box {
    padding: 1.25rem;
}

.cert-info-box h4 {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    line-height: 1.4;
    color: #ffffff;
    font-weight: 600;
}

.cert-info-box p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Fullscreen Lightbox Modal */
.cert-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 5, 8, 0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 2rem;
}

.cert-modal.show {
    display: flex;
    opacity: 1;
}

.cert-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 85%;
    background: #0d0f17;
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cert-modal-img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
}

.cert-modal-title {
    margin-top: 1rem;
    font-size: 1.1rem;
    color: #fff;
    text-align: center;
    font-family: var(--font-heading);
}

.cert-modal-close {
    position: absolute;
    top: -45px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
}

.cert-modal-close:hover {
    color: var(--primary);
    transform: scale(1.1);
}

/* Additional Skills Layout */
.skill-category-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(16px);
    transition: var(--transition);
}

.skill-category-card:hover {
    border-color: var(--border-glass-active);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.1);
}

.skill-category-card h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.pill-item {
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    color: var(--text-main);
    transition: var(--transition);
}

.pill-item:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

/* Media Queries for Responsiveness */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
        padding-top: 2rem;
    }

    .hero-image-container {
        order: -1;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 3.2rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1rem 0;
        background: rgba(7, 8, 13, 0.95);
        border-bottom: 1px solid var(--border-glass);
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #0d0f17;
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--border-glass);
        box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .education-timeline::before {
        left: 20px;
    }
    .timeline-item {
        padding-left: 50px;
    }
    .timeline-badge {
        left: 4px;
    }

    .hero-image-wrapper {
        width: 260px;
        height: 310px;
    }
}
