/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}
/* Navbar */
.navbar {
    background-color: #222831; /* Dark Gray */
}

/* Hero Section */
.hero {
    background-color: #393E46; /* Charcoal Gray */
    color: #ffffff;
}

/* About Section */
#about {
    background-color: #EEEEEE; /* Light Gray */
    padding: 80px 0;
}

/* Skills Section */
#skills {
    background-color: #0066ff; /* Teal Blue */
    padding: 80px 0;
}

/* Projects Section */
#projects {
    background-color: #F8F9FA; /* Off White */
    padding: 80px 0;
}

/* Contact Section */
#contact {
    background-color:#F8F9FA;; /* Dark Gray */
    color: #ffffff;
    padding: 80px 0;
}

section {
    padding: 100px 0; 
    min-height: 100vh; 
    display: flex;
    align-items: center; 
    justify-content: center;
    scroll-margin-top: 40px;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Navbar Styling */
.navbar {
    background: rgba(0, 0, 0, 0.8); /* Semi-transparent black */
    padding: 15px 0;
    transition: all 0.3s ease-in-out;
}

.navbar-toggler-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    background-image: var(--bs-navbar-toggler-icon-bg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 90%;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff !important;
    transition: color 0.3s ease-in-out;
}

.navbar-brand:hover {
    color: #0066ff !important;
}

/* Navbar Logo Styling */
.profile-logo {
    width: 40px; 
    height: 40px;
    border-radius: 50%; 
    object-fit: cover; 
    margin-right: 10px; 
    border: 2px solid #fff; 
}

/* Navbar Links */
.navbar-nav .nav-link {
    font-size: 1.2rem;
    font-weight: 500;
    color: white !important;
    position: relative;
    margin: 0 15px;
    transition: color 0.3s ease-in-out;
}

/* Hover Effect: Underline Animation */
.navbar-nav .nav-link::after {
    content: "";
    display: block;
    height: 3px;
    width: 0;
    background: #0066ff;
    transition: width 0.3s ease-in-out;
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

.navbar-nav .nav-link:hover {
    color: #0066ff !important;
}

/* Responsive Navbar */
@media (max-width: 991px) {
    .navbar-nav {
        text-align: center;
        background: rgba(0, 0, 0, 0.9);
        padding: 10px 0;
    }
    
    .navbar-nav .nav-item {
        margin: 10px 0;
    }
}

/* Hero Section */
.hero {
    position: relative;
    background: url('assets/Hero-picture.jpg') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 20px;
}

/* Dark Overlay */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Black overlay with opacity */
}

/* Content Styling */
.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 2.4rem;
    font-weight: bold;
}

.hero p {
    font-size: 1rem;
    margin-bottom: 20px;
}

/* Typing Animation */
.typed-text::after {
    content: "|";
    display: inline-block;
    animation: blink 0.7s infinite;
}

/* Cursor Blinking */
@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Button Styling */
.hero .btn {
    font-size: 1.2rem;
    padding: 12px 25px;
    border-radius: 5px;
    transition: background 0.3s ease-in-out;
}

.hero .btn:hover {
    background:  #003cff;
}

/* Hero Image */
.hero-image {
    width: 80%;
    max-width: 400px;
    border-radius: 10%;
    box-shadow: 0px 4px 10px rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease-in-out;
}

.hero-image:hover {
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 991px) {
    .hero {
        text-align: center;
    }

    .hero .row {
        flex-direction: column-reverse;
    }

    .hero-image {
        margin-top: 20px;
    }
}

/* About Section Styling */
.about {
    background: #f9f9f9;
    padding: 80px 0;
    margin-top: 80px;
    transition: all 0.3s ease-in-out;
}

.section-title-skill {
    font-size: 2.6rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title-skill::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: #ffffff;
    margin: 8px auto;
    border-radius: 2px;
}

/* Profile Image */
.profile-img {
    width: 400px;
    height: 400px;
    border-radius: 10%;
    object-fit: cover;
    border: 1px solid #0066ff;
    transition: transform 0.3s ease-in-out;
}

.profile-img:hover {
    transform: scale(1.05);
}

/* About Text */
.about-text {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.7;
}

/* About List */
.about-list {
    list-style: none;
    padding: 0;
}

