/* 
 * Sharo Ahmed Portfolio
 * A modern scrollable portfolio website
 */

/* ===== GLOBAL STYLES ===== */
:root {
    --primary-color: #4e54c8;
    --primary-light: #8f94fb;
    --secondary-color: #ff6b6b;
    --secondary-light: #ffa1a1;
    --accent-color: #34e89e;
    --text-color: #2d3436;
    --light-text: #636e72;
    --dark-bg: #1e272e;
    --light-bg: #f5f7fa;
    --white: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.95);
    --gradient-1: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    --gradient-2: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    --gradient-3: linear-gradient(135deg, #4e54c8, #34e89e);
    --box-shadow-light: 0 10px 30px rgba(0, 0, 0, 0.05);
    --box-shadow-medium: 0 15px 35px rgba(0, 0, 0, 0.1);
    --box-shadow-heavy: 0 20px 50px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --animation-timing: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--light-bg);
    line-height: 1.6;
    overflow-x: hidden;
    background: linear-gradient(to bottom, var(--light-bg), #e6e9ef);
    background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    padding: 100px 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ===== LOADER ===== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.loader-content {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: relative;
}

.loader-name {
    font-size: 5rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--white);
    position: relative;
    animation: pulse-glow 2s infinite alternate;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.loader-name .highlight {
    font-size: inherit;
    background: linear-gradient(to right, var(--accent-color), #6affe3);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    animation: highlight-pulse 2s infinite alternate;
    position: relative;
}

.loader-name .highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--accent-color), #6affe3);
    animation: line-pulse 2s infinite alternate;
    border-radius: 5px;
}

@keyframes pulse-glow {
    0% {
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    }
    100% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.7), 0 0 40px rgba(255, 255, 255, 0.4);
    }
}

@keyframes highlight-pulse {
    0% {
        opacity: 0.8;
    }
    100% {
        opacity: 1;
    }
}

@keyframes line-pulse {
    0% {
        box-shadow: 0 0 5px rgba(52, 232, 158, 0.5);
        width: 0;
    }
    100% {
        box-shadow: 0 0 20px rgba(52, 232, 158, 0.8);
        width: 100%;
    }
}

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

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.progress-bar {
    height: 100%;
    background: var(--gradient-3);
    width: 0%;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(78, 84, 200, 0.5);
}

/* ===== NAVIGATION ===== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 99;
    transition: var(--transition);
    background-color: transparent;
}

nav.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    padding: 15px 0;
    border-bottom: 1px solid rgba(78, 84, 200, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

nav.scrolled .logo {
    color: var(--primary-color);
    text-shadow: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-size: 16px;
    font-weight: 500;
    color: var(--white);
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

nav.scrolled .nav-link {
    color: var(--text-color);
    text-shadow: none;
}

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

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

.nav-link:hover, 
.nav-link.active {
    color: var(--accent-color);
}

nav.scrolled .nav-link:hover,
nav.scrolled .nav-link.active {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 3px 0;
    transition: var(--transition);
}

nav.scrolled .bar {
    background-color: var(--text-color);
}

/* ===== HERO SECTION ===== */
#home {
    position: relative;
    min-height: 100vh;
    padding-top: 150px;
    background: linear-gradient(rgba(30, 39, 46, 0.85), rgba(30, 39, 46, 0.85)), url('https://source.unsplash.com/random/1920x1080/?creative-workspace') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(78, 84, 200, 0.3) 0%, rgba(52, 232, 158, 0.3) 100%);
    z-index: 0;
}

#home::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, var(--light-bg), transparent);
    z-index: 1;
}

.hero {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeIn 1s var(--animation-timing) forwards;
    animation-delay: 0.5s;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(5px);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 25px;
}

.hero p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

.highlight {
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(52, 232, 158, 0.5);
    font-weight: 800;
}

.typing::after {
    content: '|';
    animation: blink 0.7s infinite;
}

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

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
    border: none;
    outline: none;
    text-align: center;
}

.primary-btn {
    background: var(--gradient-3);
    color: var(--white);
    box-shadow: 0 8px 15px rgba(52, 232, 158, 0.3);
    border: none;
}

