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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #fff;
    background-color: #121212;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
    line-height: 1.6;
}

.container {
    width: 90%;
    margin: 0 auto;
}

h1, h2, h3 {
    font-weight: 600;
}

a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #a29bfe;
}

/* Section padding */
section {
    padding: 50px 0;
}

/* Button */
button {
    cursor: pointer;
}

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

body.dark a {
    color: #b3b3b3;
}

body.dark .dark-mode-toggle {
    color: #fff;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    background-color: transparent;
    border: none;
    color: #fff;
    font-size: 20px;
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    transition: color 0.3s ease;
}

/* Navbar */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px 20px;
    z-index: 1000;
}

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

.navbar-links ul {
    display: flex;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.navbar-links ul li {
    margin-right: 20px;
}

.navbar-links a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-links a:hover {
    color: #8c7aff;
}

/* Hero Section */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: url('hero-bg.jpg') center center/cover no-repeat;
    text-align: center;
}


.hero-content {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}
.hero-content.fade-in {
    opacity: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-weight: 300;
}

.hero .highlight {
    color: #8c7aff;
}

.contact-btn,
.cv-btn {
    display: inline-block;
    background-color: #8c7aff;
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    margin: 10px;
    transition: background-color 0.3s ease;
}

.contact-btn:hover,
.cv-btn:hover {
    background-color: #7a69e6;
}

.cv-btn.download {
    background-color: #5a50d1;
}

/* Hero Section */
.hero-section {
    text-align: center;
    background-color: #1e1e1e;
    color: #b3b3b3;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-section h1 {
    font-size: 50px;
    margin-bottom: 10px;
    letter-spacing: 1px;
    animation: typing 3s steps(30) 1s forwards, blink 0.75s step-end infinite;
}

.hero-section .text-purple {
    color: #a29bfe;
}

.hero-section p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeIn 2s forwards;
    animation-delay: 2s;
}

.hero-section .btn {
    display: inline-block;
    background-color: #a29bfe;
    padding: 12px 30px;
    border-radius: 30px;
    color: white;
    margin-top: 20px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.hero-section .btn:hover {
    background-color: #8c7aff;
    box-shadow: 0 4px 15px rgba(160, 95, 255, 0.2);
}

.hero-section .scroll-down {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.hero-section .scroll-arrow {
    font-size: 2rem;
    color: #b3b3b3;
    animation: bounce 1s infinite;
}

.hero-section .scroll-arrow:hover {
    color: #fff;
}

/* About Section */
.about-section {
    background-color: #2e2e2e;
    padding: 40px 20px;
    color: #b3b3b3;
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
  }
  
  /* About Me Header */
  .about-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
  }
  
  .profile-icon-container {
    flex: 0 0 100px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .profile-icon {
    font-size: 5rem;
    color: #8c7aff; /* Purple color for the icon */
  }
  
  .about-text h2 {
    font-size: 32px;
    font-weight: 600;
    color: #fff;
  }
  
  .about-text p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 15px;
  }
  
  /* Details Section: Education, Skills, Contact */
  .details-section {
    display: flex;
    justify-content: space-between;
    gap: 30px;
  }
  
  /* Detail Items (Education, Skills, Contact) */
  .detail-item {
    flex: 1;
    background-color: #333;
    padding: 20px;
    border-radius: 10px;
  }
  
  .detail-item h3 {
    font-size: 24px;
    color: #8c7aff;
    margin-bottom: 15px;
  }
  
  .detail-item ul {
    list-style-type: none;
    padding: 0;
  }
  
  .detail-item li {
    font-size: 18px;
    margin-bottom: 10px;
  }
  
  /* Skills Section with Oval Shaped Boxes */
  .skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
  }
  
  .skills-list li {
    background-color: #444;
    padding: 12px 20px;
    border-radius: 50px; /* Oval shaped boxes */
    color: white;
    font-size: 16px;
    transition: background-color 0.3s;
  }
  
  .skills-list li:hover {
    background-color: #8c7aff;
    cursor: pointer;
  }
  
  /* Links */
  a {
    color: #8c7aff;
    text-decoration: none;
  }
  
  a:hover {
    text-decoration: underline;
  }

/* Interests Section */
.interests-section {
    padding: 80px 0;
    background-color: #1e1e1e;
  }
  
  .section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 16px;
    position: relative;
  }
  
  .text-gradient {
    background: linear-gradient(to right, #a29bfe, #8c7aff);
    -webkit-background-clip: text;
    color: transparent;
  }
  
  .title-underline {
    width: 50px;
    height: 2px;
    background-color: #a29bfe;
    margin: 10px auto;
  }
  
  /* Grid of Cards */
  .interests-grid {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    margin-top: 40px;
  }
  
  .interest-card {
    background-color: #2e2e2e;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease-in-out;
    width: 30%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }
  
  .interest-card:hover {
    transform: scale(1.05);
    background-color: #3b3b3b;
  }
  
  .icon-container {
    background-color: #8c7aff;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    transition: all 0.3s ease;
  }
  
  .icon-container:hover {
    background-color: #a29bfe;
  }
  
  .icon {
    font-size: 32px;
    color: white;
  }
  
  .card-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    color: white;
    transition: all 0.3s ease;
  }
  
  .card-title:hover {
    color: #a29bfe;
  }
  
  .card-description {
    color: #b3b3b3;
    font-size: 16px;
    line-height: 1.5;
  }
   
