:root {
    --primary-blue: #e53935;
    --primary-blue-dark: #b71c1c;
    --primary-blue-light: #ff7961;
}

/*  import google fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&family=Ubuntu:wght@400;500;700&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}
html{
    scroll-behavior: smooth;
}

/* Progress Bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, crimson, #ff6b6b);
    z-index: 10000;
    transition: width 0.3s ease;
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    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);
    }
}

/* custom scroll bar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #888;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* all similar content styling codes */
section{
    padding: 100px 0;
    animation: fadeInUp 0.8s ease-out;
}
.max-width{
    max-width: 1300px;
    padding: 0 80px;
    margin: auto;
}
.about, .services, .skills, .teams, .contact, footer{
    font-family: 'Poppins', sans-serif;
}
.about .about-content,
.services .serv-content,
.skills .skills-content,
.contact .contact-content{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}
section .title{
    position: relative;
    text-align: center;
    font-size: 40px;
    font-weight: 500;
    margin-bottom: 60px;
    padding-bottom: 20px;
    font-family: 'Ubuntu', sans-serif;
}
section .title::before{
    content: "";
    position: absolute;
    bottom: 0px;
    left: 50%;
    width: 180px;
    height: 3px;
    background: #111;
    transform: translateX(-50%);
}
section .title::after{
    position: absolute;
    bottom: -8px;
    left: 50%;
    font-size: 20px;
    color: crimson;
    padding: 0 5px;
    background: #fff;
    transform: translateX(-50%);
}

/* navbar styling */
.navbar{
    position: fixed;
    width: 100%;
    z-index: 999;
    padding: 30px 0;
    font-family: 'Ubuntu', sans-serif;
    transition: all 0.3s ease;
}
.navbar.sticky{
    padding: 15px 0;
    background: var(--primary-blue);
}
.navbar .max-width{
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.navbar .logo a{
    color: #fff;
    font-size: 35px;
    font-weight: 600;
}
.navbar .logo a span{
    color: var(--primary-blue);
    transition: all 0.3s ease;
}
.navbar.sticky .logo a span{
    color: #fff;
}
.navbar .menu li{
    list-style: none;
    display: inline-block;
}
.navbar .menu li a{
    display: block;
    color: #222;
    font-size: 18px;
    font-weight: 500;
    margin-left: 25px;
    transition: color 0.3s ease;
}
.navbar.sticky .menu li a{
    color: #fff;
}

/* menu btn styling */
.menu-btn{
    color: #fff;
    font-size: 23px;
    cursor: pointer;
    display: none;
}
.scroll-up-btn{
    position: fixed;
    height: 45px;
    width: 42px;
    background: var(--primary-blue);
    right: 30px;
    bottom: 10px;
    text-align: center;
    line-height: 45px;
    color: #fff;
    z-index: 9999;
    font-size: 30px;
    border-radius: 6px;
    border-bottom-width: 2px;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}
.scroll-up-btn.show{
    bottom: 30px;
    opacity: 1;
    pointer-events: auto;
}
.scroll-up-btn:hover{
    filter: brightness(90%);
}


/* home section styling */
.home{
    display: flex;
    background: linear-gradient(rgba(0,0,0,0.12), rgba(0,0,0,0.12)), url("images/banner6.png") no-repeat center;
    height: 100vh;
    color: #111;
    min-height: 500px;
    background-size: cover;
    background-attachment: fixed;
    font-family: 'Ubuntu', sans-serif;
}
.home .max-width{
  width: 100%;
  display: flex;
}
.home .max-width .row{
  margin-right: 0;
}
.home .home-content .text-1{
    font-size: 27px;
    animation: slideInLeft 1s ease-out;
    color: #111;
}
.home .home-content .text-2{
    font-size: 75px;
    font-weight: 600;
    margin-left: -3px;
    animation: slideInRight 1s ease-out 0.2s both;
    color: #111;
}
.home .home-content .text-3{
    font-size: 40px;
    margin: 5px 0;
    animation: slideInLeft 1s ease-out 0.4s both;
    color: #111;
}
.home .home-content .text-3 span{
    color: var(--primary-blue);
    font-weight: 500;
}
.home .home-content a{
    display: inline-block;
    background: var(--primary-blue);
    color: #fff;
    font-size: 25px;
    padding: 12px 36px;
    margin-top: 20px;
    font-weight: 400;
    border-radius: 6px;
    border: 2px solid var(--primary-blue);
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out 0.6s both;
}
.home .home-content a:hover{
    color: var(--primary-blue);
    background: none;
}

/* about section styling */
.about .title::after{
    content: "who i am";
}
.about .about-content .left{
    width: 45%;
    animation: slideInLeft 1s ease-out;
}
.about .about-content .left img{
    height: 400px;
    width: 400px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}
.about .about-content .left img:hover{
    transform: translateY(-5px);
}
.about .about-content .right{
    width: 55%;
    animation: slideInRight 1s ease-out;
}
.about .about-content .right .text{
    font-size: 25px;
    font-weight: 600;
    margin-bottom: 10px;
}
.about .about-content .right .text span{
    color: var(--primary-blue);
}
.about .about-content .right p{
    text-align: justify;
}
.about-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}
.btn-primary, .btn-secondary {
    display: inline-block;
    font-size: 18px;
    font-weight: 500;
    padding: 12px 30px;
    border-radius: 6px;
    border: 2px solid;
    transition: all 0.3s ease;
    text-decoration: none;
}
.btn-primary {
    background: var(--primary-blue);
    color: #fff;
    border-color: var(--primary-blue);
}
.btn-primary:hover {
    color: var(--primary-blue);
    background: none;
}
.btn-secondary {
    background: none;
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}
.btn-secondary:hover {
    background: var(--primary-blue);
    color: #fff;
}

