:root {
    /* Theme: Aurora Dark (premium, high-contrast) */
    --primary-color: #8b5cf6; /* violet */
    --primary-hover: #7c3aed;
    --primary-light: #c4b5fd;
    --secondary-color: #22d3ee; /* cyan, replaces yellow */
    --accent-color: #22d3ee; /* cyan */
    --accent-pink: #a855f7;

    --gradient-primary: linear-gradient(135deg, #8b5cf6, #22d3ee, #a855f7);
    --gradient-secondary: linear-gradient(135deg, #22d3ee, #8b5cf6, #a855f7);

    /* Background / surfaces */
    --bg-dark: #060812;
    --bg-secondary: #0b1022;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-light: rgba(255, 255, 255, 0.06);
    --surface-border: rgba(255, 255, 255, 0.12);

    /* Text */
    --text-primary: #eef2ff;
    --text-secondary: rgba(238, 242, 255, 0.78);
    --text-muted: rgba(238, 242, 255, 0.6);

    /* Status */
    --success-color: #10b981;
    --error-color: #fb7185;

    /* Borders / focus */
    --border-color: rgba(139, 92, 246, 0.45);
    --ring: rgba(34, 211, 238, 0.35);

    /* Shadows */
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.45);
    --shadow-xl: 0 30px 90px rgba(0, 0, 0, 0.55);
    --shadow-glow: 0 0 45px rgba(34, 211, 238, 0.18), 0 0 70px rgba(139, 92, 246, 0.22);
}

* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(900px circle at 12% 12%, rgba(34, 211, 238, 0.12), transparent 55%),
        radial-gradient(900px circle at 88% 18%, rgba(139, 92, 246, 0.14), transparent 55%),
        radial-gradient(900px circle at 50% 92%, rgba(139, 92, 246, 0.1), transparent 55%);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    cursor: none;
    /* Hide default cursor */
    display: flex;
    flex-direction: column;
}

::selection {
    background: rgba(34, 211, 238, 0.25);
    color: var(--text-primary);
}

*:focus-visible {
    outline: 3px solid var(--ring);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* Custom Cursor Styles */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.1s ease-out, opacity 0.2s ease, background 0.2s ease;
    transform: translate(-50%, -50%);
    opacity: 1;
    /* Zoom-resistant properties */
    transform-origin: center center;
    will-change: transform;
    /* Prevent scaling with zoom */
    width: max(20px, 1.2vmin);
    height: max(20px, 1.2vmin);
    min-width: 20px;
    min-height: 20px;
    max-width: 25px;
    max-height: 25px;
    box-shadow: 0 0 18px rgba(34, 211, 238, 0.25), 0 0 30px rgba(139, 92, 246, 0.35);
}

.custom-cursor.hover {
    transform: translate(-50%, -50%) scale(1.5);
    background: linear-gradient(135deg, #fbbf24, #c4b5fd, #8b5cf6);
    box-shadow: 0 0 22px rgba(251, 191, 36, 0.25), 0 0 40px rgba(139, 92, 246, 0.25);
}

.custom-cursor.dark {
    transform: translate(-50%, -50%) scale(1.5);
    background: linear-gradient(135deg, #1a0e2e, #251d3d, #5b21b6);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.35);
    border: 2px solid rgba(251, 191, 36, 0.35);
}

.custom-cursor.click {
    transform: translate(-50%, -50%) scale(0.8);
    background: linear-gradient(135deg, #9333ea, #fbbf24, #8b5cf6);
    box-shadow: 0 0 22px rgba(251, 191, 36, 0.25), 0 0 40px rgba(139, 92, 246, 0.22);
}

.custom-cursor.text {
    transform: translate(-50%, -50%) scale(0.8);
    background: linear-gradient(135deg, #a855f7, #d4af37);
    border-radius: 2px;
    width: 2px;
    height: 20px;
}

/* Custom cursor for different elements */
a,
button,
.clickable,
input,
textarea,
select,
.btn-primary,
.btn-secondary,
.service-btn,
.filter-btn,
.tab-links,
.portfolio-dropdown-btn,
.tab-dropdown-btn,
.project-link,
.social-icons a,
.nav-btn,
.dot,
.testimonial-card,
.faq-question,
.contact-method,
.process-step,
.service-card,
.work,
.layer,
.portfolio-dropdown-item,
.tab-dropdown-item,
.step-number,
.skill-item,
.timeline-item,
.education-item,
.motivation-item,
.expertise-item,
.stat-card,
.achievement-tag,
.highlight-tag,
.feature-tag,
.tech-tag,
.loader,
.logo,
.header-buttons a,
#cv-btn,
#submit-btn,
.fa-bars,
.fa-circle-xmark,
*[onclick],
*[href],
*[type="button"],
*[type="submit"],
input[type="submit"] {
    cursor: none !important;
}

/* Comprehensive cursor hiding for all potentially interactive elements */
*:hover,
*:active,
*:focus,
*[role="button"],
*[tabindex],
.clickable *,
.service-card *,
.work *,
.testimonial-card *,
button *,
a *,
label,
.form-group label {
    cursor: none !important;
}

/* Cursor trail effect */
.cursor-trail {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: opacity 0.3s ease;
    /* Zoom-resistant properties */
    transform-origin: center center;
    will-change: transform;
    /* Prevent scaling with zoom */
    width: max(8px, 0.6vmin);
    height: max(8px, 0.6vmin);
    min-width: 8px;
    min-height: 8px;
    max-width: 12px;
    max-height: 12px;
}

/* Loading Animation */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f0617, #1a0e2e);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader-content {
    text-align: center;
    animation: fadeInUp 1s ease;
}

.loader-circle {
    width: 80px;
    height: 80px;
    border: 4px solid transparent;
    border-top: 4px solid var(--primary-color);
    border-right: 4px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
    box-shadow: 0 0 26px rgba(34, 211, 238, 0.16), 0 0 34px rgba(139, 92, 246, 0.22);
}

.loader-content h3 {
    font-size: 24px;
    margin-bottom: 10px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.loader-content p {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* Animations */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

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

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

@keyframes pulse {

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

    50% {
        transform: scale(1.05);
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 5px var(--primary-color);
    }

    50% {
        box-shadow: 0 0 20px var(--primary-color), 0 0 30px var(--primary-color);
    }
}

@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

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

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

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

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

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

/* Animate Bounce */
.animate-bounce {
    animation: float 3s ease-in-out infinite;
}

#header {
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, rgba(15, 6, 23, 0.95), rgba(26, 14, 46, 0.9)), url(images/Bg_Img.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Ensure same effects on mobile background */
#header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 40%, rgba(168, 85, 247, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(212, 175, 55, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(139, 92, 246, 0.12) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.container {
    padding: 10px 8%;
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Floating Shapes */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    opacity: 0.12;
    animation: float 6s ease-in-out infinite;
    filter: blur(40px);
}

.shape-1 {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.shape-3 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.shape-4 {
    width: 120px;
    height: 120px;
    top: 40%;
    right: 30%;
    animation-delay: 1s;
}

/* Navigation */
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 20px 0;
}

.logo {
    width: 60px;
    height: auto;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.1);
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -8px;
    left: 0;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li a:hover::after {
    width: 100%;
}

/* Header Text */
.header-text {
    margin-top: 0;
    position: relative;
    z-index: 3;
    padding: 10px 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;
    min-height: calc(100vh - 100px);
    gap: 20px;
}

.animated-text {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
}

.subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    animation: fadeInUp 1s ease 0.5s both;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.highlight {
    color: var(--primary-color);
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-text h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease 0.7s both;
    min-height: 1.2em;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: var(--gradient-primary);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient 3s ease infinite;
    display: inline-block;
}

.typing-text {
    display: inline;
    border-right: 3px solid var(--primary-color);
    animation: blink-caret 1s step-end infinite;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent;
    }

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

.description {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease 0.9s both;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.header-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 0;
    animation: fadeInUp 1s ease 1.1s both;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
    clear: both;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 160px;
    justify-content: center;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
    box-shadow: 0 18px 55px rgba(139, 92, 246, 0.22), 0 10px 30px rgba(0, 0, 0, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 70px rgba(34, 211, 238, 0.18), 0 20px 50px rgba(0, 0, 0, 0.5);
    background: var(--gradient-secondary);
}

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

.btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--bg-dark);
    transform: translateY(-3px);
    box-shadow: 0 20px 65px rgba(251, 191, 36, 0.22), 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* Button focus styles */
.btn-primary:focus,
.btn-secondary:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
    border-radius: 50px;
    box-shadow: 0 0 0 3px var(--ring);
}

.btn-primary:focus {
    outline-color: var(--secondary-color);
}

.btn-secondary:focus {
    outline-color: var(--primary-color);
    background: rgba(168, 85, 247, 0.1);
}

.social-preview {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 0;
    padding: 0;
}

.stat-item {
    text-align: center;
    padding: 20px 18px;
    border-radius: 16px;
    background: var(--bg-card);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border: 1.5px solid var(--surface-border);
    transition: all 0.4s ease;
    min-width: 120px;
}

.stat-item:hover {
    transform: translateY(-8px);
    background: rgba(34, 211, 238, 0.08);
    box-shadow: 0 20px 60px rgba(34, 211, 238, 0.14), 0 20px 50px rgba(0, 0, 0, 0.4);
    border-color: var(--secondary-color);
}

.stat-item h3 {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 6px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-item p {
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* About Section */
#about {
    padding: 140px 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), transparent 40%),
        linear-gradient(180deg, var(--bg-dark), var(--bg-secondary));
    position: relative;
    overflow: hidden;
}

#about .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 8%;
}

#about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 18% 55%, rgba(34, 211, 238, 0.12) 0%, transparent 55%),
        radial-gradient(circle at 82% 25%, rgba(139, 92, 246, 0.14) 0%, transparent 55%),
        radial-gradient(circle at 55% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 100px;
    flex-wrap: wrap;
    max-width: 100%;
    margin: 0 auto;
    padding: 40px 0;
    flex-direction: row;
    /* Default: row layout for desktop */
}

.about-col-1 {
    flex-basis: 40%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-width: 350px;
    order: 1;
    /* Image on left */
}

.about-image-container {
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    max-width: 450px;
    width: 100%;
}

.about-image-container img {
    width: 100%;
    height: auto;
    border-radius: 25px;
    transition: transform 0.5s ease;
    object-fit: cover;
    aspect-ratio: 4/5;
}

.about-image-container:hover img {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(59, 130, 246, 0.3), rgba(16, 185, 129, 0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image-container:hover .image-overlay {
    opacity: 1;
}

.tech-icons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.tech-icons i {
    font-size: 3rem;
    color: #ffffff;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    opacity: 0;
    transform: translateY(20px);
    animation: techIconAppear 0.5s ease forwards;
}

.tech-icons i:nth-child(1) {
    animation-delay: 0.1s;
}

.tech-icons i:nth-child(2) {
    animation-delay: 0.2s;
}

.tech-icons i:nth-child(3) {
    animation-delay: 0.3s;
}

.tech-icons i:nth-child(4) {
    animation-delay: 0.4s;
}

.tech-icons i:hover {
    transform: translateY(-5px) scale(1.2);
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.8);
}

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

.about-col-2 {
    flex-basis: 55%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    min-width: 500px;
    order: 2;
    /* Text on right */
    text-align: left;
    /* Text aligned left by default */
}

.sub-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 40px;
    position: relative;
    text-align: center;
    /* Default left alignment */
    width: 100%;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.about-description {
    margin-bottom: 50px;
    width: 100%;
    text-align: left;
    /* Default left alignment */
}

.intro-text {
    font-size: 20px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 25px;
    text-align: left;
    /* Default left alignment */
    width: 100%;
    font-weight: 400;
}

.mission-text {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-muted);
    text-align: left;
    /* Default left alignment */
    width: 100%;
    font-weight: 400;
}

/* About Stats Section - Enhanced Row Layout */
.about-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin: 50px 0;
    padding: 40px 30px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(16, 185, 129, 0.05));
    border-radius: 25px;
    border: 1px solid rgba(59, 130, 246, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

.about-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg,
            rgba(59, 130, 246, 0.03) 0%,
            rgba(16, 185, 129, 0.03) 50%,
            rgba(168, 85, 247, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.about-stats:hover::before {
    opacity: 1;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 25px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.4s ease;
    text-align: center;
    min-width: 140px;
    flex: 1;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.6s ease;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: var(--shadow-xl);
    background: rgba(59, 130, 246, 0.08);
    border-color: var(--primary-color);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
    animation: pulse 3s ease-in-out infinite;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.stat-info h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 5px;
    line-height: 1;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-info p {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Motivation Section - Positioned under image on desktop */
.motivation-section {
    margin: 30px 0 40px;
    order: 3;
}

.motivation-section h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 25px;
    text-align: center;
}

.motivation-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.motivation-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: var(--bg-card);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.motivation-item:hover {
    transform: translateX(10px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.motivation-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    flex-shrink: 0;
    animation: float 4s ease-in-out infinite;
}

.motivation-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.motivation-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Expertise Section */
.expertise-section {
    margin: 50px 0;
    padding: 40px 0;
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(59, 130, 246, 0.02) 100%);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.expertise-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 20px 20px 0 0;
}

.expertise-section h3 {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 40px;
    margin-top: 10px;
    position: relative;
}

.expertise-section h3::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.expertise-highlight {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin: 0 40px;
    padding-bottom: 1.5rem;
}

.expertise-item {
    background: var(--bg-card);
    padding: 25px 20px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.expertise-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.08), transparent);
    transition: left 0.4s ease;
}

.expertise-item:hover::before {
    left: 100%;
}

.expertise-item:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.15);
}

