/* 
* Portfolio Website CSS
* This stylesheet implements a two-column layout with sticky left column
* and scrollable right column with card-based content
*/

/* Page Loader Styles */
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--loader);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#page-loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

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

.loading-text {
    font-family: 'Red Rose', cursive;
    color: var(--primary-color);
    margin-top: 20px;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.dots span {
    animation: dots 1.5s infinite;
    opacity: 0;
}

.dots span:nth-child(1) {
    animation-delay: 0s;
}

.dots span:nth-child(2) {
    animation-delay: 0.5s;
}

.dots span:nth-child(3) {
    animation-delay: 1s;
}

@keyframes dots {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.spinner {
    width: 60px;
    height: 60px;
    position: relative;
    margin: 0 auto;
}

.cube1, .cube2 {
    background-color: var(--primary-color);
    width: 30px;
    height: 30px;
    position: absolute;
    top: 0;
    left: 0;
    animation: sk-cubemove 1.8s infinite ease-in-out;
    border-radius: 4px;
}

.cube2 {
    animation-delay: -0.9s;
}

@keyframes sk-cubemove {
    25% { 
        transform: translateX(42px) rotate(-90deg) scale(0.5);
    } 
    50% { 
        transform: translateX(42px) translateY(42px) rotate(-180deg);
    }
    75% { 
        transform: translateX(0px) translateY(42px) rotate(-270deg) scale(0.5);
    }
    100% { 
        transform: rotate(-360deg);
    }
}

/* General Styles */
:root {
    --primary-color: #ff6403;
    --secondary-color: #247ba0;
    --text-color: #333;
    --heading-color: #000000;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --card-bg: linear-gradient(145deg, #e3e3e3d6, #fff);
    --card-shadow: 5px 5px 15px #d1d9e6, -5px -5px 15px #fff;
    --input-field-shadow: inset 3px 3px 6px rgba(0, 0, 0, 0.1),inset -3px -3px 6px rgba(255, 255, 255, 0.8); 
    --section-padding: 3rem;
    --left-bg-color: #f5f7fa;
    --body-bg: #e2e2e2a1;
    --loader: #ffffff; 
}

/* Dark Mode Colors */
[data-theme="dark"] {
    --primary-color: #ff6403;
    --text-color: #e0e0e0;
    --heading-color: #ffffff;
    --light-color: #2a2a2a;
    --dark-color: #f8f9fa;
    --card-bg: linear-gradient(145deg, #1e2024, #23272b);
    --input-field-shadow: 1px 4px 2px -3px rgba(0, 0, 0, 0.7) inset, -1px -3px 3px -2px rgba(255, 255, 255, 0.2) inset; 
    --card-shadow: 10px 10px 19px #1c1e22,
    -10px -10px 19px #262a2e;
    --left-bg-color: #2a2a2a;
    --body-bg: #212428;
    --loader: #1c1e22; 
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--body-bg);
    overflow-x: hidden;
    transition: all 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Red Rose', cursive;
    font-weight: 600;
}

.cv-btn, .hire-btn, .send-message-btn {
    font-family: 'Red Rose', cursive;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.highlight {
    color: var(--primary-color);
    font-weight: 700;
}

.divider {
    height: 1px;
    background-color: var(--primary-color);
    margin: 1rem 0 2rem 0;
}

/* Layout Styles */
.left-column {
    height: 100%;
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 10;
}

.right-column {
    padding: 2rem;
}

/* Profile Section Styles */
.profile-container {
    text-align: left;
    padding:0 2rem;
}

.profile-image {
    margin-bottom: 2rem;
}

.profile-image img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: var(--card-shadow);
}

.profile-info h1 {
    font-family: 'Red Rose', cursive;
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--heading-color);
}

.profile-info h2 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.bio {
    font-family: 'Poppins', sans-serif;
    margin-bottom: 2rem;
    line-height: 1.6;
    font-size: 1rem;
}

.cta-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
    margin-top: 2rem;
    align-items: center;
}

