@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;600;700;800&display=swap');

/* #4d8fea, #1e70e3 */
:root {
    --portfolioTheme-primary: #FF8DA1;
    --portfolioTheme-primary-light: #FF8DA1;
    --portfolioTheme-secondary: #f8fafc;
    --portfolioTheme-secondary-light: #e2e8f0;
    --portfolioTheme-cardBg: #ffffff;
    --portfolioTheme-textMain: #1e293b;
    --portfolioTheme-textAccent: #64748b;
    --portfolioTheme-textLink: #4ade80;
    --portfolioTheme-success: #10b981;
    --portfolioTheme-error: #f87171;
}

/* Dark theme variables */
.dark-theme {
    --portfolioTheme-secondary: #0f172a;
    --portfolioTheme-secondary-light: #FF8DA1;
    --portfolioTheme-cardBg: #1c253b;
    --portfolioTheme-textMain: #f1f5f9;
    --portfolioTheme-textAccent: #94a3b8;
}

*,
:before,
:after {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: #e5e7eb;
    --tw-content: "";
}

html,
body {
    margin: 0;
    line-height: 1.5;
    font-family: Rubik, sans-serif;
    background-color: var(--portfolioTheme-secondary);
    color: var(--portfolioTheme-textMain);
    scroll-behavior: smooth;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    text-decoration: none;
}

/* Improved Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    background-color: rgba(248, 250, 252, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    color: var(--portfolioTheme-textMain);
    text-decoration: none;
}
/* adjusted colour */
.potr{
    color: white;
}
.lrea{
    color: #c11c84;
}
.navbar-brand span:first-child {
    color: var(--portfolioTheme-primary);
}

.navbar-brand span:last-child {
    color: var(--portfolioTheme-primary);
}

.nav-links {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
        gap: 1.5rem;
    }
}

.nav-link {
    color: var(--portfolioTheme-textMain);
    transition: all 0.3s;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--portfolioTheme-primary);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--portfolioTheme-textLink);
}

.nav-link:hover::after {
    width: 100%;
}

.menu-toggle-btn {
    display: block;
    background: none;
    border: none;
    color: var(--portfolioTheme-textMain);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

@media (min-width: 768px) {
    .menu-toggle-btn {
        display: none;
    }
}

.menu-toggle-btn:hover {
    color: var(--portfolioTheme-primary);
}

/* Mobile menu */
#menu-toggle:checked~.mobile-menu-container {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

#menu-toggle {
    display: none;
}

.mobile-menu-container {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--portfolioTheme-cardBg);
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.mobile-menu-list {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
    list-style: none;
    margin: 0;
}

.mobile-menu-item a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s;
    color: var(--portfolioTheme-textMain);
    text-decoration: none;
}

.mobile-menu-item a:hover {
    background-color: rgba(30, 112, 227, 0.1);
    color: var(--portfolioTheme-primary);
}

/* Improved Hero Section */
.home-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.home-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(30, 112, 227, 0.15) 0%, rgba(30, 112, 227, 0) 70%);
    z-index: 0;
}

.hero-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .hero-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.hero-content {
    flex: 1;
    order: 2;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .hero-content {
        order: 1;
        padding-right: 2rem;
    }
}

.hero-image-container {
    flex: 1;
    order: 1;
    display: flex;
    justify-content: center;
}

@media (min-width: 768px) {
    .hero-image-container {
        order: 2;
        justify-content: flex-end;
    }
}

.hero-heading {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 1rem 0;
}

.hero-heading .typing-text {
    color: var(--portfolioTheme-primary);
    display: inline-block;
    min-width: 150px;
}

.hero-heading .primary-text {
    color: var(--portfolioTheme-primary);
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
}

@media (min-width: 640px) {
    .hero-heading {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .hero-heading {
        font-size: 3.5rem;
    }
}

.hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.75rem;
    color: var(--portfolioTheme-textAccent);
    max-width: 600px;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 9999px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--portfolioTheme-primary);
    color: var(--portfolioTheme-textMain);
    box-shadow: 0 4px 15px rgba(30, 112, 227, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(30, 112, 227, 0.4);
    background-color: var(--portfolioTheme-primary-light);
}

.btn-secondary {
    border: 2px solid var(--portfolioTheme-primary);
    color: var(--portfolioTheme-primary);
}

.btn-secondary:hover {
    background-color: var(--portfolioTheme-primary);
    color: var(--portfolioTheme-textMain);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(30, 112, 227, 0.3);
}

.hero-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 20px;
    border: 4px solid var(--portfolioTheme-primary);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    transition: all 0.5s ease;
}