.expertise-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 20px;
    color: white;
    transition: all 0.3s ease;
}

.expertise-item:hover .expertise-icon {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.3);
}

.expertise-item h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
    line-height: 1.3;
}

.expertise-item p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* Tab System */
.tab-titles {
    display: flex;
    gap: 30px;
    margin: 40px 0;
    border-bottom: 1px solid var(--border-color);
}

.tab-links {
    padding: 15px 0;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-muted);
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 3px solid transparent;
}

.tab-links:hover {
    color: var(--secondary-color);
}

.tab-links.active-link {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: linear-gradient(90deg, rgba(168, 85, 247, 0.1), transparent);
    padding-left: 12px;
    margin-left: -12px;
}

/* Tab links focus styles */
.tab-links:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 8px;
    background: rgba(168, 85, 247, 0.15);
}

.tab-contents {
    display: none;
    margin-top: 30px;
}

.tab-contents.active-tab {
    display: block;
    animation: fadeInUp 0.5s ease;
}

/* Enhanced Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.skill-category {
    background: linear-gradient(135deg, rgba(37, 29, 61, 0.5), rgba(26, 14, 46, 0.3));
    padding: 25px;
    border-radius: 15px;
    border: 1.5px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(168, 85, 247, 0.15);
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(37, 29, 61, 0.7), rgba(26, 14, 46, 0.5));
}

.skill-category h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.skill-category h4 i {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    box-shadow: 0 5px 15px rgba(168, 85, 247, 0.3);
}

.skill-item {
    margin-bottom: 18px;
    padding: 15px;
    background: rgba(168, 85, 247, 0.04);
    border-radius: 10px;
    border: 1px solid rgba(168, 85, 247, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.skill-item:hover::before {
    transform: scaleY(1);
}

.skill-item:hover {
    background: rgba(168, 85, 247, 0.12);
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.skill-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.skill-name i {
    font-size: 16px;
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.skill-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    opacity: 0.9;
}

/* Specialty badges for skill categories */
.skill-category.mobile-dev h4 i {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.skill-category.web-dev h4 i {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.skill-category.data-science h4 i {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* Keyframes for skill animations */

/* Specialty badges for skill categories */
.skill-category.mobile-dev h4 i {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.skill-category.web-dev h4 i {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.skill-category.data-science h4 i {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-primary);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 60px;
}

.timeline-dot {
    position: absolute;
    left: 10px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 4px solid var(--bg-dark);
    animation: pulse 2s ease-in-out infinite;
}

.timeline-content {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.timeline-content h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.company {
    font-size: 16px;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 5px;
}

.duration {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.timeline-content p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.achievements {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.achievement-tag {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* Education Grid */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.education-item {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    gap: 20px;
}

.education-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.education-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
}

.education-details h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.institution {
    font-size: 16px;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 5px;
}

.education-details .duration {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.education-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.highlight-tag {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-color);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 500;
}


/* Services Section */
#services {
    padding: 140px 0;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-dark));
    position: relative;
    overflow: hidden;
}

#services::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: float 20s linear infinite;
}

.section-header {
    text-align: center;
    margin-bottom: 120px;
    padding: 0 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 30px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
    padding: 0 20px;
    font-weight: 400;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 60px;
    margin-bottom: 120px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.service-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
    border-radius: 25px;
    padding: 50px 40px;
    border: 1.5px solid var(--surface-border);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.2), transparent);
    transition: left 0.8s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-18px);
    border-color: rgba(34, 211, 238, 0.5);
    box-shadow: 0 30px 90px rgba(139, 92, 246, 0.18), 0 30px 80px rgba(34, 211, 238, 0.12);
}

.service-icon {
    position: relative;
    width: 90px;
    height: 90px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 25px;
    background: var(--gradient-primary);
    color: white;
    font-size: 36px;
    animation: pulse 3s ease-in-out infinite;
}

