/* ===== Custom Properties (CSS Variables) ===== */
:root {
    /* Colors */
    --primary-color: #7c3aed; /* Vibrant Purple */
    --primary-light: #8b5cf6;
    --primary-dark: #6d28d9;
    --secondary-color: #0ea5e9; /* Light Blue */
    
    /* Dark Mode Palette */
    --bg-color: #0f172a; /* Slate 900 */
    --bg-alt: #1e293b; /* Slate 800 */
    --text-color: #f8fafc; /* Slate 50 */
    --text-muted: #94a3b8; /* Slate 400 */
    --border-color: rgba(255, 255, 255, 0.1);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout */
    --container-width: 1200px;
    --nav-height: 80px;
    
    /* Glassmorphism */
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    
    /* Transitions */
    --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;
    scroll-padding-top: var(--nav-height);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
    overflow-x: hidden;
}

/* Particle Background */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background-color: var(--bg-color);
}

/* Abstract Background Shapes */
.bg-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.5;
    animation: float 20s infinite alternate;
    pointer-events: none;
}

.shape-1 {
    width: 50vw;
    height: 50vw;
    max-width: 500px;
    max-height: 500px;
    background: radial-gradient(circle, var(--primary-color), transparent 70%);
    top: -10vw;
    left: -10vw;
}

.shape-2 {
    width: 60vw;
    height: 60vw;
    max-width: 600px;
    max-height: 600px;
    background: radial-gradient(circle, var(--secondary-color), transparent 70%);
    bottom: -10vw;
    right: -10vw;
    animation-delay: -10s;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 100px 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }
}

.bg-alt {
    background-color: rgba(30, 41, 59, 0.4);
}

/* ===== Typography ===== */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-title h2 span {
    color: var(--primary-color);
}

.section-title .line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 0 auto;
    border-radius: 2px;
}

/* ===== Components ===== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    font-family: var(--font-heading);
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.6);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: white;
}

.btn-secondary:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 16px;
}

/* ===== Reveal Animation ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-color);
}

.logo span {
    color: var(--primary-color);
}

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

.nav-links li a {
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

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

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--primary-light);
}

.menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--bg-alt);
    z-index: 1001;
    padding: 80px 2rem;
    transition: var(--transition);
    border-left: 1px solid var(--glass-border);
}

.mobile-menu.open {
    right: 0;
}

.close-btn {
    position: absolute;
    top: 30px;
    right: 2rem;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-links li a {
    font-size: 1.2rem;
    font-weight: 500;
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

/* ===== Home Section ===== */
.home {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--nav-height);
}

.home-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.home-content .greeting {
    font-size: 1.2rem;
    color: var(--primary-light);
    font-weight: 500;
    display: block;
    margin-bottom: 10px;
}

.home-content .name {
    font-size: 4.5rem;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #fff, var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.home-content .typing-text {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.home-content .typed-word {
    color: var(--secondary-color);
}

.home-content .description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 500px;
}

.home-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

.home-image {
    display: flex;
    justify-content: center;
    position: relative;
}

.img-box {
    position: relative;
    width: 400px;
    height: 400px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    overflow: hidden;
    animation: morph 8s ease-in-out infinite;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.3);
}

.img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes morph {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
    50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
    75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@media (max-width: 768px) {
    .scroll-down {
        display: none;
    }
}

.scroll-down a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-20px) translateX(-50%); }
    60% { transform: translateY(-10px) translateX(-50%); }
}

/* ===== About Section ===== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-light);
}

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

.stats {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--secondary-color);
}

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

.about-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.info-card {
    padding: 25px;
    text-align: center;
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-light);
}

.info-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.info-card h4 {
    margin-bottom: 10px;
}

.info-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ===== Skills Section ===== */
.skills-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.skill-category {
    padding: 30px;
}

.skill-category h3 {
    margin-bottom: 25px;
    font-size: 1.5rem;
    text-align: center;
    color: var(--primary-light);
}

.skill-item {
    margin-bottom: 20px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 500;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-color);
    border-radius: 10px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    position: relative;
    /* width is set inline via html */
}

/* ===== Projects Section ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    overflow: hidden;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.project-links {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-links {
    opacity: 1;
}

.project-links a {
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: var(--transition);
}

.project-links a:hover {
    background: white;
    color: var(--primary-color);
    transform: scale(1.1);
}

.project-info {
    padding: 25px;
}

.project-info .tags {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.project-info .tags span {
    font-size: 0.8rem;
    padding: 4px 10px;
    background: rgba(124, 58, 237, 0.2);
    color: var(--primary-light);
    border-radius: 20px;
}

.project-info h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

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

/* ===== Education Section ===== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 60px;
}

.timeline-dot {
    position: absolute;
    top: 0;
    left: 11px;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 4px solid var(--bg-alt);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.2);
}

.timeline-content {
    padding: 25px;
}

.timeline-date {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(14, 165, 233, 0.2);
    color: var(--secondary-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.timeline-content h3 {
    margin-bottom: 5px;
}

.timeline-content h4 {
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 15px;
}

.timeline-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ===== Journey Section (Grid) ===== */
.journey-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
}

.journey-type {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--primary-light);
    display: flex;
    align-items: center;
    gap: 15px;
}

.journey-type i {
    color: var(--secondary-color);
}

@media (max-width: 992px) {
    .journey-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .journey-type {
        margin-bottom: 20px;
    }
}