.hero-image:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(30, 112, 227, 0.3);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--portfolioTheme-cardBg);
    color: var(--portfolioTheme-textMain);
    transition: all 0.3s;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.social-link:hover {
    background-color: var(--portfolioTheme-primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(30, 112, 227, 0.3);
}

/* Dark theme navbar */
.dark-theme .navbar {
    background-color: rgba(15, 23, 42, 0.9);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.dark-theme .about-card,
.dark-theme .service-card,
.dark-theme .testimonial-card,
.dark-theme .contact-item {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.dark-theme .form-input,
.dark-theme .form-textarea {
    background-color: #1e293b;
    border-color: #334155;
}

.container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.section-padding {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--portfolioTheme-primary);
    margin: 0.5rem auto;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.125rem;
    text-align: center;
    color: var(--portfolioTheme-textAccent);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--portfolioTheme-secondary), var(--portfolioTheme-cardBg));
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

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

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

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

@keyframes pulse-once {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

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

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: var(--portfolioTheme-primary)
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-in-out forwards;
    opacity: 0;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

.animate-pulse-once {
    animation: pulse-once 2s ease-in-out;
}

.typing-text {
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid var(--portfolioTheme-primary);
    animation:
        typing 3.5s steps(40, end) infinite,
        blink-caret .75s step-end infinite;
}

/* Text Gradient */
.text-gradient {
    background: linear-gradient(90deg, var(--portfolioTheme-textMain), var(--portfolioTheme-primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: block;
}

/* About section */
.about-section {
    position: relative;
}

.about-section::before {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(30, 112, 227, 0.1) 0%, rgba(30, 112, 227, 0) 70%);
    z-index: 0;
}

.about-content {
    position: relative;
    z-index: 1;
}

.about-card {
    padding: 2.5rem;
    background-color: var(--portfolioTheme-cardBg);
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--portfolioTheme-primary);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--portfolioTheme-primary);
}

.card-text {
    font-size: 1.05rem;
    line-height: 1.75rem;
    color: var(--portfolioTheme-textAccent);
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.skill-tag {
    padding: 0.5rem 1rem;
    background-color: rgba(30, 112, 227, 0.2);
    border-radius: 9999px;
    font-size: 0.9rem;
    color: var(--portfolioTheme-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Services section */
.services-grid {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    padding: 2rem;
    background-color: var(--portfolioTheme-cardBg);
    border-radius: 1rem;
    transition: all 0.3s;
    text-align: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

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

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(30, 112, 227, 0.2);
    border-radius: 50%;
    color: var(--portfolioTheme-primary);
    font-size: 1.75rem;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.service-description {
    color: var(--portfolioTheme-textAccent);
    margin-bottom: 1.5rem;
}

/* Portfolio section */
.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    background: transparent;
    border: 1px solid var(--portfolioTheme-primary);
    color: var(--portfolioTheme-primary);
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
    background-color: var(--portfolioTheme-primary);
    color: var(--portfolioTheme-textMain);
}

.portfolio-grid {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.portfolio-item {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.portfolio-tags {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 2;
}

.portfolio-tag {
    padding: 0.25rem 0.75rem;
    background: rgba(248, 250, 252, 0.9);
    border-radius: 9999px;
    font-size: 0.75rem;
    color: var(--portfolioTheme-primary);
    backdrop-filter: blur(5px);
}

.dark-theme .portfolio-tag {
    background: rgba(15, 23, 42, 0.8);
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s ease;
    padding: 2rem;
    text-align: center;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

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

.portfolio-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.portfolio-category {
    color: var(--portfolioTheme-primary);
    margin-bottom: 1rem;
    transform: translateY(20px);
    transition: all 0.3s ease 0.1s;
}

.portfolio-links {
    display: flex;
    gap: 1rem;
    transform: translateY(20px);
    transition: all 0.3s ease 0.2s;
}

.portfolio-item:hover .portfolio-title,
.portfolio-item:hover .portfolio-category,
.portfolio-item:hover .portfolio-links {
    transform: translateY(0);
}

/* Testimonials section */
.testimonials-container {
    position: relative;
    margin-top: 3rem;
}

.testimonial-card {
    padding: 2rem;
    background-color: var(--portfolioTheme-cardBg);
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin: 1rem;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 4rem;
    color: rgba(30, 112, 227, 0.2);
    font-family: serif;
    line-height: 1;
}

.testimonial-content {
    position: relative;
    z-index: 1;
    font-style: italic;
    color: var(--portfolioTheme-textAccent);
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--portfolioTheme-primary);
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 700;
}

.author-role {
    color: var(--portfolioTheme-primary);
    font-size: 0.9rem;
}

.gap-4 {
    display: flex;
    gap: 10px;
}

/* Contact section */
.contact-section {
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(30, 112, 227, 0.1) 0%, rgba(30, 112, 227, 0) 70%);
    z-index: 0;
}

.contact-content {
    position: relative;
    z-index: 1;
}

.contact-info-block {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background-color: var(--portfolioTheme-cardBg);
    border-radius: 1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.contact-icon {
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--portfolioTheme-primary);
    border-radius: 9999px;
    font-size: 1.5rem;
    flex-shrink: 0;
    color: white;
}

.contact-details {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-value {
    color: var(--portfolioTheme-textAccent);
}

.contact-value a:hover {
    color: var(--portfolioTheme-primary);
    text-decoration: underline;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.form-input,
.form-textarea {
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid var(--portfolioTheme-textAccent);
    background-color: var(--portfolioTheme-cardBg);
    color: var(--portfolioTheme-textMain);
    transition: all 0.3s;
}

.form-input:invalid,
.form-textarea:invalid {
    border-color: var(--portfolioTheme-error);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--portfolioTheme-primary);
    box-shadow: 0 0 0 3px rgba(30, 112, 227, 0.3);
}

.form-textarea {
    resize: vertical;
    min-height: 150px;
}

.form-error {
    color: var(--portfolioTheme-error);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    height: 1rem;
}

.submit-button {
    padding: 1rem 1.5rem;
    font-weight: 600;
    background-color: var(--portfolioTheme-primary);
    color: var(--portfolioTheme-textMain);
    border-radius: 0.75rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(30, 112, 227, 0.3);
    background-color: var(--portfolioTheme-primary-light);
}

.submit-button .spinner {
    display: none;
}

.submit-button.loading .spinner {
    display: block;
}

.submit-button.loading .button-text {
    display: none;
}

.form-success {
    display: none;
    padding: 1.5rem;
    background-color: rgba(16, 185, 129, 0.2);
    border: 1px solid var(--portfolioTheme-success);
    border-radius: 0.75rem;
    color: var(--portfolioTheme-textMain);
    text-align: center;
    margin-top: 1rem;
}

.form-success.show {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

/* Footer */
.footer {
    padding: 3rem 0;
    background-color: var(--portfolioTheme-cardBg);
    text-align: center;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link {
    transition: all 0.3s;
    color: var(--portfolioTheme-textMain);
    text-decoration: none;
}

.footer-link:hover {
    color: var(--portfolioTheme-primary);
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-copyright {
    color: var(--portfolioTheme-textAccent);
    font-size: 0.9rem;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background-color: var(--portfolioTheme-primary);
    color: var(--portfolioTheme-textMain);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(30, 112, 227, 0.3);
    text-decoration: none;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    background-color: var(--portfolioTheme-primary-light);
    box-shadow: 0 6px 20px rgba(30, 112, 227, 0.4);
}

/* Theme toggle */
.theme-toggle {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 50px;
    height: 50px;
    background-color: var(--portfolioTheme-primary);
    color: var(--portfolioTheme-textMain);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(30, 112, 227, 0.3);
    border: none;
}

/* Progress bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background-color: var(--portfolioTheme-primary);
    z-index: 1000;
    width: 0;
    transition: width 0.1s linear;
}

/* Loading skeletons */
.skeleton {
    background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 0.5rem;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

button:focus,
a:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--portfolioTheme-primary-light);
    outline-offset: 2px;
}

/* Fix for main overflow issue */
main {
    overflow-x: hidden;
}

/* Responsive adjustments */
@media (max-width: 767px) {

    /* Hero section adjustments */
    .home-section {
        padding: 8rem 0 4rem;
    }

    .hero-container {
        flex-direction: column;
    }

    .hero-content {
        order: 1;
        padding-right: 0;
        margin-bottom: 2rem;
    }

    /* Portfolio filter adjustments */
    .portfolio-filter {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    /* Testimonials adjustments */
    .testimonials-container {
        padding: 0 0.5rem;
    }

    .testimonial-card {
        margin: 1rem 0;
    }

    /* Contact section adjustments */
    .lg\:grid-cols-2 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Mobile menu improvements */
    .mobile-menu-container {
        top: 60px;
    }

    .mobile-menu-list {
        padding: 0.5rem;
    }

    .mobile-menu-item a {
        padding: 0.5rem;
    }

    /* Service cards adjustments */
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Portfolio grid adjustments */
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 640px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .md\:flex {
        display: flex;
    }

    .md\:hidden {
        display: none;
    }

    .md\:flex-row {
        flex-direction: row;
    }

    .md\:gap-8 {
        gap: 2rem;
    }

    .md\:order-1 {
        order: 1;
    }

    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .section-padding {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .lg\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 3rem;
    }
}