/* Modern Professional CV Stylesheet */
:root {
    --primary-color: #0066ff;
    --secondary-color: #2e89ff;
    --text-color: #333;
    --background-color: #f4f4f4;
    --white: #ffffff;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --font-family-base: 'Roboto', sans-serif;
}

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

body {
    font-family: var(--font-family-base);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    color: var(--primary-color);
}

.lead {
    font-size: 1.1rem;
    font-weight: 300;
}

/* Navigation */
.navbar {
    background-color: rgba(0,0,0,0.1);
    padding: 1rem 0;
    transition: all 0.3s ease;
    width: 100%;
    z-index: 1000;
}

.navbar-collapse {
    background-color: rgba(0,0,0,0.9);
    padding: 1rem;
}

@media (max-width: 992px) {
    .navbar-collapse {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .navbar-collapse.show {
        opacity: 1;
        visibility: visible;
    }

    .navbar-nav {
        text-align: center;
        width: 100%;
    }

    .navbar-nav .nav-item {
        margin: 1rem 0;
    }

    .navbar-nav .nav-link {
        font-size: 1.5rem;
    }

    .navbar-nav .btn {
        margin-top: 1rem;
    }
}

.navbar-nav .nav-link {
    color: var(--white) !important;
    margin: 0 10px;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(46, 137, 255, 0.2);
}

.navbar-nav .nav-link.active {
    background-color: rgba(0, 102, 255, 0.3);
    box-shadow: 0 0 10px rgba(0, 102, 255, 0.2);
    font-weight: 600;
}

/* Navigation Active States */
.page-home .navbar-nav .nav-link[href="index.html"],
.page-skills .navbar-nav .nav-link[href="skills.html"],
.page-experience .navbar-nav .nav-link[href="experience.html"],
.page-projects .navbar-nav .nav-link[href="projects.html"],
.page-contact .navbar-nav .nav-link[href="contact.html"],
.page-gallery .navbar-nav .nav-link[href="gallery.html"] {
    color: var(--white) !important;
    font-weight: 600;
    background-color: rgba(0, 102, 255, 0.3);
    box-shadow: 0 0 10px rgba(0, 102, 255, 0.2);
}

/* Hero Section Enhancements */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 0;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex: 1;
    padding: 2rem 0;
}

.hero-text {
    flex: 1;
    max-width: 50%;
}

.hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.hero-text h2 {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 1rem;
}

.hero-text p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-image {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--white);
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

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

@media (max-width: 992px) {
    .hero {
        min-height: 100vh;
    }

    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        padding: 1rem;
    }
    
    .hero-text {
        max-width: 100%;
    }

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

    .hero-text h2 {
        font-size: 1.2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .profile-image {
        width: 250px;
        height: 250px;
    }
}

/* Sections */
section {
    padding: 4rem 0;
}

.section-title {
    color: var(--primary-color);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Card Styling */
.card {
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Skills Cards */
.skills .card {
    transition: transform 0.3s ease;
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.skills .card:hover {
    transform: translateY(-10px);
}

/* Timeline */
.timeline-item {
    position: relative;
    padding-bottom: 1.5rem;
    border-left: 2px solid var(--primary-color);
    margin-left: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: var(--primary-color);
    border-radius: 50%;
    left: -26px;
    top: 0;
}

/* Projects */
#projects .card {
    height: 100%;
    transition: all 0.3s ease;
}

#projects .card:hover {
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    transform: scale(1.03);
}

/* Contact */
#contact .card {
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Footer */
footer {
    background-color: var(--background-color);
    color: white;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    body {
        font-size: 0.9rem;
    }
    
    .timeline-item {
        margin-left: 10px;
    }

    #hero .container {
        text-align: center;
    }

    #hero .btn-group {
        justify-content: center;
    }
}

