/* ===== Enhanced Modern Portfolio Styles ===== */

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --tertiary-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --accent-color: #667eea;
    --accent-color-2: #ffbd39;
    --dark-bg: #0f1419;
    --light-bg: #f8f9fa;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* General Styles */
* {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', 'Arial', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: #ffffff;
    color: #333;
    overflow-x: hidden;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Navbar Styles - Enhanced */
.navbar {
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: var(--shadow-md);
    padding: 0.7rem 1.5rem;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    margin-left: 1.5rem;
    transition: var(--transition);
    font-weight: 500;
    color: #333 !important;
    position: relative;
    padding: 0.5rem 0 !important;
}

/* Ensure nav links are always visible when navbar is scrolled */
.ftco-navbar-light.scrolled .nav-link,
.ftco-navbar-light.scrolled .nav-item > .nav-link {
    color: #333 !important;
}

.nav-link:hover {
    color: var(--accent-color) !important;
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* Hero/Home Section - Enhanced */
#home-section {
    background: var(--primary-gradient);
    position: relative;
    overflow: hidden;
}

.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    filter: blur(40px);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
    filter: blur(40px);
}

/* Animated gradient background */
.hero {
    background: linear-gradient(-45deg, #667eea, #764ba2, #f093fb, #f5576c);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(20px) rotate(5deg); }
}

#home-section img {
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    border: 5px solid rgba(255, 255, 255, 0.2);
    animation: fadeInRight 1s ease-out;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Ensure carousel items stay visible */
.owl-carousel .owl-item,
.owl-carousel .owl-item.active,
.home-slider .slider-item,
.home-slider .slider-item img {
    opacity: 1 !important;
    visibility: visible !important;
}

#home-section img:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

#home-section h1 {
    font-size: 3.5rem;
    margin-top: 0;
    font-weight: 800;
    color: white;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease-out;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

#home-section h1 span {
    background: linear-gradient(135deg, #ffbd39 0%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    position: relative;
}

#home-section h1 span::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(135deg, #ffbd39 0%, #ffd700 100%);
    transform: scaleX(0);
    animation: underlineExpand 1s ease-out 0.5s forwards;
}

@keyframes underlineExpand {
    to { transform: scaleX(1); }
}

#home-section h2 {
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    margin: 1rem 0;
}

#home-section p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
}

#home-section .btn {
    margin-top: 20px;
    margin-right: 10px;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid white;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

#home-section .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

#home-section .btn:hover::before {
    width: 300px;
    height: 300px;
}

#home-section .btn-primary {
    background: white;
    color: var(--accent-color);
    box-shadow: var(--shadow-md);
}

#home-section .btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

#home-section .btn-white {
    color: white;
    background: transparent;
    backdrop-filter: blur(10px);
}

#home-section .btn-white:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px) scale(1.05);
    border-color: rgba(255, 255, 255, 0.8);
}

/* About Section */
#about-section {
    padding: 100px 0;
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
    position: relative;
}

#about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

#about-section img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 3px solid rgba(102, 126, 234, 0.1);
}

#about-section img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

#about-section h2 {
    color: var(--accent-color);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

#about-section p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
}

#about-section .about-info {
    list-style: none;
    padding: 0;
}

#about-section .about-info li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    display: flex !important;
    font-size: 1rem;
}

#about-section .about-info span:first-child {
    font-weight: 600;
    color: var(--accent-color);
    min-width: 100px;
}

#about-section .about-info a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

#about-section .about-info a:hover {
    color: var(--secondary-gradient);
    text-decoration: underline;
}

#about-section .btn {
    margin-top: 1rem;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
}

/* Projects Section */
#projects-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 50%, #f5f7fa 100%);
    position: relative;
    overflow: hidden;
}

#projects-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite;
}

#projects-section h2 {
    color: var(--accent-color);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.project {
    height: 350px !important;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    cursor: pointer;
    border: 2px solid transparent;
}

.project::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.project::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: 3;
}

