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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Dark theme base */
/* Dark theme base */
body.dark {
    color: #e5e7eb;
    background: #0f172a;
}

/* Navbar */
/* dark styles removed */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 70px;
}

.theme-toggle {
    background: transparent;
    border: 2px solid rgba(0,0,0,0.1);
    color: #333;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: auto;
    transition: all 0.3s ease;
}
.theme-toggle i { pointer-events: none; }

.theme-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

.nav-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
    text-decoration: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-right: auto;
}
.nav-toggle { margin-left: 5rem; } 

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin-left: auto;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #667eea;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-title {
    color: white;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 3.5rem;
    letter-spacing: 2px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1.2s ease-out 0.5s both;
}

.hero-title .highlight {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subheading {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.mb-4.mt-3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 3.2rem;
    letter-spacing: 1px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1.2s ease-out 0.7s both;
}

.mb-4.mt-3 span {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.hero-subtitle {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    letter-spacing: 1px;
    animation: fadeInUp 1s ease-out 1.2s both;
}

#typing-animation {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    color: #ffd700;
    font-weight: 600;
    min-height: 2rem;
    display: flex;
    align-items: center;
    font-style: italic;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 1px;
    animation: fadeInUp 1s ease-out 1s both;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #333;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
}

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

.btn-secondary:hover {
    background: white;
    color: #667eea;
    transform: translateY(-2px);
}

.hero-image {
    position: absolute;
    top: 40px;
    right: 60px;
    z-index: 20;
    animation: slideInRight 2.5s ease-out;
}

.profile-card {
    position: relative;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(15px);
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: pulse 3s ease-in-out infinite;
}

.profile-image {
    width: 120%;
    height: 120%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
}

.profile-photo {
    width: 120%;
    height: 120%;
    object-fit: cover;
    border-radius: 50%;
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
}

.floating-element {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    animation: float 3s ease-in-out infinite;
    animation-delay: var(--delay);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.floating-element:nth-child(1) { top: -25px; left: -25px; }
.floating-element:nth-child(2) { top: -25px; right: -25px; }
.floating-element:nth-child(3) { bottom: -25px; left: -25px; }
.floating-element:nth-child(4) { bottom: -25px; right: -25px; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    }
}

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

.scroll-arrow {
    width: 30px;
    height: 30px;
    border: 2px solid white;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

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

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Inter', 'Poppins', sans-serif;
    letter-spacing: 0.5px;
}

/* Confident button styles */
.btn {
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.3s ease, color 0.3s ease;
}
.btn-primary {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #111827;
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.25);
}
.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 18px 35px rgba(255, 215, 0, 0.35);
}
.btn-secondary {
    border: 2px solid #fff;
}
.btn-secondary:hover {
    transform: translateY(-3px) scale(1.02);
}

/* Stronger cards */
.skill-category, .project-card, .stat {
    border: 1px solid rgba(0,0,0,0.04);
}
body.dark .skill-category, body.dark .project-card, body.dark .stat {
    border-color: rgba(255,255,255,0.06);
}

/* Hero subtle vignette */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(80% 60% at 50% 0%, rgba(255,255,255,0.12), transparent 60%);
}

/* Portfolio cards hover lift */
.project-card:hover, .skill-category:hover, .stat:hover {
    transform: translateY(-8px);
}

/* Headings in content */
.project-content h3, .timeline-content h4 {
    font-family: 'Inter', 'Poppins', sans-serif;
    font-weight: 700;
}

/* Dark tweaks */
body.dark .btn-primary { color: #0f172a; }
body.dark .hero::after { background: radial-gradient(80% 60% at 50% 0%, rgba(255,255,255,0.06), transparent 60%); }

/* About Section */
.about {
    background: #f8f9fa;
}

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

.about-text {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #666;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.stat h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.stat p {
    color: #666;
    font-weight: 500;
}

/* About section now uses full width without image */

/* Resume Section */
.resume {
    background: #f8f9fa;
}

.resume-content {
    max-width: 800px;
    margin: 0 auto;
}

.resume-intro {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.resume-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
}

.experience-section,
.education-section,
.certifications-section {
    margin-bottom: 3rem;
}

.experience-section h3,
.education-section h3,
.certifications-section h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #667eea;
    text-align: center;
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

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

.timeline-item::before {
    content: '';
    position: absolute;
    left: -0.5rem;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    background: #667eea;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px #667eea;
}

.timeline-date {
    font-weight: 600;
    color: #667eea;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.timeline-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
}

.timeline-content h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.timeline-content h5 {
    font-size: 1.2rem;
    color: #667eea;
    margin-bottom: 1rem;
    font-weight: 500;
}

.timeline-content p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.timeline-content ul {
    list-style: none;
    padding: 0;
}

.timeline-content li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: #666;
    line-height: 1.6;
}

