@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@700&display=swap');


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

/* General Body Styling */
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.8;
    color: #333;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.home {
    height: 30vh; /* Full viewport height */
    display: flex;
    justify-content: center; /* Centers horizontally */
    align-items: center; /* Centers vertically */
    text-align: center; /* Optional: Centers text within the container */
    margin-bottom: 200px;
}

.home-content h1{
    position: relative;
    font-family: 'Source Code Pro', monospace;
    font-size: 54px;
    font-weight: 700;
    letter-spacing: 5px;
    color: #333; /* You can customize the color */
    margin-top: 50%;
    margin-bottom: 40%;
}
.home-content h1,
.home-content h2 {
    display: inline-block;
    transition: transform 0.3s ease;
    will-change: transform;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.home-content h1::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    animation: showRight 1s ease forwards;
    animation-delay:  0.5s ;
}

.home-content h2{
    font-family: 'Source Code Pro', monospace;
    font-size: 30px;
    font-weight: 700;
    margin-top: 10%;
    margin-bottom: 40%;
}

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

/* Main Container */
.main-container {
    display: flex;
    justify-content: center;
    font-size: 22px;
}

/* Sidebar Styling */
.sidebar {
    background: #ffffff;
    padding: 20px;
    width: 250px;
    border-right: 2px solid #3558fa;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.sidebar:hover {
    transform: scale(1.02); /* Subtle scale effect on hover */
}

.sidebar h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 3px;
    text-align: center;
    color: #005AFF;
    letter-spacing: 1px;
}

.sidebar h1::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 10%;
    background: #ffffff;
    animation: showRight 1s ease forwards;
    animation-delay:  0.1s ;
}



/* Navigation Links */
.nav-links {
    list-style: none;
    padding: 0;
}

.nav-links li {
    margin: 20px 0;
}

.nav-links a {
    text-decoration: none;
    color: #333333;
    font-weight: 400;
    font-size: 16px;
    padding: 8px 15px;
    display: block;
    border-radius: 5px;
    position: relative;
    transition: background-color 0.3s, color 0.3s;
    min-height: 44px;
}

.nav-links a:hover {
    background-color: #ffffff;
    color: #000000;
    border-radius: 10px;
    font-weight: 500;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background-color: #005AFF;
    border-radius: 5px;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.nav-links a:hover::before {
    transform: scaleY(1);
}

/* Horizontal Rule */
hr {
    border: 0;
    border-top: 2px solid #005AFF;
    margin: 10px 0;
    height: 10px;
    border-radius: 100px;
}

/* Header Styling */
header {
    background: #ffffff;
    color: #000000;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 1000;
}

header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 400;
}

/* Main Content */
main {
    padding-top: 100px;
    margin: 20px 0 auto;
    margin-left: 222px;
    max-width: 1100px;
}

/* Banner Styling */
.banner {
    position: fixed;
    top: 20px;
    right: 20px;
    width: auto;
    height: auto;
    z-index: 1001;
}

.banner img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

/* Section Headings */
h2 {
    text-align: center;
    font-weight: 500;
    margin-bottom: 30px;
    font-size: 20px;
}

/* About Section Styling */
#about {
    position: relative;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    transition: all 1s ease;
    margin-bottom: 100px;
}

#about:hover {
    transform: scale(1.05);  /* Slight zoom-in effect */
    background-color: #005AFF;  /* Change background color on hover */
    color: white;  /* Change text color */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);  /* Subtle shadow effect */
}

#about h2 {
    transition: color 1s ease;
    font-size: 28px;
}

#about:hover h2 {
    color: #ffffff;  /* Change heading text color on hover */
}

#about p {
    transition: color 1s ease;
}

#about:hover p {
    color: #ffffff;  /* Change paragraph text color on hover */
}

/* Optional: Add a box shadow when hovered for extra effect */
#about:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Project Box */
#projects {
    position: relative;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    transition: all 1s ease;
}

#projects:hover {
    transform: scale(1.05);  /* Slight zoom-in effect */
    background-color: #005AFF;  /* Change background color on hover */
    color: black;  /* Change text color */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);  /* Subtle shadow effect */
}