.secondary-btn {
    background-color: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    backdrop-filter: blur(5px);
    box-shadow: 0 8px 15px rgba(52, 232, 158, 0.1);
}

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

.primary-btn:hover {
    background: var(--accent-color);
    box-shadow: 0 10px 20px rgba(52, 232, 158, 0.4);
    transform: translateY(-5px);
}

.secondary-btn:hover {
    background-color: var(--accent-color);
    color: var(--white);
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

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

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
    font-size: 18px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
    border-color: transparent;
}

/* Brand-specific colors on hover */
.social-icon[aria-label="Instagram"]:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.social-icon[aria-label="Facebook"]:hover {
    background: #1877f2;
    color: white;
}

/* Keep icons white on hover */
.social-icon:hover i {
    color: white !important;
}

.social-icon[aria-label="Snapchat"]:hover {
    background: #fffc00;
    color: black;
    box-shadow: 0 15px 25px rgba(255, 252, 0, 0.3);
}

/* ===== FOOTER STYLES ===== */
footer {
    background: var(--dark-bg);
    color: var(--white);
    padding: 50px 0 20px;
    position: relative;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.footer-logo {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(to right, var(--primary-light), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-copyright {
    font-size: 14px;
    opacity: 0.8;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 15px 0;
}

.footer-links a {
    color: var(--white);
    font-size: 16px;
    opacity: 0.8;
    transition: var(--transition);
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-3);
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.footer-links a:hover::after {
    width: 100%;
}

.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(78, 84, 200, 0.3);
    transition: var(--transition);
    opacity: 1;
    visibility: visible;
    z-index: 9999;
}

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

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(78, 84, 200, 0.5);
}

.scroll-down {
    position: absolute;
    bottom: 50px;
    left: 0;
    right: 0;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #fff;
    font-size: 14px;
    opacity: 0;
    width: 100%;
    text-align: center;
    animation: fadeIn 1s var(--animation-timing) forwards;
    animation-delay: 1.5s;
    z-index: 5;
}

.scroll-down i {
    animation: bounce 1.5s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-7px); }
}

/* ===== SECTION STYLES ===== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-line {
    width: 80px;
    height: 4px;
    background: var(--gradient-3);
    margin: 0 auto;
    border-radius: 2px;
    box-shadow: 0 3px 10px rgba(78, 84, 200, 0.2);
}

/* ===== ABOUT SECTION ===== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
    position: relative;
}

#about {
    background: linear-gradient(to bottom right, rgba(245, 247, 250, 0.9), rgba(230, 233, 239, 0.9));
    position: relative;
    overflow: hidden;
}

#about::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(78, 84, 200, 0.1), rgba(52, 232, 158, 0.1));
    top: -100px;
    left: -100px;
    z-index: 0;
}

#about::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(255, 107, 107, 0.1), rgba(255, 161, 161, 0.1));
    bottom: -200px;
    right: -200px;
    z-index: 0;
}

.image-container {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow-medium);
    transform: perspective(1000px) rotateY(5deg);
    transition: transform 0.8s ease;
    z-index: 1;
}

.image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(78, 84, 200, 0.2), rgba(52, 232, 158, 0.2));
    z-index: 2;
    opacity: 0.5;
    transition: var(--transition);
}

.about-image:hover .image-container {
    transform: perspective(1000px) rotateY(0deg);
}

.about-image:hover .image-container::before {
    opacity: 0;
}

.profile-img {
    transition: var(--transition);
    filter: grayscale(20%);
}

.image-container:hover .profile-img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.experience-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 120px;
    height: 120px;
    background: var(--gradient-3);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: pulse 2s infinite;
    z-index: 3;
    border: 3px solid rgba(255, 255, 255, 0.8);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(52, 232, 158, 0.5);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(52, 232, 158, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(52, 232, 158, 0);
    }
}

.exp-number {
    font-size: 2rem;
    line-height: 1;
}

.exp-text {
    font-size: 0.9rem;
    opacity: 0.9;
}

.about-image {
    display: flex;
    align-items: flex-start;
}

.about-text {
    padding-top: 5px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    position: relative;
}

.about-text h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-3);
    border-radius: 2px;
}

.about-text p {
    margin-bottom: 25px;
    color: var(--light-text);
}

.personal-info {
    margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.85);
    padding: 18px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-light);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 100%;
}

.personal-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-3);
    z-index: 1;
}

.personal-info::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(78, 84, 200, 0.1) 0%, rgba(52, 232, 158, 0.05) 70%);
    bottom: -100px;
    right: -100px;
    border-radius: 50%;
    z-index: 0;
}

.personal-info:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-heavy);
}

.personal-info-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
    z-index: 2;
}

.personal-info-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient-3);
    border-radius: 2px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.info-item {
    display: flex;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.5);
    padding: 10px;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    word-break: break-word;
}

.info-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--gradient-1);
    transition: height 0.3s ease;
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-medium);
    background: rgba(255, 255, 255, 0.9);
}

.info-item:hover::before {
    height: 100%;
}

.info-icon {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-right: 12px;
    min-width: 20px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.info-item:hover .info-icon {
    transform: scale(1.2);
    color: var(--accent-color);
}

.info-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.info-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    transition: transform 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.info-item:hover .info-value {
    transform: translateX(5px);
}

.email-value {
    font-size: 0.9rem;
    word-break: break-all;
    line-height: 1.3;
}

/* For mobile devices */
@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== SKILLS SECTION ===== */
#skills {
    background: linear-gradient(to bottom right, rgba(245, 247, 250, 0.9), rgba(230, 233, 239, 0.9));
    position: relative;
    overflow: hidden;
}