.icon-bg {
    position: absolute;
    top: -12px;
    left: -12px;
    right: -12px;
    bottom: -12px;
    background: var(--gradient-primary);
    border-radius: 30px;
    opacity: 0.2;
    z-index: -1;
    animation: glow 2s ease-in-out infinite alternate;
}

.service-card h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.service-tagline {
    font-size: 18px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 25px;
}

.service-description {
    text-align: left;
    margin-bottom: 35px;
}

.service-description p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.service-features h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.service-features ul {
    list-style: none;
    margin-bottom: 25px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}

.service-features li i {
    color: var(--accent-color);
    font-size: 12px;
}

.service-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.tech-tag {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.service-pricing {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.service-btn {
    background: var(--gradient-primary);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.service-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Process Section */
.process-section {
    margin-top: 60px;
    text-align: center;
}

.process-section h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 50px;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.process-step {
    background: var(--bg-card);
    padding: 30px 20px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
}

.process-step:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin: 0 auto 20px;
    animation: pulse 2s ease-in-out infinite;
}

.process-step h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.process-step p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Certifications Section */
#certifications {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(15, 6, 23, 0.9), rgba(26, 14, 46, 0.7));
    border-top: 1px solid var(--border-color);
}

#certifications .section-header {
    margin-bottom: 60px;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.cert-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 220px;
}

.cert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.cert-card:hover::before {
    left: 100%;
}

.cert-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(6, 182, 212, 0.05));
}

.cert-icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.cert-card:hover .cert-icon {
    font-size: 50px;
    color: var(--secondary-color);
    text-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
}

.cert-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.cert-card:hover h3 {
    color: var(--primary-light);
}

.cert-issuer {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Certifications */
@media screen and (max-width: 768px) {
    #certifications {
        padding: 60px 0;
    }

    .certifications-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .cert-card {
        padding: 25px 15px;
        min-height: 200px;
    }

    .cert-icon {
        font-size: 32px;
    }

    .cert-card:hover .cert-icon {
        font-size: 40px;
    }

    .cert-card h3 {
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    #certifications {
        padding: 40px 0;
    }

    .certifications-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 15px;
    }

    .cert-card {
        padding: 20px;
        min-height: 180px;
    }

    .cert-icon {
        font-size: 28px;
    }

    .cert-card h3 {
        font-size: 13px;
    }
}


/* Portfolio Section */
#portfolio {
    padding: 140px 0;
    background: linear-gradient(135deg, var(--bg-dark), var(--bg-light));
    position: relative;
    overflow: hidden;
}

#portfolio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 30%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 30% 70%, rgba(168, 85, 247, 0.12) 0%, transparent 50%);
    pointer-events: none;
}

.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin: 60px 0;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 120px;
}

.filter-btn:hover {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.3);
}

/* Filter button focus styles */
.filter-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 25px;
    box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.2);
}

.work-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 50px;
    margin: 60px 0;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;

}

.work {
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.45);
    transition: all 0.4s ease;
    opacity: 1;
    transform: scale(1);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
    border: 1px solid var(--surface-border);
}

.work:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 35px 100px rgba(139, 92, 246, 0.18), 0 35px 90px rgba(34, 211, 238, 0.1);
    border-color: rgba(34, 211, 238, 0.45);
}

.work img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.work:hover img {
    transform: scale(1.1);
}

.layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(6, 8, 18, 0.96), rgba(34, 211, 238, 0.18)),
        radial-gradient(900px circle at 40% 10%, rgba(139, 92, 246, 0.45), transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 20px;
    text-align: center;
    opacity: 0;
    transition: all 0.3s ease;
    transform: translateY(20px);
    overflow-y: auto;
}

.work:hover .layer {
    opacity: 1;
    transform: translateY(0);
}

.project-badge {
    background: var(--gradient-primary);
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 10px;
    font-weight: 600;
    margin-bottom: 10px;
    animation: pulse 2s ease-in-out infinite;
}

.layer h3 {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin-bottom: 6px;
}

.project-subtitle {
    font-size: 12px;
    color: var(--primary-light);
    font-weight: 600;
    margin-bottom: 10px;
}

.project-description {
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 15px;
    max-height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-bottom: 12px;
}

.feature-tag {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.project-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    justify-content: center;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-light);
}

.stat-label {
    font-size: 10px;
    color: var(--text-secondary);
}

.project-links {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.project-link {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.project-link:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.portfolio-cta {
    text-align: center;
    margin-top: 80px;
    padding: 50px;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.portfolio-cta h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.portfolio-cta p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* Testimonials Section */
#testimonials {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--bg-light), var(--bg-dark));
    position: relative;
    overflow: hidden;
}

#testimonials::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 200px;
    height: 200px;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0.15;
    animation: float 15s ease-in-out infinite;
    filter: blur(40px);
}

#testimonials::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    opacity: 0.12;
    animation: float 20s ease-in-out infinite reverse;
    filter: blur(50px);
}

.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    height: 400px;
}

.testimonial-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.5s ease;
}

.testimonial-card.active {
    opacity: 1;
    transform: translateX(0);
}

.testimonial-content {
    background: linear-gradient(135deg, rgba(37, 29, 61, 0.7), rgba(26, 14, 46, 0.5));
    padding: 40px;
    border-radius: 20px;
    border: 1.5px solid var(--border-color);
    text-align: center;
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.15);
    position: relative;
    backdrop-filter: blur(10px);
}

.testimonial-content::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 30px;
    font-size: 60px;
    color: var(--primary-color);
    opacity: 0.3;
    font-family: serif;
}

.stars {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 25px;
}

.stars i {
    color: #fbbf24;
    font-size: 18px;
    animation: pulse 2s ease-in-out infinite;
}

.testimonial-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-style: italic;
}

.client-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.client-info img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.client-details h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.client-details span {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 500;
}

.testimonial-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 50px;
}

.nav-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.nav-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.dots-container {
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary-color);
    transform: scale(1.3);
}

/* Hide Dropdowns on Desktop (>768px) */
.tab-dropdown {
    display: none !important;
}

.portfolio-dropdown {
    display: none !important;
}

/* Contact Section */
#contact {
    padding: 140px 0;
    background: linear-gradient(135deg, var(--bg-dark), var(--bg-light));
    position: relative;
    overflow: hidden;
}

#contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 25% 25%, rgba(168, 85, 247, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(212, 175, 55, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.contact-col-1 {
    flex-basis: 48%;
}

.contact-col-2 {
    flex-basis: 48%;
}

.contact-info h3 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 25px;
    letter-spacing: -0.02em;
}

.contact-info>p {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 50px;
    font-weight: 400;
}

.contact-methods {
    margin-bottom: 60px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 35px;
    padding: 30px;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
}