@media (min-width: 768px) {
    h1 {
        font-size: 3rem;
    }
    .section-title {
        font-size: 1.5rem;
        position: relative;
        padding-top: 20px;
    }
    .section-title::before {
        content: '';
        width: 2px;
        height: 120px;
        display: block;
        background-color: var(--primary-color);
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateY(-100%);
    }
    #intro .container {
        padding: 0px 40px;
    }
    #about .section-title::before {
        width: 50px;
        height: 2px;
        top: 35px;
        left: -40px;
    }
    .about-wrapper {
        display: flex;
        gap: 80px;
    }
    .about-wrapper .left {
        width: 30%;
    }
    .about-wrapper .right {
        width: 70%;
        position: relative;
    }
    .about-wrapper .right::before {
        content: '';
        width: 2px;
        height: 100px;
        display: block;
        background-color: var(--primary-color);
        position: absolute;
        top: 150px;
        left: 0;
        transform: translateY(-100%);
    }
    .about-wrapper .left img {
        width: 40px !important;
    }
    #bio .section-title::before {
        width: 200px;
        height: 2px;
        left: -230px;
        top: 75%;
    }
    #bio .text {
        padding-left: 50px;
    }
    #bio .img {
        margin-top: 30px;
        z-index: 5 !important;
    }
    #experience {
        padding-bottom: 0px;
        margin-bottom: -50px;
    }
    #experience .jobs .job-item {
        width: 50%;
        padding: 0px 70px;
    }
    #experience .jobs .job-item .date::before {
        width: 50px;
    }
    #experience .jobs .second, #experience .jobs .fourth {
        margin-left: auto;
    }
    #experience .jobs .first {
        padding-top: 60px;
    }
    #experience .jobs .first, #experience .jobs .third {
        margin-left: 2px;
        text-align: right;
        padding-left: 0;
        border-left: 0px;
        border-right: 2px solid var(--primary-color);
    }
    #experience .jobs .first .date::before, #experience .jobs .third .date::before {
        left: 100%;
        transform: translateX(-100%);
    }
    #experience .jobs .first .date::after, #experience .jobs .third .date::after {
        left: 100%;
    }
    #experience .jobs .fourth {
        padding-bottom: 150px;
    }
    #contact {
        margin-top: 0px;
        padding-top: 80px;
    }
    #contact .row {
        position: relative;
    }
    #contact .form {
        padding-right: 80px;
    }
    #contact .contacts {
        text-align: left;
        display: flex;
        justify-content: space-between;
    }
    #contact .contacts div {
        margin-top: 0;
    }
    #contact .contacts .social-media p {
        margin-bottom: 0.5rem;
    }
    #contact .contacts .social-media img {
        width: 20px;
    }
}

@media (min-width: 992px) {
    h1 {
        font-size: 4rem;
    }
    #intro {
        padding-bottom: 0;
    }
    #intro .container {
        display: flex;
        gap: 30px;
    }
    #intro .text {
        width: 50%;
    }
    #intro .img {
        margin-bottom: -50px;
        width: 50%;
    }
    #intro h1 {
        position: relative;
    }
    #intro h1::before {
        content: '';
        width: 122px;
        height: 2px;
        display: block;
        background-color: var(--primary-color);
        position: absolute;
        top: 115px;
        left: -140px;
    }
    #bio {
        padding-bottom: 0;
    }
    .bio {
        display: flex;
    }
    .bio .img {
        width: 50%;
        margin-bottom: -50px;
    }
    .bio .text {
        z-index: 5;
        width: 50%;
    }
    .bio .text .section-title {
        margin-bottom: 30px;
    }
    #skills .section-title::before {
        height: 150px;
    }
    footer {
        text-align: left;
        font-size: 1rem;
    }
}

@media (min-width: 1200px) {
    h1 {
        font-size: 4.4rem;
    }
    .about-wrapper .left {
        width: 50%;
    }
    .about-wrapper .left h2 {
        font-size: 3rem;
    }
    .about-wrapper .right {
        width: 48%;
        padding-left: 0 !important;
    }
    .about-wrapper .right::before {
        left: -90px;
    }
    #contact {
        padding-bottom: 0px;
        padding-top: 100px;
    }
    #contact .img {
        margin-top: 125px;
    }
    #contact .contacts {
        text-align: left;
        display: flex;
        justify-content: space-between;
        padding-right: 80px;
        position: absolute;
        bottom: 100px;
    }
}

/* Utility Classes */
.text-muted {
    color: var(--secondary-color) !important;
}

.bg-light {
    background-color: var(--background-color) !important;
}

/* Additional Styles */

.fb2022-copy {
    display: none;
}

a {
    text-decoration: none;
}

a:hover {
    color: var(--primary-color);
}

input, textarea {
    border-radius: 0px;
    color: var(--text-color) !important;
}

input:focus, textarea:focus {
    outline: 0px !important;
    box-shadow: none !important;
}

.btn-success {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 0px;
    font-weight: 600;
}

.btn-success:hover {
    background-color: #0052cc;
}

.btn-outline-success {
    border-radius: 0px;
    color: white;
    font-weight: 600;
}

.btn-outline-success img {
    width: 10px;
}

.btn-outline-success:hover {
    background-color: #0052cc;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
    font-weight: 900;
}

.green {
    color: var(--primary-color);
}

.white {
    color: white;
}

#intro {
    background-color: var(--background-color);
    padding: 150px 0px 50px;
}

#intro h1 {
    color: white;
}