/* services section styling */
.services, .teams{
    color:#fff;
    background: #111;
}
.services .title::before,
.teams .title::before{
    background: #fff;
}
.services .title::after,
.teams .title::after{
    background: #111;
    content: "what i know";
}
.services .serv-content .card{
    width: calc(33% - 20px);
    background: #222;
    text-align: center;
    border-radius: 6px;
    padding: 50px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.services .serv-content .card:hover{
    background: var(--primary-blue);
    transform: translateY(-10px);
}
.services .serv-content .card .box{
    transition: all 0.3s ease;
}
.services .serv-content .card:hover .box{
    transform: scale(1.05);
}
.services .serv-content .card i{
    font-size: 50px;
    color: var(--primary-blue);
    transition: color 0.3s ease;
}
.services .serv-content .card:hover i{
    color: #fff;
}
.services .serv-content .card .text{
    font-size: 25px;
    font-weight: 500;
    margin: 10px 0 7px 0;
}

/* skills section styling */
.skills, .teams{
    color:#fff;
    background: #111;
}
.skills .title::before,
.teams .title::before{
    background: #fff;
}
.skills .title::after,
.teams .title::after{
    background: #111;
    content: "what i know";
}
.skills .skills-content .column{
    width: calc(50% - 30px);
}
.skills .skills-content .left .text{
    font-size: 25px;
    font-weight: 600;
    margin-bottom: 10px;
}
.skills .skills-content .left .text span{
    color: var(--primary-blue);
}
.skills .skills-content .left p{
    text-align: justify;
}
.skills-list{
    list-style: none;
    padding: 0;
    margin: 0;
}
.skills-list li{
    font-size: 18px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #222;
    color: #fff;
    padding: 10px 18px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}
.skills-list li:hover {
    background: var(--primary-blue);
    color: #fff;
    transform: translateY(-3px);
}
.skills-list i {
    font-size: 22px;
    color: var(--primary-blue);
    transition: color 0.3s ease;
}

/* education section styling */
.education .title::after{
    content: "my education";
}
.education table{
    width: 100%;
    border-collapse: collapse;
    margin-top: 18px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(229,57,53,0.06);
}
.education table th, .education table td{
    padding: 10px 12px;
    font-size: 16px;
    border-bottom: 1px solid #eee;
}
.education table th{
    background: #fbe9e7;
    color: #b71c1c;
}
.education table tr:last-child td{
    border-bottom: none;
}

/* contact section styling */
.contact .title::after{
    content: "get in touch";
}
.contact .contact-content{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}
.contact .contact-content .column{
    width: 48%;
}
.contact .contact-content .left .text{
    font-size: 25px;
    font-weight: 600;
    margin-bottom: 10px;
}
.contact .contact-content .info .head{
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-blue);
}
.contact .contact-content .info .sub-title{
    font-size: 16px;
    color: #555;
}
.contact .contact-content .row{
    display: flex;
    align-items: center;
    margin-bottom: 18px;
}
.contact .contact-content .row i{
    font-size: 25px;
    color: var(--primary-blue);
    margin-right: 18px;
}
.contact .contact-content .info{
    display: flex;
    flex-direction: column;
}
.contact .right form .fields{
    display: flex;
    gap: 18px;
}
.contact .right form .field{
    width: 100%;
    margin-bottom: 18px;
}
.contact .right form .field input,
.contact .right form .textarea textarea{
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #eee;
    border-radius: 6px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
}
.contact .right form .field input:focus,
.contact .right form .textarea textarea:focus{
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 2px rgba(220,20,60,0.1);
}
.contact .right form .button-area{
    display: flex;
    justify-content: flex-end;
}
.contact .right form .button-area button{
    padding: 12px 36px;
    font-size: 18px;
    font-weight: 500;
    border-radius: 6px;
    border: 2px solid var(--primary-blue);
    background: var(--primary-blue);
    color: #fff;
    cursor: pointer;
    flex-wrap: nowrap;
    transition: all 0.3s ease;
}
.contact .right form .button-area button:hover{
    color: var(--primary-blue);
    background: none;
}

