
/* Global Styles */
:root {
    --primary-color: #f8a825;
    --secondary-color: #333;
    --text-light: #fff;
    --text-dark: #000;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background-color: var(--text-dark);
}

/* Enhanced Navbar Styling */
header {
    background-color: rgba(0, 0, 0, 0.95);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.logo {
    font-size: 28px;
    color: var(--text-light);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.logo:hover {
    color: var(--primary-color);
    transform: scale(1.05);
}

nav ul {
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

nav ul li {
    list-style: none;
}

nav ul li a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 4px;
    transition: var(--transition);
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li a:hover {
    color: var(--primary-color);
    background-color: rgba(248, 168, 37, 0.1);
}

/* Home Section Layout */
#home {
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
    min-height: 100vh;
    padding: 80px 0;
    display: flex;
    align-items: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* Left Column: Text Content */
#home .col-md-6:first-child {
    flex: 0 0 65%;
    padding-right: 20px;
}

#home h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
    line-height: 1.2;
}

#home h2 {
    font-size: 1.8rem;
    color: #f8a825;
    margin-bottom: 25px;
    font-weight: 500;
}

#home p {
    color: #ddd;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Right Column: Image */
#home .col-md-6:last-child {
    flex: 0 0 35%;
    display: flex;
    justify-content: flex-start;  /* Align to the left */
    align-items: center;
}

.profile-image {
    width: 200px;  /* Smaller size */
    height: 190px;
    border-radius: 20%;
    border: 2px solid #ede9e3;
    box-shadow: 0 0 20px rgba(248, 168, 37, 0.2);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    object-fit: cover;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn {
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 5px;
    transition: all 0.3s ease;
}


/* Responsive Design */
@media (max-width: 991px) {
    .container {
        flex-direction: column;
        text-align: center;
    }

    #home .col-md-6:first-child {
        flex: 0 0 100%;
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    #home .col-md-6:last-child {
        flex: 0 0 100%;
        justify-content: center;
    }
    
    .profile-image {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 768px) {
    #home h1 {
        font-size: 2.5rem;
    }

    #home h2 {
        font-size: 1.5rem;
    }

    .cta-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

.about-section {
    padding: 2rem 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: black;
}
.main-heading {
    text-align: center;
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
}
.main-heading:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #3498db;
    margin: 1rem auto;
}
.about-content {
    padding-right: 2rem;
}
.about-content p {
    color: #f2f7fc;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.tech-stack {
    padding: 20px;
}

.tech-icon {
    width: 60px;
    height: 60px;
    transition: transform 0.3s ease;
}

.tech-icon:hover {
    transform: scale(1.1);
}

.tech-stack p {
    font-size: 0.9rem;
    margin-top: 10px;
    color: #e5dddd;
}
.category-section {
    margin-bottom: 2rem; /* Adds space between each category section */
}

