:root {
    --primary-color: #FFD700;
    --primary-color-dark: #E6C200;
    --primary-color-light: #FFF0A8;
    --secondary-color: #FFF8E1;
    --dark-color: #222222;
    --light-color: #FFFFFF;
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #f9f9f9;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --box-shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --section-spacing: 120px;
}

/* Mobile-first approach - base styles for mobile */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
    font-size: 16px;
}

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

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

/* Section styling */
section {
    padding: 60px 0;
    position: relative;
}

section:nth-child(even) {
    background-color: var(--bg-light);
}

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

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

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--primary-color-light);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loader-text {
    font-size: 24px;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    color: var(--dark-color);
    letter-spacing: 1px;
}

.loader-text span {
    color: var(--primary-color);
}

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

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

/* Section backgrounds */
.bg-shape {
    position: absolute;
    z-index: 0;
    display: none;
    /* Hide on mobile to improve performance */
}

.bg-shape-1 {
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background-color: var(--primary-color-light);
    opacity: 0.1;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morphShape 15s linear infinite alternate;
}

.bg-shape-2 {
    bottom: -50px;
    left: -50px;
    width: 150px;
    height: 150px;
    background-color: var(--primary-color-light);
    opacity: 0.1;
    border-radius: 54% 46% 39% 61% / 39% 30% 70% 61%;
    animation: morphShape 18s linear infinite alternate;
}

@keyframes morphShape {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }

    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }

    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }

    100% {
        border-radius: 54% 46% 39% 61% / 39% 30% 70% 61%;
    }
}

/* Header Styles */
header {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    height: 70px;
    display: flex;
    align-items: center;
    backdrop-filter: blur(10px);
}

header.scrolled {
    height: 60px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    color: var(--dark-color);
    letter-spacing: 1px;
    transition: var(--transition);
    text-decoration: none;
}

.logo span {
    color: var(--primary-color);
}

/* Mobile Navigation Styles */
.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    font-size: 16px;
    transition: var(--transition);
    letter-spacing: 0.5px;
    padding: 5px 0;
    position: relative;
    display: block;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    bottom: -2px;
    left: 0;
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Mobile menu button - hidden by default */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--dark-color);
    cursor: pointer;
    z-index: 1001;
    transition: var(--transition);
    padding: 8px;
    border-radius: 4px;
}

.mobile-menu-btn:hover {
    color: var(--primary-color);
    background-color: var(--secondary-color);
}

/* Mobile styles - only apply on mobile devices */
@media (max-width: 767px) {
    .logo {
        font-size: 20px;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--light-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
        gap: 30px;
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        font-size: 18px;
        padding: 15px 20px;
        border-radius: 8px;
        margin: 0 20px;
    }

    .nav-links a:hover,
    .nav-links a.active {
        background-color: var(--secondary-color);
    }

    .nav-links a::after {
        bottom: 8px;
        left: 20px;
    }

    .nav-links a:hover::after,
    .nav-links a.active::after {
        width: calc(100% - 40px);
    }
}

/* Hero Section */
.hero {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    padding: 60px 0;
    background-color: var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    flex-direction: column;
    text-align: center;
    gap: 30px;
    width: 100%;
}

.hero-text {
    flex: 1;
    animation: fadeInUp 1s ease-out forwards;
    max-width: 100%;
    opacity: 0;
}

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

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

.hero-text h1 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--dark-color);
    font-weight: 700;
    line-height: 1.2;
    font-family: 'Montserrat', sans-serif;
}

.hero-text h2 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 600;
}

.hero-text p {
    font-size: 16px;
    margin-bottom: 35px;
    color: var(--text-light);
    max-width: 550px;
    line-height: 1.8;
    margin-left: auto;
    margin-right: auto;
}

.typed-text::after {
    content: '|';
    display: inline-block;
    animation: blink 0.7s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--dark-color);
    padding: 16px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 16px;
    letter-spacing: 0.5px;
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-align: center;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--dark-color);
    transition: var(--transition);
    z-index: -1;
    border-radius: 30px;
}

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