.contact-method:hover {
    transform: translateX(12px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.method-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    flex-shrink: 0;
    animation: pulse 3s ease-in-out infinite;
}

.method-details h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.method-details p {
    font-size: 18px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 6px;
}

.method-details span {
    font-size: 15px;
    color: var(--text-muted);
    font-weight: 400;
}

.social-connect {
    margin-bottom: 40px;
}

.social-connect h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.download-cv {
    text-align: left;
}

.contact-form-container {
    background: var(--bg-card);
    padding: 50px;
    border-radius: 25px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.contact-form-container h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-align: center;
    letter-spacing: -0.02em;
}

.contact-form-container>p {
    font-size: 18px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 50px;
    font-weight: 400;
}

.contact-form {
    width: 100%;
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 18px;
    font-size: 16px;
    color: var(--text-primary);
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
    transform: translateY(-2px);
}

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

.contact-form button {
    width: 100%;
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 22px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    /* cursor: pointer; */
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: var(--shadow-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-form button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.contact-form button:active {
    transform: translateY(0);
}

/* Message Styles */
.message {
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
    font-weight: 500;
    text-align: center;
    animation: slideInFromTop 0.3s ease;
}

.message.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.message.error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

@keyframes slideInFromTop {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* FAQ Section */
.faq-section {
    margin-top: 80px;
    text-align: center;
}

.faq-section h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 50px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: left;
}

.faq-item {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

/* Desktop FAQ - show content normally */
.faq-question {
    cursor: default;
    padding: 0;
    display: block;
}

.faq-question h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.faq-icon {
    display: none;
}

.faq-answer {
    max-height: none;
    overflow: visible;
    padding: 0;
}

.faq-answer p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
    padding: 0;
}

/* Copyright */
.copyright {
    text-align: center;
    padding: 15px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    margin-top: auto;
    position: relative;
    bottom: -100px;
    width: 100%;
    flex-shrink: 0;
}

.copyright p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

.copyright #heart {
    color: var(--error-color);
    animation: pulse 2s ease-in-out infinite;
}

.copyright strong {
    color: var(--primary-color);
    font-weight: 600;
}


/* These styles have been consolidated into the main desktop (769px+) and mobile (768px and below) media queries */

/* These styles have been consolidated into the main mobile (768px and below) media query */

/* High DPI/Retina display optimizations */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {

    .logo,
    .about-image-container img,
    .work img,
    .client-info img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark mode support for responsive design */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-light: var(--bg-dark);
        --text-on-light: var(--text-primary);
    }
}

/* Mobile Navigation */
nav .fa-bars {
    display: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: none;
    outline: none;
}

nav .fa-bars:hover {
    color: #3b82f6;
    transform: scale(1.1);
    background: rgba(59, 130, 246, 0.2);
}

nav .fa-bars:active {
    transform: scale(0.95);
    background: rgba(59, 130, 246, 0.3);
}

nav .fa-circle-xmark {
    display: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
    position: absolute;
    top: 10px;
    left: 10px;
    transition: all 0.3s ease;
    padding: 0px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

nav .fa-circle-xmark:hover {
    color: var(--error-color);
    transform: rotate(90deg) scale(1.1);
    background: rgba(239, 68, 68, 0.2);
}

/* Responsive Design */
/* ===== Consolidated into main 1200px media query ===== */

/* These styles have been consolidated into the main desktop (769px+) media query */

@media only screen and (max-width: 768px) {

    /* Force clear any cached styles */
    #about * {
        box-sizing: border-box;
    }

    #header {
        background: linear-gradient(135deg, rgba(3, 7, 18, 0.9), rgba(17, 24, 39, 0.8)), url(images/Bg_Img.jpg);
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
        background-attachment: scroll;
        /* Changed from fixed for better mobile performance */
        height: auto;
        min-height: 100vh;
        position: relative;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    /* Maintain same overlay effects on mobile */
    #header::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 30% 40%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
            radial-gradient(circle at 70% 60%, rgba(16, 185, 129, 0.15) 0%, transparent 50%),
            radial-gradient(circle at 50% 80%, rgba(239, 68, 68, 0.1) 0%, transparent 50%);
        pointer-events: none;
        z-index: 1;
    }

    /* Keep floating shapes on mobile but smaller */
    .floating-shapes {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
        z-index: 1;
        opacity: 0.6;
        /* Reduced opacity for mobile */
    }

    .shape {
        position: absolute;
        border-radius: 50%;
        background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
        opacity: 0.08;
        /* Reduced for mobile */
        animation: float 8s ease-in-out infinite;
        /* Slower animation */
    }

    /* Smaller shapes for mobile */
    .shape-1 {
        width: 60px;
        height: 60px;
        top: 15%;
        left: 8%;
        animation-delay: 0s;
    }

    .shape-2 {
        width: 80px;
        height: 80px;
        top: 65%;
        right: 8%;
        animation-delay: 2s;
    }

    .shape-3 {
        width: 50px;
        height: 50px;
        bottom: 25%;
        left: 15%;
        animation-delay: 4s;
    }

    .shape-4 {
        width: 70px;
        height: 70px;
        top: 45%;
        right: 25%;
        animation-delay: 1s;
    }

    .container {
        padding: 10px 4%;
        max-width: 100%;
    }

    nav {
        padding: 8px 0;
    }

    .animated-text {
        padding: 0 10px;
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    #about {
        padding: 0;
    }

    #about .container {
        padding: 10px;
        max-width: 100%;
    }

    .header-text {
        margin-top: 0;
        padding: 5px 15px 30px;
        position: relative;
        z-index: 3;
        /* Ensure text is above effects */
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        min-height: auto;
        gap: 15px;
    }

    .header-text h1 {
        font-size: 1.7rem;
        line-height: 1.2;
        margin-bottom: 10px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }

    .typing-text {
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
        display: inline;
    }

    .subtitle {
        font-size: 14px;
        margin-bottom: 12px;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }

    .description {
        font-size: 14px;
        margin-bottom: 18px;
        line-height: 1.4;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }

    .header-buttons {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        margin-bottom: 0;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 220px;
        justify-content: center;
        padding: 10px 18px;
        font-size: 13px;
    }

    .social-preview {
        flex-direction: row !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        padding: 0 !important;
        align-items: center;
        margin-top: 0 !important;
    }

    .stat-item {
        text-align: center !important;
        flex: 1 !important;
        min-width: 90px !important;
        max-width: 110px !important;
        padding: 8px 6px !important;
        margin: 2px !important;
    }

    .stat-item h3 {
        font-size: 1.3rem;
    }

    .stat-item p {
        font-size: 10px;
    }

    nav .fa-bars {
        display: block;
    }

    nav .fa-circle-xmark {
        display: block;
    }

    nav ul {
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        position: fixed;
        top: 0;
        right: -250px;
        width: 250px;
        height: 100vh;
        padding-top: 10px;
        z-index: 1000;
        transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        flex-direction: column;
        align-items: center;
        backdrop-filter: blur(20px);
        box-shadow: var(--shadow-xl);
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Mobile menu overlay */
    nav ul::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(5px);
        opacity: 0;
        transition: all 0.3s ease;
        z-index: 999;
        pointer-events: none;
    }

    nav ul.show::before {
        opacity: 1;
        pointer-events: all;
    }

    nav ul.show {
        right: 0;
    }

    nav ul li {
        margin: 15px 0;
        width: 90%;
        text-align: center;
        opacity: 0;
        transform: translateX(30px);
        transition: all 0.3s ease;
    }

    /* Make menu items visible when menu is shown (either with .show class or inline style) */
    nav ul.show li,
    nav ul[style*="right: 0px"] li,
    nav ul[style*="right:0px"] li {
        opacity: 1;
        transform: translateX(0);
    }

    nav ul.show li:nth-child(1),
    nav ul[style*="right: 0px"] li:nth-child(1),
    nav ul[style*="right:0px"] li:nth-child(1) {
        transition-delay: 0.1s;
    }

    nav ul.show li:nth-child(2),
    nav ul[style*="right: 0px"] li:nth-child(2),
    nav ul[style*="right:0px"] li:nth-child(2) {
        transition-delay: 0.15s;
    }

    nav ul.show li:nth-child(3),
    nav ul[style*="right: 0px"] li:nth-child(3),
    nav ul[style*="right:0px"] li:nth-child(3) {
        transition-delay: 0.2s;
    }

    nav ul.show li:nth-child(4),
    nav ul[style*="right: 0px"] li:nth-child(4),
    nav ul[style*="right:0px"] li:nth-child(4) {
        transition-delay: 0.25s;
    }

    nav ul.show li:nth-child(5),
    nav ul[style*="right: 0px"] li:nth-child(5),
    nav ul[style*="right:0px"] li:nth-child(5) {
        transition-delay: 0.3s;
    }

    nav ul.show li:nth-child(6),
    nav ul[style*="right: 0px"] li:nth-child(6),
    nav ul[style*="right:0px"] li:nth-child(6) {
        transition-delay: 0.35s;
    }

    nav ul.show li:nth-child(7),
    nav ul[style*="right: 0px"] li:nth-child(7),
    nav ul[style*="right:0px"] li:nth-child(7) {
        transition-delay: 0.4s;
    }

    nav ul li a {
        color: white;
        font-size: 16px;
        font-weight: 600;
        padding: 12px 15px;
        display: block;
        border-radius: 8px;
        transition: all 0.3s ease;
    }

    nav ul li a:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(-2px);
    }

    /* Mobile navigation focus styles */
    nav ul li a:focus {
        outline: 2px solid rgba(255, 255, 255, 0.8);
        outline-offset: 2px;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.15);
        transform: translateY(-1px);
    }

    body.menu-open {
        overflow: hidden;
    }

    .sub-title {
        font-size: 2.2rem;
        text-align: center;
    }

    .section-header h1 {
        font-size: 2.2rem;
    }

    .section-subtitle {
        font-size: 16px;
        padding: 0 15px;
    }

    /* About Section Mobile Layout - Complete Restructure */
    #about .row {
        display: flex !important;
        flex-direction: column !important;
        gap: 0;
        align-items: center !important;
        text-align: center !important;
        padding: 0;
        justify-content: center !important;
        width: 100% !important;
        grid-template-columns: none !important;
        grid-template-areas: none !important;
    }

    .about-col-1,
    .about-col-2,
    .contact-col-1,
    .contact-col-2 {
        flex-basis: 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        grid-area: unset !important;
    }

    /* Mobile Layout: Image at Top */
    .about-col-1 {
        order: 1 !important;
        margin-bottom: 0px;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        text-align: center !important;
        grid-area: unset !important;
        min-width: unset !important;
    }

    .about-image-container {
        max-width: 280px;
        width: 80%;
        margin: 0 auto 30px auto !important;
        position: relative;
        border-radius: 20px;
        overflow: hidden;
        box-shadow: var(--shadow-lg);
        display: block;
    }

    .about-image-container img {
        width: 100%;
        height: auto;
        border-radius: 20px;
        object-fit: cover;
        aspect-ratio: 1/1;
        transition: transform 0.3s ease;
    }

    .about-image-container:hover img {
        transform: scale(1.05);
    }

    .image-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(45deg, rgba(59, 130, 246, 0.2), rgba(16, 185, 129, 0.2));
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .about-image-container:hover .image-overlay {
        opacity: 1;
    }

    /* Mobile Layout: About Text Below Image */
    .about-col-2 {
        order: 2 !important;
        align-items: center !important;
        text-align: center !important;
        padding: 0 20px;
        margin-bottom: 40px;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        width: 100% !important;
        grid-area: unset !important;
        min-width: unset !important;
    }

    .about-description {
        text-align: center !important;
        width: 100%;
        max-width: 100%;
        padding: 0 10px;
        margin-bottom: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* About Title Mobile */
    .sub-title {
        text-align: center !important;
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 20px;
        line-height: 1.2;
        width: 100%;
    }

    /* About Paragraph Mobile */
    .intro-text,
    .mission-text {
        font-size: clamp(14px, 4vw, 16px);
        text-align: center !important;
        line-height: 1.6;
        margin-bottom: 20px;
        padding: 0 5px;
        width: 100%;
    }

    /* Hide desktop tab navigation on mobile */
    .about-col-1 .tab-titles .tab-links {
        display: none !important;
    }

    /* Mobile Tab Dropdown - Show on Mobile */
    .tab-dropdown {
        display: block !important;
        width: 100%;
        max-width: 300px;
        margin: 30px auto 0 auto;
        position: relative;
    }

    .tab-dropdown-btn {
        width: 100%;
        padding: 15px 20px;
        background: var(--bg-card);
        border: 2px solid var(--border-color);
        border-radius: 25px;
        color: var(--text-primary);
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        transition: all 0.3s ease;
    }

    .tab-dropdown-btn:hover {
        border-color: var(--primary-color);
        background: var(--bg-secondary);
    }

    .dropdown-arrow {
        transition: transform 0.3s ease;
        font-size: 12px;
    }

    .tab-dropdown-btn.active .dropdown-arrow {
        transform: rotate(180deg);
    }

    .tab-dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-card);
        border: 2px solid var(--border-color);
        border-radius: 15px;
        box-shadow: var(--shadow-lg);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        z-index: 10;
        margin-top: 5px;
    }

    .tab-dropdown-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .tab-dropdown-item {
        padding: 15px 20px;
        display: flex;
        align-items: center;
        gap: 15px;
        cursor: pointer;
        color: var(--text-secondary);
        font-weight: 500;
        transition: all 0.3s ease;
        border-bottom: 1px solid var(--border-color);
    }

    .tab-dropdown-item:last-child {
        border-bottom: none;
    }

    .tab-dropdown-item:hover {
        background: var(--bg-secondary);
        color: var(--text-primary);
    }

    .tab-dropdown-item.active {
        background: var(--gradient-primary);
        color: white;
    }

    .tab-dropdown-item i {
        font-size: 18px;
        width: 20px;
        text-align: center;
    }

    /* Tab Contents Mobile - Center Aligned */
    .tab-contents {
        margin-top: 30px;
        padding: 0 20px;
        text-align: center;
        width: 100%;
    }

    .tab-contents.active-tab {
        display: block;
        animation: slideInUp 0.5s ease;
    }

    /* About Stats Responsive */
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 20px;
        margin: 30px 0;
    }

    .stat-card {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding: 15px 10px;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .stat-info h3 {
        font-size: 20px;
    }

    .stat-info p {
        font-size: 11px;
    }

    /* Motivation Section Responsive */
    .motivation-section {
        margin: 30px 0;
    }

    .motivation-section h3 {
        font-size: 24px;
    }

    .motivation-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 20px;
    }

    .motivation-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
        align-self: center;
    }

    .motivation-content h4 {
        font-size: 16px;
    }

    .motivation-content p {
        font-size: 13px;
    }

    .expertise-section {
        margin: 30px 0;
        padding: 25px 0;
    }

    .expertise-section h3 {
        font-size: 22px;
        margin-bottom: 25px;
    }

    .expertise-highlight {
        grid-template-columns: 1fr;
        gap: 15px;
        margin: 0 20px;
    }

    .expertise-item {
        padding: 18px 15px;
        min-height: 140px;
    }

    .expertise-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
        margin-bottom: 10px;
    }

    .expertise-item h4 {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .expertise-item p {
        font-size: 12px;
    }

    .expertise-item {
        padding: 25px 20px;
    }

    /* Tab Navigation Mobile - Enhanced */
    .tab-titles {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        margin: 0;
        padding: 0;
        border-bottom: none;
    }

    .tab-links {
        padding: 15px 30px;
        background: var(--bg-secondary);
        border-radius: 30px;
        border: 2px solid var(--border-color);
        text-align: center;
        min-width: 250px;
        width: 100%;
        max-width: 320px;
        font-size: 16px;
        font-weight: 600;
        color: var(--text-secondary);
        cursor: pointer;
        transition: all 0.3s ease;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

    .tab-links i {
        font-size: 18px;
    }

    .tab-links:hover {
        background: var(--bg-card);
        border-color: var(--primary-color);
        color: var(--text-primary);
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

    .tab-links.active-link {
        background: var(--gradient-primary);
        border-color: var(--primary-color);
        color: white;
        transform: translateY(-2px);
        box-shadow: var(--shadow-glow);
    }

    .tab-links.active-link i {
        color: white;
    }

    /* Tab Contents Mobile - Center Aligned */
    .tab-contents {
        margin-top: 30px;
        padding: 0;
        text-align: center;
        width: 100%;
    }

    .tab-contents.active-tab {
        display: block;
        animation: slideInUp 0.5s ease;
    }

    /* Force center alignment for all about section elements on mobile */
    #about * {
        text-align: center !important;
    }

    #about .about-col-1,
    #about .about-col-2 {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        width: 100% !important;
    }

    /* Skills Grid Mobile - Center Aligned */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 10px;
        max-width: 600px;
        margin: 0 auto;
    }

    .skill-category {
        padding: 10px;
        border-radius: 20px;
        background: var(--bg-card);
        border: 2px solid var(--border-color);
        box-shadow: var(--shadow-md);
        transition: all 0.3s ease;
        text-align: center;
    }

    .skill-category:hover {
        border-color: var(--primary-color);
        transform: translateY(-3px);
        box-shadow: var(--shadow-lg);
    }

    .skill-category h4 {
        font-size: 20px;
        margin-bottom: 25px;
        gap: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        color: var(--primary-color);
    }

    .skill-category h4 i {
        width: 40px;
        height: 40px;
        font-size: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--gradient-primary);
        border-radius: 50%;
        color: white;
    }

    .skill-item {
        margin-bottom: 20px;
        padding: 20px 15px;
        background: var(--bg-secondary);
        border-radius: 15px;
        border: 1px solid var(--border-color);
        transition: all 0.3s ease;
        text-align: center;
    }

    .skill-item:hover {
        background: var(--bg-card);
        border-color: var(--primary-color);
        transform: translateY(-2px);
    }

    .skill-name {
        font-size: 16px;
        font-weight: 600;
        color: var(--text-primary);
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

    .skill-name i {
        font-size: 18px;
        color: var(--primary-color);
    }

    .skill-description {
        font-size: 14px;
        line-height: 1.5;
        color: var(--text-secondary);
        text-align: center;
    }

    /* Experience/Timeline Section Mobile - Center Aligned */
    .timeline {
        position: relative;
        padding: 20px 0;
        margin: 0 auto;
        max-width: 600px;
        text-align: center;
    }

    .timeline::before {
        display: none;
        /* Hide timeline line on mobile for cleaner look */
    }

    .timeline-item {
        padding: 0;
        margin-bottom: 30px;
        position: relative;
    }

    .timeline-dot {
        position: relative;
        left: auto;
        width: 20px;
        height: 20px;
        font-size: 12px;
        background: var(--gradient-primary);
        border: 3px solid var(--bg-dark);
        z-index: 2;
        margin: 0 auto 15px auto;
    }

    .timeline-content {
        padding: 25px 20px;
        margin: 0;
        border-radius: 15px;
        background: var(--bg-card);
        border: 2px solid var(--border-color);
        box-shadow: var(--shadow-md);
        position: relative;
        transition: all 0.3s ease;
        text-align: center;
    }

    .timeline-content:hover {
        border-color: var(--primary-color);
        transform: translateY(-3px);
        box-shadow: var(--shadow-lg);
    }

    .timeline-content::before {
        display: none;
        /* Hide arrow on mobile */
    }

    .timeline-content h4 {
        font-size: 20px;
        margin-bottom: 8px;
        color: var(--primary-color);
        font-weight: 700;
        text-align: center;
    }

    .timeline-content .company {
        font-size: 16px;
        margin-bottom: 8px;
        color: var(--text-primary);
        font-weight: 600;
        text-align: center;
    }

    .timeline-content .duration {
        font-size: 13px;
        margin-bottom: 15px;
        color: var(--text-muted);
        background: var(--bg-secondary);
        padding: 5px 12px;
        border-radius: 15px;
        display: inline-block;
    }

    .timeline-content p {
        font-size: 15px;
        line-height: 1.6;
        color: var(--text-secondary);
        margin-bottom: 15px;
        text-align: center;
    }

    .achievements {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
        margin-top: 15px;
    }

    .achievement-tag {
        font-size: 12px;
        background: var(--gradient-primary);
        color: white;
        padding: 5px 12px;
        border-radius: 15px;
        font-weight: 600;
    }

    /* Education Section Mobile - Center Aligned */
    .education-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 10px;
        max-width: 600px;
        margin: 0 auto;
    }

    .education-item {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 30px 25px;
        background: var(--bg-card);
        border-radius: 20px;
        border: 2px solid var(--border-color);
        box-shadow: var(--shadow-md);
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }

    .education-item:hover {
        border-color: var(--primary-color);
        transform: translateY(-5px);
        box-shadow: var(--shadow-lg);
    }

    .education-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: var(--gradient-primary);
        transform: scaleX(0);
        transition: transform 0.3s ease;
    }

    .education-item:hover::before {
        transform: scaleX(1);
    }

    .education-icon {
        align-self: center;
        width: 70px;
        height: 70px;
        font-size: 30px;
        margin: 0 auto 20px auto;
        background: var(--gradient-primary);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        box-shadow: var(--shadow-md);
        transition: all 0.3s ease;
    }

    .education-item:hover .education-icon {
        transform: scale(1.1) rotate(5deg);
        box-shadow: var(--shadow-lg);
    }

    .education-details {
        text-align: center;
    }

    .education-details h4 {
        font-size: 20px;
        margin-bottom: 10px;
        color: var(--primary-color);
        font-weight: 700;
        text-align: center;
    }

    .education-details .institution {
        font-size: 16px;
        margin-bottom: 8px;
        color: var(--text-secondary);
        font-style: italic;
        text-align: center;
    }

    .education-details .duration {
        font-size: 13px;
        margin-bottom: 15px;
        color: var(--text-muted);
        background: var(--bg-secondary);
        padding: 5px 15px;
        border-radius: 15px;
        display: inline-block;
    }

    .education-highlights {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
        margin-top: 15px;
    }

    .highlight-tag {
        font-size: 12px;
        background: var(--gradient-primary);
        color: white;
        padding: 5px 12px;
        border-radius: 15px;
        font-weight: 600;
    }

    .skill-bar {
        height: 6px;
    }

    .skill-description {
        font-size: 12px;
        margin-top: 3px;
    }

    /* Services Section Mobile */
    .services-list {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 60px;
        padding: 0 15px;
    }

    .service-card {
        padding: 30px 25px;
        background: var(--bg-card);
        border-radius: 15px;
        border: 1px solid var(--border-color);
        text-align: center;
        box-shadow: var(--shadow-md);
        transition: all 0.3s ease;
    }

    .service-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-lg);
        border-color: var(--primary-color);
    }

    .service-icon {
        width: 70px;
        height: 70px;
        font-size: 28px;
        margin: 0 auto 20px auto;
        animation: pulse 4s ease-in-out infinite, rotate360 120s linear infinite;
    }

    .service-card h2 {
        font-size: 22px;
        margin-bottom: 15px;
        line-height: 1.3;
    }

    .service-description p {
        font-size: 15px;
        line-height: 1.6;
        opacity: 0.9;
    }

    .process-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .process-step {
        padding: 25px 15px;
    }

    /* Portfolio Filter Mobile */
    .portfolio-filter {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin: 30px 0;
        padding: 0 15px;
        position: relative;
        z-index: 1001;
    }

    /* Hide desktop filter buttons on mobile */
    .filter-btn {
        display: none !important;
    }

    /* Show portfolio dropdown on mobile */
    .portfolio-dropdown {
        display: block !important;
        width: 100%;
        max-width: 300px;
        position: relative;
        z-index: 1001;
    }

    .portfolio-dropdown-btn {
        width: 100%;
        padding: 15px 20px;
        background: var(--bg-card);
        border: 2px solid var(--border-color);
        border-radius: 15px;
        color: var(--text-primary);
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        transition: all 0.3s ease;
    }

    .portfolio-dropdown-btn:hover {
        border-color: var(--primary-color);
        background: var(--bg-hover);
    }

    .portfolio-dropdown-btn.active {
        border-color: var(--primary-color);
        background: var(--bg-hover);
    }

    .portfolio-dropdown-btn .dropdown-arrow {
        font-size: 12px;
        transition: transform 0.3s ease;
    }

    .portfolio-dropdown-btn.active .dropdown-arrow {
        transform: rotate(180deg);
    }

    .portfolio-dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-card);
        border: 2px solid var(--border-color);
        border-radius: 15px;
        box-shadow: var(--shadow-lg);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        z-index: 1001;
        margin-top: 5px;
    }

    .portfolio-dropdown-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .portfolio-dropdown-item {
        padding: 15px 20px;
        display: flex;
        align-items: center;
        gap: 15px;
        cursor: pointer;
        color: var(--text-secondary);
        font-weight: 500;
        transition: all 0.3s ease;
        border-bottom: 1px solid var(--border-color);
    }

    .portfolio-dropdown-item:last-child {
        border-bottom: none;
    }

    .portfolio-dropdown-item:hover {
        background: var(--bg-hover);
        color: var(--primary-color);
    }

    .portfolio-dropdown-item.active {
        background: var(--bg-hover);
        color: var(--primary-color);
    }

    .portfolio-dropdown-item i {
        font-size: 18px;
        width: 20px;
        text-align: center;
    }

    /* Portfolio Grid Mobile */
    .work-list {
        grid-template-columns: 1fr;
        gap: 30px;
        margin: 30px 0;
        padding: 0 15px;
    }

    .work {
        border-radius: 15px;
        overflow: hidden;
        box-shadow: var(--shadow-md);
        transition: all 0.3s ease;
    }

    .work:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-lg);
    }

    .work img {
        height: 220px;
        width: 100%;
        object-fit: cover;
    }

    .layer {
        padding: 20px;
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.95), rgba(16, 185, 129, 0.95));
    }

    .project-badge {
        font-size: 10px;
        padding: 4px 10px;
        margin-bottom: 10px;
    }

    .layer h3 {
        font-size: 18px;
        margin-bottom: 8px;
        line-height: 1.3;
    }

    .project-subtitle {
        font-size: 12px;
        margin-bottom: 10px;
        opacity: 0.9;
    }

    .project-description {
        font-size: 13px;
        max-height: 60px;
        line-height: 1.4;
        margin-bottom: 15px;
    }

    .feature-tags {
        margin-bottom: 15px;
    }

    .feature-tag {
        font-size: 10px;
        padding: 3px 8px;
        margin: 2px;
        border-radius: 12px;
    }

    .project-links {
        gap: 10px;
        justify-content: center;
    }

    .project-link {
        padding: 8px 16px;
        font-size: 11px;
        border-radius: 20px;
        min-width: 80px;
    }

    .testimonials-slider {
        height: auto;
        min-height: 300px;
    }

    .testimonial-content {
        padding: 20px;
    }

    .testimonial-content p {
        font-size: 14px;
        line-height: 1.6;
    }

    .testimonial-navigation {
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 15px !important;
        margin-top: 30px !important;
        flex-wrap: nowrap !important;
    }

    .nav-btn {
        width: 40px !important;
        height: 40px !important;
        font-size: 14px !important;
        flex-shrink: 0 !important;
    }

    .contact-info h3 {
        text-align: center;
    }

    .contact-info p {
        text-align: center;
    }

    .social-connect {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 15px !important;
        margin-top: 20px !important;
    }

    .download-cv {
        text-align: center;
    }

    .dots-container {
        display: flex !important;
        gap: 8px !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
    }

    .dot {
        width: 10px !important;
        height: 10px !important;
        flex-shrink: 0 !important;
    }

    /* Contact Section Mobile */
    .contact-form-container {
        padding: 25px 20px;
        background: var(--bg-card);
        border-radius: 15px;
        border: 1px solid var(--border-color);
        margin: 0 15px;
    }


    .contact-form-container h3 {
        font-size: clamp(1.4rem, 5vw, 1.8rem);
        margin-bottom: 15px;
        text-align: center;
    }

    .contact-form-container>p {
        font-size: 15px;
        text-align: center;
        margin-bottom: 25px;
        opacity: 0.9;
    }

    /* Contact Methods Mobile */
    .contact-method {
        padding: 25px 20px;
        flex-direction: column;
        text-align: center;
        gap: 20px;
        background: var(--bg-card);
        border-radius: 15px;
        border: 1px solid var(--border-color);
        margin-bottom: 20px;
        transition: all 0.3s ease;
    }

    .contact-method:hover {
        transform: translateY(-3px);
        border-color: var(--primary-color);
        box-shadow: var(--shadow-md);
    }

    .method-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
        margin: 0 auto;
        background: var(--gradient-primary);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .method-info h4 {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .method-info p {
        font-size: 14px;
        opacity: 0.9;
    }

    /* Contact Form Mobile */
    .form-group {
        margin-bottom: 20px;
    }

    .form-group label {
        font-size: 14px;
        margin-bottom: 8px;
        display: block;
        font-weight: 500;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 15px;
        font-size: 15px;
        width: 100%;
        border-radius: 10px;
        background: var(--bg-secondary);
        border: 1px solid var(--border-color);
        color: var(--text-primary);
        transition: all 0.3s ease;
    }

    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    }

    .contact-form button {
        padding: 16px 32px;
        font-size: 16px;
        border-radius: 25px;
        background: var(--gradient-primary);
        border: none;
        color: white;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        width: auto;
        display: block;
        margin: 0 auto;
    }

    .contact-form button:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }

    /* FAQ Section Mobile */
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 15px;
    }

    .faq-item {
        background: var(--bg-card);
        border-radius: 15px;
        border: 1px solid var(--border-color);
        overflow: hidden;
        transition: all 0.3s ease;
        padding: 0px;
    }

    .faq-item:hover {
        border-color: var(--primary-color);
    }

    .faq-item.active {
        border-color: var(--primary-color);
        box-shadow: var(--shadow-md);
    }

    .faq-question {
        padding: 10px 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        background: transparent;
        transition: all 0.3s ease;
        user-select: none;
    }

    .faq-question:hover {
        background: var(--bg-hover);
    }

    .faq-question h4 {
        font-size: 16px;
        margin: 0;
        font-weight: 600;
        color: var(--text-primary);
        flex: 1;
        text-align: left;
    }

    .faq-icon {
        font-size: 16px;
        color: var(--primary-color);
        transition: transform 0.3s ease;
        width: 20px;
        height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .faq-item.active .faq-icon {
        transform: rotate(180deg);
    }

    .faq-answer {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        padding: 0 20px;
    }

    .faq-item.active .faq-answer {
        max-height: 200px;
        padding: 0 20px 20px 20px;
    }

    .faq-answer p {
        font-size: 14px;
        line-height: 1.6;
        color: var(--text-secondary);
        margin: 0;
        padding-top: 10px;
    }

    /* Testimonials Mobile */
    .testimonials-slider {
        height: auto;
        min-height: 350px;
        margin: 0 15px;
        border-radius: 15px;
        overflow: hidden;
    }

    .testimonial-content {
        padding: 25px 20px;
        text-align: center;
    }

    .testimonial-content p {
        font-size: 15px;
        line-height: 1.7;
        margin-bottom: 20px;
    }

    .client-info {
        gap: 15px;
        align-items: center;
        justify-content: center;
    }

    .client-info img {
        width: 50px;
        height: 50px;
        border-radius: 50%;
    }

    .client-details h4 {
        font-size: 16px;
        margin-bottom: 5px;
    }

    .client-details span {
        font-size: 13px;
        opacity: 0.8;
    }

    .stars {
        margin-bottom: 20px;
        justify-content: center;
    }

    .stars i {
        font-size: 16px;
        margin: 0 2px;
    }

    .copyright p {
        font-size: 13px;
        padding: 0 15px;
        line-height: 1.4;
        margin: 0;
    }

    .portfolio-cta {
        padding: 30px 20px;
        margin-top: 50px;
        text-align: center;
        background: var(--bg-card);
        border-radius: 15px;
        border: 1px solid var(--border-color);
        margin-left: 15px;
        margin-right: 15px;
    }

    .portfolio-cta h3 {
        font-size: clamp(1.4rem, 5vw, 1.8rem);
        margin-bottom: 15px;
    }

    .portfolio-cta p {
        font-size: 15px;
        margin-bottom: 20px;
        opacity: 0.9;
    }

    /* Section Headers Mobile */
    .section-header h1 {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        text-align: center;
        margin-bottom: 15px;
    }

    .section-subtitle {
        font-size: clamp(14px, 4vw, 16px);
        text-align: center;
        padding: 0 20px;
        margin-bottom: 30px;
        opacity: 0.9;
    }

    /* Improved Container Mobile */
    .container {
        padding: 10px 15px;
        max-width: 100%;
    }

    #about .container {
        padding: 10px 15px;
        max-width: 100%;
    }

    /* Section Spacing Mobile */
    section {
        padding: 50px 0;
    }

    /* Navigation Improvements Mobile */
    nav ul li a {
        color: black;
        font-size: 16px;
        font-weight: 600;
        padding: 15px 20px;
        display: block;
        border-radius: 10px;
        transition: all 0.3s ease;
        text-align: center;
    }

    nav ul li a:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(-2px);
    }

    /* Hide Desktop Elements on Mobile */
    .hide-mobile {
        display: none !important;
    }

    .show-mobile {
        display: block !important;
    }

    /* Mobile-specific About Section Layout */
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 20px 15px;
        margin: 30px auto;
        max-width: 400px;
    }

    /* Additional mobile about section fixes */
    #about {
        text-align: center !important;
    }

    #about .container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    #about .row {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        max-width: 100% !important;
        grid-template-columns: none !important;
        grid-template-areas: none !important;
    }

    /* Override desktop grid styles completely */
    #about .about-col-1,
    #about .about-col-2 {
        grid-area: unset !important;
        min-width: unset !important;
        flex-basis: 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }

    /* Mobile layout order: Image -> About content -> Tabs -> Tab contents */
    #about .about-col-1 {
        order: 1 !important;
    }

    #about .about-col-2 {
        order: 2 !important;
    }

    /* Within about-col-1, reorder the content */
    #about .about-col-1 .about-image-container {
        order: 1;
        margin-bottom: 30px;
    }

    #about .about-col-1 .tab-titles {
        order: 3;
        margin-top: 0;
    }

    #about .about-col-1 .tab-contents {
        order: 4;
    }

    /* Style the about-col-2 to have proper spacing */
    #about .about-col-2 {
        margin: 20px 0 30px 0;
        padding: 0 20px;
    }

    .stat-card {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding: 20px 15px;
        background: var(--bg-card);
        border-radius: 15px;
        border: 1px solid var(--border-color);
    }

    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
        margin: 0 auto 10px auto;
        background: var(--gradient-primary);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
    }

    .stat-info h3 {
        font-size: 24px;
        margin-bottom: 5px;
        color: var(--primary-color);
    }

    .stat-info p {
        font-size: 12px;
        color: var(--text-secondary);
    }

    /* Hide desktop navigation on mobile */
    .tab-navigation {
        display: none;
    }

    /* Show mobile dropdown */
    .tab-dropdown {
        display: flex;
        justify-content: center;
        margin: 10px;
        width: 300px;
        padding: 0 5px;
    }

    /* Mobile Tab Content Spacing */
    .tab-content {
        padding: 0 20px;
        margin: 20px auto;
        max-width: 600px;
    }

    .tab-content[style*="display: block"] {
        animation: fadeInUp 0.3s ease-in-out;
    }

    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }

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

    .expertise-section {
        margin: 30px auto;
        padding: 30px 20px;
        max-width: 600px;
        text-align: center;
    }

    .expertise-section h3 {
        font-size: 24px;
        margin-bottom: 25px;
        text-align: center;
    }

    .expertise-highlight {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .expertise-item {
        padding: 25px 20px;
        text-align: center;
        background: var(--bg-card);
        border-radius: 15px;
        border: 1px solid var(--border-color);
        transition: all 0.3s ease;
    }

    .expertise-item:hover {
        transform: translateY(-3px);
        border-color: var(--primary-color);
    }

    .expertise-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
        margin: 0 auto 15px auto;
        background: var(--gradient-primary);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
    }

    .expertise-item h4 {
        font-size: 18px;
        margin-bottom: 10px;
        color: var(--primary-color);
    }

    .expertise-item p {
        font-size: 14px;
        line-height: 1.5;
        color: var(--text-secondary);
    }

    .motivation-section {
        margin: 30px auto;
        padding: 30px 20px;
        max-width: 600px;
        text-align: center;
    }

    .motivation-section h3 {
        font-size: 24px;
        margin-bottom: 25px;
        text-align: center;
    }

    .motivation-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .motivation-item {
        padding: 25px 20px;
        text-align: center;
        background: var(--bg-card);
        border-radius: 15px;
        border: 1px solid var(--border-color);
        transition: all 0.3s ease;
    }

    .motivation-item:hover {
        transform: translateY(-3px);
        border-color: var(--primary-color);
    }

    .motivation-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
        margin: 0 auto 15px auto;
        background: var(--gradient-primary);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
    }

    .motivation-content h4 {
        font-size: 18px;
        margin-bottom: 10px;
        color: var(--primary-color);
    }

    .motivation-content p {
        font-size: 14px;
        line-height: 1.5;
        color: var(--text-secondary);
    }

    /* IMPORTANT: Force mobile about section layout order */
    #about .container .row {
        display: flex !important;
        flex-direction: column !important;
    }

    #about .about-col-1 {
        order: 1 !important;
        display: flex !important;
        flex-direction: column !important;
    }

    #about .about-col-1 .about-image-container {
        order: 1 !important;
    }

    #about .about-col-2 {
        display: none !important;
        /* Hide original about content on mobile */
    }

    /* Show mobile about content */
    .mobile-about-content {
        order: 2 !important;
        display: flex !important;
        flex-direction: column !important;
        text-align: center !important;
        margin: 30px 0 !important;
        padding: 0 20px !important;
    }

    .mobile-about-content .sub-title {
        font-size: 28px !important;
        margin-bottom: 20px !important;
        color: var(--text-primary) !important;
    }

    .mobile-about-content .about-description {
        max-width: 100% !important;
    }

    .mobile-about-content .intro-text,
    .mobile-about-content .mission-text {
        font-size: 16px !important;
        line-height: 1.6 !important;
        margin-bottom: 15px !important;
        color: var(--text-secondary) !important;
    }

    #about .about-col-1 .tab-titles {
        order: 3 !important;
    }

    #about .about-col-1 .tab-contents {
        order: 4 !important;
    }
}