/* Theme Toggle Button - Sun/Moon Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
  margin-left: 0.5rem;
}

.switch #theme-toggle {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #2196f3;
  box-shadow: var(--card-shadow);
  -webkit-transition: 0.4s;
  transition: 0.4s;
  z-index: 0;
  overflow: hidden;
}

.sun-moon {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: yellow;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

#theme-toggle:checked + .slider {
  background-color: black;
}

#theme-toggle:focus + .slider {
  box-shadow: 0 0 1px #2196f3;
}

#theme-toggle:checked + .slider .sun-moon {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
  background-color: white;
  -webkit-animation: rotate-center 0.6s ease-in-out both;
  animation: rotate-center 0.6s ease-in-out both;
}

.moon-dot {
  opacity: 0;
  transition: 0.4s;
  fill: gray;
}

#theme-toggle:checked + .slider .sun-moon .moon-dot {
  opacity: 1;
}

.slider.round {
  border-radius: 34px;
}

.slider.round .sun-moon {
  border-radius: 50%;
}

#moon-dot-1 {
  left: 10px;
  top: 3px;
  position: absolute;
  width: 6px;
  height: 6px;
  z-index: 4;
}

#moon-dot-2 {
  left: 2px;
  top: 10px;
  position: absolute;
  width: 10px;
  height: 10px;
  z-index: 4;
}

#moon-dot-3 {
  left: 16px;
  top: 18px;
  position: absolute;
  width: 3px;
  height: 3px;
  z-index: 4;
}

#light-ray-1 {
  left: -8px;
  top: -8px;
  position: absolute;
  width: 43px;
  height: 43px;
  z-index: -1;
  fill: white;
  opacity: 10%;
}

#light-ray-2 {
  left: -50%;
  top: -50%;
  position: absolute;
  width: 55px;
  height: 55px;
  z-index: -1;
  fill: white;
  opacity: 10%;
}

#light-ray-3 {
  left: -18px;
  top: -18px;
  position: absolute;
  width: 60px;
  height: 60px;
  z-index: -1;
  fill: white;
  opacity: 10%;
}

.cloud-light {
  position: absolute;
  fill: #eee;
  animation-name: cloud-move;
  animation-duration: 6s;
  animation-iteration-count: infinite;
}

.cloud-dark {
  position: absolute;
  fill: #ccc;
  animation-name: cloud-move;
  animation-duration: 6s;
  animation-iteration-count: infinite;
  animation-delay: 1s;
}

#cloud-1 {
  left: 30px;
  top: 15px;
  width: 40px;
}

#cloud-2 {
  left: 44px;
  top: 10px;
  width: 20px;
}

#cloud-3 {
  left: 18px;
  top: 24px;
  width: 30px;
}

#cloud-4 {
  left: 36px;
  top: 18px;
  width: 40px;
}

#cloud-5 {
  left: 48px;
  top: 14px;
  width: 20px;
}

#cloud-6 {
  left: 22px;
  top: 26px;
  width: 30px;
}

@keyframes cloud-move {
  0% {
    transform: translateX(0px);
  }

  40% {
    transform: translateX(4px);
  }

  80% {
    transform: translateX(-4px);
  }

  100% {
    transform: translateX(0px);
  }
}

.stars {
  transform: translateY(-32px);
  opacity: 0;
  transition: 0.4s;
}

.star {
  fill: white;
  position: absolute;
  -webkit-transition: 0.4s;
  transition: 0.4s;
  animation-name: star-twinkle;
  animation-duration: 2s;
  animation-iteration-count: infinite;
}

#theme-toggle:checked + .slider .stars {
  -webkit-transform: translateY(0);
  -ms-transform: translateY(0);
  transform: translateY(0);
  opacity: 1;
}

#star-1 {
  width: 20px;
  top: 2px;
  left: 3px;
  animation-delay: 0.3s;
}

#star-2 {
  width: 6px;
  top: 16px;
  left: 3px;
}

#star-3 {
  width: 12px;
  top: 20px;
  left: 10px;
  animation-delay: 0.6s;
}

#star-4 {
  width: 18px;
  top: 0px;
  left: 18px;
  animation-delay: 1.3s;
}

@keyframes star-twinkle {
  0% {
    transform: scale(1);
  }

  40% {
    transform: scale(1.2);
  }

  80% {
    transform: scale(0.8);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes rotate-center {
  0% {
    transform: translateX(26px) rotate(0);
  }
  100% {
    transform: translateX(26px) rotate(360deg);
  }
}

.cta-buttons .btn {
    padding: 0.75rem 1.75rem;
    border-radius: 5px;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
    background: var(--card-bg);
    color: var(--text-color);
}

.cv-btn {
    color: var(--primary-color) !important;
    border: none;
    background-color: #f0f0f0;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cv-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: -1;
}

.hire-btn {
    background-color: white;
    border: none;
    color: #333;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hire-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: -1;
}

.cv-btn:hover {
    color: white !important;
    transform: scale(1.05);
}

.cv-btn:hover::before {
    left: 0;
}

.hire-btn:hover {
    color: white;
    transform: scale(1.05);
}

.hire-btn:hover::before {
    left: 0;
}

/* Content Section Styles */
.content-section {
    margin-bottom: 3rem;
}