.timeline-content li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.education-item {
    display: flex;
    gap: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.education-item:hover {
    transform: translateY(-3px);
}

.education-date {
    min-width: 120px;
    font-weight: 600;
    color: #667eea;
    font-size: 1.1rem;
}

.education-content h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.education-content h5 {
    font-size: 1.1rem;
    color: #667eea;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.education-content p {
    color: #666;
}

.certification-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.certification-item:hover {
    transform: translateY(-3px);
}

.certification-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.certification-item p {
    color: #666;
    line-height: 1.6;
}

.resume-download {
    text-align: center;
    margin-top: 3rem;
}

/* Skills Section */
.skills {
    background: white;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
}

.skill-category h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #667eea;
    text-align: center;
}

.skill-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.skill-item i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #667eea;
}

.skill-item span {
    font-weight: 500;
    color: #666;
}

/* Projects Section */
.projects {
    background: #f8f9fa;
}

.projects-intro {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.project-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.project-image {
    height: 200px;
    overflow: hidden;
}

.project-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

/* Make project images fill the placeholder area */
.project-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;    /* fills and crops to the container */
  object-position: center;
  display: block;       /* removes baseline gap */
}

.project-content {
    padding: 2rem;
}

.project-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.project-content p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

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

.project-tech span {
    background: #f0f0f0;
    color: #666;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

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

.project-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: #764ba2;
}