#projects p {
    font-size: 18px;
    color: #000000;
    line-height: 1.6;
    margin-bottom: 15px;
    transition: color 1s ease;
}

#projects h2{
    font-size: 28px;
}

/* Footer Styling */
footer {
    text-align: center;
    padding: 20px 0;
    background: #ffffff;
    color: #000000;
    margin-left: 220px;
    font-size: 18px;
}

.button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%; /* Ensure it spans full width */
}

/* Resume Button */
.download-btn {
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    color: #ffffff;
    background-color: #005AFF;
    padding: 10px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 8px 15px rgba(0, 123, 255, 0.2);
    margin-top: 40px;
    width: fit-content; /* Ensures it doesn't stretch */
}

.download-btn:hover {
    background-color: #005AFF;
    transform: translateY(-3px);
}

#resume h2{
    font-size: 28px;
}
/* Contact Icons */
.contact-icons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
  }

.contact-icons a {
    margin: 0 35px;
    color: #005AFF;
    font-size: 24px;
    transition: all 0.3s ease;
    padding: 12px;
    min-width: 44px;
}

.contact-icons a:hover {
    color: #005AFF;
    transform: translateY(-5px);
}

#contact h2{
    font-size: 28px;
}

/* Dark Mode Sidebar */
body.dark-mode .sidebar {
    background: #181717;
    color: #fff;
}

body.dark-mode .nav-links a {
    color: #fff;
}

body.dark-mode .nav-links a:hover {
    background-color: #181717;
    font-weight: 750;
}

/* Dark Mode Header */
body.dark-mode header {
    background: #181717;
    color: #fff;
}

/* Dark Mode Footer */
body.dark-mode footer {
    background: #181717;
    color: #fff;
}

/*dark mode for about me*/

body.dark-mode #about {
    background-color: #181717;  /* Dark background in dark mode */
    color: #ffffff;  /* Light text in dark mode */
}

body.dark-mode #about:hover {
    background-color: #005AFF;  /* Change to a different hover color in dark mode */
    transform: scale(1.05);  /* Slight zoom-in effect */
    color: white;
}

body.dark-mode #about h2,
body.dark-mode #about p {
    color: #ffffff;  /* Ensure text is visible in dark mode */
}

/* Dark Mode Project Box */
body.dark-mode #projects {
    background: #181717;
    color: #ffffff;
    border-radius: 6px;
    padding: 16px;
    margin: 20px 0;
}

body.dark-mode #projects:hover{
    background-color: #005AFF;  /* Change to a different hover color in dark mode */
    transform: scale(1.05);  /* Slight zoom-in effect */
    color: white;
}
body.dark-mode #projects p {
    color: #ffffff;
}

/* Dark Mode Text */
h2.dark-mode, h1.dark-mode, strong.dark-mode, em.dark-mode {
    color: #fff;
}

.dark-mode h1 {
    color: white; /* White text in dark mode */
}

/* Dark Mode Nokia Logo */
body.dark-mode .nokia-logo img {
    content: url('NOKIADARK.png');
}

body.dark-mode .sidebar h1::before {
    background: #181717; /* Black background in dark mode */
}

body.dark-mode .home-content h1::before {
    background: #181717; /* Black background in dark mode */
}

body.dark-mode .home-content h1,
body.dark-mode .home-content h2 {
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.1);
}

.nokia-logo {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    z-index: 1000;
    transition: all 0.3s ease; /* Add this line */
}

.nokia-logo img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    max-width: 100%;
}

#contact{
    font-size: 18px;
}

@keyframes showRight {
    100%{
        width: 0;
    }
}

.contact-icons a:hover {
    color: #005AFF;
    transform: scale(1.1);
}

html {
    scroll-behavior:smooth;
}

.profile-photo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0; /* Adjust margin as needed */
  }
  
  .profile-photo {
    width: 150px; /* Adjust size as needed */
    height: 150px; /* Adjust size as needed */
    border-radius: 50%;
    object-fit: cover; /* Ensures the image is fully contained within the circle */
    border: 4px solid #fff; /* Optional: Adds a white border around the image */
    margin-bottom:7%;
  }

  body.dark-mode .profile-photo {
    border: 4px solid #333; /* Dark border in dark mode */
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    top: 30px;
    right: 90px; /* Position next to Nokia logo */
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #f0f0f0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.theme-icon {
    width: 24px;
    height: 24px;
    stroke: #333;
    stroke-width: 1.5;
    stroke-linecap: round;
    transition: all 0.3s ease;
}

