/* style.css */
:root {
    --primary-color: #4a6cf7;
    --secondary-color: #6c757d;
    --background-color: #ffffff;
    --text-color: #333333;
    --card-bg-color: #f8f9fa;
    --border-color: #e9ecef;
    --header-bg: #ffffff;
    --footer-bg: #f8f9fa;
    --timeline-color: #4a6cf7;
    --skill-bar-bg: #e9ecef;
    --skill-level-bg: #4a6cf7;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    transition: var(--transition);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: darken(var(--primary-color), 10%);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

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

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

.btn.small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--header-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-img {
  height: 50px;
  width: auto;
  vertical-align: middle;
  display: none;
}

.light-logo {
  display: inline-block;
}


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

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--primary-color);
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 2px 0;
    transition: var(--transition);
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
}

#theme-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-color);
    transition: var(--transition);
}

#theme-toggle-btn:hover {
    transform: rotate(30deg);
}

.fa-sun {
    display: none;
}

/* Sections */
section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Hero Section */
/* .hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background-image: linear-gradient(135deg, rgba(74, 108, 247, 0.1) 0%, rgba(74, 108, 247, 0.05) 100%);
    margin-top: 60px;
} */

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background-image: url('/assets/images/cloudBg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: 60px;
  }
  

.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    margin-bottom: 0.5rem;
}

.hero-content h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.cta-buttons {
    margin-top: 2rem;
}

.cta-buttons .btn {
    margin-right: 1rem;
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.about-image {
    flex: 1;
}

.image-placeholder {
    width: 100%;
    padding-bottom: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.image-placeholder img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text {
    flex: 2;
}

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

.skill-category h3 {
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.skill-item {
    margin-bottom: 1.5rem;
}

.skill-item span {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.skill-bar {
    height: 10px;
    background-color: var(--skill-bar-bg);
    border-radius: 5px;
    overflow: hidden;
}

.skill-level {
    height: 100%;
    background-color: var(--skill-level-bg);
    border-radius: 5px;
} */

.skills-section {
    padding: 60px 0;
    text-align: center;
  }
  
  .skills-columns {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin-top: 40px;
  }
  
  /* Section titles */
  .skills-columns > div h3 {
    font-size: 20px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--accent, #3b82f6);
    display: inline-block;
    padding-bottom: 4px;
  }
  
  /* Grid for skill icons */
  .skills-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-top: 16px;
    justify-items: center;
  }
  
  
  .skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px;
    border-radius: 8px;
    transition: transform 0.2s;
    text-align: center;
    font-size: 0.85rem;
  }
  
  .skill-item img {
    max-width: 32px;
    max-height: 32px;
    margin-bottom: 6px;
    max-width: 40px;
    height: auto;
  }
  
  .skill-item:hover {
    transform: scale(1.05);
  }
  
  /* Responsive */
  .skills-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-top: 16px;
    justify-items: center;
  }
  
  @media (max-width: 1024px) {
    .skills-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }
  
  @media (max-width: 600px) {
    .skills-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  

/* Projects Section */
.projects-filter {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    margin: 0 0.5rem 0.5rem;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-color);
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    color: var(--primary-color);
}

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

.project-card {
    background-color: var(--card-bg-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

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

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.project-info {
    padding: 1.5rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    margin: 0.5rem 0 1rem;
}

.project-tags span {
    background-color: rgba(74, 108, 247, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

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

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

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

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

.timeline-dot {
    position: absolute;
    left: 16px;
    top: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--timeline-color);
}

.timeline-date {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.timeline-content {
    background-color: var(--card-bg-color);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.timeline-content h4 {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

/* Blog Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-card {
    background-color: var(--card-bg-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

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

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.blog-info {
    padding: 1.5rem;
}

.blog-date {
    color: var(--secondary-color);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 500;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    transform: translateY(-5px);
}

.contact-form {
    background-color: var(--card-bg-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--background-color);
    color: var(--text-color);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: 0;
        background-color: var(--header-bg);
        flex-direction: column;
        align-items: center;
        overflow: hidden;
        transition: var(--transition);
    }
    
    .nav-links.active {
        height: 300px;
        padding: 1rem 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links li {
        margin: 1rem 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    section {
        padding: 3rem 0;
    }
    
    .projects-grid,
    .blog-grid,
    .skills-container {
        grid-template-columns: 1fr;
    }
}

/* Videos Section */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.video-card {
    background-color: var(--card-bg-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.video-thumbnail {
    height: 200px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(74, 108, 247, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    opacity: 0.8;
    transition: var(--transition);
}

.video-thumbnail:hover .play-button {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
    padding: 1.5rem;
}

.video-meta {
    display: flex;
    gap: 1rem;
    color: var(--secondary-color);
    font-size: 0.875rem;
    margin: 0.5rem 0 1rem;
}

.video-meta i {
    margin-right: 0.25rem;
}

.watch-video {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 500;
}

/* Video Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    position: relative;
    margin: 5% auto;
    width: 80%;
    max-width: 800px;
}

.close-modal {
    position: absolute;
    top: -30px;
    right: 0;
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Dark Mode Adjustments */
body.dark-mode .play-button {
    background-color: rgba(109, 141, 255, 0.8);
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
  }
  .modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    aspect-ratio: 16 / 9;
  }
  .modal-content iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
  }
  .close-modal {
    position: absolute;
    top: -30px;
    right: 0;
    font-size: 30px;
    color: white;
    cursor: pointer;
  }

  /* Video Carousel */

  .video-scroll-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1rem 0;
  }
  
  .video-carousel {
    display: flex;
    flex-wrap: nowrap; /* ✅ Prevent wrapping */
    gap: 1.5rem;
    scroll-behavior: smooth;
  }
  
  .video-card {
    flex: 0 0 320px; /* ✅ Fixed card width */
    background-color: #1a1a1a;
    color: white;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
  }
  
  .video-card:hover {
    transform: scale(1.03);
  }
  
  .video-thumbnail img {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-bottom: 2px solid #333;
  }
  
  .video-info {
    padding: 1rem;
  }

  /* Spinner */
  .form-status-banner {
  margin-top: 1rem;
  padding: 12px;
  border-radius: 6px;
  font-weight: bold;
  text-align: center;
}

.form-status-banner.success {
  background: #10b981;
  color: white;
}

.form-status-banner.error {
  background: #ef4444;
  color: white;
}


  