:root {
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --secondary: #10b981;
    --dark: #1e293b;
    --dark-bg: #0f172a;
    --dark-nav: rgba(15, 23, 42, 0.8);
    --light: #f8fafc;
    --light-nav: rgba(255, 255, 255, 0.8);
    --gray: #64748b;
    --gray-light: #e2e8f0;
    --gray-dark: #334155;
    --blue-light: #dbeafe;
    --blue-dark: #1e3a8a;
    --border-light: #cbd5e1;
    --border-dark: #475569;
}
.about-image {
  max-width: 100%;   
  height: auto;      
  display: block;    
  margin: 0 auto;    
  border-radius: 10px; 
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--light);
    color: var(--dark);
    transition: all 0.3s ease;
}

body.dark {
    background-color: var(--dark-bg);
    color: var(--light);
}


html {
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
    line-height: 1.6;
}


.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}


.navbar {
    position: fixed;
    width: 100%;
    background-color: var(--light-nav);
    backdrop-filter: blur(12px);
    z-index: 50;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dark .navbar {
    background-color: var(--dark-nav);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: var(--dark);
}

.dark .logo {
    color: var(--light);
}

.logo-highlight {
    color: var(--primary);
}

.dark .logo-highlight {
    color: #60a5fa;
}

.nav-links {
    display: none;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-link {
    text-decoration: none;
    color: var(--gray-dark);
    transition: color 0.3s ease;
}

.dark .nav-link {
    color: var(--gray-light);
}

.nav-link:hover {
    color: var(--primary);
}

.dark .nav-link:hover {
    color: #60a5fa;
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle, .mobile-menu-btn {
    padding: 0.5rem;
    border-radius: 50%;
    background: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.theme-toggle:hover, .mobile-menu-btn:hover {
    background-color: var(--gray-light);
}

.dark .theme-toggle:hover, .dark .mobile-menu-btn:hover {
    background-color: var(--gray-dark);
}

.light-icon, .dark-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.light-icon {
    color: #f59e0b;
}

.dark-icon {
    color: #818cf8;
    display: none;
}

.dark .light-icon {
    display: none;
}

.dark .dark-icon {
    display: block;
}

.menu-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--gray-dark);
}

.dark .menu-icon {
    color: var(--gray-light);
}
/* ================= Mobile Menu ================= */

/* Desktop default */
.mobile-menu {
    display: none;
    position: absolute;        /* 🔥 REQUIRED */
    top: 100%;                 /* below navbar */
    left: 0;
    width: 100%;
    background: transparent;   /* invisible background */
    box-shadow: none;
    z-index: 999;              /* 🔥 REQUIRED */
}

.mobile-menu-btn {
    display: none;
}

/* Dark mode (still transparent) */
.dark .mobile-menu {
    background: transparent;
}

/* Mobile only */
@media (max-width: 767px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .mobile-menu {
        display: block; /* JS controls visibility using .hidden */
    }
}

/* Hidden utility */
.hidden {
    display: none !important;
}
}

.mobile-menu-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav-link {
    display: block;
    padding: 0.5rem 0;
    text-decoration: none;
    color: var(--gray-dark);
    transition: color 0.3s ease;
}

.dark .mobile-nav-link {
    color: var(--gray-light);
}

.mobile-nav-link:hover {
    color: var(--primary);
}

.dark .mobile-nav-link:hover {
    color: #60a5fa;
}


.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
    padding-bottom: 3rem;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .hero-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

.hero-content {
    order: 2;
}

@media (min-width: 768px) {
    .hero-content {
        order: 1;
    }
}

.hero-title {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

.hero-highlight {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--gray-dark);
    margin-bottom: 1.5rem;
}

.dark .hero-subtitle {
    color: var(--gray-light);
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.875rem;
    }
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.primary-btn, .secondary-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.primary-btn {
    background-color: var(--primary);
    color: white;
}

.primary-btn:hover {
    background-color: var(--primary-hover);
}

.secondary-btn {
    border: 1px solid var(--primary);
    color: var(--primary);
}

.secondary-btn:hover {
    background-color: rgba(59, 130, 246, 0.1);
}

.hero-image {
    order: 1;
    display: flex;
    justify-content: center;
}

@media (min-width: 768px) {
    .hero-image {
        order: 2;
    }
}

.profile-image-container {
    width: 16rem;
    height: 16rem;
    position: relative;
}

@media (min-width: 768px) {
    .profile-image-container {
        width: 20rem;
        height: 20rem;
    }
}

.profile-image {
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(59, 130, 246, 0.3);
    padding: 0.25rem;
    width: 100%;
    height: 100%;
}


.section {
    padding: 5rem 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.show {
    opacity: 1;
    transform: translateY(0);
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 1.875rem;
    text-align: center;
    margin-bottom: 1rem;
}

.section-divider {
    width: 4rem;
    height: 0.25rem;
    background-color: var(--primary);
    margin: 0 auto 3rem;
}


.about {
    background-color: rgba(248, 250, 252, 0.5);
}

.dark .about {
    background-color: rgba(30, 41, 59, 0.5);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .about-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

.about-image-container {
    display: flex;
    justify-content: center;
}

.about-image {
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    max-height: 500px;
}

.about-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.about-description {
    color: var(--gray-dark);
    margin-bottom: 1.5rem;
}

.dark .about-description {
    color: var(--gray-light);
}

.about-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.detail-title {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.dark .detail-title {
    color: var(--light);
}

.detail-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-item {
    display: flex;
    align-items: flex-start;
}

.detail-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--primary);
    margin-right: 0.5rem;
    margin-top: 0.125rem;
}

.detail-text {
    color: var(--gray-dark);
}

.dark .detail-text {
    color: var(--gray-light);
}


.skills-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .skills-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

.skills-subtitle {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-item {
    width: 100%;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.skill-name {
    font-weight: 500;
}

.skill-percent {
    color: var(--primary);
}

.skill-bar-bg {
    width: 100%;
    height: 0.625rem;
    background-color: var(--gray-light);
    border-radius: 9999px;
}

.dark .skill-bar-bg {
    background-color: var(--gray-dark);
}

.skill-bar-fill {
    height: 100%;
    background-color: var(--primary);
    border-radius: 9999px;
    animation: skillBar 1.5s ease forwards;
}

@keyframes skillBar {
    from { width: 0; }
    to { width: var(--skill-level); }
}

.tools-section {
    margin-top: 4rem;
}

.tools-title {
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1.5rem;
}

.tools-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--border-light);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.dark .tool-item {
    border-color: var(--border-dark);
}

.tool-item:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dark .tool-item:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.tool-icon {
    width: 3rem;
    height: 3rem;
    margin-bottom: 0.5rem;
}

.projects {
    background-color: rgba(248, 250, 252, 0.5);
}

.dark .projects {
    background-color: rgba(30, 41, 59, 0.5);
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.project-card {
    background-color: var(--light);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dark .project-card {
    background-color: var(--dark-nav);
}

.project-card:hover {
    transform: translateY(-0.3125rem);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.dark .project-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.project-image-container {
    height: 12rem;
    overflow: hidden;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.project-description {
    color: var(--gray-dark);
    margin-bottom: 1rem;
}

.dark .project-description {
    color: var(--gray-light);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.project-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    background-color: var(--blue-light);
    color: var(--blue-dark);
    border-radius: 9999px;
}

.dark .project-tag {
    background-color: rgba(37, 99, 235, 0.5);
    color: #93c5fd;
}

.project-links {
    display: flex;
    justify-content: space-between;
}

.project-link {
    display: flex;
    align-items: center;
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: var(--primary-hover);
}

.link-icon {
    width: 1rem;
    height: 1rem;
    margin-left: 0.25rem;
}

.view-all-projects {
    margin-top: 3rem;
    text-align: center;
}

.view-all-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background-color: var(--primary);
    color: white;
}

.dark .view-all-btn:hover {
    background-color: var(--primary-hover);
}


.contact-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .contact-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

.contact-subtitle {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.contact-description {
    color: var(--gray-dark);
    margin-bottom: 2rem;
}

.dark .contact-description {
    color: var(--gray-light);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
}

.contact-icon-container {
    background-color: var(--blue-light);
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-right: 1rem;
}

.dark .contact-icon-container {
    background-color: rgba(37, 99, 235, 0.3);
}

.contact-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--primary);
}

.contact-detail-title {
    font-weight: 500;
    color: var(--dark);
}

.dark .contact-detail-title {
    color: var(--light);
}

.contact-detail-text {
    color: var(--gray-dark);
}

.dark .contact-detail-text {
    color: var(--gray-light);
}

.social-media {
    margin-top: 2rem;
}

.social-title {
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 1rem;
}

.dark .social-title {
    color: var(--light);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    background-color: var(--gray-light);
    padding: 0.75rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;
}

.dark .social-icon {
    background-color: var(--gray-dark);
}

.social-icon:hover {
    background-color: var(--border-light);
}

.dark .social-icon:hover {
    background-color: var(--gray-dark);
}

.social-svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: currentColor;
    color: var(--gray-dark);
}

.dark .social-svg {
    color: var(--gray-light);
}


.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    width: 100%;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-dark);
    margin-bottom: 0.5rem;
}

.dark .form-label {
    color: var(--gray-light);
}

.form-input, .form-textarea {
    width: 100%;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: 0.5rem;
    background-color: var(--light);
    color: var(--dark);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.dark .form-input, .dark .form-textarea {
    border-color: var(--border-dark);
    background-color: var(--gray-dark);
    color: var(--light);
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5);
}

.form-textarea {
    min-height: 8rem;
    resize: vertical;
}

.submit-btn {
    padding: 0.75rem 1.5rem;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    background-color: var(--primary-hover);
}


.footer {
    background: rgba(0, 0, 0, 0.35); /* semi-transparent */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    padding: 3rem 1.5rem;
    position: relative;
    z-index: 1;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
    }
}

.footer-info {
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .footer-info {
        margin-bottom: 0;
    }
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: white;
}

.footer-logo-highlight {
    color: #60a5fa;
}

.footer-text {
    color: #94a3b8;
    margin-top: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-link {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
    }
}

.copyright {
    color: #94a3b8;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .copyright {
        margin-bottom: 0;
    }
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social-icon {
    color: #94a3b8;
    transition: color 0.3s ease;
}

.footer-social-icon:hover {
    color: white;
}

.footer-social-svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: currentColor;
}


@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.floating {
    animation: float 4s ease-in-out infinite;
}


.hidden {
    display: none;

}


.glass-section {
   
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.2),
        rgba(255, 255, 255, 0.05)
    );
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); 
    border-radius: 1rem;          
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.glass-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}


.dark .glass-section {
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.3),
        rgba(0, 0, 0, 0.1)
    );
    border-color: rgba(255, 255, 255, 0.1);
}

/* Particles layer */
#particles-js {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: auto;
}

/* Make content visible but NOT block mouse */
.navbar,
.section,
.footer {
  position: relative;
  z-index: 1;
  pointer-events: none;
}

/* Re-enable interaction for clickable elements */
.navbar *,
.section a,
.section button,
.section input,
.section textarea,
.footer * {
  pointer-events: auto;
}



