* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: 'Arial', sans-serif;
    transition: background 0.3s, color 0.3s;
}
/* Navbar */
.navbar {
    background: rgba(79, 77, 77, 0.908);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    color: transparent;
}

.brand-logo {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 50%;
    margin-right: 10px;
}

.brand-name {
    color: white;
    font-size: 20px;
    font-weight: 600;
}

.navbar-nav .nav-link {
    color: white;
    font-weight: 500;
    transition: 0.3s;
}

.navbar-nav .nav-link:hover {
    color: #f8f9fa;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}

.navbar-nav .nav-link.active {
    color: rgb(49, 48, 48);
    border-radius: 5px;
}
/* Full-Screen Sections */
.full-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 0;
}

/* for remove the default link styling */
.link-plain {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
.link-plain:hover {
    color:#007bff;
}

.link-proj:hover{
    color:#0c3a6a;
}

/* Home Section */
#home { 
    background: url('bg.jpg') no-repeat center center fixed;
    background-size: cover; 
    color: white; 
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6); 
}
    h1.display-3 {
        font-size: 4.5rem;
        font-weight: 700;
        margin-bottom: 1.5rem;
        line-height: 1.2;
        animation: fadeInDown 1s ease-out;
    }
    .typewriter-text::after {
    content: '|';
    animation: blink 0.7s infinite;
    color: white;
    font-weight: bold;
    margin-left: 4px;
}
/* Default: center-aligned for larger screens */
#home .container {
  text-align: center;
}

/* Mobile: left-align everything */
@media (max-width: 768px) {
  #home .container {
    text-align: left;
    padding-left: 20px;
    padding-right: 20px;
  }


  #home .btn {
    margin-top: 1rem;
  }
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}
/* Animation for the heading*/
/*@keyframes fadeInDown {
    0% { opacity: 0; transform: translateY(-50px); }
    100% { opacity: 1; transform: translateY(0); } 
}*/
/* Add this to your styles.css */
@media (max-width: 576px) {
    #home h1.display-3 {
        font-size: 3rem; /* Adjust as needed */
        word-wrap: break-word; /* Ensure long words can break */
    }
}
#about h2,
#resume h2,
#portfolio h2,
#contact h2 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #0c3a6a; /* Blue color for the heading */
}

/* About Section Styling */
#about h5 {
    font-size: 18px;
    font-weight: 400;
    color: #666; /* Subdued color for the subheading */
    line-height: 1.6;
}

#about p {
    font-size: 16px;
    color: #333;
    line-height: 1.8;
    margin-top: 15px;
    text-align: justify center; 
}

h5.text-muted,
p.mt-3 {
    background-color: #f8f9fa00;
    padding: 20px;
    border-radius: 10px;
    max-width: 800px;
    margin: 0 auto 1rem auto;
}
h5.text-muted {
    font-size: 20px;
    font-weight: 600;
    color: #0c3a6a; /* Blue color for the heading */
}

.profile-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border: 5px solid #ddd;
    animation: float 5s ease-in-out infinite;
}
@media (max-width: 768px) {
  .profile-image {
    margin-top: 20px;
    margin-bottom: 10px;
  }

  .music-card {
    margin-bottom: 20px;
  }
}

.list-unstyled {
    list-style-type: none; /* Remove default bullets */
    padding-left: 0;       /* Remove default padding */
    margin: 0;             /* Remove default margin */
    text-align: justify;      /* Align text to the left */
    max-width: 3000px;      /* Optional: limit width */
    font-family: Arial, sans-serif; /* Clean font */
}

.list-unstyled li {
    margin-bottom: 12px;    /* Space between items */
    font-size: 18px;        /* Font size */
    color: #333;            /* Text color */
    line-height: 1.4;       /* Better line spacing */
}

.list-unstyled li strong {
    width: 100px;           /* Fixed width for label */
    display: inline-block;  /* So label and value align nicely */
    color: #222;            /* Slightly darker for labels */
}

.list-unstyled li a.link-plain {
    color: rgb(48, 48, 211); /* Link color */
    text-decoration: none;   /* Remove underline */
}

