/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #64748b;
    --text-color: #1e293b;
    --light-text: #64748b;
    --background: #f8fafc;
    --white: #ffffff;
    --border-color: #e2e8f0;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--background);
}

/* Navigation */
header {
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.1);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6rem 2rem 4rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 4rem;
}

.hero-text {
    flex: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.highlight {
    color: var(--primary-color);
}

.subtitle {
    font-size: 1.5rem;
    color: var(--light-text);
    margin-bottom: 1.5rem;
}

.description{
    margin-bottom: 2rem;
    color: var(--light-text);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-frame {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--white);
    box-shadow: var(--shadow);
}

.profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.btn.primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn.primary:hover {
    background: var(--primary-dark);
}

.btn.secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn.secondary:hover {
    background: rgba(37, 99, 235, 0.1);
}
.contact-method img {
    filter: invert(0); /* Normal in light mode */
}
.social-links img{
    filter: invert(0); 
}
/* About Section */
.about {
    padding: 8rem 2rem;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}

.about-image {
    flex: 1;
}

.about-pic {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.about-text {
    flex: 2;
}

.about h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.25rem;
    color: var(--light-text);
    margin-bottom: 2rem;
}

.about-description {
    margin-bottom: 2rem;
}

.about-description p {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.skills {
    margin-bottom: 3rem;
}

.skills h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tags span {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
}

.timeline {
    border-left: 2px solid var(--border-color);
    padding-left: 2rem;
    margin-top: 2rem;
}

.timeline-item {
    margin-bottom: 2rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    background: var(--primary-color);
    border-radius: 50%;
}

.timeline-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

 .period p{
    color: var(--light-text);
}

.Pdsc{
color: var(--text-color);
}

.company {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.period {
    color: var(--light-text);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

/* Projects Section */
.projects {
    padding: 8rem 2rem;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.projects-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    background: transparent;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.projects-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image {
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(37, 99, 235, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.project-info p {
    color: var(--light-text);
    margin-bottom: 1rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-stack span {
    background: #f0f9ff;
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.875rem;
}

/* Contact Section */
.contact {
    padding: 8rem 2rem;
    background: var(--background);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-methods {
    margin-top: 3rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-method img {
    width: 24px;
    height: 24px;
}

.contact-method h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.contact-method p {
    color: var(--light-text);
}

.contact-form-container {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

input,
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: var(--transition);
}

textarea {
    height: 150px;
    resize: vertical;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Footer */
footer {
    background: #1e293b;
    color: var(--white);
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 2rem;
}

.footer-info h3,p {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.footer-links,
.footer-social {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a,
.footer-social a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover,
.footer-social a:hover {
    color: var(--primary-color);
}

.footer-bottom p{
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Certifications Section */
.certifications {
    padding: 8rem 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.certifications-grid {
    max-width: 1200px;
    margin: 3rem auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.certification-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.certification-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.certification-logo {
    height: 160px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(45deg, #f0f9ff, #e0f2fe);
}

.certification-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: var(--transition);
}

.certification-card:hover .certification-logo img {
    opacity: 1;
    transform: scale(1.05);
}

.certification-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.certification-info h3 {
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: 0.75rem;
}

.certification-info .issuer {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.certification-info .date {
    color: var(--light-text);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.certification-info .credential-id {
    color: var(--light-text);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.verify-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.875rem;
    text-align: center;
    transition: var(--transition);
    margin-top: auto;
}

.verify-btn:hover {
    background: var(--primary-dark);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
    }

    .profile-frame {
        width: 300px;
        height: 300px;
    }

    .about-content {
        flex-direction: column; }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.25rem;
    }

    .profile-frame {
        width: 250px;
        height: 250px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        justify-content: center;
    }

    .certifications-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    .certification-card {
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Mobile Navigation */
.nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1rem;
    box-shadow: var(--shadow);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* Previous styles remain unchanged */

/* Blog Page Styles */
.blog-page {
    padding: 8rem 2rem;
    background: var(--background);
}

.blog-header {
    text-align: center;
    margin-bottom: 4rem;
}

.blog-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.blog-header .subtitle {
    font-size: 1.25rem;
    color: var(--light-text);
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 4rem;
}

/* Main Blog Content */
.blog-main {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.blog-post.featured {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.blog-post.featured .post-image {
    height: 400px;
}

.blog-post.featured h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.post-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-post:hover .post-image img {
    transform: scale(1.05);
}

.post-content {
    padding: 2rem;
}

.post-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--light-text);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.read-time::before {
    content: '•';
    margin-right: 1.5rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Sidebar Styles */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.sidebar-widget h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.categories ul {
    list-style: none;
}

.categories li {
    margin-bottom: 0.75rem;
}

.categories a {
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    transition: var(--transition);
}

.categories a:hover {
    color: var(--primary-color);
}

.popular-posts .popular-post {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.popular-posts .popular-post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.popular-post img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.popular-post h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.popular-post .date {
    font-size: 0.875rem;
    color: var(--light-text);
}

/* Responsive Design for Blog Page */
@media (max-width: 1024px) {
    .blog-container {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .blog-header h1 {
        font-size: 2.5rem;
    }

    .blog-post.featured .post-image {
        height: 300px;
    }

    .blog-post.featured h2 {
        font-size: 1.75rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .post-content {
        padding: 1.5rem;
    }
}

/* Previous responsive styles remain unchanged */

.blog-page {
    padding: 8rem 2rem;
    background: var(--background);
}

.blog-header {
    text-align: center;
    margin-bottom: 4rem;
}

.blog-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.blog-header .subtitle {
    font-size: 1.25rem;
    color: var(--light-text);
}

.blog-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.blog-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 1.5rem;
}

.blog-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.blog-content p {
    color: var(--light-text);
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-header h1 {
        font-size: 2.5rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* Dark theme styles */
.dark {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --secondary-color: #9ca3af;
    --text-color: #e2e8f0;
    --light-text: #9ca3af;
    --background: #1e293b;
    --white: #1e293b;
    --border-color: #4b5563;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  }

  .dark .filter-btn{
   color:white;
  }
  .dark body {
    background: var(--background);
    color: var(--text-color);
  }
  
  .dark header {
    background: rgba(30, 41, 59, 0.95);
  }
  
  .dark .nav-links a:hover,
  .dark .nav-links a.active {
    background: rgba(59, 130, 246, 0.1);
  }
  
  .dark .hero {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  }
  
  .dark .about {
    background: var(--background);
  }
  
  .dark .projects {
    background: var(--white);
  }
  
  .dark .project-card {
    background: var(--background);
  }
  
  .dark .tech-stack span {
    background: #1e293b;
    color: var(--primary-color);
  }
  
  .dark .contact {
    background: var(--background);
  }
  
  .dark .contact-form-container {
    background: var(--white);
  }
  
  .dark input,
  .dark textarea {
    background: var(--background);
    color: var(--text-color);
    border-color: var(--border-color);
  }
  
  .dark .certifications {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  }
  
  .dark .certification-card {
    background: var(--white);
  }
  
  .dark .certification-logo {
    background: linear-gradient(45deg, #1e293b, #0f172a);
  }
  
  .dark .blog-page {
    background: var(--background);
  }
  
  .dark .blog-post.featured,
  .dark .sidebar-widget,
  .dark .blog-card {
    background: var(--white);
  }
  
  .dark .categories a {
    color: var(--text-color);
  }
  
  .dark .categories a:hover {
    color: var(--primary-color);
  }
  
  .dark .popular-post h4 {
    color: var(--text-color);
  }

  .theme-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: white;
    border: 2px solid var(--border-color);
    color: var(--text-color);
    padding: 0.75rem;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.theme-toggle:hover {
    transform: scale(1.1);
}

.theme-toggle img {
    width: 24px;
    height: 24px;
    filter: var(--icon-filter);
    transition: var(--transition);
}
.dark .company{
    color:Dark blue;
}

    .dark .contact-method img {
        filter: invert(1); /* Turns black icons to white in dark mode */
    }

   .dark .social-links img{
        filter: invert(1); 
    }
/* Dark theme styles for footer */
.dark footer {
    background: #0f172a; /* Darker background for the footer in dark mode */
  }
  
  .dark .footer-info h3,
  .dark .footer-info p,
  .dark .footer-links a,
  .dark .footer-social a,
  .dark .footer-bottom p{
    color: #e2e8f0; /* Lighter text color for better visibility in dark mode */
  }
  
  .dark .footer-links a:hover,
  .dark .footer-social a:hover {
    color: var(--primary-color); /* Keep the hover color consistent */
  }
  
  .dark .footer-bottom  {
    border-top-color: rgba(255, 255, 255, 0.2); /* Slightly more visible border in dark mode */
  }