.projects-footer {
    background-size: cover;
    text-align: center;
    margin-top: 3rem;
    padding: 4rem 2rem;
    background-color: #f5f5f5;
    background-image: url('../Images/bg_1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.projects-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.projects-footer > * {
    position: relative;
    z-index: 2;
}

.projects-footer p {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    font-weight: 600;
    line-height: 1.4;
}

.github-button-container {
    text-align: center;
}

.github-button-container .btn {
    font-size: 1.2rem;
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    text-transform: var(--font-size-lg);
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.github-button-container .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Contact Section */
.contact {
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.contact-info p {
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-items {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.contact-item i {
    font-size: 1.5rem;
    color: #667eea;
    margin-right: 1rem;
    width: 30px;
}

.contact-item h4 {
    font-weight: 600;
    margin-bottom: 0.2rem;
    color: #333;
}

.contact-item p {
    color: #666;
    margin: 0;
}

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

.social-link {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
}

.contact-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 20px;
}

.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        margin-left: auto;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

   .nav-menu {
  margin-right: 20px;
}

@media (max-width: 768px) {
  .nav-menu {
    margin-right: 10px; /* smaller gap on mobile */
  }
}
.theme-toggle {
  margin-left: 16px !important; /* gap between Contact and dark button */
}
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

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

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    #typing-animation {
        font-size: 1.2rem;
        min-height: 1.5rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        flex-direction: column;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline {
        padding-left: 1rem;
    }
    
    .timeline-item {
        padding-left: 1rem;
    }
    
    .education-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .education-date {
        min-width: auto;
    }
    
    .projects-footer {
        padding: 2rem 1rem;
    }
    
    .projects-footer p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .profile-card {
        width: 180px;
        height: 180px;
    }
    
    .projects-footer {
        padding: 1.5rem 1rem;
    }
    
    .projects-footer p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
}

    .floating-element {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .mb-4.mt-3 {
        font-size: 2.2rem;
    }
    
    #typing-animation {
        font-size: 1.4rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }


/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth scrolling for older browsers */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
} 

/* Theme: Cyan–Blue Refresh (non-destructive overrides) */
/* Primary: #06b6d4 (cyan-500) → #3b82f6 (blue-500) */
.hero {
  background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
}

.section-title {
  background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-logo a {
  background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Surfaces using the primary gradient */
.image-placeholder,
.project-placeholder,
.social-link {
  background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
}

/* Primary actions */
.btn-primary {
  background: linear-gradient(45deg, #06b6d4, #3b82f6);
  color: #0b1220;
  box-shadow: 0 10px 25px rgba(6, 182, 212, 0.25);
}
.btn-primary:hover {
  box-shadow: 0 18px 35px rgba(6, 182, 212, 0.35);
}

/* Links and icon accents */
.nav-link:hover,
.project-link:hover,
.skill-item i,
.stat h3,
.education-date,
.timeline-date {
  color: #0ea5e9; /* sky-500 */
}

/* Timeline accent */
.timeline::before {
  background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
}
.timeline-item::before {
  background: #06b6d4;
  box-shadow: 0 0 0 3px #06b6d4;
}

/* Dark mode harmonization for cyan/blue */
body.dark .section-title {
  font-weight: bold;
  background: linear-gradient(270deg, #60a5fa, #a78bfa, #60a5fa);
  background-size: 600% 600%;
  animation: gradientShift 6s ease infinite;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
body.dark .nav-link:hover,
body.dark .project-link:hover {
  color: #7dd3fc; /* light cyan */
}
body.dark .btn-primary {
  background: linear-gradient(45deg, #22d3ee, #60a5fa);
  color: #0b1220;
}
body.dark .image-placeholder,
body.dark .project-placeholder,
body.dark .social-link {
  background: linear-gradient(135deg, #22d3ee 0%, #60a5fa 100%);
} 

/* Theme: Elegant Slate + Gold (non-destructive overrides) */
/* Base accents: Gold #ffd700 → #fbbf24, Slates/Navy backgrounds */
.hero {
  background: linear-gradient(135deg, #0b1220 0%, #1f2937 100%);
}

.section-title {
  background: linear-gradient(135deg, #ffd700 0%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-logo a {
  background: linear-gradient(135deg, #ffd700 0%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Gold surfaces for placeholders/social */
.image-placeholder,
.project-placeholder,
.social-link {
  background: linear-gradient(135deg, #ffd700 0%, #fbbf24 100%);
}

/* Primary actions remain gold */
.btn-primary {
  background: linear-gradient(45deg, #ffd700, #fbbf24);
  color: #0b1220;
  box-shadow: 0 10px 25px rgba(251, 191, 36, 0.25);
}
.btn-primary:hover {
  box-shadow: 0 18px 35px rgba(251, 191, 36, 0.35);
}

/* Accents */
.nav-link:hover,
.project-link:hover,
.skill-item i,
.stat h3,
.education-date,
.timeline-date {
  color: #fbbf24;
}

/* Timeline accents */
.timeline::before {
  background: linear-gradient(135deg, #ffd700 0%, #fbbf24 100%);
}
.timeline-item::before {
  background: #ffd700;
  box-shadow: 0 0 0 3px #ffd700;
}

/* Card borders subtle */
.skill-category, .project-card, .stat {
  border-color: rgba(0,0,0,0.06);
}
body.dark .skill-category, body.dark .project-card, body.dark .stat {
  border-color: rgba(255,255,255,0.08);
}

/* Dark mode harmonization for Slate + Gold */
body.dark .hero {
  background: linear-gradient(135deg, #0b1220 0%, #0f172a 100%);
}
body.dark .section-title {
  background: linear-gradient(135deg, #fde68a 0%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
body.dark .btn-primary {
  background: linear-gradient(45deg, #fde68a, #fbbf24);
  color: #0b1220;
}
body.dark .image-placeholder,
body.dark .project-placeholder,
body.dark .social-link {
  background: linear-gradient(135deg, #fde68a 0%, #fbbf24 100%);
}
body.dark .nav-link:hover,
body.dark .project-link:hover {
  color: #fde68a;
} 

/* Theme: Confident Royal + Charming Rose (final overrides) */
/* Confident blues + charming rose accents */
:root {
    :root {
  /* 🌈 Color Palette */
  --color-primary: #007bff;
  --color-secondary: #6c757d;
  --color-accent: #17a2b8;
  --color-background: #f8f9fa;
  --color-surface: #ffffff;
  --color-text: #212529;
  --color-muted: #6c757d;

  /* 🔠 Typography */
  --font-family-base: 'Segoe UI', Roboto, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-md: 1rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --line-height-base: 1.5;

  /* 📐 Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;

  /* 🧱 Layout */
  --border-radius: 6px;
  --box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

  /* 🕶️ Dark Mode (optional override) */
  /* You can override these in a `.dark-theme` class or media query */
}

  /* purely for documentation; overrides below use literals to ensure precedence */
}

body.dark .theme-toggle {
    border-color: rgba(255,255,255,0.2);
    color: #e5e7eb;
}

/* Hero: rich royal → violet for confidence and charm */
.hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #7c3aed 100%);
}

/* Headings and brand */
.section-title,
.nav-logo a {
  background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Surfaces with theme gradients */
.image-placeholder,
.project-placeholder,
.social-link {
  background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
}

/* Primary buttons */
.btn-primary {
  background: linear-gradient(45deg, #6366f1, #ec4899);
  color: #0b1220;
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.28);
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 20px 40px rgba(236, 72, 153, 0.35);
}

/* Accents and inline emphasis */
.nav-link:hover,
.project-link:hover,
.skill-item i,
.stat h3,
.education-date,
.timeline-date {
  color: #ec4899;
}

/* Timeline accents */
.timeline::before {
  background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
}
.timeline-item::before {
  background: #6366f1;
  box-shadow: 0 0 0 3px #6366f1;
}

/* Dark mode harmony for Royal + Rose */
body.dark .hero {
  background: linear-gradient(135deg, #111827 0%, #1f2937 30%, #4338ca 100%);
}
body.dark .section-title,
body.dark .nav-logo a {
  background: linear-gradient(135deg, #a78bfa 0%, #f472b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
body.dark .btn-primary {
  background: linear-gradient(45deg, #a78bfa, #f472b6);
  color: #0b1220;
}
body.dark .image-placeholder,
body.dark .project-placeholder,
body.dark .social-link {
  background: linear-gradient(135deg, #a78bfa 0%, #f472b6 100%);
}
body.dark .nav-link:hover,
body.dark .project-link:hover {
  color: #f9a8d4; /* soft rose */
} 

/* Previous theme overrides disabled */
/* Professional, confident, and clean */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.section-title,
.nav-logo a {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Accent gradient surfaces */
.image-placeholder,
.project-placeholder,
.social-link {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Primary action */
.btn-primary {
  background: linear-gradient(45deg, #ffd700, #ffed4e);
  color: #333;
  box-shadow: 0 12px 28px rgba(255, 215, 0, 0.28);
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 20px 40px rgba(255, 215, 0, 0.35);
}

/* Link and detail accents */
.nav-link:hover,
.project-link:hover,
.skill-item i,
.stat h3,
.education-date,
.timeline-date {
  color: #667eea;
}

/* Timeline accents */
.timeline::before {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.timeline-item::before {
  background: #667eea;
  box-shadow: 0 0 0 3px #667eea;
}

/* Dark mode harmony */
body.dark .hero {
  background: linear-gradient(135deg, #0b1220 0%, #0f172a 40%, #0a2540 100%);
}
body.dark .section-title,
body.dark .nav-logo a {
  background: linear-gradient(135deg, #bfdbfe 0%, #7dd3fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
body.dark .btn-primary {
  background: linear-gradient(45deg, #60a5fa, #7dd3fc);
  color: #0b1220;
}
body.dark .image-placeholder,
body.dark .project-placeholder,
body.dark .social-link {
  background: linear-gradient(135deg, #60a5fa 0%, #7dd3fc 100%);
}
body.dark .nav-link:hover,
body.dark .project-link:hover { color: #93c5fd; } 

/* Theme variant buttons removed */

/* restore original palette */
/* Applied when body has .theme-tg */
/* disable theme-tg rules */

/* Black + Gold (luxury) palette */
/* Applied when body has .theme-bg */
body.theme-bg { background: #0a0a0a; }
body.theme-bg .hero { background: linear-gradient(135deg, #0a0a0a 0%, #111111 100%); }
body.theme-bg .section-title, body.theme-bg .nav-logo a {
  background: linear-gradient(135deg, #f59e0b 0%, #fde68a 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
body.theme-bg .image-placeholder, body.theme-bg .project-placeholder, body.theme-bg .social-link {
  background: linear-gradient(135deg, #f59e0b 0%, #fde68a 100%);
}
body.theme-bg .btn-primary { background: linear-gradient(45deg, #f59e0b, #fde68a); color: #0a0a0a; box-shadow: 0 12px 28px rgba(245,158,11,.28); }
body.theme-bg .btn-primary:hover { box-shadow: 0 20px 40px rgba(253,230,138,.35); }
body.theme-bg .nav-link:hover, body.theme-bg .project-link:hover, body.theme-bg .skill-item i, body.theme-bg .stat h3, body.theme-bg .education-date, body.theme-bg .timeline-date { color: #f59e0b; }
body.theme-bg .timeline::before { background: linear-gradient(135deg, #f59e0b 0%, #fde68a 100%); }
body.theme-bg .timeline-item::before { background: #f59e0b; box-shadow: 0 0 0 3px #f59e0b; }

/* remove theme-bg and readability helpers */ 

/* Navbar (dark) */
body.dark .navbar {
  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}
body.dark .nav-link { color: #e5e7eb; }
body.dark .nav-link:hover { color: #93c5fd; }
body.dark .nav-link::after { background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%); }
body.dark .theme-toggle { border-color: rgba(255,255,255,0.2); color: #e5e7eb; }

/* Hero (dark) */
body.dark .hero { background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); }
body.dark .btn-secondary { border-color: #e5e7eb; color: #e5e7eb; }
body.dark .btn-secondary:hover { background: #e5e7eb; color: #0f172a; }

/* Cards and Surfaces (dark) */
body.dark .stat,
body.dark .skill-category,
body.dark .project-card,
body.dark .contact-form,
body.dark .resume-intro,
body.dark .timeline-content,
body.dark .education-item,
body.dark .certification-item,
body.dark .projects-footer,
body.dark .about-text {
  background: #111827;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

/* Texts (dark) */
body.dark .section-title {
  font-weight: bold;
  background: linear-gradient(270deg, #60a5fa, #a78bfa, #60a5fa);
  background-size: 600% 600%;
  animation: gradientShift 6s ease infinite;

  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;

body.dark .project-content h3, body.dark .timeline-content h4, body.dark .education-content h4 { color: #e5e7eb; }
body.dark .project-content p, body.dark .timeline-content p, body.dark .education-content p, body.dark .contact-info p { color: #cbd5e1; }
/* Hero text in dark mode */
body.dark .hero .subheading,
body.dark .hero .mb-4.mt-3,
body.dark .hero .hero-subtitle,
body.dark .hero #typing-animation { color: #ffffff; -webkit-text-fill-color: initial; }

/* Chips (dark) */
body.dark .project-tech span { background: #1f2937; color: #e5e7eb; }

/* Footer (dark) */
body.dark .footer { background: #0b1220; }

/* Inputs (dark) */
body.dark .form-group input,
body.dark .form-group textarea { background: #0b1220; color: #e5e7eb; border-color: #1f2937; }
body.dark .form-group input:focus,
body.dark .form-group textarea:focus { border-color: #60a5fa; } 

/* Night Owl Dark Theme Overrides */
/* Palette: background #011627, text #d6deeb, accents #82AAFF (blue), #C792EA (violet), surfaces #0b2942 */
body.dark { background: #011627; color: #d6deeb; }

/* Navbar */
body.dark .navbar { background: rgba(1, 22, 39, 0.95); box-shadow: 0 2px 20px rgba(0,0,0,0.5); }
body.dark .nav-link { color: #d6deeb; }
body.dark .nav-link:hover { color: #82AAFF; }
body.dark .nav-link::after { background: linear-gradient(135deg, #82AAFF 0%, #C792EA 100%); }
body.dark .theme-toggle { border-color: rgba(214, 222, 235, 0.2); color: #d6deeb; }

/* Hero */
body.dark .hero { background: linear-gradient(135deg, #011627 0%, #0b2942 100%); }
body.dark .hero .subheading,
body.dark .hero .mb-4.mt-3,
body.dark .hero .hero-subtitle,
body.dark .hero #typing-animation { color: #d6deeb; -webkit-text-fill-color: initial; }

/* Headings */
body.dark .section-title { background: linear-gradient(135deg, #82AAFF 0%, #C792EA 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
body.dark .project-content h3, body.dark .timeline-content h4, body.dark .education-content h4 { color: #d6deeb; }
body.dark .project-content p, body.dark .timeline-content p, body.dark .education-content p, body.dark .contact-info p { color: #a9b1bc; }

/* Cards / Surfaces */
body.dark .stat,
body.dark .skill-category,
body.dark .project-card,
body.dark .contact-form,
body.dark .resume-intro,
body.dark .timeline-content,
body.dark .education-item,
body.dark .certification-item,
body.dark .projects-footer,
body.dark .about-text { background: #0b2942; box-shadow: 0 10px 30px rgba(0,0,0,0.45); }

/* Accents */
body.dark .skill-item i,
body.dark .education-date,
body.dark .timeline-date { color: #82AAFF; }

/* Timeline */
body.dark .timeline::before { background: linear-gradient(135deg, #82AAFF 0%, #C792EA 100%); }
body.dark .timeline-item::before { background: #82AAFF; box-shadow: 0 0 0 3px #82AAFF; }

/* Chips */
body.dark .project-tech span { background: #10324f; color: #d6deeb; }

/* Buttons */
body.dark .btn-secondary { border-color: #d6deeb; color: #d6deeb; }
body.dark .btn-secondary:hover { background: #d6deeb; color: #0b2942; }
body.dark .btn-primary { background: linear-gradient(45deg, #82AAFF, #C792EA); color: #0b1220; box-shadow: 0 12px 28px rgba(130,170,255,0.25); }
body.dark .btn-primary:hover { box-shadow: 0 20px 40px rgba(199,146,234,0.35); }

/* Inputs */
body.dark .form-group input,
body.dark .form-group textarea { background: #0b2942; color: #d6deeb; border-color: #10324f; }
body.dark .form-group input:focus,
body.dark .form-group textarea:focus { border-color: #82AAFF; }

/* Footer */
body.dark .footer { background: #0a1f33; } 


/* Single Theme: Pixova Lite-inspired (clean light with subtle pink accents) */
/* Accents: Pink #ff7eb3 → #ff758c, neutrals: white/smoke, text: #333 */
body { background: #ffffff; color: #333; }

/* Hero */
.hero { background: linear-gradient(135deg, #ff7eb3 0%, #ff758c 100%); color: #fff; }
.hero .subheading, .hero .mb-4.mt-3, .hero .hero-subtitle, .hero #typing-animation { color: #fff; }
.hero::after { background: radial-gradient(80% 60% at 50% 0%, rgba(255,255,255,0.18), transparent 60%); }

/* Headings */
.section-title, .nav-logo a { 
  background: linear-gradient(135deg, #ff7eb3 0%, #ff758c 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* Navigation */
.navbar { background: rgba(255,255,255,0.95); box-shadow: 0 2px 20px rgba(0,0,0,0.08); }
.nav-link { color: #333; }
.nav-link:hover { color: #ff7eb3; }
.nav-link::after { background: linear-gradient(135deg, #ff7eb3 0%, #ff758c 100%); }

/* Buttons */
.btn-primary { background: linear-gradient(45deg, #ff7eb3, #ff758c); color: #fff; box-shadow: 0 10px 24px rgba(255,117,140,0.28); }
.btn-primary:hover { box-shadow: 0 18px 36px rgba(255,117,140,0.36); }
.btn-secondary { border-color: #fff; color: #fff; }
.btn-secondary:hover { background: #fff; color: #ff7eb3; }

/* Cards/Surfaces */
.about-text, .skill-category, .project-card, .contact-form, .resume-intro, .timeline-content, .education-item, .certification-item, .projects-footer {
  background: #ffffff; border: 1px solid rgba(0,0,0,0.04); box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

/* Placeholders & social */
.image-placeholder, .project-placeholder, .social-link {
  background: linear-gradient(135deg, #ff7eb3 0%, #ff758c 100%);
}

/* Accents */
.skill-item i, .stat h3, .education-date, .timeline-date { color: #ff7eb3; }
.timeline::before { background: linear-gradient(135deg, #ff7eb3 0%, #ff758c 100%); }
.timeline-item::before { background: #ff7eb3; box-shadow: 0 0 0 3px #ff7eb3; }

/* Chips */
.project-tech span { background: #fff0f5; color: #cc2e72; }

/* Footer */
.footer { background: #f7f7fb; color: #333; } 

/* Final Palette: Mid-tone Gray + Muted Blue (single theme) */
/* Base neutrals */
body { background: #f5f7fa; color: #1f2933; }

/* Hero */
.hero { background: linear-gradient(135deg, #5b7c99 0%, #3d5a80 100%); color: #ffffff; }
.hero .subheading, .hero .mb-4.mt-3, .hero .hero-subtitle, .hero #typing-animation { color: #ffffff; }
.hero::after { background: radial-gradient(80% 60% at 50% 0%, rgba(255,255,255,0.12), transparent 60%); }

/* Headings/Brand */
.section-title, .nav-logo a {
  background: linear-gradient(135deg, #5b7c99 0%, #3d5a80 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* Navigation */
.navbar { background: rgba(255,255,255,0.95); box-shadow: 0 2px 20px rgba(0,0,0,0.06); }
.nav-link { color: #1f2933; }
.nav-link:hover { color: #3d5a80; }
.nav-link::after { background: linear-gradient(135deg, #5b7c99 0%, #3d5a80 100%); }

/* Buttons */
.btn-primary { background: linear-gradient(45deg, #5b7c99, #3d5a80); color: #ffffff; box-shadow: 0 10px 24px rgba(61,90,128,0.25); }
.btn-primary:hover { box-shadow: 0 18px 32px rgba(61,90,128,0.35); }
.btn-secondary { border-color: #ffffff; color: #ffffff; }
.btn-secondary:hover { background: #ffffff; color: #3d5a80; }

/* Cards/Surfaces */
.about-text, .skill-category, .project-card, .contact-form, .resume-intro, .timeline-content, .education-item, .certification-item, .projects-footer {
  background: #ffffff; border: 1px solid rgba(0,0,0,0.05); box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

/* Placeholders & social */
.image-placeholder, .project-placeholder, .social-link {
  background: linear-gradient(135deg, #5b7c99 0%, #3d5a80 100%);
}

/* Accents */
.skill-item i, .stat h3, .education-date, .timeline-date { color: #3d5a80; }
.timeline::before { background: linear-gradient(135deg, #5b7c99 0%, #3d5a80 100%); }
.timeline-item::before { background: #5b7c99; box-shadow: 0 0 0 3px #5b7c99; }

/* Chips */
.project-tech span { background: #eef2f7; color: #3d5a80; }

/* Footer */
.footer {
  background: #eef2f7;
  color: #1f2933;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
  padding: 1.5rem 1rem;
  position: sticky;
  bottom: 0;
  width: 100%;
  z-index: 100;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.social-icons a {
  margin-left: 1rem;
  color: #1f2933;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #3b82f6; /* blue hover */
/* End of stylesheet */
}
/* Theme transition overlay */
.theme-transition-overlay {
    position: fixed;
    inset: 0;
    background: var(--theme-transition-color, #000);
    opacity: 0;
    pointer-events: none;
    z-index: 9999;
    transition: opacity 0.5s ease;
}
.theme-transition-overlay.active {
    opacity: 1;
}

/* Dark mode base */
body.dark {
    color: #e5e7eb;
    background-color: #0f172a;
}

/* Smooth transition for theme change */
body, .navbar, section, .btn, .project-card, .skill-category, .stat {
    transition: background-color 0.5s ease, color 0.5s ease, box-shadow 0.5s ease;
}
.watermark-toggle {
  position: fixed;
  bottom: 25px;   /* stays above footer */
  right: 25px;
  z-index: 99999; /* above all page elements */
  
  background: none;
  border: none;
  padding: 0;
  
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.15);
  
  cursor: pointer;
  transition: color 0.3s ease, transform 0.2s ease;
}

body:not(.dark) .watermark-toggle {
  color: rgba(0, 0, 0, 0.15);
}

.watermark-toggle:hover,
.watermark-toggle:focus {
  color: #ffd700;
  transform: scale(1.1);
}
:root { color-scheme: light; }
body.dark { color-scheme: dark; }

.nav-menu {
  margin-right: 20px; /* desktop gap */
}

.nav-toggle {
  margin-left: 5rem; /* desktop gap */
}

/* Mobile: text first, photo below */
@media (max-width: 768px) {
  .hero-container {
    display: flex;              /* switch from grid to flex */
    flex-direction: column;     /* stack vertically */
    align-items: center;
    text-align: center;
    gap: 1.25rem;
  }

  .hero-content {
    order: 1;                   /* text first */
    position: relative;
    z-index: 2;
    padding: 0 12px;
  }

  .hero-image {
    order: 2;                   /* photo second */
    position: static !important;/* undo absolute */
    top: auto; 
    right: auto;
    transform: none !important;
    margin: 0 auto;
    z-index: 1 !important;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .profile-card {
    width: 180px;
    height: 180px;
  }

  .floating-elements {
    display: none;              /* avoid overlap on small screens */
  }
}