.about-list li {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.about-list li i {
    font-size: 1.4rem;
    color: #0066ff;
    margin-right: 10px;
}

/* Button Styling */
.btn-primary {
    background: #0066ff;
    border: none;
    padding: 12px 25px;
    font-size: 1.1rem;
    border-radius: 25px;
    transition: background 0.3s ease-in-out, transform 0.2s ease-in-out;
}

.btn-primary:hover {
    background: #003cff;
    transform: translateY(-2px);
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about .container {
    animation: fadeInUp 1s ease-in-out;
}

.skills {
    background: linear-gradient(135deg, #0066ff, #003cff);
    color: #fff;
    padding: 100px 0;
    animation: fadeIn 1s ease-in-out;
}

.skills .section-title {
    color: #fff;
}

.skill-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    margin-bottom: 20px;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.skill-card img {
    max-height: 200px;
    margin-bottom: 15px;
    border-radius: 10px;
}

.skill-card h4 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
}

.skill-card p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 15px;
}

.progress {
    height: 10px;
    background: #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar {
    background: #FFD700;
    border-radius: 5px;
    transition: width 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font-size: 0.8rem;
    color: #333;
    padding-right: 5px;
}

/* Projects Section */
.projects-section {
    background: #f8f9fa;
    padding: 60px 0;
    text-align: center;
}

.section-title {
    font-size: 2rem;
    font-weight: bold;
    text-transform: uppercase;
    color: #003cff;
}

.section-subtitle {
    font-size: 1rem;
    margin-bottom: 30px;
    color: #666;
}

.projects-section {
    padding: 100px 0;
    background: #F8F9FA;
    animation: fadeIn 1s ease-in-out;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #555;
    text-align: center;
    margin-bottom: 30px;
}

.project-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
}

.project-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

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

.overlay {
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.project-card:hover .overlay {
    opacity: 1;
}

.overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.overlay p {
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .project-card {
        margin-bottom: 20px;
    }
}

/* Qualifications & Expertise Section Styles */
.qualifications {
    background: #f8f9fa;
    padding: 80px 20px;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #007bff;
    margin: 10px auto 0;
    border-radius: 4px;
}

.qualifications {
    padding: 100px 0;
    background: #fff;
    animation: fadeIn 1s ease-in-out;
}

.qualification-box {
    background: #F8F9FA;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.qualification-item {
    margin-bottom: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.qualification-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.qualification-item h4 {
    font-size: 1.5rem;
    color: #0066ff;
    margin-bottom: 10px;
}

.institution {
    font-size: 1.1rem;
    color: #555;
}

.skill {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center;
}

.skill:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.skill h4 {
    font-size: 1.4rem;
    color: #0066ff;
    margin-bottom: 10px;
}

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

.certifications {
    list-style-type: none;
    padding: 0;
    max-width: 700px;
    margin: auto;
    text-align: center;
}

.certifications li {
    font-size: 1.1rem;
    padding: 12px 0;
    color: #333;
    border-bottom: 1px solid #ddd;
    font-weight: 500;
    transition: all 0.3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; 
}

.certifications li:hover {
    color: #007bff;
    transform: translateY(-3px);
}

.certifications li::before {
    content: '✔ ';
    color: #007bff;
    font-size: 1.2rem;
}



@media (max-width: 768px) {
    .qualification-box {
        width: 100%;
        padding: 20px;
    }
    .skills-container {
        flex-direction: column;
        align-items: center;
    }
    .skill {
        width: 100%;
    }
    .qualification-item {
        text-align: left;
    }
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, #e3f2fd, #cfd9df);
    padding: 60px 0;
    text-align: center;
}

.contact .section-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    margin-bottom: 30px;
}

.contact-container {
    max-width: 600px;
    margin: auto;
}

.contact form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact input,
.contact textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #666;
    border-radius: 8px;
    font-size: 1rem;
    transition: 0.3s ease-in-out;
}

.contact input:focus,
.contact textarea:focus {
    outline: none;
    border-color: #003cff;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.3);
}

.contact textarea {
    height: 150px;
    resize: none;
}

.contact button {
    background: #007bff;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

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

.social-icons {
    margin-top: 20px;
}

.social-icons a {
    font-size: 1.5rem;
    color: #007bff;
    margin: 0 15px;
    transition: transform 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.2);
    color: #0056b3;
}

@media (max-width: 768px) {
    .contact-container {
        width: 90%;
    }

    .contact input,
    .contact textarea {
        width: 100%;
    }
}

/* Footer Styling */
.footer {
    background: #222;
    color: white;
    padding: 30px 0;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.footer-links {
    padding: 0;
    margin: 20px 0 10px;
}

.footer-links li {
    display: inline;
    margin: 0 15px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #007bff;
}

/* Social Media Icons */
.social-icons a {
    font-size: 1.5rem;
    color: white;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #007bff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .footer-links li {
        margin: 5px 0;
    }

    .social-icons a {
        font-size: 1.2rem;
    }
}



