:root {
    --primary-color: #6c63ff;
    --primary-light: #a29dff;
    --secondary-color: #4d44db;
    --dark-color: #2f2e41;
    --dark-light: #4a4a6a;
    --light-color: #f8f9fa;
    --success-color: #28a745;
    --gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-color);
    background-color: #fefefe;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
}

.navbar {
    padding: 25px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.85) !important;
}

.navbar {
    max-width: 100%;
}

.navbar.scrolled {
    padding: 12px 0;
    background-color: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.8rem;
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 600;
    margin: 0 12px;
    position: relative;
    color: var(--dark-color) !important;
    transition: all 0.3s ease;
}

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background: var(--gradient);
    bottom: -5px;
    left: 0;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 3px;
}

.nav-link:hover:after {
    width: 100%;
}

.hero-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 180px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-light) 0%, rgba(108, 99, 255, 0.1) 70%);
    top: -300px;
    right: -300px;
    z-index: 0;
    animation: pulse 8s infinite alternate;
}

.hero-section::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-light) 0%, rgba(108, 99, 255, 0.1) 70%);
    bottom: -200px;
    left: -200px;
    z-index: 0;
    animation: pulse 6s 2s infinite alternate;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-weight: 800;
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.2;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.hero-content h2 {
    font-weight: 600;
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--dark-light);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: var(--dark-light);
    max-width: 600px;
}

.hero-image {
    position: relative;
    z-index: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.15);
    transform: perspective(1000px) rotateY(-10deg);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    border: 15px solid white;
}