/* footer section styling */
footer{
    background: #111;
    padding: 15px 23px;
    color: #fff;
    text-align: center;
}
footer span a{
    color: var(--primary-blue);
    text-decoration: none;
}
.footer-social{
    margin-bottom: 10px;
}
.footer-social a{
    color: #fff;
    font-size: 26px;
    margin: 0 10px;
    transition: color 0.2s, transform 0.2s;
}
.footer-social a:hover{
    color: var(--primary-blue);
    transform: translateY(-2px) scale(1.15);
}

@media (max-width: 991px) {
    .max-width{
        padding: 0 50px;
    }
    .about .about-content .column,
    .skills .skills-content .column,
    .contact .contact-content .column{
        width: 100%;
        margin-bottom: 35px;
    }
    .about .about-content{
        flex-direction: column;
    }
    .about .about-content .left{
        display: flex;
        justify-content: center;
        margin: 0 auto 60px;
    }
    .about .about-content .right{
        flex: 100%;
    }
    .services .serv-content .card{
        width: calc(50% - 10px);
        margin-bottom: 20px;
    }
    .skills .skills-content .column{
        width: 100%;
    }
    .about-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
}
@media (max-width: 600px) {
    .about .about-content .left img{
        height: 140px;
        width: 140px;
    }
    .navbar .logo a{
        font-size: 22px;
    }
    .btn-primary, .btn-secondary{
        font-size: 15px;
        padding: 10px 18px;
    }
    .skills-list li{
        font-size: 15px;
        padding: 8px 12px;
    }
    .skills-content table th, .skills-content table td, .education table th, .education table td{
        font-size: 13px;
        padding: 7px 6px;
    }
}