/* Optional: Add extra styling for the last category to remove bottom margin */
.category-section:last-child {
    margin-bottom: 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .tech-stack {
        padding: 2rem;
        font-family: 'Segoe UI', sans-serif;
    }
    .tech-icon {
        width: 60px;
        height: 60px;
        transition: transform 0.3s ease;
    }
    .tech-icon:hover {
        transform: scale(1.1);
    }
    .category-title {
        color: #2c3e50;
        margin: 2rem 0 1rem;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid #3498db;
        font-size: 1.2rem;
        font-weight: 600;
    }
   
    .skill-level {
        font-size: 0.8rem;
        color: #666;
        display: block;
    }
    .advanced {
        color: #27ae60;
    }
    .intermediate {
        color: #f39c12;
    }
}
.internships {
    background-color: #000;
    color: #fff;
    padding: 4rem 2rem;
  }

  .section-title {
    color: #ffa500;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
  }

  .section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }

  .timeline {
    display: flex;
    overflow-x: auto;
    padding: 2rem 1rem;
    gap: 2rem;
    scrollbar-width: thin;
    scrollbar-color: #ffa500 #333;
  }

  .timeline::-webkit-scrollbar {
    height: 8px;
  }

  .timeline::-webkit-scrollbar-track {
    background: #333;
    border-radius: 4px;
  }

  .timeline::-webkit-scrollbar-thumb {
    background: #ffa500;
    border-radius: 4px;
  }

  .internship-card {
    background-color: #333;
    border-radius: 10px;
    padding: 2rem;
    min-width: 280px;
    transition: transform 0.3s ease;
    position: relative;
  }

  .internship-card:hover {
    transform: translateY(-10px);
  }

  .internship-card::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 4px;
    height: 20px;
    background-color: #ffa500;
    transform: translateX(-50%);
  }

  .icon {
    color: #ffa500;
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }

  .card-title {
    color: #ffa500;
    margin-bottom: 1rem;
    font-size: 1.3rem;
  }

  .card-date {
    font-size: 0.9rem;
    opacity: 0.8;
  }

  @media (max-width: 768px) {
    .timeline {
      padding: 1rem 0.5rem;
    }

    .internship-card {
      min-width: 240px;
      padding: 1.5rem;
    }

    .section-title {
      font-size: 2rem;
    }
  }

  .projects {
    background-color: #000;
    padding: 4rem 1.5rem;
    min-height: 100vh;
  }

  .section-title {
    color: #fff;
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    position: relative;
  }

  .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #ff6b00;
  }

  .projects-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 0.5rem;
  }

  .project-card {
    background: #111;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
    border: 1px solid #222;
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  .project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.2);
    border-color: #ff6b00;
  }

  .project-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
  }

  .project-content {
    padding: 1.2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
  }

  .project-title {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: #ff6b00;
    font-weight: bold;
  }

  .project-description {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex-grow: 1;
  }

  .tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }

  .tech-badge {
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-size: 0.75rem;
    background: #1a1a1a;
    color: #ff6b00;
    border: 1px solid #ff6b00;
    transition: all 0.3s ease;
  }

  .tech-badge:hover {
    background: #ff6b00;
    color: #000;
  }

  .project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.2rem;
    background: #0a0a0a;
    border-top: 1px solid #222;
  }

  .project-date {
    font-size: 0.8rem;
    color: #666;
  }

  .github-link {
    color: #fff;
    font-size: 1.1rem;
    transition: all 0.3s ease;
  }

  .github-link:hover {
    color: #ff6b00;
    transform: rotate(360deg);
  }

  @media (max-width: 768px) {
    .projects {
      padding: 2rem 1rem;
    }

    .section-title {
      font-size: 1.8rem;
    }

    .projects-container {
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 1rem;
    }
  }

  /* Hover effect for images */
  .project-image-container {
    position: relative;
    overflow: hidden;
  }

  .project-image {
    transition: transform 0.3s ease;
  }

  .project-card:hover .project-image {
    transform: scale(1.05);
  }

  /* Orange overlay on hover */
  .project-image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 107, 0, 0);
    transition: all 0.3s ease;
  }

  .project-card:hover .project-image-container::after {
    background: rgba(255, 107, 0, 0.1);
  }

  .contact {
    background-color: #000;
    padding: 4rem 1.5rem 2rem; /* Reduced bottom padding */
    color: #fff;
    margin-bottom: 0; /* Remove bottom margin */
}

  .section-title {
    color: #fff;
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    position: relative;
  }

  .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #ff6b00;
  }

  .contact-container {
    max-width: 1200px;
    margin: 0 auto;
  }

  .contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
  }

  .contact-item {
    background: #111;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #222;
  }

  .contact-item:hover {
    transform: translateY(-5px);
    border-color: #ff6b00;
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.2);
  }

  .contact-icon {
    font-size: 2rem;
    color: #ff6b00;
    margin-bottom: 1rem;
  }

  .contact-title {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
  }

  .contact-text {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .contact-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .contact-link {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }

  .contact-link:hover {
    color: #ff6b00;
  }

  .contact-footer {
    text-align: center;
    margin-top: 2rem;
    padding: 2rem 0; /* Remove bottom padding */
    border-top: 1px solid #222;
    color: #ccc;
    margin-bottom: 0; /* Remove bottom margin */
}
  
  .contact-footer strong {
    color: #ff6b00;
  }

  .contact-link i {
    font-size: 1.2rem;
  }

  @media (max-width: 768px) {
    .contact {
      padding: 3rem 1rem;
    }

    .section-title {
      font-size: 1.8rem;
    }

    .contact-grid {
      gap: 1rem;
    }

    .contact-item {
      padding: 1.5rem;
    }
  }

  /* Hover animation for icons */
  .contact-icon {
    transition: transform 0.3s ease;
  }

  .contact-item:hover .contact-icon {
    transform: scale(1.2);
  }

  /* Pulse animation for important elements */
  @keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
  }

  .contact-footer strong {
    display: inline-block;
    animation: pulse 2s infinite;
  }

  footer {
    background-color: black;
    padding: 30px 0;
    margin-top: 0; /* Remove top margin to eliminate white space */
}

footer {
    background-color: black;
    padding: 30px 0;
    margin-top: 0;
    display: flex;           /* Added for centering */
    justify-content: center; /* Center horizontally */
    align-items: center;     /* Center vertically */
    text-align: center;      /* Center the text */
}

footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;           /* Added for centering */
    justify-content: center; /* Center horizontally */
}

footer p {
    color: white;
    font-size: 16px;
    margin: 0;
}

footer p:hover {
    color: #FFA500;
    transition: color 0.3s ease;
}

footer p .copyright {
    color: #FFA500;
}