#intro h1 span {
    font-size: 1.8em;
}

#intro .btn {
    min-width: 160px;
}

#intro p {
    margin: 30px 0px;
}

#intro a {
    display: inline-block;
    text-align: center;
    margin-right: 30px;
    margin-top: 20px;
}

#intro a img {
    margin-right: 10px;
}

#intro a:hover {
    color: white;
}

#intro .scroll {
    text-align: left;
    display: block;
    color: var(--text-color);
    padding: 20px 0px;
    margin-top: 30px;
}

#intro .img img {
    width: 100%;
}

#about {
    padding-top: 60px;
}

#about .section-title {
    padding-left: 40px;
}

#about .left, #about .right {
    padding: 40px 40px;
}

#about .left div {
    display: flex;
    gap: 40px;
    padding-bottom: 30px;
}

#about .left img {
    width: 30px;
}

#bio .bio {
    padding: 0;
}

#bio .img {
    padding: 0px 50px;
}

#bio .img img {
    width: 100%;
}

#bio .text {
    padding: 40px;
}

#skills {
    background-color: var(--background-color);
    padding: 80px 0px;
}

#skills h1 {
    color: white;
}

#skills .skills-progress {
    display: flex;
    gap: 50px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 70px 0px;
}

#skills .skills-progress .skill-wrapper {
    height: 180px;
    width: 180px;
    float: left;
    margin: 15px;
    position: relative;
}

#skills .skills-progress .skill-wrapper .skill-name {
    color: white;
    position: absolute;
    font-size: 0.9rem;
    width: 100%;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
}

#skills .skills-progress .skill-wrapper .progress {
    height: 100%;
    width: 100%;
    clip: rect(0, 180px, 180px, 90px);
    left: 0;
    position: absolute;
    top: 0;
    background-color: transparent;
}

#skills .skills-progress .skill-wrapper .progress .half-circle {
    height: 100%;
    width: 100%;
    border: 10px solid var(--primary-color);
    border-radius: 50%;
    clip: rect(0, 90px, 180px, 0);
    left: 0;
    position: absolute;
    top: 0;
    z-index: 5;
}

#skills .skills-progress .skill-wrapper .shadow {
    height: 175px;
    width: 175px;
    border: 5px solid var(--text-color);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#skills .skills-progress .skill-wrapper .label {
    color: white;
    font-size: 3.5rem;
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#skills .skills-progress .skill-wrapper .label .smaller {
    font-weight: 600;
    font-size: 2rem;
}

#skills .skills-progress .skill-wrapper.progress-64 .progress {
    clip: rect(auto, auto, auto, auto);
}

#skills .skills-progress .skill-wrapper.progress-64 .progress .right-side {
    transform: rotate(180deg);
}

#skills .skills-progress .skill-wrapper.progress-64 .progress .left-side {
    transform: rotate(230deg);
}

#skills .skills-progress .skill-wrapper.progress-75 .progress {
    clip: rect(auto, auto, auto, auto);
}

#skills .skills-progress .skill-wrapper.progress-75 .progress .right-side {
    transform: rotate(180deg);
}

#skills .skills-progress .skill-wrapper.progress-75 .progress .left-side {
    transform: rotate(270deg);
}

#skills .skills-progress .skill-wrapper.progress-46 .progress .right-side {
    display: none;
}

#skills .skills-progress .skill-wrapper.progress-46 .progress .left-side {
    transform: rotate(162deg);
}

#skills .skills-progress .skill-wrapper.progress-85 .progress {
    clip: rect(auto, auto, auto, auto);
}

#skills .skills-progress .skill-wrapper.progress-85 .progress .right-side {
    transform: rotate(180deg);
}

#skills .skills-progress .skill-wrapper.progress-85 .progress .left-side {
    transform: rotate(306deg);
}

#experience {
    padding: 50px 0px;
}

#experience .jobs {
    text-align: left;
    margin-top: 40px;
}

#experience .jobs p {
    margin-bottom: 0;
}

#experience .jobs .job-item {
    border-left: 2px solid var(--primary-color);
    padding: 0px 40px 0px;
    padding-bottom: 20px;
    position: relative;
}

#experience .jobs .job-item .date, #experience .jobs .job-item .company {
    color: black;
    font-weight: 600;
}

#experience .jobs .job-item .date {
    padding-bottom: 20px;
}

#experience .jobs .job-item .date::before {
    content: '';
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
    display: block;
    position: absolute;
    left: 0px;
    top: 0.6rem;
}

#experience .jobs .job-item .date::after {
    content: '';
    width: 15px;
    height: 15px;
    background-color: white;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: block;
    position: absolute;
    left: 0px;
    top: 0rem;
    transform: translate(-50%, 25%);
}