/* These styles have been consolidated into the main mobile (768px and below) media query */

/* These styles have been consolidated into the main mobile (768px and below) media query */

/* Responsive Utilities - Default (Desktop) */
.hide-mobile {
    display: block !important;
}

.show-mobile {
    display: none !important;
}

/* Responsive Text Utilities */
.text-responsive {
    font-size: clamp(1rem, 4vw, 2rem);
}

.heading-responsive {
    font-size: clamp(1.5rem, 6vw, 3.5rem);
}

/* Responsive Container */
.container-fluid {
    width: 100%;
    max-width: 100%;
    padding: 0 20px;
}

/* ===== Consolidated into main 480px media query ===== */

/* Responsive Grid System */
.responsive-grid {
    display: grid;
    gap: 20px;
}

.responsive-grid.cols-1 {
    grid-template-columns: 1fr;
}

.responsive-grid.cols-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.responsive-grid.cols-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.responsive-grid.cols-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* These styles have been consolidated into the main desktop (769px+) media query */

/* Responsive Spacing */
.spacing-responsive {
    padding: clamp(20px, 5vw, 50px);
    margin: clamp(10px, 3vw, 30px) 0;
}

/* Touch-friendly buttons and mobile improvements - moved to consolidated media query */

/* Responsive Images */
.responsive-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: cover;
}