.list-unstyled li a.link-plain:hover {
    text-decoration: underline; /* Underline on hover */
}


@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.skill-card { 
    background-color: var(--card-bg); 
    border-radius: 15px; 
    transition: all 0.4s ease; 
    box-shadow: var(--card-shadow); 
    height: 100%; 
    display: flex; 
    flex-direction: column; 
}
.skill-card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1); 
} 

/* Resume Section */
.resume-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 20px;
    border-left: 2px solid #007bff;
}

.timeline-dot {
    position: absolute;
    left: -6px;
    top: 6px;
    width: 12px;
    height: 12px;
    background-color: #007bff;
    border-radius: 50%;
}

/* Portfolio Section */
.flip-card {
    background-color: transparent;
    width: 100%;
    max-width: 500px;
    margin: auto;
    height: 300px;
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden; /* Safari */
    backface-visibility: hidden;
    border-radius: 15px;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center; /* Keeps content centered horizontally */
    padding: 20px;
    box-sizing: border-box; /* Include padding in height/width calculation */
}

.flip-card-front {
    background: #fff;
    color: #333;
    justify-content: center; /* Center content vertically */
}

.flip-card-front img {
    max-width: 100%;
    max-height: 70%; 
    object-fit: cover;
    border-radius: 15px 15px 0 0; 
    margin-bottom: 10px; 
}

.flip-card-back {
    background: #007bff;
    color: white;
    transform: rotateY(180deg);
    justify-content: flex-start; /* Align content to the top */
    overflow-y: auto; /* Enable scrolling if content overflows */
    text-align: center; /* Keep text centered */

    /* Optional: Nicer scrollbar styling */
    scrollbar-width: thin; /* For Firefox */
    scrollbar-color: rgba(255, 255, 255, 0.7) transparent; /* For Firefox */
}

/* Optional: Style scrollbar for Webkit browsers (Chrome, Safari, Edge) */
.flip-card-back::-webkit-scrollbar {
    width: 6px;
}

.flip-card-back::-webkit-scrollbar-track {
    background: transparent;
}

.flip-card-back::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
}

/* Adjust the paragraph specifically if needed */
.flip-card-back p {
    margin-top: 10px; /* Add some space above the paragraph */
    max-height: calc(100% - 50px); /* Adjust based on title height and padding */
    /* overflow-y: auto;  You already have this on the parent, usually not needed here */
}

/* Ensure link/title don't take too much space */
.flip-card-back h5 {
    margin-bottom: 10px; /* Space below title */
    flex-shrink: 0; /* Prevent title from shrinking */
}


.flip-card-back a {
    display: block; /* Make the link take up width */
    text-decoration: none;
    color: inherit;
    flex-shrink: 0; /* Prevent link from shrinking */
}
@media (max-width: 768px) {
  .flip-card {
    width: 100% !important;
    max-width: 100%;
  }

  .flip-card-front img {
    width: 100%;
    height: auto;
  }

  .flip-card-back {
    overflow-y: auto;
  }

  .container,
  .row,
  .col-md-6 {
    max-width: 100%;
    overflow-x: hidden;
  }
}


/* Contact Section */
.contact-icons a {
    display: inline-block;
    margin: 10px;
    font-size: 30px;
    color: #333;
    transition: color 0.3s ease-in-out;
}

.contact-icons a:hover {
    color: #007bff;
}

