/* Variables */
:root {
    --primary-color: #2d2d2d;
    --secondary-color: #0066cc;
    --accent-color: #00cc99;
    --text-primary: #333333;
    --text-secondary: #666666;
    --background-light: #ffffff;
    --background-dark: #f5f5f5;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

img {
    width: 65%; 
    height: 50%; 
    object-fit: cover; 
    border-radius: 8px; 
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15); 
    display: block; 
}

img:hover {
    transform: rotate(0deg) scale(1.05);
}

/* Navigation */
.navbar {
    width: 100%;
    padding: 1rem 2rem;
    background-color: var(--background-light);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex; /* Ensures proper centering */
    justify-content: center; /* Centers content horizontally */
    align-items: center; /* Centers content vertically */
}

/* Nav Container */
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%; /* Stretches the nav container */
    max-width: 1200px; /* Limits the width for a centered layout */
}


/* Logo Styling */
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-transform: uppercase;
    margin-left: 1rem; /* Adjust this value to move the logo to the right */
}


/* Navigation Links */
.nav-links {
    display: flex;
    justify-content: center;
    flex-grow: 1; /* Centers the nav links */
    list-style: none;
    gap: var(--spacing-md);
}

.nav-links a {
    text-decoration: none;
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--secondary-color);
    background-color: rgba(0, 102, 204, 0.1); /* Adds a light background effect on hover */
}

/* Theme Toggle Button */
.theme-toggle {
    position: absolute; /* Absolute positioning */
    top: 50%; /* Vertically centered relative to the navbar */
    right: var(--spacing-md); /* Positioned at the right margin of the page */
    transform: translateY(-50%); /* Ensures perfect vertical alignment */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--text-primary);
    transition: var(--transition);
}

.theme-toggle:hover {
    color: var(--secondary-color);
}