#skills::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(78, 84, 200, 0.1) 0%, rgba(78, 84, 200, 0) 70%);
    top: -250px;
    right: -250px;
    border-radius: 50%;
}

#skills::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(52, 232, 158, 0.1) 0%, rgba(52, 232, 158, 0) 70%);
    bottom: -250px;
    left: -250px;
    border-radius: 50%;
}

.skills-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.skills-text {
    max-width: 700px;
    margin: 0 auto 30px;
    text-align: center;
    background: rgba(255, 255, 255, 0.7);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-light);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(78, 84, 200, 0.1);
    position: relative;
    overflow: hidden;
}

.skills-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-3);
}

.skills-text h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.skill-card {
    background-color: var(--card-bg);
    padding: 35px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-light);
    transition: var(--transition);
    border: 1px solid rgba(78, 84, 200, 0.05);
    backdrop-filter: blur(5px);
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-medium);
    border-color: rgba(78, 84, 200, 0.1);
    background: linear-gradient(145deg, #ffffff, #f5f7fa);
}

.skill-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.skill-card h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.skill-progress {
    width: 100%;
    height: 7px;
    background-color: #f1f1f1;
    border-radius: 10px;
    overflow: hidden;
}

.skill-progress .progress-bar {
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    width: 0;
    transition: width 1.5s ease-in-out;
    box-shadow: 0 0 15px rgba(78, 84, 200, 0.2);
    position: relative;
    overflow: hidden;
}

.skill-progress .progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
    animation: shimmer 2s infinite;
}

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

/* ===== PROJECTS SECTION ===== */
#projects {
    background: linear-gradient(to bottom right, rgba(245, 247, 250, 0.9), rgba(230, 233, 239, 0.9));
    position: relative;
    overflow: hidden;
}

#projects::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.05) 0%, rgba(255, 107, 107, 0) 70%);
    top: -200px;
    left: -200px;
    border-radius: 50%;
}

#projects::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(78, 84, 200, 0.05) 0%, rgba(78, 84, 200, 0) 70%);
    bottom: -200px;
    right: -200px;
    border-radius: 50%;
}
.projects-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    background-color: var(--primary-color);
    border: none;
    padding: 8px 20px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 30px;
    color: purple;
}

.filter-btn.active, .filter-btn:hover {
    background-color: var(--accent-color);
    color: #ea35c9;
    box-shadow: 0 5px 15px rgba(52, 232, 158, 0.3);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.project-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow-light);
    transition: var(--transition);
    border: 1px solid rgba(78, 84, 200, 0.05);
    position: relative;
    opacity: 1 !important;
    transform: translateY(0) !important;
    display: block !important;
    margin-bottom: 30px;
}

.project-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--box-shadow-heavy);
    border-color: rgba(78, 84, 200, 0.1);
    z-index: 1;
}

