/* style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
}

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

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 10px 0;
    transition: all 0.3s ease;
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

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

.logo {
    display: flex;              /* put image + text side by side */
    align-items: center;        /* vertically center them */
    gap: 10px;                  /* spacing between logo and text */
    font-size: 1rem;
    font-weight: 700;
    color: #333333;
}

a.logo {
    text-decoration: none; /* removes underline */
    color: inherit;        /* optional: keep text color same as parent */
}

.logo p {
  font-size: 1.5rem;           /* adjust text size */
  font-weight: bold;
  margin: 0;                   /* remove default paragraph spacing */
  line-height: 1.3;            /* tighter spacing for the two lines */
  border-left: 3px solid #555555; 
  padding-left: 20px;
}


.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}


/* Hide hamburger on desktop */
.menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* Mobile styles */
@media (max-width: 768px) {
  .nav-links {
    display: none;                /* hidden by default */
    flex-direction: column;
    position: absolute;
    top: 60px;                    /* below navbar */
    right: 10px;
    background: white;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }

  .nav-links.show {
    display: flex;                /* show when toggled */
  }

  .menu-toggle {
    display: block;               /* show hamburger */
  }
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    cursor: pointer;
}

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

/* Hero Section */
/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-color: #F7F8FD;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    color: #222222;
    padding-top: 120px;
    margin-bottom: 5px;
    margin-top: 10px;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.hero p {
    font-size: 1.3rem;
    color: #333333;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards;
}

/* New hero-description styling */
.hero-description {
    font-size: 1.1rem;       /* slightly bigger for readability */
    line-height: 1.7;        /* more spacing for easier reading */
    max-width: 1200px;        /* slightly wider than before */
    color: #333333;
    margin-bottom: 40px;     /* space before CTA button */
    opacity: 0;
    animation: fadeInUp 1s ease 0.6s forwards; /* staggered fade-in */
}


.hero-cta-container {
    display: flex;
    gap: 20px;          /* space between buttons */
    flex-wrap: wrap;     /* wrap on small screens */
    margin-top: 30px;
}

/* Primary button */
.cta-button.primary {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff; /* white text looks sharper on gradient */
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;   /* smooth hover transition */
}


.cta-button.primary:hover {
  background: linear-gradient(135deg, #764ba2, #667eea); /* swapped gradient */
  box-shadow: 0 4px 12px rgba(118, 75, 162, 0.4);
  filter: brightness(1.1);  /* slight glow */
}


/* Secondary button */
.cta-button.secondary {
  background-color: transparent;
  color: #222222;
  border: 2px solid #222222;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.cta-button.secondary:hover {
  background: #313131;   /* fill background */
  color: #fff;          /* invert text color */
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.cta-button.primary,
.cta-button.secondary {
  cursor: pointer;   /* show hand cursor on hover */
}

/* Floating Animation */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

/* Sections */
.section {
    padding: 130px 0;
    background: white;
    margin: 0;
}

.section:nth-child(even) {
    background: #f8f9ff;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 60px;
    color: #333;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 2px;
}

/* Interactive Projects Grid */

/* Grid container for both projects and YouTube videos */
.projects-grid,
.youtube-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
    perspective: 1000px; /* keeps job-grid 3D perspective if needed */
}
/* Carousel container */
.stock-carousel {
    overflow: hidden;
    width: 100%;
    max-width: 100%; /* 🩹 important: prevents it from stretching beyond card */
    border-radius: 8px;
    position: relative;
}

.carousel-track {
    display: flex;
    animation: slide 20s linear infinite;
    width: max-content; /* ensures the flex container doesn’t stretch */
    max-width: 100%;    /* keeps it bounded inside card */
}

.carousel-track img {
    width: 250px;
    flex-shrink: 0;
    margin-right: 10px;
    border-radius: 8px;
    object-fit: cover;
}
/* Auto-slide keyframes - adjusted for duplicate content */
@keyframes slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 4 - 40px)); } /* width * number of images + total margins */
}

/* Pause on hover */
.carousel-track:hover {
    animation-play-state: paused;
}