#experience .jobs .job-item .position {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.3rem;
}

#experience .jobs .job-item .company {
    padding-bottom: 20px;
}

#experience .jobs .first {
    padding-top: 60px;
}

#experience .jobs .first .date::before {
    top: 70px;
}

#experience .jobs .first .date::after {
    top: 60px;
}

#experience .jobs .fourth {
    padding-bottom: 60px;
}

#contact {
    background-color: var(--background-color);
    padding: 50px 0px;
}

#contact #contact-form {
    text-align: right;
    padding: 50px 0px;
}

#contact #contact-form .form-group {
    text-align: left;
    margin-top: 20px;
}

#contact #contact-form button {
    margin-top: 40px;
}

#contact #contact-form input, #contact #contact-form textarea {
    background-color: transparent;
    border-radius: 0px;
    border: 0px;
    border-bottom: 1px solid var(--text-color);
}

#contact .img {
    margin-top: 30px;
}

#contact .img img {
    width: 100%;
}

#contact h1 {
    color: white;
    font-weight: 900;
}

#contact .email, #contact .phone {
    margin-top: 30px;
}

#contact .email p, #contact .phone p {
    margin-bottom: 0.5rem !important;
}

#contact .social-media img {
    width: 30px;
    transition: all .3s ease-in-out;
}

#contact .social-media a img:hover {
    transform: scale(1.3);
}

footer {
    background-color: var(--background-color);
    padding-bottom: 30px;
    padding-top: 10px;
    text-align: center;
    font-size: 0.9em;
}

footer .copyright p a {
    color: rgba(255, 255, 255, 0.63);
}

footer .copyright p a:hover {
    color: var(--primary-color);
}


/* Profile Banner */
.profile-banner {
    position: relative;
    width: 100%;
    height: 250px; /* Adjust height as needed */
    background-color: #ccc; /* Fallback color */
    opacity: 0.8; /* Adjust transparency level */
}

.profile-banner .banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Profile Picture */
.profile-picture {
    position: absolute;
    bottom: -240px; /* Moves it slightly over the banner */
    left: 80%;
    transform: translateX(-50%);
    width: 300px; /* Adjust size */
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid white;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

.profile-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
}

.card-body h5 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.badge-primary {
    background-color: #2e89ff;
    font-size: 0.9rem;
    padding: 0.4rem 0.6rem;
}

.badge-success {
    background-color: #28a745;
    font-size: 0.9rem;
    padding: 0.4rem 0.6rem;
}

.skill-card ul {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Skills Page Specific Styles */
#skills .skill-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1rem;
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

#skills .skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

#skills .skill-progress {
    height: 10px;
    background-color: rgba(0,102,255,0.2);
    border-radius: 5px;
}

#skills .skill-progress-bar {
    background-color: #0066ff;
    border-radius: 5px;
}

#skills .skill-icon {
    font-size: 2.5rem;
    color: #0066ff;
    margin-bottom: 1rem;
}

#skills .card-header {
    background-color: #0066ff !important;
    color: white !important;
    z-index: 10;
    position: relative;
    padding: 1rem;
}

#skills .card-header h3 {
    color: white !important;
    margin: 0;
    z-index: 11;
}

#skills .card-header i {
    color: white !important;
}

#skills .skill-progress-bar[style*="width: 90%"],
#skills .skill-progress-bar[data-progress="90"] {
    width: 90%;
}

#skills .skill-progress-bar[style*="width: 85%"],
#skills .skill-progress-bar[data-progress="85"] {
    width: 85%;
}

#skills .skill-progress-bar[style*="width: 80%"],
#skills .skill-progress-bar[data-progress="80"] {
    width: 80%;
}

#skills .skill-progress-bar[style*="width: 95%"],
#skills .skill-progress-bar[data-progress="95"] {
    width: 95%;
}

#skills .badge-primary {
    background-color: #2e89ff !important;
}

#skills .badge-success {
    background-color: #28a745 !important;
}

/* Gallery Section Styles */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 300px; /* Fixed height */
    object-fit: cover; /* Ensures image covers the area without distortion */
    object-position: center; /* Centers the image */
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    overflow: hidden;
    width: 100%;
    height: 0;
    transition: 0.5s ease;
}

.gallery-item:hover .gallery-overlay {
    height: 100%;
}

.gallery-text {
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    padding: 0 20px;
}

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

.gallery-text p {
    font-size: 1rem;
    opacity: 0.8;
}

.card-content {
    position: relative;
    z-index: 2;
    font-size: 1.25rem;
}
