html {
    font-size: 14px;
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

/* Custom class added when scrolling */
.sticky-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1030;
    transition: all 0.3s ease;
}

body {
    background-color: white;
    color: #212529;
    margin-bottom: 60px;
    overflow-x: hidden;
}

.about-img img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    display: block;
    margin-left: auto;
    margin-right: auto;
}
@media (max-width: 768px) {
    .about-img img {
        width: 100%;
        height: auto;
        max-width: 300px;
    }
}

body.dark-mode #downloadcv:hover {
    background-color: #1e1e2f !important;
}

#downloadcv:hover {
    opacity: 1;
    transform: translateY(-8px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

body.dark-mode #downloadcv {
    background-color: #122144 !important;
    color: white !important;
}

/* Heading and Button Styling */
.about-heading h2 {
    font-weight: 700;
    font-size: 2.5rem;
    letter-spacing: 1px;
}

.about-heading p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}


/* Dark theme */
body.dark-mode {
    background-color: #0a101e !important;
    color: #cfd8dc !important; 
}

body.dark-mode .navbar {
    background-color: #0a101e !important;
    border: none !important;
}

body.dark-mode .navbar .nav-link {
    color: #cfd8dc !important;
}

body.dark-mode .navbar .nav-link:hover {
    color: #fff !important;
}

body.dark-mode .navbar-brand {
    color: #cfd8dc !important;
}

body.dark-mode .btn-outline-secondary {
    color: #cfd8dc;
    border-color: #cfd8dc;
}

body.dark-mode .btn-outline-secondary:hover {
    background-color: #16203b;
    border-color: #cfd8dc;
}

body.dark-mode .footer {
    background-color: #0a101e;
    color: #cfd8dc;
}

body.dark-mode .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='white' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22' /%3E%3C/svg%3E");
}
    
#theme-toggle {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0.25rem 0.5rem;
    color: inherit;
}

#theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1); 
}

body.dark-mode footer.border-top {
    border-top: none !important;
}

.btn-dark {
    background-color: #000;
    color: #fff;
    border: none;
    text-transform: uppercase;
    font-weight: 600;
}

.btn-dark:hover {
    background-color: #333;
}

/* sweetalert2*/
.small-swal {
    font-size: 0.8rem; 
    width: 300px !important;
    padding: 1rem;
}

/*Home page*/
body.dark-mode #hireMeBtn:hover {
    background-color: #1e1e2f !important;
}

#hireMeBtn:hover {
    opacity: 1;
    transform: translateY(-8px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

body.dark-mode #hireMeBtn {
    background-color: #122144 !important;
    color: #cfd8dc;
}

.hero-section {
    position: relative;
    color: #212529;
    font-family: 'Segoe UI', sans-serif;
}

.hero-section .col-lg-6.text-lg-start {
    text-align: left;
}

.hero-section h1.hero-title {
    font-weight: 700;
    font-size: 3rem;
    margin: 0 0 0.3rem 0;
}

.hero-section p.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #a5b4fc;
}

.btn-secondary {
    border: none;
    color: white;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-secondary:hover {
    background-color: #4f46e5;
}

.col-lg-6.position-relative {
    position: relative;
}

.hero-img {
    max-width: 350px;
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    object-fit: cover;
}

/* social icon */
.social-icons-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border: 1px solid #3f4551;
    border-radius: 50px;
    color: black;
    height: 50px;
    width: 50px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.9s ease;
    position: relative;
}

body.dark-mode .social-btn {
    background-color: #122144;
    color: #cfd8dc;
}

.social-btn i {
    font-size: 20px;
    z-index: 2;
    transition: all 0.9s ease;
}

.social-label {
    position: absolute;
    left: 60px;
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    transition: opacity 0.4s ease 0.1s, max-width 0.6s ease 0.1s;
}

.social-btn.active {
    width: 150px;
    justify-content: flex-start;
    padding-left: 28px;
}

.body.dark-mode .social-btn.active {
    background-color: #1e1e2f;
    color: #fff;
}