.project:hover {
    transform: translateY(-20px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.project:hover::before {
    opacity: 0.9;
}

.project:hover::after {
    width: 300px;
    height: 300px;
}

.project .text {
    position: relative;
    z-index: 4;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project:hover .text {
    opacity: 1;
    transform: translateY(0);
}

.project .text h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.project .text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Resume Section */
#resume-section {
    padding: 100px 0;
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
    position: relative;
}

#resume-section h2 {
    color: var(--accent-color);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.resume-wrap {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 35px;
    margin-bottom: 30px;
    border-radius: 15px;
    border-left: 5px solid var(--accent-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.resume-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.05), transparent);
    transition: left 0.5s ease;
}

.resume-wrap:hover::before {
    left: 100%;
}

.resume-wrap:hover {
    background: white;
    box-shadow: var(--shadow-md);
    transform: translateX(10px) translateY(-5px);
    border-left-color: var(--accent-color-2);
}

.resume-wrap .date {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.resume-wrap h2 {
    color: #333;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 10px 0;
}

.resume-wrap .position {
    color: #666;
    font-size: 0.95rem;
    font-weight: 500;
}

.resume-wrap p {
    color: #555;
    line-height: 1.8;
    font-size: 0.95rem;
}

/* Services Section */
#services-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #ffffff 100%);
    position: relative;
}

#services-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

#services-section h2 {
    color: var(--accent-color);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.services-1, .services-2 {
    display: block;
    background: white;
    padding: 45px 35px;
    border-radius: 20px;
    transition: var(--transition);
    text-decoration: none;
    height: 100%;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(102, 126, 234, 0.1);
}
.services-1::after, .services-2::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.services-1:hover::after, .services-2:hover::after {
    opacity: 0.05;
}

.services-1:hover, .services-2:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.services-1 .desc, .services-2 .desc {
    position: relative;
    z-index: 1;
}

.services-1 .icon, .services-2 .icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 20px;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.services-1 .icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.services-2 .icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.services-1:hover .icon, .services-2:hover .icon {
    transform: scale(1.1);
}

.services-1 h3, .services-2 h3 {
    color: #383838;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 15px 0;
}

.services-1 p, .services-2 p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Skills Section */
#skills-section {
    padding: 100px 0;
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
    position: relative;
}

#skills-section h2 {
    color: var(--accent-color);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.progress-wrap {
    margin-bottom: 30px;
}

.progress-wrap h3 {
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    font-size: 1rem;
}

.progress {
    height: 12px;
    background: linear-gradient(135deg, #e0e0e0 0%, #f0f0f0 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
}

.progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-bar {
    height: 100%;
    border-radius: 20px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    position: relative;
    overflow: hidden;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progressShine 2s infinite;
}

@keyframes progressShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.progress-bar.color-1 { background: linear-gradient(90deg, #667eea 0%, #764ba2 100%); }
.progress-bar.color-2 { background: linear-gradient(90deg, #f093fb 0%, #f5576c 100%); }
.progress-bar.color-3 { background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%); }
.progress-bar.color-4 { background: linear-gradient(90deg, #43e97b 0%, #38f9d7 100%); }
.progress-bar.color-5 { background: linear-gradient(90deg, #fa709a 0%, #fee140 100%); }
.progress-bar.color-6 { background: linear-gradient(90deg, #30cfd0 0%, #330867 100%); }

/* GitHub Stats Section */
#github-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    color: white;
    position: relative;
    overflow: hidden;
}

#github-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

#github-section h2 {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

#github-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.8;
}

.github-stats-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    margin-top: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.github-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffd700;
}

.stat-card .stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 10px;
}

.github-calendar {
    margin-top: 30px;
    overflow-x: auto;
}

.calendar-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
}

/* Contact Section */
#contact-section {
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
    color: #333;
    padding: 100px 0;
    position: relative;
}

#contact-section h2 {
    color: var(--accent-color);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-info {
    margin-bottom: 50px;
}

.contact-info .box {
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
    border-radius: 20px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: 2px solid rgba(102, 126, 234, 0.1);
    position: relative;
    overflow: hidden;
}

/* Ensure content is above the ::before pseudo-element */
.contact-info .box > * {
    position: relative;
    z-index: 1;
}

.contact-info .box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.5s ease;
    pointer-events: none;
    z-index: 0;
}

.contact-info .box:hover::before {
    transform: scale(1);
}

.contact-info .box:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.contact-info .icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.contact-info h3 {
    color: #333;
    font-weight: 600;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.contact-info p {
    color: #666;
    font-size: 0.95rem;
    position: relative;
    z-index: 2;
}

.contact-info .icon {
    position: relative;
    z-index: 2;
}

.contact-info a {
    color: var(--accent-color) !important;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    display: inline-block;
    pointer-events: auto;
}

.contact-info a:hover {
    color: var(--accent-color-2) !important;
    text-decoration: underline;
}

/* Hire Me Section */
.ftco-hireme {
    position: relative;
    z-index: 1;
}

.ftco-hireme .container {
    position: relative;
    z-index: 2;
}

.ftco-hireme .row,
.ftco-hireme .col-md-7,
.ftco-hireme h2,
.ftco-hireme p,
.ftco-hireme .btn {
    position: relative;
    z-index: 3;
    pointer-events: auto;
}

.ftco-hireme .btn {
    cursor: pointer;
}

/* Ensure no overlay blocks the hire me section */
.ftco-hireme::before,
.ftco-hireme::after {
    pointer-events: none;
    z-index: 0;
}

/* Override any overlay divs that might block clicks */
.ftco-hireme .overlay {
    pointer-events: none !important;
    z-index: 0 !important;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #0f1419 0%, #1a1f26 100%);
    color: #aaa;
    padding: 3rem 1rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.5), transparent);
}

footer p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
}

footer a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover {
    color: #f5576c;
}

/* Enhanced Button Styles */
.btn {
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::after {
    width: 300px;
    height: 300px;
}

/* Section Headings Enhancement */
.heading-section h1.big,
.heading-section h1.big-2 {
    font-size: 8rem;
    font-weight: 900;
    opacity: 0.05;
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 0;
    pointer-events: none;
    user-select: none;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.heading-section h2 {
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.heading-section:hover h2 {
    transform: translateX(5px);
}

/* Enhanced Typography */
h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.02em;
}

p {
    letter-spacing: 0.01em;
}

/* Improved spacing for sections */
.ftco-section {
    position: relative;
}

.ftco-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
    opacity: 0.3;
}

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-md);
    border: none;
    font-size: 1.2rem;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-lg);
}