/* Services Section */
.services-section {
    background-color: #1e1e1e;
    color: #b3b3b3;
    padding: 80px 0;
    text-align: center;
  }
  
  .services-title {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 16px;
    position: relative;
  }
  
  .services-title .text-gradient {
    background: linear-gradient(to right, #a29bfe, #8c7aff);
    -webkit-background-clip: text;
    color: transparent;
  }
  
  .title-underline {
    width: 50px;
    height: 2px;
    background-color: #a29bfe;
    margin: 10px auto;
  }
  
  .services-grid {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
  }
  
  .service-card {
    background-color: #2e2e2e;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    width: 30%;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }
  
  .service-card:hover {
    transform: scale(1.05);
    background-color: #3b3b3b;
  }
  
  .service-icon-container {
    background-color: #8c7aff;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    transition: all 0.3s ease;
  }
  
  .service-icon-container:hover {
    background-color: #a29bfe;
  }
  
  .service-icon {
    font-size: 32px;
    color: white;
  }
  
  .service-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    color: white;
    transition: all 0.3s ease;
  }
  
  .service-title:hover {
    color: #a29bfe;
  }
  
  .service-description {
    color: #b3b3b3;
    font-size: 16px;
    line-height: 1.5;
  }
  
/* Projects Section */
.projects-section {
    padding: 80px 0;
    background-color: #1e1e1e;
    color: #b3b3b3;
}

.projects-section h2 {
    font-size: 36px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 16px;
    position: relative;
}

.projects-section h2 span {
    background: linear-gradient(to right, #a29bfe, #8c7aff);
    -webkit-background-clip: text;
    color: transparent;
}

.projects-section .projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.project-card {
    background-color: #2e2e2e;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.project-card:hover {
    transform: scale(1.05);
    background-color: #3b3b3b;
}

.project-card h3 {
    font-size: 22px;
    font-weight: 600;
    color: white;
    margin-bottom: 12px;
}

.project-card p {
    color: #b3b3b3;
    font-size: 16px;
    margin-bottom: 16px;
}

.project-card a {
    display: inline-block;
    color: #8c7aff;
    text-decoration: none;
    font-weight: 600;
}

.project-card a:hover {
    color: #a29bfe;
}

.show-more-btn {
    padding: 12px 20px;
    background-color: #8c7aff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
}

.show-more-btn:hover {
    background-color: #a29bfe;
}

.project-icon {
    font-size: 32px;
    color: #8c7aff;
    margin-bottom: 16px;
}
/* Contact section*/
.contact-section {
    padding: 40px 20px;
    background-color: #1a1a1a;
    color: white;
}

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

/* Heading styles */
h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 30px;
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

/* Contact Info */
.contact-info {
    margin-bottom: 40px;
}

.contact-info h3 {
    font-size: 1.5rem;
}

.contact-info p {
    color: #bbb;
    margin-bottom: 20px;
}

.info-item {
    margin-bottom: 15px;
}

.info-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.info-item p {
    font-size: 1rem;
    color: #ccc;
}

.info-item a {
    color: #8c7aff;
    text-decoration: none;
}

.info-item a:hover {
    text-decoration: underline;
}

/* Form Styling */
.form-container {
    background-color: #2b2b2b;
    padding: 20px;
    border-radius: 8px;
}

.form-container h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.form-field {
    margin-bottom: 20px;
}

.form-field label {
    display: block;
    color: #bbb;
    font-size: 1rem;
    margin-bottom: 8px;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 10px;
    background-color: #333;
    border: 1px solid #444;
    border-radius: 5px;
    color: #fff;
    font-size: 1rem;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #8c7aff;
}

button {
    background-color: #8c7aff;
    padding: 12px 20px;
    color: white;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #7a69e6;
}

button:disabled {
    background-color: #555;
    cursor: not-allowed;
}

.form-status {
    color: #4CAF50;
    text-align: center;
    margin-top: 20px;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background-color: #333;
    padding: 40px;
    text-align: center;
    position: relative;
}

/* Logo Styles (inside the footer) */
.logo-container {
    position: absolute;
    top: 20px;
    left: 20px;
    animation: fadeInOut 4s ease-in-out infinite;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: #8c7aff;
}

/* Fade In and Out Animation for the Logo */
@keyframes fadeInOut {
    0%, 100% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}

/* Footer Container */
.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-top: 80px; /* Add space for the logo */
}
.footer-socials {
  display: flex;
  justify-content: flex-end; /* pushes icons to the right */
  gap: 1rem;
}
/* Left Section (Bio) */
.bio {
    width: 45%;
}

.bio .title {
    font-size: 1.5rem;
    font-weight: bold;
}

.bio .description {
    color: #b0b0b0;
    margin: 20px 0;
}

.contact-info {
    list-style-type: none;
    padding: 0;
    color: #b0b0b0;
}

.contact-info p {
    margin: 10px 0;
    display: flex;
    align-items: center;
}

.contact-info a {
    color: #8c7aff;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info a:hover {
    color: #ffffff;
}

.contact-info .icon {
    margin-right: 10px;
    width: 20px;
    height: 20px;
    display: inline-block;
    fill: #8c7aff;
}

/* Modern Icons (SVG) */
.location-icon {
    background-image: url('https://img.icons8.com/ios-filled/50/ffffff/marker.png');
    background-size: contain;
    background-repeat: no-repeat;
    width: 20px;
    height: 20px;
}

.email-icon {
    background-image: url('https://img.icons8.com/ios-filled/50/ffffff/mail.png');
    background-size: contain;
    background-repeat: no-repeat;
    width: 20px;
    height: 20px;
}

.phone-icon {
    background-image: url('https://img.icons8.com/ios-filled/50/ffffff/phone.png');
    background-size: contain;
    background-repeat: no-repeat;
    width: 20px;
    height: 20px;
}

.work-icon {
    background-image: url('https://img.icons8.com/ios-filled/50/ffffff/hourglass.png');
    background-size: contain;
    background-repeat: no-repeat;
    width: 20px;
    height: 20px;
}

/* Hover Effects */
.contact-info .icon:hover {
    fill: #ffffff; /* Change the icon color when hovered */
}

/* Right Section (Quick Links and Social Icons) */
.right-section {
    width: 45%;
    text-align: left;
}

.quick-links {
    margin-bottom: 30px;
}

.quick-links h3 {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.quick-links ul {
    list-style-type: none;
    padding: 0;
}

.quick-links li {
    margin: 10px 0;
}

.quick-links a {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

.quick-links a:hover {
    color: #8c7aff;
}

/* Social Icons */
.social-icons {
    margin-top: 20px;
}

.social-icon {
    background-color: #444;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    margin: 0 10px;
    transition: background-color 0.3s;
}

.social-icon-img {
    width: 24px;
    height: 24px;
}

.social-icon:hover {
    background-color: #8c7aff;
}

/* Copyright Section */
.copyright {
    margin-top: 30px;
    font-size: 0.9rem;
    color: #b0b0b0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .bio, .right-section {
        width: 100%;
        text-align: center;
    }

    .quick-links {
        margin-bottom: 20px;
    }
}

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    left: 10px; /* Distance from the left margin */
    bottom: 20px; /* Distance from the bottom of the page */
    padding: 10px 15px;
    font-size: 18px;
    background-color: #9e4caf; /* Green background */
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.scroll-to-top:hover {
    background-color: #45a049; /* Darker green when hovered */
}

/* Optional: For better accessibility */
.scroll-to-top:focus {
    outline: none;
}

/* Scroll to bottom button */
.scroll-to-bottom {
    position: fixed;
    right: 10px; /* Distance from the left margin */
    bottom: 20px; /* Distance from the bottom of the page */
    padding: 10px 15px;
    font-size: 18px;
    background-color: #9e4caf; /* Green background */
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.scroll-to-bottom:hover {
    background-color: #45a049; /* Darker green when hovered */
}

/* Optional: For better accessibility */
.scroll-to-bottom:focus {
    outline: none;
}

/* Animations */
@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Tablets */
@media (max-width: 1024px) {

  .interest-card,
  .service-card {
    width: 45%;
  }

  .projects-section .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 768px) {

  /* NAVBAR */
  .navbar-links ul {
    flex-direction: column;
    align-items: center;
  }

  .navbar-links ul li {
    margin: 10px 0;
  }

  /* ABOUT SECTION */
  .details-section {
    flex-direction: column;
  }

  /* INTERESTS */
  .interests-grid {
    flex-direction: column;
  }

  .interest-card {
    width: 100%;
  }

  /* SERVICES */
  .services-grid {
    flex-direction: column;
  }

  .service-card {
    width: 100%;
  }

  /* PROJECTS */
  .projects-section .projects-grid {
    grid-template-columns: 1fr;
  }

  /* CONTACT */
  .contact-section .container {
    display: block;
  }

  /* FOOTER */
  .footer-container {
    flex-direction: column;
    align-items: center;
  }

  .footer-socials {
    justify-content: center;
    margin-top: 20px;
  }
}

/* Small phones */
@media (max-width: 480px) {

  .hero h1,
  .hero-section h1 {
    font-size: 2rem;
  }

  .hero p,
  .hero-section p {
    font-size: 1.1rem;
  }
}
@media (max-width: 768px) {

  /* Stack icon + text */
  .about-header {
    flex-direction: column;
    text-align: center;
  }

  .profile-icon-container {
    flex: none;
    margin-bottom: 15px;
  }

  /* Stack education, skills, contact */
  .details-section {
    flex-direction: column;
  }

  .detail-item {
    width: 100%;
  }

  /* Center skills pills nicely */
  .skills-list {
    justify-content: center;
  }
}