.social-btn.active .social-label {
    opacity: 1;
    max-width: 100px;
}

.social-btn:hover {
    color: inherit !important;
    text-decoration: none;
}

@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 40px 20px;
    }

    .hero-section .col-lg-6.text-lg-start {
        text-align: center;
    }

    .hero-img {
        max-width: 80%;
        margin: 0 auto;
    }

    .social-icons-container {
        bottom: 15px;
        left: 40%;
        transform: translateX(-1%);
        padding: 6px 12px;
    }

    .social-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

body.dark-mode .hero-section {
    color: white;
}

body.dark-mode .hero-section .hero-subtitle {
    color: #a5b4fc;
}

.intro-text {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.hero-name {
    font-size: 5rem; 
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-role {
    font-size: 1.4rem;
    font-weight: 400;
}

/* Skills Page*/
.skills-section {
    background-color: white;
    color: #212529;
}

.skill-columns {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-start;
}

.left-column {
    flex: 0.5;
}

.right-column {
    flex: 1;
}
.v-divider {
    width: 1px;
    background-color: #d1d5db;
    height: auto;
}

body.dark-mode .v-divider {
    background-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .skills-section {
    background-color: #0a101e !important;
    color: #cfd8dc !important;
}

.skill-category h4 {
    display: flex;
    align-items: center;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-item {
    display: inline-block;
    background-color: #f8f9fa;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.skill-item:hover {
    opacity: 1 !important;
    transform: translateY(-8px) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2) !important;
}

/* Dark mode styling */
body.dark-mode .skill-item {
    background-color: #122144;
    color: #cfd8dc;
}

body.dark-mode .skill-item:hover {
    background-color: #2a2a2a;
}


/* Experience Page */
.experience-section {
    padding: 60px 20px;
}

.experience-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 60px;
    color: #0a101e;
}

body.dark-mode .experience-title {
    color: #cfd8dc;
}

.timeline {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding-bottom: 100px; /* avoid footer overlap */
}

.timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 2px;
    height: 90%;
    background-color: #d1d5db;
    z-index: 1;
}

body.dark-mode .timeline::before {
    background-color: #374151; /* softer line in dark */
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 60px;
    position: relative;
}

.timeline-left {
    width: 45%;
    text-align: right;
    padding-right: 80px;
}

.timeline-left h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #212529;
}

.timeline-left .location,
.timeline-left .date {
    color: #666;
    font-size: 14px;
}

body.dark-mode .timeline-left h3,
body.dark-mode .timeline-left .location,
body.dark-mode .timeline-left .date {
    color: #cfd8dc;
}

.timeline-line {
    width: 10%;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.timeline-dot {
    width: 14px;
    height: 14px;
    background-color: #06b6d4;
    border: 3px solid white;
    border-radius: 50%;
    position: relative;
    top: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    z-index: 10;
}

.timeline-dot:hover {
    background-color: #22d3ee;
    transform: scale(1.3);
    cursor: pointer;
}

.timeline-right {
    width: 45%;
    text-align: left;
    padding-left: 80px;
}

.timeline-right .role {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 10px;
    color: #212529;
}

body.dark-mode .timeline-right .role {
    color: #cfd8dc;
}

.description {
    padding-left: 20px;
    color: #555;
    font-size: 15px;
}

.description li {
    margin-bottom: 8px;
    list-style-type: disc;
}

body.dark-mode .description {
    color: #cfd8dc;
}

/* === MOBILE RESPONSIVE === */
@media (max-width: 768px) {
    .timeline::before {
        display: none; 
    }

    .timeline-line {
        display: none; 
    }

    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 0;
    }

    .timeline-left,
    .timeline-right {
        width: 100%;
        text-align: left;
        padding: 0;
        margin-bottom: 15px;
    }
}

/* Contact Page */

body.dark-mode #sendmessage:hover {
    background-color: #1e1e2f !important;
}