/* Projects section styling */
.projects {
    background: #fafbfc;
    padding: 100px 0;
}
.projects .title::after {
    content: "my work";
}
.projects-content {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
}
.project-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    padding: 0 0 24px 0;
    max-width: 420px;
    min-width: 320px;
    flex: 1 1 320px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 24px;
    transition: box-shadow 0.3s, transform 0.3s;
    overflow: hidden;
}
.project-card:hover {
    box-shadow: 0 8px 32px rgba(220,20,60,0.13);
    transform: translateY(-6px) scale(1.03);
}
.project-title-bar {
    width: 100%;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    color: #fff;
    padding: 18px 24px 12px 24px;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    box-shadow: 0 2px 8px rgba(220,20,60,0.07);
}
.project-divider {
    width: 40px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    border-radius: 2px;
    margin: 12px 0 18px 24px;
}
.project-info {
    width: 100%;
    padding: 0 24px;
}
.project-info p {
    background: #faf7f7;
    border-radius: 6px;
    padding: 14px 16px;
    margin-bottom: 12px;
    color: #444;
    font-size: 16px;
    line-height: 1.7;
    box-shadow: 0 1px 4px rgba(220,20,60,0.04);
}
.project-gallery {
    display: flex;
    gap: 18px;
    margin-bottom: 18px;
    justify-content: flex-start;
}
.project-gallery img {
    width: 180px;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.09);
    border: 2px solid #eee;
    background: #f5f5f5;
    transition: transform 0.2s, box-shadow 0.2s;
}
.project-gallery img:hover {
    transform: scale(1.04) translateY(-2px);
    box-shadow: 0 8px 24px rgba(220,20,60,0.13);
}
.project-video-label {
    font-size: 16px;
    font-weight: 500;
    color: #c00;
    margin-top: 10px;
    margin-bottom: 4px;
}
.project-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 18px;
    background: #f5f5f5;
}
.project-info h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #222;
}
.project-tech {
    font-size: 14px;
    color: #888;
    margin-bottom: 12px;
}
.project-card .btn-primary {
    margin-top: 8px;
    font-size: 16px;
    padding: 8px 20px;
}
.project-card video {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
@media (max-width: 991px) {
    .projects-content {
        flex-direction: column;
        align-items: center;
    }
    .project-card {
        max-width: 95vw;
        min-width: 0;
    }
}

body.dark-mode {
    background: #18191a;
    color: #f1f1f1;
}
body.dark-mode .navbar,
body.dark-mode .navbar.sticky {
    background: #232526;
}
body.dark-mode .navbar .logo a,
body.dark-mode .navbar .menu li a {
    color: #f1f1f1;
}
body.dark-mode .navbar .logo a span {
    color: var(--primary-blue-light);
}
body.dark-mode .navbar.sticky .logo a span {
    color: #fff;
}
body.dark-mode .scroll-up-btn {
    background: var(--primary-blue-light);
    color: #232526;
}
body.dark-mode .scroll-up-btn:hover {
    filter: brightness(110%);
}
body.dark-mode .home {
    background: linear-gradient(rgba(0,0,0,0.12), rgba(0,0,0,0.12)), url("images/banner6.png") no-repeat center;
    color: #f1f1f1;
}
body.dark-mode .about, body.dark-mode .services, body.dark-mode .skills, body.dark-mode .projects, body.dark-mode .contact, body.dark-mode footer {
    background: #232526;
    color: #f1f1f1;
}
body.dark-mode .project-card {
    background: #232526;
    box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}
body.dark-mode .project-title-bar {
    background: linear-gradient(90deg, var(--primary-blue-light) 0%, var(--primary-blue) 100%);
    color: #232526;
}
body.dark-mode .project-info p {
    background: #222326;
    color: #f1f1f1;
}
body.dark-mode .project-divider {
    background: linear-gradient(90deg, var(--primary-blue-light) 0%, var(--primary-blue) 100%);
}
body.dark-mode .footer-social a {
    color: var(--primary-blue-light);
}
body.dark-mode .footer-social a:hover {
    color: #fff;
}
body.dark-mode footer {
    background: #18191a;
    color: #f1f1f1;
}
#darkModeToggle {
    transition: color 0.2s;
}
body.dark-mode #darkModeToggle {
    color: var(--primary-blue-light);
}
