/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

:root {
    --primary-color: #2D2D2D;
    --secondary-color: #737373;
    --background-color: #ffffff;
    --hover-color: #f1f1f1;
    --border-color: #e0e0e0;
    --accent-color: #041A40;
}

body.dark-mode {
    --primary-color: #E4E4E4;
    --secondary-color: #A0A0A0;
    --background-color: #1A1A1A;
    --hover-color: #2D2D2D;
    --border-color: #333333;
    --accent-color: #061c30;
}

body {
    color: var(--primary-color);
    background: var(--background-color);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}
/* Define CSS variables */
:root {
    --background-color: #ffffff;
    --text-color: #2D2D2D;
    --button-background: #4A90E2;
    --button-text: #ffffff;
    --border-color: #e0e0e0;
    --hover-color: #f1f1f1;
    --accent-color: #4A90E2;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    transition: background-color 0.5s ease, color 0.5s ease;
}

body.dark-mode {
    --background-color: #1A1A1A;
    --text-color: #E4E4E4;
    --button-background: #6BB7FF;
    --border-color: #333333;
    --hover-color: #2D2D2D;
    --accent-color: #6BB7FF;
}

/* Button Styles */
button {
    background-color: var(--button-background);
    color: var(--button-text);
}

button:hover {
    background-color: var(--button-background);
    color: var(--button-text);
}

/* Dark Mode Toggle Button */
#dark-mode-toggle {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    transition: color 0.3s ease, background-color 0.3s ease;
}

/* Ensure other elements inherit colors */
* {
    color: var(--text-color);
}

/* Hamburger Menu Button */
.hamburger-menu {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
}

@media (max-width: 768px) {
    .hamburger-menu {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        background: var(--background-color);
        width: 100%;
        border-top: 1px solid var(--border-color);
        z-index: 999;
        padding: 1rem 0;
    }

    .nav-links a {
        padding: 0.5rem 1rem;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }
}

/* Navigation */
nav {
    padding: 1rem;
    position: fixed;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
  }
  
  @media (prefers-color-scheme: dark) {
    nav {
      background: rgba(0, 0, 0, 0.95);
    }
  }
  
  .nav-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .logo {
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--primary-color);
  }
  
  @media (prefers-color-scheme: dark) {
    .logo {
      color: white;
    }
  }
  
  .nav-links {
    display: flex;
    gap: 2rem;
  }
  
  .nav-links a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: color 0.3s ease;
  }
  
  @media (prefers-color-scheme: dark) {
    .nav-links a {
      color: rgba(255, 255, 255, 0.8);
    }
    
    .nav-links a:hover {
      color: white;
    }
  }
  
  /* Main Content */
  .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 6rem 1rem 2rem;
  }

/* Main Content */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 6rem 1rem 2rem;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 4rem 0;
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border-color);
    transition: transform 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }
}

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

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

/* Section Styles */
section {
    margin: 4rem 0;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

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

.skill-card {
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.skill-icon {
    font-size: 2rem;
    color: var(--accent-color);
    width: 40px;
    text-align: center;
}

.skill-content {
    flex: 1;
}

.skill-card:hover {
    background: var(--hover-color);
    transform: translateY(-2px);
}

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

.project-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

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

.project-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-content {
    padding: 1.5rem;
}

/* Blog Posts */
.blog-post {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
}

.blog-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.blog-excerpt {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
}

input, textarea {
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

button {
    padding: 0.8rem 1.5rem;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

button:hover {
    opacity: 0.9;
}

/* Video Gallery with Carousel */
.video-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    background: var(--background-color);
    border-radius: 12px;
    padding: 1rem 0;
}

.video-grid {
    display: flex;
    transition: transform 0.5s ease;
    gap: 2rem;
    padding: 1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

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

.video-card {
    flex: 0 0 calc(33.333% - 1.33rem);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: var(--background-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body.dark-mode .video-card {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-color);
}

body.dark-mode .video-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: var(--hover-color);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    transition: opacity 0.3s ease;
}

.video-info {
    padding: 1.5rem;
    background: var(--background-color);
}

.video-title {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
}

.video-description {
    color: var(--secondary-color);
    font-size: 0.9rem;
    line-height: 1.5;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    opacity: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.carousel-button:hover {
    opacity: 1;
    background: var(--button-background);
    transform: translateY(-50%) scale(1.1);
}

.carousel-button:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-button.prev {
    left: 1rem;
}

.carousel-button.next {
    right: 1rem;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    background: var(--secondary-color);
}

.dot.active {
    background: var(--accent-color);
    transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .video-card {
        flex: 0 0 calc(50% - 1rem);
    }
    
    .carousel-button {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .video-card {
        flex: 0 0 100%;
    }
    
    .carousel-button {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .video-title {
        font-size: 1.1rem;
    }
    
    .video-info {
        padding: 1rem;
    }
}

/* Loading Animation */
.video-grid.loading {
    opacity: 0;
    transform: translateY(20px);
}

/* Touch Interaction Styles */
@media (hover: none) {
    .carousel-button {
        opacity: 1;
        background: var(--accent-color);
    }
}

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

/* Dark Mode Toggle */
#dark-mode-toggle {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-title {
        font-size: 2rem;
    }
}
/* Blog Post Enhancements */
.blog-post {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
}

.blog-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.blog-excerpt {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.blog-full-content {
    display: none;
    margin-top: 1rem;
    color: var(--primary-color);
}

.blog-full-content.show {
    display: block;
}

.read-more-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.read-more-btn:hover {
    opacity: 0.9;
}
/* Slider switch styles */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
  }
  
  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color:wheat;
    transition: 0.4s;
    border-radius: 34px;
  }
  
  .slider:before {
    position: absolute;
    content: "☀️";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: rgb(230, 174, 100);
    text-align: center;
    line-height: 26px;
    font-size: 14px;
    border-radius: 50%;
    transition: 0.4s;
  }
  .social-link {
    text-decoration: none;
    color: #333;  /* Default color - adjust as needed */
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #0077b5;  /* LinkedIn blue for LinkedIn */
}

.social-link.github:hover {
    color: #333;  /* GitHub dark gray */
}

.social-link i {
    margin-right: 8px;
}
  
  .slider:after {
    content: "🌙";
    position: absolute;
    right: 4px;
    bottom: 4px;
    text-align: center;
    line-height: 26px;
    font-size: 14px;
    color: #fff;
    opacity: 0;
    height: 26px;
    width: 26px;
    background-color: #07327b;

    line-height: 26px;
    font-size: 14px;
    border-radius: 50%;
    transition: 0.4s;
  }
  
  input:checked + .slider {
    background-color: #072861;
  }
  
  input:checked + .slider:before {
    transform: translateX(26px);
    opacity: 0;
  }
  
  input:checked + .slider:after {
    opacity: 1;
  }