.btn:hover::before {
    width: 100%;
}

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

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--dark-color);
    transform: translateY(-2px);
}

.hero-image {
    flex: 1;
    text-align: center;
    position: relative;
    animation: fadeIn 1s ease-out 0.3s forwards;
    width: 100%;
    max-width: 350px;
    opacity: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.hero-image-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.hero-image img {
    width: 100%;
    max-width: 280px;
    height: auto;
    aspect-ratio: 1;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-hover);
    object-fit: cover;
    transition: var(--transition);
    z-index: 2;
    position: relative;
}

.hero-image-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    top: 15px;
    left: 15px;
    border-radius: var(--border-radius);
    z-index: 1;
    max-width: 280px;
}

.hero-image:hover img {
    transform: translate(-3px, -3px);
}

.hero-image:hover .hero-image-bg {
    transform: translate(3px, 3px);
}

/* Social links */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--light-color);
    color: var(--dark-color);
    border-radius: 50%;
    box-shadow: var(--box-shadow);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        box-shadow 0.4s ease;
}

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

.social-links a:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-hover);
}

.social-links a:hover::before {
    transform: translateY(0);
}

.social-links i {
    font-size: 20px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.social-links a:hover i {
    animation: socialBounce 0.5s ease;
}

@keyframes socialBounce {

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

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

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title h2 {
    font-size: 32px;
    color: var(--dark-color);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-title p {
    color: var(--text-light);
    max-width: 700px;
    margin: 15px auto 0;
    font-size: 16px;
    padding: 0 20px;
}

/* About Section */
.about {
    position: relative;
    background-color: var(--bg-light);
    padding: 60px 0;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-text {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 30px;
    color: var(--text-color);
    text-align: center;
}

/* Stats Section */
.stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 40px 0;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
    background: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-color);
    transition: var(--transition);
}

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

.stat-item:hover::before {
    height: 100%;
    opacity: 0.1;
}

.stat-number {
    font-size: 40px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
}

.stat-label {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
}

/* Skills Section */
.skills {
    position: relative;
    padding: 60px 0;
}

.skills-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 600px;
    margin: 0 auto;
}

.skills-category {
    background: var(--light-color);
    padding: 30px 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.skills-category::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 0;
    background-color: var(--primary-color);
    opacity: 0.05;
    top: 0;
    left: 0;
    transition: var(--transition);
    z-index: -1;
}

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

.skills-category:hover::before {
    height: 100%;
}

.skills-category h3 {
    font-size: 20px;
    margin-bottom: 25px;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.skills-category h3 i {
    color: var(--primary-color);
    font-size: 24px;
}

.skill-item {
    margin-bottom: 25px;
}

.skill-item:last-child {
    margin-bottom: 0;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.skill-name {
    font-weight: 500;
    color: var(--dark-color);
    font-size: 15px;
}

.skill-percent {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 14px;
}

.skill-bar {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    border-radius: 4px;
    background-color: var(--primary-color);
    transition: width 1.5s cubic-bezier(0.1, 0.5, 0.1, 1);
    width: 0;
}

/* Services Section */
.services {
    background-color: var(--bg-light);
    position: relative;
    padding: 60px 0;
}

.services-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    max-width: 500px;
    margin: 0 auto;
}

.service-card {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    padding: 30px 25px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    z-index: 1;
    overflow: hidden;
    text-align: center;
}

.service-card::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 0;
    background-color: var(--primary-color);
    opacity: 0.05;
    bottom: 0;
    left: 0;
    transition: var(--transition);
    z-index: -1;
}

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

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

.service-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color-light);
    color: var(--primary-color);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background-color: var(--primary-color);
    color: var(--light-color);
    transform: rotateY(180deg);
}

.service-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.service-description {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 15px;
}

/* Call to Action */
.cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, #FFC107 100%);
    padding: 60px 0;
    text-align: center;
    color: var(--dark-color);
}

.cta h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
}

.cta p {
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto 25px;
    padding: 0 20px;
}

.cta .btn {
    background-color: var(--dark-color);
    color: var(--light-color);
    max-width: 250px;
    margin: 0 auto;
}