.project-img {
    position: relative;
    overflow: hidden;
    height: 230px;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-img img {
    transform: scale(1.1);
}

.project-content {
    padding: 25px;
}

.project-tags {
    margin-bottom: 10px;
}

.project-tag {
    display: inline-block;
    padding: 6px 18px;
    background: var(--gradient-1);
    color: var(--white);
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(78, 84, 200, 0.2);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.project-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.project-description {
    color: var(--light-text);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.project-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-link {
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition);
}

.project-link:hover {
    color: var(--secondary-color);
}

.projects-more {
    text-align: center;
}

/* ===== CONTACT SECTION ===== */
#contact {
    background: linear-gradient(to bottom right, rgba(245, 247, 250, 0.9), rgba(230, 233, 239, 0.9));
    position: relative;
    overflow: hidden;
}

#contact::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/cubes.png');
    opacity: 0.03;
    z-index: 0;
}

#contact .container {
    position: relative;
    z-index: 1;
}
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.contact-info p {
    margin-bottom: 30px;
    color: var(--light-text);
    font-size: 1.1rem;
    line-height: 1.8;
    position: relative;
    padding-left: 15px;
    border-left: 3px solid var(--primary-color);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 35px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-icon {
    min-width: 50px;
    height: 50px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    box-shadow: 0 8px 20px rgba(78, 84, 200, 0.3);
    transition: var(--transition);
}

.contact-item:hover .contact-icon {
    transform: scale(1.1) rotate(10deg);
}

.contact-text h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-form {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-medium);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(78, 84, 200, 0.1);
    background: linear-gradient(145deg, #ffffff, #f5f7fa);
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-3);
}

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

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #e5e5e5;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

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

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
}

/* Contact form button styling */
.contact-form .btn {
    width: 100%;
    display: block;
    margin-top: 20px;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    border-radius: var(--border-radius);
    cursor: pointer;
    background-color: #8a2be2; /* Changed to purple */
    color: white;
    border: none;
    box-shadow: 0 8px 15px rgba(138, 43, 226, 0.3); /* Updated shadow color */
    transition: var(--transition);
}

.contact-form .btn:hover {
    background-color: #9370db; /* Lighter purple on hover */
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(138, 43, 226, 0.4); /* Updated shadow color */
}

/* ===== FOOTER ===== */
footer {
    background: var(--gradient-1);
    color: var(--white);
    padding: 60px 0 40px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/cubes.png');
    opacity: 0.1;
}

footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: var(--gradient-3);
    box-shadow: 0 5px 15px rgba(52, 232, 158, 0.5);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo {
    font-size: 22px;
    font-weight: 700;
    color: white;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

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

.back-to-top {
    text-align: center;
}

.back-to-top a {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.back-to-top a:hover {
    background-color: #fff;
    color: var(--primary-color);
    transform: translateY(-5px);
}

/* ===== PARTICLES ANIMATION ===== */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.3);
    animation: float linear infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal-text {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s, transform 0.5s;
}

.reveal-text.revealed {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    transition: opacity 1s;
}

.fade-in.active {
    opacity: 1;
}

.slide-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s, transform 0.8s;
}

.slide-up.active {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s, transform 0.8s;
}

.slide-in-right.active {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s, transform 0.8s;
}

.slide-in-left.active {
    opacity: 1;
    transform: translateX(0);
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1024px) {
    .section {
        padding: 80px 0;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-image {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .personal-info {
        justify-content: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        background-color: #fff;
        flex-direction: column;
        width: 70%;
        height: 100vh;
        padding: 50px 0;
        gap: 20px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    /* Make mobile menu text black when on home page */
    #home:target ~ nav .nav-links .nav-link,
    body:not([id]) .nav-links .nav-link {
        color: var(--text-color);
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .menu-toggle.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .section-header {
        margin-bottom: 40px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 1.3rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .personal-info {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 50px 0 30px;
    position: relative;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-logo {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-copyright {
    font-size: 14px;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--white);
    font-size: 15px;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-light);
    transform: translateY(-3px);
}

/* Animation for the Home link transformation */
.footer-links a.home-clicked {
    animation: homeTransform 0.5s ease forwards;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes homeTransform {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1.1); }
}