/* Responsive: adjust image size on smaller screens but keep horizontal scroll */
@media (max-width: 768px) {
    .carousel-track img {
        width: 200px;
    }
    
    @keyframes slide {
        100% { transform: translateX(calc(-200px * 4 - 40px)); }
    }
}

/* Only stack vertically on very small screens and stop animation */
@media (max-width: 480px) {
    .carousel-track {
        animation: none;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .carousel-track img {
        width: 100%;
        max-width: 300px;
        margin: 5px;
    }
}
/* Card style for both projects and YouTube videos */
.project-card,
.youtube-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Gradient top border for project cards */
.project-card::before,
.youtube-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

/* Hover effect */
.project-card:hover{
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Title and description */
.project-title,
.youtube-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.project-description,
.youtube-description {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Demo/video container */
.project-demo,
.youtube-demo {
    min-height: 200px;
    background: #f8f9ff;
    border-radius: 10px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Style for the live demo button */
.demo-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #4CAF50; /* button color */
    color: white;
    font-weight: bold;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.demo-link:hover {
    background-color: #45a049; /* darker green on hover */
    transform: translateY(-2px); /* subtle lift effect */
}

.demo-link:active {
    transform: translateY(0); /* press effect */
}

/* ================== Job Experience ================== */

.job-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    perspective: 1000px;
}

/* Job Card Base */
.job-card {
    background: linear-gradient(135deg, #98a7e9 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

/* Staggered Card Animations */
.job-card:nth-child(1) { animation-delay: 0.1s; }
.job-card:nth-child(2) { animation-delay: 0.2s; }
.job-card:nth-child(3) { animation-delay: 0.3s; }

/* Hover Effects */
.job-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #98a7e9 100%);
}

/* Gradient Overlay */
.job-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.job-card:hover::before { opacity: 1; }

/* Header */
/* Job Header Adjustments */
/* Job Header stacked vertically */
.job-header {
    display: flex;
    flex-direction: column; /* stack title and duration */
    align-items: flex-start; /* left-align everything */
    margin-bottom: 15px; /* space below header */
}

.job-title {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 5px; /* small gap between title and year */
}

.job-duration {
    font-size: 0.75rem; /* smaller and subtle */
    padding: 3px 10px;
    border-radius: 12px;
    background: linear-gradient(135deg, #366895 0%, #00f2fe 100%);
    color: white;
    box-shadow: 0 3px 10px rgba(79, 172, 254, 0.3);
    white-space: nowrap;
    transition: all 0.3s ease;
}

.job-card:hover .job-duration {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(79, 172, 254, 0.5);
}


/* Description & Keypoints */
.job-description {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 1rem;
}
.job-keypoints {
    list-style: none;
    margin-top: 20px;
    padding: 0;
}
.job-keypoints li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.85);
    opacity: 0;
    transform: translateX(-20px);
    animation: slideIn 0.5s ease forwards;
}
.job-keypoints li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: #4facfe;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}
.job-card:hover .job-keypoints li {
    padding-left: 40px;
    color: white;
}
.job-card:hover .job-keypoints li::before {
    transform: rotate(180deg) scale(1.2);
    color: #4facfe;
}

/* Staggered keypoint animations */
.job-card .job-keypoints li {
    animation-delay: calc(0.3s + var(--li-index) * 0.1s);
}

/* Sparkle effect */
.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, #4facfe, #00f2fe);
    border-radius: 50%;
    pointer-events: none;
    animation: sparkleFloat 2s ease-in-out infinite;
}
@keyframes sparkleFloat {
    0%,100% { transform: translateY(0) scale(0); opacity: 0; }
    50% { transform: translateY(-30px) scale(1); opacity: 1; }
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideIn {
    to { opacity: 1; transform: translateX(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .section-title { font-size: 2rem; }
    .job-grid { grid-template-columns: 1fr; }
    .job-card { padding: 25px; }
    .job-title { font-size: 1.3rem; }
}

/* GitHub Activity */
.github-activity {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.repo-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.repo-card:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.repo-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}
.repo-card .repo-name a {
    color: #222222; /* repo name link color */
    text-decoration: none;
}
.repo-description {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.repo-stats {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: #999;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

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

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

.submit-button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

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

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

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .section-title { font-size: 2rem; }
    .nav-links { display: none; }
    .projects-grid, .blog-grid, .github-activity {
        grid-template-columns: 1fr;
    }
}

/* Chart containers */
#skillsChart, #activityChart {
    max-width: 400px;
    margin: 0 auto;
}

/* Loading states */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    color:#667eea;
    font-weight: 600;
}

.spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
   
/* Education & Certifications Section */
#education {
    background: #f8f9ff;
}

.edu-cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Education Cards */
.edu-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

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

.edu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

/* Logo container for education */
.edu-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9ff;
    border-radius: 15px;
    padding: 10px;
    transition: all 0.3s ease;
}

.edu-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.edu-card:hover .edu-logo {
    transform: scale(1.05);
}

.edu-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #222;
}

.edu-card .university {
    font-size: 1rem;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 8px;
}

.edu-card .duration {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 15px;
}

.edu-card .details {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

/* Certification Cards */
.cert-card {
    background: white;
    padding: 25px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    border-left: 4px solid #667eea;
}

.cert-card:hover {
    transform: translateX(5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
    border-left-color: #764ba2;
}

/* Logo container for certifications */
.cert-logo {
    width: 60px;
    height: 60px;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9ff;
    border-radius: 12px;
    padding: 8px;
    transition: all 0.3s ease;
}

.cert-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cert-card:hover .cert-logo {
    transform: rotate(5deg) scale(1.1);
}

.cert-content {
    flex: 1;
}

.cert-card .cert-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 5px;
}

.cert-card .cert-issuer {
    font-size: 0.9rem;
    color: #667eea;
    font-weight: 600;
}

.cert-card .cert-date {
    font-size: 0.85rem;
    color: #999;
    margin-top: 5px;
}

/* Staggered animation delays */
.edu-card:nth-child(1) { animation-delay: 0.1s; }
.edu-card:nth-child(2) { animation-delay: 0.2s; }
.edu-card:nth-child(3) { animation-delay: 0.3s; }
.cert-card:nth-child(4) { animation-delay: 0.4s; }
.cert-card:nth-child(5) { animation-delay: 0.5s; }
.cert-card:nth-child(6) { animation-delay: 0.6s; }
.cert-card:nth-child(7) { animation-delay: 0.7s; }

/* Responsive design */
@media (max-width: 768px) {
    .edu-cert-grid {
        grid-template-columns: 1fr;
    }
    
    .cert-card {
        flex-direction: column;
        text-align: center;
    }
    
    .cert-logo {
        margin-bottom: 15px;
    }
}

/* Footer */


footer {
    padding: 40px 20px;
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background-color: #f3f3f3;
    color: #333; /* default text color */
}

footer a {
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    color: inherit; /* inherit text color from parent */
}
footer a:hover {
    text-decoration: underline;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
    margin-bottom: 20px;
}

footer a {
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    color: inherit; /* inherit text color from parent */
}

.footer-section {
    flex: 1; /* equal width for all columns */
    min-width: 200px; /* prevents them from being too narrow on small screens */
}
.footer-section .email {
  display: flex;
  align-items: center;
  gap: 8px; /* space between icon and email */
  white-space: nowrap; /* prevent breaking onto two lines */
}

.footer-section .email a {
  color: inherit; /* match text color */
  text-decoration: none;
}

.footer-section .email a:hover {
  text-decoration: underline;
}

/* Center the copyright text */
.copyright {
    text-align: center;
    margin-top: 20px; /* optional spacing above */
    font-size: 0.9rem;
    color: #555; /* subtle color */
}

.social-icons {
    display: flex;
    gap: 15px;
    justify-content: left;
    margin-top: 10px;
}

.social-icons a {
    color: inherit; /* match text color */
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.2);
    color: #667eea; /* optional accent color on hover */
}

.social-icons svg {
    width: 24px;
    height: 24px;
}

.footer-section h3 {
    margin-bottom: 12px;
    font-size: 1.1rem;
    font-weight: 600;
}

footer p {
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    color: inherit; /* inherit text color from parent */
}



@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 20px;
    }
}