/* Mobile Navigation */
@media screen and (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        align-items: center;
    }

    nav.active ul {
        display: flex;
    }

    nav .menu-toggle {
        display: block;
        color: white;
        background-color: #333;
        padding: 10px;
        cursor: pointer;
    }

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

    .card {
        padding: 15px;
    }

    header, footer {
        padding: 15px;
    }

    .hero-image {
    width: 70%;
    max-width: 500px;
    border-radius: 10%;
    box-shadow: 0px 4px 10px rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease-in-out;
    justify-content: center;
    display: inline;        
    }

    .section-title {
        font-size: 2.5rem;
        font-weight: 700;
        color: #333;
        margin-bottom: 40px;
        position: relative;
        display: flex;
        align-items: center;
        flex-direction: column;
    }
    .skill-card {
        background: white;
        border-radius: 12px;
        padding: 25px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
        text-align: center;
        margin: auto;
        margin-top: auto;
        margin-bottom: 20px;
    }
    .navbar-toggler-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    background-image: var(--bs-navbar-toggler-icon-bg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 90%;
    background-color: rgba(0, 0, 0, 0.8);
}
}

/* Mobile View - Center Everything */
@media screen and (max-width: 480px) {
    .container {
        grid-template-columns: 1fr;
    }

    .center {
        text-align: center;
    }

    header, footer {
        padding: 10px;
    }

    .card {
        padding: 10px;
    }

    .menu-toggle {
        display: block;
        color: white;
        background-color: #333;
        padding: 10px;
        cursor: pointer;
    }

    nav ul li {
        margin: 10px 0;
    }

    nav ul {
        display: none;
    }

    nav.active ul {
        display: block;
    }
    .hero-image {
        width: 70%;
        max-width: 500px;
        border-radius: 10%;
        box-shadow: 0px 4px 10px rgba(255, 255, 255, 0.2);
        transition: transform 0.3s ease-in-out;
        justify-content: center;
        display: inline;        
    }

    .section-title {
        font-size: 2.5rem;
        font-weight: 700;
        color: #333;
        margin-bottom: 40px;
        position: relative;
        display: flex;
        align-items: center;
        flex-direction: column;
    }

    .skill-card {
        background: white;
        border-radius: 12px;
        padding: 25px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
        text-align: center;
        margin: auto;
        margin-top: auto;
        margin-bottom: 20px;
    }
    .navbar-toggler-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    background-image: var(--bs-navbar-toggler-icon-bg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 90%;
    background-color: rgba(0, 0, 0, 0.8);
    }
}

/* Flexbox for centered content */
.flex-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.flex-item {
    flex: 1 1 calc(33.33% - 20px);
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    text-align: center;
}

@media screen and (max-width: 768px) {
    .flex-item {
        flex: 1 1 calc(50% - 20px);
    }
}

@media screen and (max-width: 480px) {
    .flex-item {
        flex: 1 1 100%;
    }
}

/* Button Styles */
button {
    padding: 10px 20px;
    background-color: #333;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #555;
}

/* Form Styling */
input, textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

/* Add padding for small devices */
@media screen and (max-width: 480px) {
    form {
        padding: 15px;
    }

    input, textarea {
        padding: 8px;
    }
}

.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.modal-header {
    border-bottom: none;
    padding: 20px;
}

.modal-title {
    color: #0066ff;
    font-size: 1.5rem;
}

.modal-body {
    padding: 20px;
}

.modal-body img {
    border-radius: 10px;
    margin-bottom: 15px;
}

.modal-body p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

.modal-body p strong {
    color: #333;
}

.btn-close {
    filter: opacity(0.6);
    transition: filter 0.3s ease;
}

.btn-close:hover {
    filter: opacity(1);
}

/* Responsive Modals */
@media (max-width: 576px) {
    .modal-dialog {
        margin: 10px;
    }
    .modal-title {
        font-size: 1.3rem;
    }
}

.text-center {
    text-align: center;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-5 {
    margin-top: 3rem;
}

.py-5 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.bg-light {
    background-color: #F8F9FA;
}

.list-unstyled {
    list-style: none;
}

.list-inline {
    display: inline-flex;
    gap: 10px;
}

.list-inline-item {
    display: inline-block;
}


a[aria-label] {
    position: relative;
}

a[aria-label]:hover::after {
    content: attr(aria-label);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 10;
}

:focus {
    outline: 2px solid #0066ff;
    outline-offset: 2px;
}

@media print {
    .navbar, .footer, .chatbot-fab, .modal {
        display: none;
    }
    body {
        background: #fff;
        color: #000;
    }
    .section-title::after {
        background: #000;
    }
    .btn-primary {
        border: 1px solid #000;
        background: transparent;
        color: #000;
    }
}

@-moz-document url-prefix() {
    .progress-bar {
        line-height: 10px;
    }
}

@media (-webkit-min-device-pixel-ratio: 2) {
    img {
        image-rendering: -webkit-optimize-contrast;
    }
}