/* Mobile-specific improvements - moved to consolidated media query */

/* Additional Infinite Animations */
@keyframes rotate360 {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes scaleUpDown {

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

    50% {
        transform: scale(1.2);
    }
}

@keyframes slideLeftRight {

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

    50% {
        transform: translateX(20px);
    }
}

@keyframes colorShift {
    0% {
        filter: hue-rotate(0deg);
    }

    50% {
        filter: hue-rotate(180deg);
    }

    100% {
        filter: hue-rotate(360deg);
    }
}

@keyframes borderGlow {

    0%,
    100% {
        border-color: var(--primary-color);
        box-shadow: 0 0 5px var(--primary-color);
    }

    25% {
        border-color: var(--secondary-color);
        box-shadow: 0 0 15px var(--secondary-color);
    }

    50% {
        border-color: var(--accent-color);
        box-shadow: 0 0 25px var(--accent-color);
    }

    75% {
        border-color: var(--secondary-color);
        box-shadow: 0 0 15px var(--secondary-color);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

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

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Apply infinite animations to various elements */
.service-icon {
    animation: pulse 3s ease-in-out infinite, rotate360 30s linear infinite;
}

.expertise-icon {
    animation: pulse 2s ease-in-out infinite, rotate360 30s linear infinite;
}

.timeline-dot {
    animation: pulse 2s ease-in-out infinite, borderGlow 5s ease-in-out infinite;
}

.step-number {
    animation: pulse 2s ease-in-out infinite, slideLeftRight 3s ease-in-out infinite;
}

.project-badge {
    animation: pulse 2s ease-in-out infinite, colorShift 8s linear infinite;
}

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

.stars i:nth-child(1) {
    animation-delay: 0s;
}

.stars i:nth-child(2) {
    animation-delay: 0.2s;
}

.stars i:nth-child(3) {
    animation-delay: 0.4s;
}

.stars i:nth-child(4) {
    animation-delay: 0.6s;
}

.stars i:nth-child(5) {
    animation-delay: 0.8s;
}

.method-icon {
    animation: pulse 3s ease-in-out infinite, float 6s ease-in-out infinite;
}

.copyright #heart {
    animation: pulse 2s ease-in-out infinite, scaleUpDown 3s ease-in-out infinite;
}

/* Smooth scrolling enhancement */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

/* Selection styling */
::selection {
    background: var(--primary-color);
    color: white;
}

/* Focus styles for accessibility */
button:focus,
input:focus,
textarea:focus,
select:focus,
a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 8px;
}

/* Specific focus styles for navigation links */
nav ul li a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.1);
    backdrop-filter: blur(10px);
}