.content-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease;
}

.content-card h2 {
    font-family: 'Red Rose', cursive;
    font-size: 1.8rem;
    color: var(--dark-color);
}

.content-card p {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

/* Services Section Styles */
.services-list {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}

.services-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.services-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary-color);
    opacity: 0.7;
}

.service-text {
    transition: color 0.3s ease;
}

.service-arrow {
    color: var(--primary-color);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.services-list li:hover .service-text {
    color: var(--primary-color);
}

.services-list li:hover .service-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Skills Section Styles */
.skills-section h3 {
    font-size: 1rem;
    color: var(--text-color);
    margin: 1.5rem 0 1rem 0;
}

.skill-box {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease;
    height: 80px;
}

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

.skill-box img {
    max-width: 100%;
    max-height: 40px;
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background-color: #ddd;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-dot {
    position: absolute;
    left: -2.4rem;
    top: 0.5rem;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 3px solid white;
}

.timeline-date {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    margin-bottom: 0.5rem;
}

/* Portfolio Section Styles */
.portfolio-list {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}

.portfolio-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.portfolio-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary-color);
    opacity: 0.7;
}

.portfolio-text {
    transition: color 0.3s ease;
}

.portfolio-arrow {
    color: var(--primary-color);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.portfolio-list li:hover .portfolio-text {
    color: var(--primary-color);
}

.portfolio-list li:hover .portfolio-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Testimonial Styles */
.testimonial-header {
    margin-bottom: 1rem;
}

.testimonial-nav {
    display: flex;
    gap: 0.5rem;
}

.nav-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 5px;
    background: var(--card-bg);
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    transform: translateY(-2px);
}

.testimonial-author {
    margin-bottom: 1.5rem;
}

.testimonial-header .fas{
    color: var(--primary-color);
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
    border: 3px solid white;
    box-shadow: var(--card-shadow);
}

.author-name {
    margin-bottom: 0;
    font-size: 1.1rem;
}

.author-name .author-title {
    font-weight: normal;
    color: var(--text-color);
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.testimonial-indicators {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background-color: var(--primary-color);
}

/* Contact Styles */
.modern-contact-form {
    width: 100%;
    max-width: 100%;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control{
    color: var(--text-color) !important;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-color);
}

.modern-contact-form .form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 5px;
    background-color: #ffffff00;
    box-shadow: var(--input-field-shadow);
    transition: all 0.3s ease;
    border: none;
}

.modern-contact-form .form-control:focus {
    border: 1px solid var(--primary-color);
}

.modern-contact-form textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.send-message-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 5px;
    background: var(--card-bg);
    box-shadow: var(--card-shadow);
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.send-message-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: -1;
}

.send-message-btn:hover {
    color: white;
    transform: scale(1.05);
}

.send-message-btn:hover::before {
    left: 0;
}

.send-message-btn i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.send-message-btn:hover i {
    transform: translateX(3px);
}

@media (min-width: 768px) {
    .modern-contact-form {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
   
    
    .form-group:nth-child(3),
    .form-group:nth-child(4),
    .form-group:nth-child(5),
    .send-message-btn {
        grid-column: span 2;
    }
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .left-column {
        height: auto;
        position: relative;
        padding: 3rem 1rem;
    }

    .profile-container{
        padding: 2rem 0;
    }
    
    .right-column {
        padding: 2rem 1rem;
    }
    
    .profile-container {
        max-width: 100%;
    }
}

@media (max-width: 767.98px) {
    .profile-info h1 {
        font-size: 2rem;
    }

    .profile-container{
        text-align: center !important;
    }

    .cta-buttons{
        justify-content: center;
    }
    
    .profile-info h2 {
        font-size: 1.5rem;
    }
    
    .content-card {
        padding: 1.5rem;
    }
    
    .skill-box {
        height: 70px;
    }
}

@media (max-width: 575.98px) {
    .cta-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
}


.splide__pagination__page.is-active{
    background-color: var(--primary-color);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--card-bg);
    box-shadow: var(--card-shadow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
    overflow: hidden;
}

.back-to-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: -1;
    border-radius: 50%;
}

.back-to-top:hover {
    color: white;
    transform: scale(1.1);
}

.back-to-top:hover::before {
    left: 0;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
    text-decoration: none;
}