/* ===== Certifications Section ===== */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.cert-card {
    padding: 30px;
    text-align: center;
    transition: var(--transition);
}

.cert-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-light);
}

.cert-img {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.cert-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.cert-card h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.cert-card p {
    color: var(--text-muted);
    margin-bottom: 10px;
}

.cert-date {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.cert-link {
    color: var(--secondary-color);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.cert-link:hover {
    color: var(--primary-light);
    gap: 10px;
}

/* ===== Testimonial Section ===== */
.testimonial-slider {
    max-width: 800px;
    margin: 0 auto 30px;
}

.testimonial-slide {
    padding: 40px;
    text-align: center;
}

.quote-icon {
    font-size: 3rem;
    color: rgba(124, 58, 237, 0.2);
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 30px;
}

.client-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.client-img {
    position: relative;
    width: 70px;
    height: 70px;
}

.client-img::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    opacity: 0.5;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 0.5; }
}

.client-info img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bg-alt);
    position: relative;
    z-index: 1;
}

.client-details {
    text-align: left;
}

.client-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 2px;
}

.client-role {
    font-size: 0.9rem;
    color: var(--primary-light);
    font-weight: 500;
    margin-bottom: 0;
}

.client-company {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.slider-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.slider-btn:hover {
    background: var(--primary-color);
}

.slider-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    background: var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary-color);
    width: 25px;
    border-radius: 5px;
}

/* ===== Contact Section ===== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.contact-info > p {
    color: var(--text-muted);
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.contact-item h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.contact-item p {
    color: var(--text-muted);
}

.contact-form {
    padding: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-family: var(--font-body);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(15, 23, 42, 0.8);
}

.submit-btn {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

/* ===== Footer ===== */
footer {
    background: rgba(15, 23, 42, 0.9);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 20px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.footer-logo h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.footer-logo span {
    color: var(--primary-color);
}

.footer-logo p {
    color: var(--text-muted);
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== Custom Cursor ===== */
.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    transition: opacity 0.3s ease-out;
}

.cursor-dot.hovered {
    opacity: 0;
}

.cursor-outline {
    width: 28px;
    height: 28px;
    border: 2px solid var(--primary-light);
    transition: width 0.3s ease-out, height 0.3s ease-out, background-color 0.3s ease-out;
}

.cursor-outline.hovered {
    width: 50px;
    height: 50px;
    background-color: rgba(124, 58, 237, 0.1);
}

.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

/* ===== Modal Styles ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 30px;
    transform: scale(0.9);
    transition: var(--transition);
    /* Hide scrollbar for clean look */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.modal-content::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: rgba(15, 23, 42, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.modal-close:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: rotate(90deg);
}

.modal-image {
    width: 100%;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-details h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--primary-light);
}

.modal-details .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.modal-details .tags span {
    font-size: 0.8rem;
    padding: 4px 12px;
    background: rgba(124, 58, 237, 0.2);
    color: var(--primary-light);
    border-radius: 20px;
}

.modal-details p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.modal-body-content p {
    color: var(--text-muted);
    margin-bottom: 15px;
    line-height: 1.8;
}

.modal-body-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
}

/* ===== Media Queries ===== */
@media (max-width: 1024px) {
    .home-content .name {
        font-size: 3.5rem;
    }
    
    .about-content,
    .skills-container,
    .contact-wrapper {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .menu-btn {
        display: block;
    }
    
    .home-container,
    .about-content,
    .skills-container,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .bg-shape {
        display: none !important;
    }

    .home {
        height: auto !important;
        min-height: 100vh !important;
        display: block !important;
        padding-top: 120px !important; 
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
        position: relative !important;
        overflow: hidden;
    }

    .home-container {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 20px !important;
    }

    .home-content {
        text-align: center;
        width: 100%;
        margin-bottom: 40px;
    }

    .home-image {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: 40px;
    }

    .home-content .description {
        margin: 0 auto 30px;
    }
    
    .home-buttons {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
        margin-bottom: 60px !important; /* Large margin to clear next section */
    }

    #about {
        margin-top: 60px !important;
    }
    
    .img-box {
        width: 280px;
        height: 280px;
    }
    
    .about-cards {
        grid-template-columns: 1fr;
    }

    .nav-container {
        padding: 0 20px;
    }
    
    .footer-top {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .home-content .name {
        font-size: 2.2rem;
        line-height: 1.1;
    }
    
    .home-content .typing-text {
        font-size: 1.3rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .stats {
        flex-direction: column;
        gap: 20px;
    }

    .nav-container {
        padding: 0 20px;
    }

    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 20px !important;
        box-sizing: border-box !important;
    }

    .journey-type {
        font-size: 1.5rem;
    }

    .cert-grid {
        gap: 20px;
    }

    .cert-card {
        padding: 20px;
    }

    .timeline-item {
        padding-left: 35px;
    }

    .timeline::before {
        left: 10px;
    }

    .timeline-dot {
        left: 1px;
    }

    .bg-shape {
        opacity: 0.15;
        filter: blur(80px);
    }
    
    .shape-1 {
        width: 250px;
        height: 250px;
        top: -100px;
        left: -100px;
    }
    
    .shape-2 {
        width: 300px;
        height: 300px;
        bottom: -150px;
        right: -150px;
    }

    .home-content .description {
        font-size: 1rem;
        margin: 0 auto 20px;
    }

    .social-links {
        margin-bottom: 40px !important;
    }
}