/* Ensure all text is readable */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Final message styling */
#msg {
    display: none;
    margin-top: 20px;
}

/* Responsive Stats Section moved to consolidated media query */

/* These styles have been consolidated into the main desktop (769px+) media query */

/* All mobile styles have been consolidated into the main mobile media query (max-width: 768px) */

/* Animation for tab content */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* =============================================================
   DESKTOP STYLES - Consolidated Media Query (min-width: 769px)
   ============================================================= */
@media only screen and (min-width: 769px) {

    /* About Section Desktop Layout */
    #about .row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "image content"
            "motivation content";
        gap: 60px 100px;
        align-items: start;
        max-width: 100%;
        margin: 0 auto;
        padding: 40px 0;
    }

    #about .about-col-1 {
        grid-area: image;
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        min-width: 350px;
    }

    #about .about-col-2 {
        grid-area: content;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        min-width: 500px;
        text-align: left !important;
    }

    #about .motivation-section {
        grid-area: motivation;
        width: 100%;
        margin-top: 30px;
    }

    #about .about-description {
        margin-bottom: 50px;
        width: 100%;
        text-align: left !important;
    }

    #about .intro-text,
    #about .mission-text {
        text-align: left !important;
    }

    #about .sub-title {
        text-align: left !important;
    }

    /* Motivation Section Desktop Styling */
    .motivation-section {
        margin: 30px 0 0 0;
        padding: 30px;
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.03), rgba(16, 185, 129, 0.03));
        border-radius: 20px;
        border: 1px solid rgba(59, 130, 246, 0.1);
    }

    .motivation-section h3 {
        font-size: 24px;
        margin-bottom: 20px;
        text-align: left;
    }

    .motivation-grid {
        gap: 15px;
        padding: 20px;
    }

    .motivation-item {
        padding: 20px;
        background: rgba(255, 255, 255, 0.02);
    }

    .motivation-item:hover {
        transform: translateX(5px) translateY(-2px);
        background: rgba(59, 130, 246, 0.05);
    }

    /* Contact Section Desktop Layout */
    #contact .row {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        gap: 100px !important;
        flex-wrap: nowrap !important;
    }

    .contact-col-1 {
        flex-basis: 48% !important;
        width: 48% !important;
    }

    .contact-col-2 {
        flex-basis: 48% !important;
        width: 48% !important;
    }
}

/* Mobile Responsive Cursor Styles */
@media (max-width: 768px) {
    body {
        cursor: auto !important;
        /* Show default cursor on mobile */
    }

    .custom-cursor,
    .cursor-trail {
        display: none !important;
        /* Hide custom cursor on mobile */
    }

    a,
    button,
    .clickable,
    input,
    textarea,
    select {
        cursor: pointer !important;
        /* Show pointer cursor for interactive elements */
    }
}