/* Dark Mode Styles */
body.dark-mode .theme-toggle {
    background: #333;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
}

body.dark-mode .theme-icon {
    stroke: #fff;
}



hr {
    border: none;
    height: 2px;
    margin: 25px 0;
    position: relative;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #005AFF 20%, 
        #005AFF 80%, 
        transparent 100%
    );
    opacity: 0.9;
    transform-origin: center;
    transition: all 0.5s ease;
}

/* Add a shimmer effect */
hr::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255,255,255,0.4),
        transparent
    );
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    100% {
        left: 200%;
    }
}

/* Dark mode adjustments */
body.dark-mode hr::after {
    background: linear-gradient(90deg,
        transparent,
        rgba(0,90,255,0.4),
        transparent
    );
}




/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    background: none;
    border: none;
    padding: 10px;
    font-size: 1.5rem;
    cursor: pointer;
  }
  
  @media (max-width: 768px) {
    .mobile-menu-toggle {
      display: block;
    }
  
    .sidebar.active {
      left: 0;
    }
  }
  .mobile-menu-toggle i {
    color: #005AFF; /* Make the burger icon lines blue */
    transition: color 0.3s ease;
  }

.mobile-menu-toggle:hover i {
    color: #003bb3; /* Slightly darker blue on hover */
  }

/* ==================== RESPONSIVE DESIGN ==================== */
/* Mobile First Approach */
@media (max-width: 768px) {
    .nokia-logo {
        display: none;
      }

    .main-container {
      flex-direction: column;
    }
  
    .sidebar {
      position: fixed;
      left: -100%;
      width: 80%;
      height: 100%;
      transition: left 0.5s ease;
      border-right: none;
      border-bottom: 2px solid #005AFF;
      padding: 15px;
    }
    .sidebar {
        z-index: 1000;
        width: 280px; /* Increased from 80% for better overlap */
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.2);
    }
    
    .sidebar.active {
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
    }
    
    /* Add overlay effect */
    .sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    }

    .sidebar.active + .sidebar-overlay {
        display: block;
      }

    /* Prevent body scrolling when menu is open */
    body.menu-open {
        overflow: hidden;
        height: 100vh; /* Prevent scrolling */
        position: fixed;
        width: 100%;
    }
    
    /* Ensure sidebar overlay appears when menu is open */
    body.menu-open .sidebar-overlay {
        display: block;
    }
    
    main {
      margin-left: 0;
      padding: 20px;
      padding-top: 80px;
    }
  
    .home-content h1 {
      font-size: clamp(32px, 6vw, 54px);
      margin-top: 20%;
      margin-bottom: 20%;
    }
  
    .home-content h2 {
        font-size: clamp(24px, 4vw, 30px);
    }
    section h2 {
        font-size: clamp(22px, 3vw, 28px);
      }

    .theme-toggle {
      right: 15px !important; /* Reduced from 70px */
      top: 15px;
      width: 35px;
      height: 35px;
    }
  
    .theme-toggle {
      right: 70px;
    }

    .theme-icon {
        width: 20px;
        height: 20px;
    }
  
    footer {
      margin-left: 0;
      padding: 15px;
      font-size: 12px;
    }
    .home-content h1{
        margin-top: 60%;
    }
    #about p{
        font-size: 15px;
    }
    #about h2{
        font-size: 22px;
    }
    #projects h2{
        font-size: 22px;
    }
    #projects h3{
        font-size: 18px;
    }
    #projects p{
        font-size: 15px;
    }
    #resume h2{
        font-size: 22px;
    }
    #contact h2{
        font-size: 22px;
    }
  }
  @media (max-width: 480px) {
    .nav-links li {
      margin: 15px 0;
    }
  
    .profile-photo {
      width: 120px;
      height: 120px;
      max-width: 100%;
    }
  
    #about, #projects {
      padding: 20px;
      margin: 15px 0;
    }
  
    .download-btn {
      padding: 12px 24px;
    }
  }