body.dark-mode #sendmessage {
    background-color: #122144 !important;
    color: #cfd8dc !important;
}

#sendmessage{
    color:black;
}

.contact-section {
    background-color: white;
    color: #212529;
}

.contact-section .section-title {
    font-size: 2.5rem;
    font-weight: 700;
}

.contact-section .form-control {
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    border-radius: 6px;
    color: #212529;
}

.contact-section .form-control::placeholder {
    color: #6c757d;
}

.contact-section .btn-dark {
    background-color: #000;
    border: none;
    text-transform: uppercase;
    font-weight: 600;
}

.contact-section .btn-dark:hover {
    background-color: #333;
}

.contact-section .contact-description {
    font-size: 1rem;
    color: #666;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    margin-right: 10px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background-color: transparent;
    border: 1px solid #212529;
    color: #212529;
    transition: all 0.3s ease;
}

    .social-icons a:hover {
        background-color: #ffc107;
        color: #000;
        border-color: #ffc107;
    }

/* Dark Mode */
body.dark-mode .contact-section {
    background-color: #0a101e !important;
    color: #cfd8dc !important;
}

body.dark-mode .contact-section .section-title {
    color: #cfd8dc;
}

body.dark-mode .contact-section .form-control {
    background-color: #16203b;
    border: 1px solid #374151;
    color: #cfd8dc;
}

body.dark-mode .contact-section .form-control::placeholder {
    color: #9fadb7;
}

body.dark-mode .contact-section .contact-description {
    color: #cfd8dc;
}

body.dark-mode .contact-section .btn-dark {
    background-color: #222;
}

body.dark-mode .contact-section .btn-dark:hover {
    background-color: #444;
}

body.dark-mode .social-icons a {
    border: 1px solid #cfd8dc;
    color: #cfd8dc;
}

body.dark-mode .social-icons a:hover {
    background-color: #ffc107;
    color: #000;
    border-color: #ffc107;
}

body.dark-mode .social-btn .social-label {
    color: #cfd8dc;
}

.contact-message-form {
    padding-left: 150px;
}

.contact-info-section {
    padding-left: 125px;
}

.contact-info-section .contact-title {
    font-size: 2.5rem;
    font-weight: 700;
}

.contact-info-section .social-icons-wrapper {
    display: flex;
    justify-content: flex-start;
    width: 100%;
}

.contact-info-section .social-icons-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.icon-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.contact-item:hover .icon-circle {
    transform: scale(1.3);
}

body.dark-mode .icon-circle {
    background-color: #122144 !important;
    color: #cfd8dc !important;
}

.contact-item .icon-circle i {
    font-size: 18px;
}


@media (max-width: 767.98px) {
    #Contact-social .social-icons-container {
        display: flex;
        justify-content: center;
        flex-wrap: nowrap;
        gap: 27px;
        width: auto;
    }

    #Contact-social .social-btn {
        margin: 0;
        flex: 0 0 auto; /* Don't let them stretch */
    }

    #Contact-social .social-label {
        display: none; /* Hide text to fit icons */
    }

    #Contact-social{
        margin-top: -30px;
    }
}

/* Education Page */
.education-section .timeline {
    padding-bottom: 50px;
    position: relative;
}

.education-section .timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 25%;
    width: 2px;
    background-color: #d1d5db;
}

body.dark-mode .education-section .timeline::before {
    background-color: #374151;
}

.education-section .timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.education-section .timeline-left {
    width: 50%;
    display: flex;
    justify-content: center;
    position: relative;
}

.education-section .timeline-dot {
    width: 14px;
    height: 14px;
    border: 3px solid white;
    background-color: #3b82f6;
    border-radius: 50%;
    margin-left: 80px;
    position: relative;
    z-index: 2;
}

.education-section .timeline-right {
    width: 65%;
    padding: 15px 20px;
    background-color: #ffffff; 
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    margin-left: -250px;
    position: relative;
    z-index: 1;
}

body.dark-mode .education-section .timeline-right {
    background-color: #122144;
}