.contact-icons a:hover i.fa-envelope { color: #D44638; }        /* Gmail red */
.contact-icons a:hover i.fa-linkedin-in { color: #0e76a8; }     /* LinkedIn blue */
.contact-icons a:hover i.fa-github { color: #333; }             /* GitHub black */
.contact-icons a:hover i.fa-instagram { color: #C13584; }       /* Instagram pink/purple */
.contact-icons a:hover i.fa-telegram-plane { color: #0088cc; }  /* Telegram blue */
.contact-icons a:hover i.fa-x-twitter { color: #000; }          /* X black */
.contact-icons a:hover i.fa-facebook-f { color: #3b5998; } /* Facebook blue */
/* .contact-icons a:hover i.fa-discord { color: #7289DA; } Discord blue */

/* Loader Animation */
/* #loader {
    position: fixed;
    width: 100%;
    height: 100%;
    background: #000; /* Background color 
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-loader {
    width: 90px; /* Adjust size as needed 
    height: auto;
    border-radius: 50%;
    /* animation: spin 2s linear infinite; Spinning animation 
} */

/* @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} */

/* Hide sections initially */
section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Animation when section is in view */
section.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}
/* Music Player Section */
.music-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    width: 300px;
    max-width: 300px; /* Adjust width as needed */
    margin: 0 auto; /* Center the music player */
}

.music-card:hover {
    transform: translateY(-5px);
}

.music-card h6 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
}

.music-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.music-btn {
    background: #00bfff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    font-size: 14px;
}

.music-btn:hover {
    background: linear-gradient(135deg, #00bfff, #007bff);
    transform: scale(1.05);
}

#spotify-player iframe {
    border-radius: 12px;
    width: 100%;
    height: 80px;
    border: none;
}

/* Contact message Section Styling */
#contactForm {
    max-width: 500px;
    margin: 30px auto;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  }
  
  #contactForm input,
  #contactForm textarea {
    width: 100%;
    padding: 12px 15px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    font-family: "Segoe UI", sans-serif;
    transition: border-color 0.3s ease;
  }
  
  #contactForm input:focus,
  #contactForm textarea:focus {
    outline: none;
    border-color: #007bff;
  }
  
  #contactForm button {
    background-color: #4d5257;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s ease;
  }
  
  #contactForm button:hover {
    background-color: transparent;
    color: #4d5257;
  }
  
  #formStatus {
    margin-top: 10px;
    font-size: 14px;
    font-weight: bold;
    color: green;
  }
  

.full-screen {
    min-height: 100vh;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, #e0ecff, #f7faff);
  }
       /* Skills Section - Animations Applied Here
       .skill-card { background-color: var(--card-bg); border-radius: 15px; transition: all 0.4s ease; box-shadow: var(--card-shadow); height: 100%; display: flex; flex-direction: column; }
       .skill-card:hover { transform: translateY(-8px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1); }
       body.dark-mode .skill-card:hover { box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4); }
       .skill-card h4 { margin-bottom: 1rem; border-bottom: 2px solid var(--primary-color); padding-bottom: 0.5rem; display: inline-block; }
       .skill-card ul { padding-left: 0; list-style: none; margin-top: 10px; }
       .skill-card li { margin-bottom: 10px; font-size: 1rem; display: flex; align-items: center; }
       .skill-card li i { margin-right: 10px; font-size: 1.2em; width: 20px; text-align: center; }
       .skill-card .fa-java { color: var(--skill-icon-color-java); }
       .skill-card .fa-python { color: var(--skill-icon-color-python); }
       .skill-card .fa-php { color: var(--skill-icon-color-php); }
       .skill-card .fa-code { color: var(--skill-icon-color-cpp); }
       .skill-card .fa-database { color: var(--skill-icon-color-sql); }
       .skill-card .fa-html5 { color: var(--skill-icon-color-html); }
       .skill-card .fa-css3-alt { color: var(--skill-icon-color-css); }
       .skill-card .fa-js { color: var(--skill-icon-color-js); }
       .skill-card .fa-cogs { color: var(--skill-icon-color-api); }
       .skill-card .fa-linux { color: var(--skill-icon-color-linux); }
       .skill-card .fa-git-alt { color: var(--skill-icon-color-git); }
       #about p i.fas { margin: 0 5px; color: var(--primary-color); } */

/* footer */
/* .footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    font-size: 0.8rem;
    flex-wrap: wrap;
    margin-top: 3rem;
    text-align: center;
}
.footer a {
    color: inherit;
    text-decoration: none;
} */

  .dot-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
  }

  .dot {
    width: 12px;
    height: 12px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
  }

  .dot.active {
    background-color: #007bff;
    transform: scale(1.4);
  }