.scroll-to-top:active {
    transform: translateY(-3px) scale(1.05);
}

/* Responsive Styles */
@media (max-width: 768px) {
    #home-section h1 {
        font-size: 2.2rem;
    }

    #home-section h2 {
        font-size: 1.3rem;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .nav-link {
        margin-left: 0.5rem;
        font-size: 0.9rem;
    }

    .project {
        height: 250px !important;
        margin-bottom: 20px;
    }

    .services-1, .services-2 {
        padding: 30px 20px;
    }

    #github-section h2 {
        font-size: 2rem;
    }

    .heading-section h1.big,
    .heading-section h1.big-2 {
        font-size: 4rem;
        top: -10px;
    }

    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* Ensure animated elements stay visible and don't re-animate */
.ftco-animated,
.ftco-animate.ftco-animated {
    opacity: 1 !important;
    visibility: visible !important;
    animation-fill-mode: forwards;
}

/* Prevent waypoint from resetting animated elements */
.ftco-animate.ftco-animated {
    pointer-events: auto;
}

/* Section fade-in on scroll - removed to prevent repeated animations */
/* .ftco-section {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
} */

/* Stagger animation for cards */
.services-1:nth-child(1) { animation-delay: 0.1s; }
.services-1:nth-child(2) { animation-delay: 0.2s; }
.services-1:nth-child(3) { animation-delay: 0.3s; }
.services-2:nth-child(1) { animation-delay: 0.1s; }
.services-2:nth-child(2) { animation-delay: 0.2s; }
.services-2:nth-child(3) { animation-delay: 0.3s; }

a:hover{
    color: var(--accent-color) !important;
}

/* Enhanced link transitions */
a {
    transition: var(--transition);
}

/* Better focus states for accessibility */
*:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

button:focus,
a:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
    border-radius: 4px;
}

/* GitHub Integration Styles */
.contribution-graph {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15px, 1fr));
    gap: 3px;
    margin-top: 20px;
}

.contribution-box {
    width: 15px;
    height: 15px;
    border-radius: 3px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.contribution-box:hover {
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.contribution-box.intensity-1 {
    background: rgba(255, 215, 0, 0.3);
}

.contribution-box.intensity-2 {
    background: rgba(255, 215, 0, 0.6);
}

.contribution-box.intensity-3 {
    background: rgba(255, 215, 0, 0.85);
}

.contribution-box.intensity-4 {
    background: #ffd700;
}

.featured-repos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.repo-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.repo-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.repo-card h4 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
}

.repo-card h4 a {
    color: #ffd700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.repo-card h4 a:hover {
    color: white;
    text-decoration: underline;
}

.repo-card p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 10px 0;
    line-height: 1.5;
}

.repo-stats {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.repo-stats .language {
    background: rgba(255, 215, 0, 0.2);
    padding: 4px 10px;
    border-radius: 20px;
    color: #ffd700;
}

.repo-stats .stars,
.repo-stats .forks {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Glowing effect for stats */
.stat-card {
    position: relative;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover::after {
    opacity: 1;
}

/* Loading state */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffd700;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* GitHub Section Badge */
.github-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 8px 16px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.github-badge:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.github-badge i {
    margin-right: 8px;
}

/* Enhanced GitHub Stats Cards */
.github-stats-container {
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.stat-card {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Enhanced Project Links */
.prject-click {
    text-decoration: none;
    display: block;
    transition: var(--transition);
}

.prject-click:hover {
    text-decoration: none;
}

/* Better image loading states */
img {
    transition: opacity 0.3s ease;
}

img[loading="lazy"] {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

/* Enhanced counter animation */
.counter-wrap .number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* Improved section transitions */
section {
    will-change: transform;
}

/* Better mobile touch targets */
@media (max-width: 768px) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        padding: 12px 0 !important;
    }
}

/* Responsive GitHub Section */
@media (max-width: 768px) {
    .contribution-graph {
        grid-template-columns: repeat(auto-fill, minmax(12px, 1fr));
    }

    .contribution-box {
        width: 12px;
        height: 12px;
    }

    .featured-repos-grid {
        grid-template-columns: 1fr;
    }

    .github-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .heading-section h1.big,
    .heading-section h1.big-2 {
        font-size: 3rem;
    }
}