.education-section .timeline-right h3 {
    font-size: 18px;
    font-weight: 600;
    color: #212529;
}

body.dark-mode .education-section .timeline-right h3,
body.dark-mode .education-section .location,
body.dark-mode .education-section .date {
    color: #cfd8dc;
}

@media (max-width: 1024px) {
    .education-section .timeline::before,
    .education-section .timeline-left,
    .education-section .timeline-dot {
        display: none;
    }

    .education-section .timeline-item {
        flex-direction: column;
        align-items: stretch;
    }

    .education-section .timeline-right {
        width: 100%;
        margin-left: 0;
    }
}

/* Projects Page */
.project-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 290px;
    padding: 24px;
    border-radius: 16px;
    position: relative;
    z-index: 2;
}

.project-top h4 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.project-card {
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    overflow: hidden;
    margin: 0 15px 10px 0; /*trbl*/
}

.project-card::before {
    content: "";
    position: absolute;
    height: 100%;
    width: 100%;
    background: rgba(10, 16, 30, 0.8);
    transition: background 0.3s ease;
}

.project-card:hover {
    opacity: 1 !important;
    transform: translateY(-8px) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.8) !important;
}

.project-top p {
    font-size: 12px;
    color: #ddd;
}

.project-top {
    border-radius: 25px;
    padding: 7px 0 0 26px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 30px rgba(255, 255, 255, 0.1);
    color: #fff;
}

.project-bottom {
    display: flex;
    flex-direction: column;
    gap: 10px; 
    margin-top: 20px; 
}

.project-links a {
    display: inline-block;
    margin-right: 15px;
    color: #fff;
    font-size: 14px;
    text-decoration: none;
}

.project-links a i {
    margin-right: 6px;
}

.project-links a:hover {
    text-decoration: underline;
}

.project-top h4,
.project-top p,
.project-links a {
    transition: color 0.3s ease;
}

/* Dashboard page */
.dashboard-section {
    padding: 4rem 0;
    overflow-x: hidden;
}

.dashboard-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.dashboard-title i { 
    margin-right: 8px;
}

.dashboard-row {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #444 #1a1d26;
    cursor: grab;
}

.dashboard-row:active {
    cursor: grabbing;
}

.dashboard-row::-webkit-scrollbar {
    height: 8px;
}

.dashboard-row::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.dashboard-row::-webkit-scrollbar-track {
    background: #1a1d26;
}

.dashboard-card {
    position: relative;
    border-radius: 20px;
    padding: 1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: visible;
    margin-top: 10px;
    transition: transform 0.1s ease;
}

.dashboard-card:hover {
    transform: translateY(-9px) !important;
    box-shadow: 0 7px 7px rgba(0, 0, 0, 0.5) !important;
}

.dashboard-card a {
    display: block;
    overflow: visible;
    border-radius: 20px;
    padding-top:5px;
}

.dashboard-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 10px;
}

.dashboard-card h3 {
    margin-top: 0.8rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: #0a101e;
}

.dashboard-card p {
    font-size: 0.7rem;
    color: #0a101e;
}   

.dashboard-row {
    scrollbar-width: none; 
    -ms-overflow-style: none; 
    user-select: none;
}

.dashboard-row::-webkit-scrollbar {
    display: none; 
}

.pswp__dynamic-caption.pswp__dynamic-caption--aside {
    font-size: 14px;
    top: -22px !important;
}

.dashboard-card .overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: rgb(89, 89, 89, 0);
}

body.dark-mode .dashboard-card .overlay {
    background: rgba(26, 29, 38, 0);
    border: 1px solid #212529;
    border-radius: 20px;
}

body.dark-mode .dashboard-card h3{
    color: #f1f1f1;
}

body.dark-mode .dashboard-card p {
    color: #f1f1f1;
}

@media (max-width: 600px) {
    .dashboard-card {
        min-width: 260px;
    }

        .dashboard-card img {
            height: 160px;
        }
}