/* Hero Section */
.hero {
    padding: calc(4rem + var(--spacing-lg)) 0 var(--spacing-lg);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.hero-text h2 {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.highlight {
    color: #ff6347; /* Change to any color you prefer */
    font-weight: bold;
    text-decoration: none;
}
.highlight:hover {
    text-decoration: underline;
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.primary-btn,
.secondary-btn {
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

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

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

.primary-btn:hover {
    background-color: #0052a3;
}

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

/* Section Styles */
section {
    padding: var(--spacing-lg) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.section-header p {
    color: var(--text-secondary);
}

/* About Section */
.about-content {
    display: grid;
    gap: var(--spacing-lg);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.stat {
    text-align: center;
    padding: var(--spacing-md);
    background-color: var(--background-dark);
    border-radius: var(--border-radius);
}

.stat .number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    display: block;
}

/* Skills Section */
.skills-content {
    display: grid;
    gap: var(--spacing-lg);
}

.skill-category h3 {
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.skill-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-md);
}

.skill-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    background-color: var(--background-dark);
    border-radius: var(--border-radius);
}

.skill-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}
/* Skills Section - Continued */
.skill-item span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.skill-item:hover {
    background-color: var(--secondary-color);
    color: var(--text-on-secondary);
    transform: scale(1.05);
    transition: all 0.3s ease-in-out;
}

.skills-content .skill-category {
    background-color: var(--background-light);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.skills-content .skill-category h3 {
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    margin-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: var(--spacing-sm);
}
/* Resume Section Styles */
.resume {
    background-color: #f4f4f4;
    padding: 60px 0;
    text-align: center;
}

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

.resume .section-header h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 10px;
}

.resume .section-header p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 30px;
}

.resume .resume-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.resume .resume-content a {
    background-color: #ff6347; /* Main button color */
    color: white;
    font-size: 1.1rem;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 30px;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.resume .resume-content a:hover {
    background-color: #e55342; /* Darker shade for hover effect */
}

.resume .resume-content a:focus {
    outline: none;
}

@media screen and (max-width: 768px) {
    .resume .section-header h2 {
        font-size: 2rem;
    }
    
    .resume .section-header p {
        font-size: 1rem;
    }

    .resume .resume-content {
        flex-direction: column;
        gap: 15px;
    }

    .resume .resume-content a {
        padding: 12px 25px;
        font-size: 1rem;
    }
}


@media (max-width: 768px) {
    .skills-content {
        gap: var(--spacing-md);
    }

    .skill-items {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .skill-item span {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .skills-content .skill-category {
        padding: var(--spacing-md);
    }

    .skill-item {
        gap: var(--spacing-xs);
        padding: var(--spacing-xs);
    }

    .skill-item i {
        font-size: 1.2rem;
    }

    .skill-item span {
        font-size: 0.8rem;
    }
}
/* Contact Section Styles */
.contact {
    padding: 60px 0;
    background-color: #f9f9f9;
}

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

.contact .section-header {
    text-align: center;
    margin-bottom: 40px;
}

.contact .section-header h2 {
    font-size: 2.5rem;
    color: #333;
}

.contact .section-header p {
    font-size: 1.1rem;
    color: #555;
    margin-top: 10px;
}

.contact .contact-content {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.contact .contact-info {
    flex: 1;
    min-width: 280px;
}

.contact .contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.contact .contact-item i {
    font-size: 1.5rem;
    color: #333;
}

.contact .contact-item h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #333;
}

.contact .contact-item p {
    font-size: 1rem;
    color: #555;
}

.contact .social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.contact .social-icon {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #333;
    font-size: 1.2rem;
}

.contact .social-icon i {
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.contact .social-icon:hover i {
    color: #007bff;
}

.contact .social-icon span {
    font-size: 1rem;
    color: #555;
}

.contact .social-icon:hover span {
    color: #007bff;
}


/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.project-card {
    background-color: var(--background-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

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

.project-card h3 {
    font-size: 1.5rem;
    margin: var(--spacing-sm);
    color: var(--text-primary);
}

.project-card p {
    padding: 0 var(--spacing-sm) var(--spacing-md);
    color: var(--text-secondary);
}

.project-card .project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin: var(--spacing-sm) 0;
}

.project-card .project-tags span {
    background-color: var(--secondary-color);
    padding: 0.3rem 0.6rem;
    border-radius: var(--border-radius);
    color: white;
    font-size: 0.875rem;
}

.project-card .project-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin: var(--spacing-sm) 0;
}

.project-card .project-links a {
    font-size: 1.25rem;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

.project-card .project-links a:hover {
    color: #0052a3;
}


/* Footer */
footer {
    text-align: center;
    padding: var(--spacing-md);
    background-color: var(--primary-color);
    color: white;
}

footer p {
    margin-top: var(--spacing-xs);
    font-size: 0.875rem;
}

footer a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

footer a:hover {
    color: #009973;
}
/* Responsive Navigation Menu for Mobile */
@media only screen and (max-width: 768px) {
    .nav-links {
        display: none;
        width: 100%;
    }

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

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

    .navbar .logo {
        font-size: 2rem;
    }

    .theme-toggle {
        display: block;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }

    .navbar .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: #333;
    }
}

/* Contact Form Styling */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input, .contact-form textarea {
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
}

.contact-form button {
    padding: 15px;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.contact-form button:hover {
    background-color: #0056b3;
}

/* Dark Mode Styles */
body.dark-mode {
    background-color: #121212;
    color: #ffffff;
}

body.dark-mode .navbar {
    background-color: #333;
}

body.dark-mode .hero {
    background-color: #1e1e1e;
}

body.dark-mode .about, body.dark-mode .skills, body.dark-mode .projects, body.dark-mode .contact {
    background-color: #1e1e1e;
}

body.dark-mode .project-card {
    background-color: #333;
}

body.dark-mode a {
    color: #ffffff;
}

body.dark-mode .primary-btn, body.dark-mode .secondary-btn {
    background-color: #333;
    color: #fff;
}

/* Adjust other elements as needed for dark mode */


/* General Styles */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fafafa;
    color: #1a1a1a;
    line-height: 1.6;
  }
  
  /* Title */
  h2 {
    text-align: center;
    font-size: 2.8rem;
    margin: 60px 0 40px;
    color: #1a1a1a;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 15px;
  }
  
  h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #1d4ed8);
    border-radius: 2px;
  }
  
  /* Timeline Container */
  .timeline {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow-x: auto;
  }
  
  .timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e5e7eb 10%, #e5e7eb 90%, transparent);
    transform: translateY(-50%);
    z-index: 0;
  }
  
  /* Timeline Event */
  .timeline__event {
    position: relative;
    width: 240px;
    min-width: 240px;
    margin: 0 20px;
    padding: 25px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1;
  }
  
  .timeline__event:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.1);
  }
  
  /* Event Icon */
  .timeline__event__icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-radius: 50%;
    color: #ffffff;
    font-size: 28px;
    transition: all 0.3s ease;
  }
  
  .timeline__event:hover .timeline__event__icon {
    transform: scale(1.1);
  }
  
  /* Event Content */
  .timeline__event__content {
    text-align: center;
  }
  
  /* Event Title */
  .timeline__event__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    position: relative;
  }
  
  /* Event Description */
  .timeline__event__description {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
    white-space: normal;
  }
  
  /* Enhanced Animation */
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .animated {
    animation: fadeInUp 0.6s ease-out forwards;
  }
  
  .timeline__event:nth-child(1) { animation-delay: 0.1s; }
  .timeline__event:nth-child(2) { animation-delay: 0.3s; }
  .timeline__event:nth-child(3) { animation-delay: 0.5s; }
  .timeline__event:nth-child(4) { animation-delay: 0.7s; }
  
  /* Responsive Design */
  @media (max-width: 1024px) {
    .timeline {
      padding: 40px 20px;
    }
    
    .timeline__event {
      width: 220px;
      min-width: 220px;
      margin: 0 15px;
    }
  }
  
  @media (max-width: 768px) {
    h2 {
      font-size: 2.2rem;
      margin: 40px 0 30px;
    }
  
    .timeline {
      flex-direction: column;
      padding: 30px 20px;
      align-items: center;
    }
  
    .timeline::before {
      display: none;
    }
  
    .timeline__event {
      width: 100%;
      max-width: 400px;
      margin: 0 0 25px;
    }
  
    .timeline__event:last-child {
      margin-bottom: 0;
    }
  
    .timeline__event__icon {
      width: 60px;
      height: 60px;
      font-size: 24px;
    }
  }