.cta .btn:hover {
    background-color: var(--light-color);
    color: var(--dark-color);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 40px;
    text-align: center;
}

.footer-col h3 {
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    display: inline-block;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.footer-about p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 15px;
}

.footer-links a i {
    font-size: 14px;
    color: var(--primary-color);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
    justify-content: center;
    align-items: center;
    font-size: 15px;
}

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

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--light-color);
    border-radius: 50%;
    transition: var(--transition);
    text-decoration: none;
}

.footer-social a:hover {
    background: var(--primary-color);
    color: var(--dark-color);
    transform: translateY(-3px);
}

.copyright {
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--dark-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

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

.back-to-top:hover {
    background: var(--dark-color);
    color: var(--light-color);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-hover);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

/* Responsive Design - Tablet and above */
@media (min-width: 576px) {
    .container {
        padding: 0 30px;
    }

    .hero-text h1 {
        font-size: 36px;
    }

    .hero-text h2 {
        font-size: 26px;
    }

    .hero-text p {
        font-size: 17px;
    }

    .hero-buttons {
        flex-direction: row;
        justify-content: center;
        max-width: none;
    }

    .btn-outline {
        margin-left: 15px;
    }

    .stats {
        grid-template-columns: repeat(3, 1fr);
        max-width: 700px;
    }

    .services-container {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
    }

    .loader-spinner {
        width: 60px;
        height: 60px;
    }

    .loader-text {
        font-size: 28px;
    }
}

@media (min-width: 768px) {
    :root {
        --section-spacing: 100px;
    }

    section {
        padding: 80px 0;
    }

    header {
        height: 80px;
    }

    header.scrolled {
        height: 70px;
    }

    .logo {
        font-size: 28px;
    }

    .nav-links {
        gap: 40px;
    }

    .hero-content {
        flex-direction: row-reverse;
        text-align: left;
        gap: 50px;
    }

    .hero-text {
        text-align: left;
    }

    .hero-text p {
        margin-left: 0;
        margin-right: 0;
    }

    .hero-buttons {
        justify-content: flex-start;
    }

    .social-links {
        justify-content: flex-start;
    }

    .bg-shape {
        display: block;
    }

    .bg-shape-1 {
        width: 300px;
        height: 300px;
        top: -100px;
        right: -100px;
    }

    .bg-shape-2 {
        width: 250px;
        height: 250px;
        bottom: -100px;
        left: -100px;
    }

    .section-title h2 {
        font-size: 40px;
    }

    .section-title p {
        font-size: 18px;
        padding: 0;
    }

    .about-text {
        font-size: 18px;
        text-align: left;
    }

    .skills-container {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        max-width: none;
    }

    .skills-category {
        padding: 40px;
    }

    .services-container {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        max-width: none;
    }

    .service-card {
        padding: 40px 30px;
        text-align: left;
    }

    .service-icon {
        margin: 0 0 25px 0;
    }

    .cta h2 {
        font-size: 36px;
    }

    .cta p {
        font-size: 18px;
        padding: 0;
    }

    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        text-align: left;
    }

    .footer-col h3::after {
        left: 0;
        transform: none;
    }

    .footer-contact-item,
    .footer-links a {
        justify-content: flex-start;
    }

    .footer-social {
        justify-content: flex-start;
    }
}

@media (min-width: 992px) {
    :root {
        --section-spacing: 120px;
    }

    section {
        padding: var(--section-spacing) 0;
    }

    .hero-text h1 {
        font-size: 54px;
    }

    .hero-text h2 {
        font-size: 32px;
    }

    .hero-text p {
        font-size: 18px;
    }
}

@media (min-width: 1200px) {
    .container {
        padding: 0 40px;
    }
}

/* Cursor styles */
.cursor::after {
    content: '|';
    display: inline-block;
    margin-left: 2px;
    opacity: 1;
    animation: blink 0.7s infinite;
}

/* Focus styles for accessibility */
.btn:focus,
.nav-links a:focus,
.mobile-menu-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Improved touch targets for mobile */
@media (hover: none) {

    .btn:hover,
    .nav-links a:hover,
    .social-links a:hover {
        transform: none;
    }
}