.hero-image:hover {
    transform: perspective(1000px) rotateY(0deg);
    box-shadow: 0 40px 60px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: var(--gradient);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 10px 20px rgba(108, 99, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(108, 99, 255, 0.4);
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-outline-primary {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 10px 20px rgba(108, 99, 255, 0.2);
    transform: translateY(-3px);
}

.section-title {
    font-weight: 800;
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
    font-size: 2.5rem;
    letter-spacing: -1px;
}

.section-title:after {
    content: '';
    position: absolute;
    width: 60%;
    height: 4px;
    background: var(--gradient);
    bottom: -15px;
    left: 0;
    border-radius: 2px;
}

.section-title-center:after {
    left: 20%;
}

.about-img {
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: perspective(1000px) rotateX(5deg) rotateY(-5deg);
    border: 10px solid white;
}

.about-img:hover {
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
    box-shadow: 0 35px 60px -10px rgba(0, 0, 0, 0.2);
}

.skill-item {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.skill-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.skill-icon {
    font-size: 2.8rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 20px;
}

.progress {
    height: 10px;
    border-radius: 5px;
    background-color: #f0f0f0;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    background: var(--gradient);
    border-radius: 5px;
    transition: width 1.5s ease;
}
.project-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    background: white;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.project-img {
    height: 250px;
    width: 100%;
    object-fit: cover;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    transition: transform 0.4s ease-in-out, filter 0.4s ease-in-out;
    display: block;
}

.project-card:hover .project-img {
    transform: scale(1.03);
    filter: brightness(1.05);
}


.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-features li {
    transition: transform 0.3s ease;
}

.project-features li:hover {
    transform: translateX(5px);
}

.badge {
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hover-shine {
    position: relative;
    overflow: hidden;
}

.hover-shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

.hover-shine:hover::after {
    left: 100%;
}

.bg-pattern {
    background-image: radial-gradient(rgba(108, 99, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.section-title:after {
    content: '';
    position: absolute;
    width: 60%;
    height: 4px;
    background: linear-gradient(135deg, #6c63ff 0%, #4d44db 100%);
    bottom: -15px;
    left: 20%;
    border-radius: 2px;
}

.project-features li {
    transition: transform 0.3s ease;
}

.project-features li:hover {
    transform: translateX(5px);
}

.badge {
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 50px;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hover-shine {
    position: relative;
    overflow: hidden;
}

.hover-shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

.hover-shine:hover::after {
    left: 100%;
}

.bg-pattern {
    background-image: radial-gradient(rgba(108, 99, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

.badge-tech {
    background: var(--gradient);
    color: white;
    margin-right: 8px;
    margin-bottom: 8px;
    padding: 6px 12px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.8rem;
}


/* Timeline Styles */
.timeline {
    position: relative;
    padding-left: 60px;
}

.timeline:before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient);
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.timeline-item:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.timeline-item:before {
    content: '';
    position: absolute;
    left: -48px;
    top: 25px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    border: 4px solid var(--primary-color);
    z-index: 1;
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 5px;
}

/* Company/Organization Logo */
.timeline-item .company-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-right: 15px;
    flex-shrink: 0;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .timeline {
        padding-left: 50px;
    }

    .timeline-item:before {
        left: -40px;
        width: 18px;
        height: 18px;
    }

    .timeline-item .company-logo {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 768px) {
    #experience .row {
        flex-direction: column;
    }

    #experience .col-lg-6 {
        width: 100%;
    }

    #experience .col-lg-6:first-child {
        margin-bottom: 40px;
    }

    .timeline {
        padding-left: 40px;
    }

    .timeline-item {
        padding: 18px;
        margin-bottom: 25px;
    }

    .timeline-item:before {
        left: -32px;
        top: 22px;
        width: 16px;
        height: 16px;
    }

    .timeline-item .company-logo {
        width: 32px;
        height: 32px;
        margin-right: 12px;
    }
}

@media (max-width: 576px) {
    .timeline {
        padding-left: 0; /* Remove padding on small screens */
    }

    .timeline:before {
        display: none; /* Hide the vertical line */
    }

    .timeline-item:before {
        display: none; /* Hide the icon */
    }

    .timeline-item {
        padding: 12px;
        margin-bottom: 15px;
    }

    .timeline-item .company-logo {
        display: none; /* Optional: Hide logo on extra small devices */
    }

    .timeline-item h5 {
        font-size: 1rem;
    }

    .timeline-item p,
    .timeline-item li {
        font-size: 0.9rem;
    }
}

@media (max-width: 400px) {
    .timeline {
        padding-left: 0;
    }

    .timeline-item {
        flex-direction: column;
        padding: 10px;
        margin-bottom: 12px;
    }

    .timeline-item:before {
        display: none;
    }

    .timeline-item .d-flex {
        flex-direction: column;
    }

    .timeline-item .company-logo {
        display: none;
    }
}

.contact-info {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: all 0.3s ease;
}

.contact-info:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    font-size: 1.8rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.contact-info-item:hover .contact-icon {
    transform: scale(1.2);
}

.form-control {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-control:focus {
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.2);
    border-color: var(--primary-color);
}

footer {
    background: var(--dark-color);
    color: white;
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-color) 0%, rgba(108, 99, 255, 0.1) 70%);
    top: -150px;
    right: -150px;
    opacity: 0.1;
}

footer::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-color) 0%, rgba(108, 99, 255, 0.1) 70%);
    bottom: -100px;
    left: -100px;
    opacity: 0.1;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #6C63FFFF;
    margin-right: 15px;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-icon:hover {
    background: var(--gradient);
    color: #fff;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(108, 99, 255, 0.3);
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

.floating-2 {
    animation: floating 3s ease-in-out 1s infinite;
}

.floating-3 {
    animation: floating 3s ease-in-out 2s infinite;
}

@keyframes floating {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.bg-pattern {
    background-image: radial-gradient(rgba(108, 99, 255, 0.1) 2px, transparent 2px);
    background-size: 40px 40px;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.hover-shine {
    position: relative;
    overflow: hidden;
}

.hover-shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

.hover-shine:hover::after {
    left: 100%;
}


/* Responsive adjustments */
@media (max-width: 992px) {
    .navbar-brand {
        font-size: 1.6rem;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.4rem;
    }

    .hero-section {
        padding: 150px 0 80px;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-image {
        margin-top: 50px;
        transform: perspective(1000px) rotateY(0deg);
    }

    .section-title:after {
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.2rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content h2 {
        font-size: 1.2rem;
    }

    .btn-primary, .btn-outline-primary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Extra small devices (phones, 400px and down) */
@media (max-width: 400px) {
    .navbar-brand {
        font-size: 1rem;
    }
}

/* Navbar link styles */
.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
}

/* Mobile styles */
@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 1rem;
        background: #fff;
    }

    .navbar-nav {
        background-color: #ffffff;
        border-radius: 10px;
        padding: 1rem 0;
    }

    .navbar-nav .nav-item {
        margin-bottom: 10px;
    }

    .navbar-nav .nav-link {
        font-size: 1.1rem;
        padding: 0.75rem;
        color: #333;
    }

    .navbar-collapse {
        background: #fff;
        padding: 1rem;
        border-radius: 8px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.05);
    }
}


.testimonial-card {
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.client-rating {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .testimonial-card {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .testimonial-card {
        padding: 15px;
    }

    .testimonial-card p {
        font-size: 0.9rem;
    }
}

/* Testimonials Section Enhancements */
.testimonial-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.client-rating {
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.testimonial-card h6 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
}

.testimonial-card p {
    font-size: 15px;
    color: #333;
    line-height: 1.6;
}

.testimonial-card small.text-muted {
    font-size: 13px;
}

/* Flag styles */
.flag-icon {
    width: 18px;
    height: 18px;
    border-radius: 3px;
    object-fit: cover;
    margin-right: 6px;
}

/* Fiverr icon styling */
.testimonial-card img[alt="Fiverr"] {
    width: 18px;
    height: 18px;
    margin-right: 6px;
}

/* View Fiverr button */
.btn-outline-primary {
    border-radius: 30px;
    padding: 10px 25px;
    font-weight: 500;
    transition: all 0.3s ease-in-out;
}
.btn-outline-primary:hover {
    background-color: #4f45fc;
    color: #fff;
    border-color: #6C63FFFF;
}