/* Portfolio Specific Styles */
.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.filter-btn {
    padding: 10px 25px;
    background-color: var(--light-color);
    border: none;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
    color: var(--dark-color);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.portfolio-section {
    padding: 80px 0;
    position: relative;
}

.portfolio-category {
    margin-bottom: 80px;
}

.portfolio-category:last-child {
    margin-bottom: 0;
}

.category-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.category-title h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
    display: inline-block;
    position: relative;
    padding-bottom: 15px;
}

.category-title h2::after {
    content: '';
    position: absolute;
    width: 70px;
    height: 4px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.category-title p {
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    font-size: 18px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.portfolio-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1),
        box-shadow 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 300px;
    transform: translateY(30px);
    opacity: 0;
    animation: fadeInUp 0.6s forwards;
}

.portfolio-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--box-shadow-hover);
    z-index: 1;
}

.portfolio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.33, 1, 0.68, 1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 40%, rgba(0, 0, 0, 0.5) 70%, rgba(0, 0, 0, 0.3) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    padding: 30px;
    text-align: center;
}

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

.portfolio-item:hover .portfolio-image {
    transform: scale(1.1);
}

.portfolio-title,
.portfolio-category-name,
.portfolio-description,
.portfolio-btn {
    transform: translateY(20px);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        opacity 0.5s ease;
    opacity: 0;
}

.portfolio-title {
    color: var(--light-color);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    transition-delay: 0.1s;
}

.portfolio-category-name {
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 15px;
    transition-delay: 0.2s;
}

.portfolio-description {
    color: var(--light-color);
    font-size: 15px;
    margin-bottom: 20px;
    transition-delay: 0.3s;
}

.portfolio-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--dark-color);
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.4s ease;
    margin-top: 15px;
    transition-delay: 0.4s;
}

.portfolio-btn:hover {
    background-color: var(--light-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.portfolio-item:hover .portfolio-title,
.portfolio-item:hover .portfolio-category-name,
.portfolio-item:hover .portfolio-description,
.portfolio-item:hover .portfolio-btn {
    transform: translateY(0);
    opacity: 1;
}

.empty-state {
    text-align: center;
    padding: 50px 0;
    display: none;
}

.empty-state i {
    font-size: 60px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 24px;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--text-light);
    max-width: 500px;
    margin: 0 auto;
}

/* Resume Specific Styles */
.resume-section {
    padding: 80px 0;
    position: relative;
}

.resume-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.resume-sidebar {
    background-color: var(--light-color);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 100px;
    height: fit-content;
}

.resume-main {
    background-color: var(--light-color);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.profile-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--primary-color);
    margin: 0 auto 30px;
    display: block;
    box-shadow: var(--box-shadow);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color-light);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 16px;
}

.contact-text {
    font-size: 15px;
    color: var(--text-color);
}

.resume-block {
    margin-bottom: 50px;
}

.resume-block:last-child {
    margin-bottom: 0;
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    height: calc(100% - 50px);
    background-color: var(--primary-color);
    left: 0;
    top: 10px;
}

.timeline-item {
    position: relative;
    padding-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease-out forwards;
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--primary-color);
    left: -38px;
    top: 10px;
    transition: var(--transition);
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.2);
}

.timeline-item:hover::before {
    transform: scale(1.2);
    box-shadow: 0 0 0 6px rgba(255, 215, 0, 0.3);
}

.timeline-date {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 5px;
    display: inline-block;
    padding: 2px 10px;
    background-color: var(--primary-color-light);
    border-radius: 20px;
}

.timeline-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-color);
    transition: var(--transition);
}

.timeline-item:hover .timeline-title {
    color: var(--primary-color);
}

.timeline-subtitle {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 10px;
    font-style: italic;
}

.timeline-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-color);
}

.download-resume {
    margin-top: 40px;
    text-align: center;
}

@media (max-width: 992px) {
    .resume-container {
        grid-template-columns: 1fr;
    }

    .resume-sidebar {
        position: relative;
        top: 0;
        margin-bottom: 40px;
    }
}