/* Global Styles and Variables */
:root {
    --primary-color: #FF0000; /* Sharingan red */
    --secondary-color: #000B76; /* Sasuke's navy blue */
    --background-dark: #000000; /* Deep black */
    --background-light: #1A1A1A; /* Slightly lighter black */
    --text-primary: #FFFFFF;
    --text-secondary: #B3B3B3;
    --accent-color: #660000; /* Darker red for accents */
    --transition: all 0.3s ease-in-out;
    --sharingan-red: #FF0000;
    --sharingan-black: #1a1a1a;
    --uchiha-navy: #000080;
    --scroll-beige: #F5E6D3;
    --tomoe-black: #000000;
}

/* Project Technologies and Links Styles */
.project-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
    padding: 0.5rem 0;
}

.tech-tag {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(255, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.tech-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 0, 0, 0.3);
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: flex-start;
}

.project-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.github-btn {
    background: linear-gradient(135deg, #333, #555);
    color: white;
}

.github-btn:hover {
    background: linear-gradient(135deg, #555, #777);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.demo-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
}

.demo-btn:hover {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
}

.project-btn i {
    font-size: 1rem;
}

/* Uiverse.io Social Media Component Styles */
.wrapper {
    display: inline-flex;
    list-style: none;
    height: 120px;
    width: 100%;
    padding-top: 40px;
    font-family: "Poppins", sans-serif;
    justify-content: center;
}

.wrapper .icon {
    position: relative;
    background: #fff;
    border-radius: 50%;
    margin: 10px;
    width: 50px;
    height: 50px;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.wrapper .tooltip {
    position: absolute;
    top: 0;
    font-size: 14px;
    background: #fff;
    color: #fff;
    padding: 5px 8px;
    border-radius: 5px;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.wrapper .tooltip::before {
    position: absolute;
    content: "";
    height: 8px;
    width: 8px;
    background: #fff;
    bottom: -3px;
    left: 50%;
    transform: translate(-50%) rotate(45deg);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.wrapper .icon:hover .tooltip {
    top: -45px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.wrapper .icon:hover span,
.wrapper .icon:hover .tooltip {
    text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.1);
}

.wrapper .facebook:hover,
.wrapper .facebook:hover .tooltip,
.wrapper .facebook:hover .tooltip::before {
    background: #1877f2;
    color: #fff;
}

.wrapper .twitter:hover,
.wrapper .twitter:hover .tooltip,
.wrapper .twitter:hover .tooltip::before {
    background: #1da1f2;
    color: #fff;
}

.wrapper .instagram:hover,
.wrapper .instagram:hover .tooltip,
.wrapper .instagram:hover .tooltip::before {
    background: #e4405f;
    color: #fff;
}

.wrapper .linkedin:hover,
.wrapper .linkedin:hover .tooltip,
.wrapper .linkedin:hover .tooltip::before {
    background: #0077b5;
    color: #fff;
}

.wrapper .github:hover,
.wrapper .github:hover .tooltip,
.wrapper .github:hover .tooltip::before {
    background: #333;
    color: #fff;
}

.wrapper .icon a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Responsive adjustments for new components */
@media (max-width: 768px) {
    .project-technologies {
        gap: 0.3rem;
    }
    
    .tech-tag {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }
    
    .project-links {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .project-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .wrapper {
        height: 80px;
        padding-top: 20px;
    }
    
    .wrapper .icon {
        width: 40px;
        height: 40px;
        margin: 5px;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation and Logo Fixes */
.navbar {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 5%;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    padding: 0.5rem;
}

.logo-text {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
    background: rgba(255, 0, 0, 0.1);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    transition: var(--transition);
}

/* Section Spacing Fix */
section {
    padding-top: 90px; /* Account for fixed navbar + extra space */
    padding-bottom: 3rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding-top: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('image 2.jpg') no-repeat center center;
    background-size: cover;
    filter: brightness(0.3);
    z-index: 1;
    animation: heroBackground 30s infinite alternate;
}

@keyframes heroBackground {
    0% {
        transform: scale(1) translate(0, 0);
        filter: brightness(0.3) saturate(1);
    }
    50% {
        transform: scale(1.1) translate(-1%, -1%);
        filter: brightness(0.35) saturate(1.1);
    }
    100% {
        transform: scale(1.05) translate(1%, 1%);
        filter: brightness(0.3) saturate(1);
    }
}

/* Add a subtle overlay for depth */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
    opacity: 0;
    animation: overlayPulse 8s infinite alternate;
}

@keyframes overlayPulse {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 0;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    max-width: 800px;
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    backdrop-filter: blur(5px);
    animation: contentFloat 6s ease-in-out infinite;
}

@keyframes contentFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Hero Section Animations */
@keyframes typing {
    from { 
        width: 0;
    }
    to { 
        width: 100%;
    }
}

@keyframes blink {
    0%, 100% { border-color: var(--primary-color); }
    50% { border-color: transparent; }
}

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

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    opacity: 1;
    animation: 
        typing 2.5s steps(40, end) 0.5s both,
        blink 1.2s step-end infinite;
    border-right: 3px solid var(--primary-color);
}

.hero h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    animation: typeAndFade 2.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 3s;
    opacity: 0;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    animation: typeAndFade 2.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 4s;
    opacity: 0;
}

/* Hero Section CTA Buttons */
.hero .cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
    position: relative;
}

.hero .cta-buttons .cta-primary,
.hero .cta-buttons .cta-secondary {
    position: relative;
    transform-origin: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.hero .cta-buttons .cta-primary:active,
.hero .cta-buttons .cta-secondary:active {
    transform: scale(0.95);
    animation: buttonBounceGlow 0.6s cubic-bezier(0.36, 0, 0.66, -0.56) forwards;
}

.hero .cta-buttons .cta-primary::after,
.hero .cta-buttons .cta-secondary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 0, 0, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
    z-index: -1;
}

.hero .cta-buttons .cta-primary:active::after,
.hero .cta-buttons .cta-secondary:active::after {
    animation: buttonRipple 0.6s ease-out forwards;
}

@keyframes buttonBounceGlow {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.4);
    }
    30% {
        transform: scale(1.15);
        box-shadow: 0 0 20px 5px rgba(255, 0, 0, 0.2);
    }
    60% {
        transform: scale(0.97);
        box-shadow: 0 0 15px 3px rgba(255, 0, 0, 0.3);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
    }
}

@keyframes buttonRipple {
    0% {
        width: 0;
        height: 0;
        opacity: 0.5;
    }
    100% {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

.hero .cta-buttons .cta-primary {
    animation: initialPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.hero .cta-buttons .cta-secondary {
    animation: initialPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: 0.2s;
}

@keyframes initialPop {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    80% {
        transform: scale(0.95);
        opacity: 0.9;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.hero .cta-primary,
.hero .cta-secondary {
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    position: relative;
    overflow: visible;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: center;
}

/* Primary Button (View My Work) */
.hero .cta-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--text-primary);
    border: none;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.15);
}

/* Secondary Button (Get in Touch) */
.hero .cta-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

/* Hover Effects */
.hero .cta-primary:hover,
.hero .cta-secondary:hover {
    transform: scale(1.05);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero .cta-primary:hover {
    box-shadow: 
        0 8px 20px rgba(255, 0, 0, 0.25),
        0 6px 12px rgba(255, 0, 0, 0.15);
}

.hero .cta-secondary:hover {
    box-shadow: 
        0 8px 20px rgba(255, 0, 0, 0.15),
        0 6px 12px rgba(255, 0, 0, 0.1);
}

/* Click/Active State with Pop Effect */
.hero .cta-primary:active,
.hero .cta-secondary:active {
    animation: instantPop 0.3s cubic-bezier(0.2, 1.5, 0.3, 1) forwards;
    transform-origin: center;
}

@keyframes instantPop {
    0% {
        transform: scale(1);
    }
    40% {
        transform: scale(1.15);
    }
    70% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
    }
}

/* Enhanced Ripple Effect */
.hero .cta-primary:active::after,
.hero .cta-secondary:active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 120px;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.5) 0%,
        rgba(255, 255, 255, 0.3) 40%,
        transparent 70%
    );
    transform: translate(-50%, -50%) scale(0);
    animation: popRipple 0.4s cubic-bezier(0.2, 1.5, 0.3, 1) forwards;
    pointer-events: none;
    z-index: 0;
}

@keyframes popRipple {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* Focus State with Pop */
.hero .cta-primary:focus,
.hero .cta-secondary:focus {
    outline: none;
    animation: focusPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes focusPop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .hero .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .hero .cta-primary,
    .hero .cta-secondary {
        width: 100%;
        text-align: center;
        padding: 1rem 1.5rem;
    }

    .hero .cta-primary:active,
    .hero .cta-secondary:active {
        animation: mobileInstantPop 0.3s cubic-bezier(0.2, 1.5, 0.3, 1) forwards;
    }

    @keyframes mobileInstantPop {
        0% {
            transform: scale(1);
        }
        50% {
            transform: scale(1.12);
        }
        75% {
            transform: scale(0.97);
        }
        100% {
            transform: scale(1);
        }
    }
}

/* Ensure hardware acceleration */
.hero .cta-primary,
.hero .cta-secondary {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-font-smoothing: subpixel-antialiased;
}

/* Button Animations */
@keyframes ultraSmoothFadeIn {
    0% {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }
    50% {
        opacity: 0.5;
        transform: translate3d(0, 15px, 0);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes smoothButtonFloat {
    0%, 100% {
        transform: translateY(-5px) scale(1.02);
    }
    50% {
        transform: translateY(-8px) scale(1.02);
    }
}

@keyframes smoothSpinGlow {
    0% {
        transform: rotate(0deg);
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: rotate(360deg);
        opacity: 0.6;
    }
}

@keyframes smoothPulsate {
    0%, 100% {
        transform: scale(1);
        opacity: 0.4;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.7;
    }
}

@keyframes smoothSpinBorder {
    0% {
        transform: rotate(0deg);
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: rotate(360deg);
        opacity: 0.8;
    }
}

/* Add Sharingan tomoe effect */
.hero .cta-primary:hover::after {
    content: '';
    position: absolute;
    inset: -20px;
    background: 
        radial-gradient(circle at 30% 50%, rgba(255, 0, 0, 0.3) 0%, transparent 20%),
        radial-gradient(circle at 50% 50%, rgba(255, 0, 0, 0.3) 0%, transparent 20%),
        radial-gradient(circle at 70% 50%, rgba(255, 0, 0, 0.3) 0%, transparent 20%);
    animation: smoothTomoeRotate 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes smoothTomoeRotate {
    0% {
        transform: scale(0.9) rotate(0deg);
        opacity: 0;
    }
    25% {
        transform: scale(1.1) rotate(90deg);
        opacity: 0.7;
    }
    50% {
        transform: scale(1) rotate(180deg);
        opacity: 0.5;
    }
    75% {
        transform: scale(1.1) rotate(270deg);
        opacity: 0.7;
    }
    100% {
        transform: scale(0.9) rotate(360deg);
        opacity: 0;
    }
}

/* Add ripple effect on click */
.hero .cta-primary:active::after,
.hero .cta-secondary:active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150px;
    height: 150px;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0.2) 30%,
        transparent 70%
    );
    transform: translate(-50%, -50%) scale(0);
    animation: popRipple 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    pointer-events: none;
    z-index: 0;
}

@keyframes popRipple {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0.6;
    }
    40% {
        opacity: 0.4;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* Mobile Responsiveness with Smooth Transitions */
@media (max-width: 768px) {
    .hero .cta-buttons {
        flex-direction: column;
        gap: 1rem;
        transition: gap 0.3s cubic-bezier(0.65, 0, 0.35, 1);
    }

    .hero .cta-primary,
    .hero .cta-secondary {
        width: 100%;
        text-align: center;
        padding: 1rem 1.5rem;
        transition: all 0.6s cubic-bezier(0.65, 0, 0.35, 1);
    }
}

/* Add subtle hover state transitions */
.hero .cta-primary:hover::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.hero .cta-primary:hover::before {
    opacity: 1;
}

/* Ensure smooth transitions when focus state changes */
.hero .cta-primary:focus,
.hero .cta-secondary:focus {
    outline: none;
    transform: translate3d(0, -4px, 0);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Add transition for box-shadow changes */
.hero .cta-primary,
.hero .cta-secondary {
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0);
    transition: 
        transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

/* Ensure GPU acceleration */
.hero .cta-buttons,
.hero .cta-primary,
.hero .cta-secondary {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000;
    -webkit-transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    -webkit-perspective: 1000;
}

/* Container Width Fixes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

/* Content Alignment Fixes */
.hero-content,
.about-content,
.skills-content,
.projects-content,
.contact-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Mobile Navigation Fixes */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(15, 15, 15, 0.95);
        backdrop-filter: blur(10px);
        padding: 1rem;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 1rem;
    }

    .hamburger {
        display: flex;
    }

    /* Typography Adjustments */
    body {
        font-size: 16px;
    }

    /* Navigation Adjustments */
    .logo-text {
        font-size: 1.5rem;
    }

    /* Hero Section Adjustments */
    .hero-content {
        padding: 2rem 1rem;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1.1rem;
        margin: 1rem 0;
    }

    /* About Section Adjustments */
    .about-content {
        flex-direction: column;
        gap: 2rem;
    }

    .about-image {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .about-text {
        width: 100%;
        text-align: center;
    }

    /* Skills Section Adjustments */
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }

    .skill-card {
        padding: 1.5rem;
    }

    .skill-card i {
        font-size: 2.5rem;
    }

    /* Projects Section Adjustments */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-card {
        padding: 1.5rem;
    }

    .project-highlights ul {
        padding-left: 1rem;
    }

    /* Contact Form Adjustments */
    .contact-form {
        width: 100%;
        max-width: 100%;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.8rem;
    }

    .submit-btn {
        width: 100%;
    }

    /* Footer Adjustments */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-social {
        justify-content: center;
    }
}

/* Extra Small Devices */
@media (max-width: 480px) {
    /* Further Typography Adjustments */
    .hero h1 {
        font-size: 2rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    /* Navigation Adjustments */
    .logo-text {
        font-size: 1.2rem;
    }

    /* Skills Grid Adjustments */
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    /* Project Card Adjustments */
    .project-card {
        padding: 1rem;
    }

    .tech-tag {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
        margin: 0.2rem;
    }

    /* Contact Form Adjustments */
    .form-group {
        margin-bottom: 0.8rem;
    }

    /* AI Assistant Adjustments */
    .chat-box {
        width: 100%;
        height: 100vh;
        border-radius: 0;
    }

    .chat-bot-icon {
        right: 10px;
        bottom: 10px;
    }
}

/* Tablet Devices */
@media (min-width: 769px) and (max-width: 1024px) {
    .about-content {
        gap: 3rem;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    .nav-links a:hover,
    .skill-card:hover,
    .project-card:hover,
    .tech-tag:hover,
    .social-btn:hover {
        transform: none;
    }

    .cta-primary:active,
    .cta-secondary:active,
    .submit-btn:active {
        transform: scale(0.98);
    }
}

/* Ensure proper spacing for all sections on mobile */
@media (max-width: 768px) {
    section {
        padding: 4rem 1rem;
    }

    .hero {
        padding-top: 70px;
    }

    .container {
        padding: 0 1rem;
    }
}

/* Improve form element touch targets */
@media (max-width: 768px) {
    input,
    textarea,
    button {
        min-height: 44px;
    }

    .nav-links a {
        padding: 12px 16px;
    }
}

/* Grid Layout Fixes */
.skills-grid {
    display: grid;
    gap: 2rem;
    width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Card Alignment Fixes */
.skill-card,
.project-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.project-info {
    text-align: left;
    width: 100%;
}

/* Button Alignment Fixes */
.cta-buttons {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    margin-top: 1.5rem;
    width: 100%;
}

@media (max-width: 480px) {
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.6rem;
    }

    .cta-buttons a {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }
    
    .cta-primary,
    .cta-secondary {
        padding: 0.5rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* About Section */
.about {
    padding: 6rem 5%;
    background-color: var(--background-light);
}

.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 40px;
    color: var(--text-primary);
    font-size: 2.5rem;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%,
        #FF0000 50%,
        transparent 100%
    );
    animation: shimmer 2s infinite linear;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.about-image {
    position: relative;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;  /* Adjust to better frame the face */
    border-radius: 50%;
    transition: transform 0.3s ease;
}
.profile-images {
    width: 158px;
    height: 180px;
    object-fit: cover;
    object-position: center 20%;  /* Adjust to better frame the face */
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.image-placeholder {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
    position: relative;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.2);
}

.image-placeholder:hover .profile-image {
    transform: scale(1.05);
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* Skills Section */
.skills {
    padding: 6rem 5%;
    background-color: var(--background-dark);
}

.skill-card {
    background: var(--background-light);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--accent-color);
    position: relative;
    overflow: hidden;
    animation: scaleIn 0.5s ease-out;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, var(--primary-color) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition);
    transform: scale(0.5);
}

.skill-card:hover::before {
    opacity: 0.1;
    transform: scale(1);
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

.skill-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.skill-card h3 {
    color: var(--text-primary);
}

/* Projects Section */
.projects {
    padding: 6rem 5%;
    background-color: var(--background-light);
    position: relative;
    overflow: hidden;
}

.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: radial-gradient(circle at 50% 0%, rgba(255, 0, 0, 0.1), transparent);
    pointer-events: none;
}

.mission-intro {
    position: relative;
    text-align: center;
    margin-bottom: 3rem;
}

.mission-intro p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    position: relative;
    display: inline-block;
}

.mission-intro p::before,
.mission-intro p::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
}

.mission-intro p::before {
    right: 100%;
    margin-right: 1rem;
}

.mission-intro p::after {
    left: 100%;
    margin-left: 1rem;
    transform: rotate(180deg);
}

/* Aceternity-Style Sticky Scroll Reveal */
.aceternity-sticky-container {
    position: relative;
    display: flex;
    justify-content: center;
    max-width: 1200px;
    margin: 2rem auto;
    height: 30rem;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    border-radius: 0.75rem;
    padding: 2.5rem;
    gap: 2.5rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: background 0.6s ease;
}

.aceternity-content-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: flex-start;
    padding: 1rem;
}

.aceternity-scrollable-content {
    max-width: 32rem;
    height: 25rem;
    overflow-y: auto;
    padding-right: 1rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 0, 0, 0.3) transparent;
}

.aceternity-scrollable-content::-webkit-scrollbar {
    width: 6px;
}

.aceternity-scrollable-content::-webkit-scrollbar-track {
    background: transparent;
}

.aceternity-scrollable-content::-webkit-scrollbar-thumb {
    background: rgba(255, 0, 0, 0.3);
    border-radius: 3px;
}

.aceternity-scrollable-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 0, 0, 0.5);
}

.aceternity-project-item {
    margin: 5rem 0;
    opacity: 0.3;
    transition: opacity 0.6s ease;
}

.aceternity-project-item.active {
    opacity: 1;
}

.aceternity-project-title {
    font-size: 2rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 2.5rem;
    line-height: 1.2;
}

.aceternity-project-description {
    font-size: 1rem;
    line-height: 1.7;
    color: #cbd5e1;
    max-width: 28rem;
    margin: 0;
}

/* Technology tags for Aceternity projects - 3D Interactive Buttons */
.aceternity-project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 3D Interactive Tech Button Container */
.tech-tag {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    grid-template-areas: "bt-1 bt-2 bt-3"
        "bt-4 bt-5 bt-6";
    position: relative;
    perspective: 800px;
    padding: 0;
    width: 85px;
    height: 28px;
    transition: all 0.3s ease-in-out;
    opacity: 0;
    transform: translateY(20px);
    animation: techButtonFadeIn 0.6s ease forwards;
}

.tech-tag:active {
    transform: scale(0.95);
}

/* Hover zones for 3D effect */
.tech-tag .hover-zone {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 200;
}

.tech-tag .bt-1 {
    grid-area: bt-1;
}

.tech-tag .bt-2 {
    grid-area: bt-2;
}

.tech-tag .bt-3 {
    grid-area: bt-3;
}

.tech-tag .bt-4 {
    grid-area: bt-4;
}

.tech-tag .bt-5 {
    grid-area: bt-5;
}

.tech-tag .bt-6 {
    grid-area: bt-6;
}

/* 3D hover effects for different zones */
.tech-tag .bt-1:hover ~ .tech-button {
    transform: rotateX(15deg) rotateY(-15deg) rotateZ(0deg);
    box-shadow: -2px -2px rgba(255, 0, 0, 0.5);
}

.tech-tag .bt-1:hover ~ .tech-button::after {
    animation: techShake 0.5s ease-in-out 0.3s;
    text-shadow: -2px -2px rgba(255, 0, 0, 0.5);
}

.tech-tag .bt-3:hover ~ .tech-button {
    transform: rotateX(15deg) rotateY(15deg) rotateZ(0deg);
    box-shadow: 2px -2px rgba(255, 0, 0, 0.5);
}

.tech-tag .bt-3:hover ~ .tech-button::after {
    animation: techShake 0.5s ease-in-out 0.3s;
    text-shadow: 2px -2px rgba(255, 0, 0, 0.5);
}

.tech-tag .bt-4:hover ~ .tech-button {
    transform: rotateX(-15deg) rotateY(-15deg) rotateZ(0deg);
    box-shadow: -2px 2px rgba(255, 0, 0, 0.5);
}

.tech-tag .bt-4:hover ~ .tech-button::after {
    animation: techShake 0.5s ease-in-out 0.3s;
    text-shadow: -2px 2px rgba(255, 0, 0, 0.5);
}

.tech-tag .bt-6:hover ~ .tech-button {
    transform: rotateX(-15deg) rotateY(15deg) rotateZ(0deg);
    box-shadow: 2px 2px rgba(255, 0, 0, 0.5);
}

.tech-tag .bt-6:hover ~ .tech-button::after {
    animation: techShake 0.5s ease-in-out 0.3s;
    text-shadow: 2px 2px rgba(255, 0, 0, 0.5);
}

.tech-tag .hover-zone:hover ~ .tech-button::before {
    background: transparent;
}

.tech-tag .hover-zone:hover ~ .tech-button::after {
    content: attr(data-text);
    top: -120%;
    transform: translate(-50%, 0);
    font-size: 18px;
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
}

/* Main button styling */
.tech-tag .tech-button {
    position: absolute;
    padding: 0;
    width: 85px;
    height: 28px;
    background: transparent;
    font-size: 9px;
    font-weight: 700;
    border: 2px solid var(--primary-color);
    border-radius: 7px;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

.tech-tag .tech-button::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85px;
    height: 28px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 7px;
    transition: all 0.3s ease-in-out;
    z-index: -1;
}

.tech-tag .tech-button::after {
    content: attr(data-text);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85px;
    height: 28px;
    background-color: transparent;
    font-size: 9px;
    font-weight: 700;
    line-height: 28px;
    color: #ffffff;
    border: none;
    border-radius: 7px;
    transition: all 0.3s ease-in-out;
    z-index: 2;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Shake animation */
@keyframes techShake {
    0% {
        left: 45%;
    }
    25% {
        left: 54%;
    }
    50% {
        left: 48%;
    }
    75% {
        left: 52%;
    }
    100% {
        left: 50%;
    }
}

/* Fade in animation */
@keyframes techButtonFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation for tech buttons */
.aceternity-project-tech .tech-tag:nth-child(1) { animation-delay: 0.1s; }
.aceternity-project-tech .tech-tag:nth-child(2) { animation-delay: 0.2s; }
.aceternity-project-tech .tech-tag:nth-child(3) { animation-delay: 0.3s; }
.aceternity-project-tech .tech-tag:nth-child(4) { animation-delay: 0.4s; }
.aceternity-project-tech .tech-tag:nth-child(5) { animation-delay: 0.5s; }
.aceternity-project-tech .tech-tag:nth-child(6) { animation-delay: 0.6s; }

/* Project Link Button Container */
.aceternity-project-link {
    margin-top: 1.5rem;
    display: flex;
    justify-content: flex-start;
    opacity: 0;
    transform: translateY(20px);
    animation: projectLinkFadeIn 0.6s ease forwards;
    animation-delay: 0.8s;
}

/* Project Link Button - Uiverse.io Style */
.project-link-button {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 15px;
    gap: 10px;
    background-color: var(--primary-color);
    outline: 3px var(--primary-color) solid;
    outline-offset: -3px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: 400ms;
    text-decoration: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    color: white;
    position: relative;
    overflow: hidden;
}

.project-link-button .text {
    color: white;
    font-weight: 700;
    font-size: 0.9em;
    transition: 400ms;
    z-index: 2;
    position: relative;
}

.project-link-button svg {
    width: 16px;
    height: 16px;
    transition: 400ms;
    z-index: 2;
    position: relative;
}

.project-link-button svg path {
    transition: 400ms;
    fill: white;
}

.project-link-button:hover {
    background-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
}

.project-link-button:hover .text {
    color: var(--primary-color);
}

.project-link-button:hover svg path {
    fill: var(--primary-color);
}

.project-link-button:active {
    transform: translateY(0);
    transition: 150ms;
}

/* Fade in animation for project link */
@keyframes projectLinkFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.aceternity-bottom-spacing {
    height: 10rem;
}

/* Sticky Right Content */
.aceternity-sticky-content {
    position: sticky;
    top: 2.5rem;
    flex: 1;
    height: 24rem;
    width: 20rem;
    border-radius: 0.5rem;
    overflow: hidden;
    background: linear-gradient(135deg, #06b6d4, #10b981);
    transition: background 0.6s ease;
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
    display: block;
}

.aceternity-sticky-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aceternity-sticky-item.active {
    opacity: 1;
}

.aceternity-project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.5rem;
}

/* Background transitions for different projects */
.aceternity-sticky-container[data-active="0"] {
    background: linear-gradient(135deg, #0f172a, #1e293b);
}

.aceternity-sticky-container[data-active="0"] .aceternity-sticky-content {
    background: linear-gradient(135deg, #06b6d4, #10b981);
}

.aceternity-sticky-container[data-active="1"] {
    background: linear-gradient(135deg, #1e1b4b, #312e81);
}

.aceternity-sticky-container[data-active="1"] .aceternity-sticky-content {
    background: linear-gradient(135deg, #ec4899, #6366f1);
}

.aceternity-sticky-container[data-active="2"] {
    background: linear-gradient(135deg, #7c2d12, #ea580c);
}

.aceternity-sticky-container[data-active="2"] .aceternity-sticky-content {
    background: linear-gradient(135deg, #f97316, #eab308);
}

.aceternity-sticky-container[data-active="3"] {
    background: linear-gradient(135deg, #14532d, #166534);
}

.aceternity-sticky-container[data-active="3"] .aceternity-sticky-content {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.aceternity-sticky-container[data-active="4"] {
    background: linear-gradient(135deg, #581c87, #7c3aed);
}

.aceternity-sticky-container[data-active="4"] .aceternity-sticky-content {
    background: linear-gradient(135deg, #a855f7, #8b5cf6);
}

/* Responsive Design for Aceternity Sticky Scroll */
@media (max-width: 1024px) {
    .aceternity-sticky-container {
        max-width: 95%;
        height: 28rem;
        padding: 2rem;
        gap: 2rem;
    }
    
    .aceternity-scrollable-content {
        max-width: 28rem;
        height: 24rem;
    }
    
    .aceternity-sticky-content {
        width: 18rem;
        height: 20rem;
    }
    
    .aceternity-project-title {
        font-size: 1.7rem;
        margin-bottom: 2rem;
    }
    
    .aceternity-project-description {
        font-size: 0.95rem;
        max-width: 26rem;
    }
}

@media (max-width: 768px) {
    .aceternity-sticky-container {
        flex-direction: column;
        height: auto;
        max-height: none;
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .aceternity-content-wrapper {
        padding: 0;
    }

    .aceternity-scrollable-content {
        max-width: 100%;
        height: 20rem;
        overflow-y: auto;
    }

    .aceternity-sticky-content {
        position: static;
        width: 100%;
        height: 18rem;
        order: -1;
        margin-bottom: 1rem;
    }

    .aceternity-project-item {
        margin: 3rem 0;
        opacity: 1;
    }

    .aceternity-project-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .aceternity-project-description {
        font-size: 0.9rem;
        max-width: 100%;
    }

    .aceternity-project-tech {
        margin-top: 1rem;
        padding-top: 0.8rem;
        gap: 0.6rem;
    }

    .tech-tag {
        width: 75px;
        height: 25px;
    }

    .tech-tag .tech-button {
        width: 75px;
        height: 25px;
        font-size: 8px;
        border-radius: 6px;
    }

    .tech-tag .tech-button::before {
        width: 75px;
        height: 25px;
        border-radius: 6px;
    }

    .tech-tag .tech-button::after {
        width: 75px;
        height: 25px;
        line-height: 25px;
        font-size: 8px;
        border-radius: 6px;
    }

    .project-link-button {
        padding: 8px 12px;
        font-size: 13px;
        gap: 8px;
    }

    .project-link-button .text {
        font-size: 0.85em;
    }

    .project-link-button svg {
        width: 14px;
        height: 14px;
    }

    .aceternity-bottom-spacing {
        height: 5rem;
    }
}

@media (max-width: 480px) {
    .aceternity-sticky-container {
        margin: 1rem auto;
        padding: 1rem;
    }

    .aceternity-scrollable-content {
        height: 16rem;
        padding-right: 0.5rem;
    }

    .aceternity-sticky-content {
        height: 16rem;
    }

    .aceternity-project-item {
        margin: 2rem 0;
    }

    .aceternity-project-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .aceternity-project-description {
        font-size: 0.85rem;
        line-height: 1.6;
    }

    .aceternity-project-tech {
        margin-top: 0.8rem;
        padding-top: 0.6rem;
        gap: 0.5rem;
    }

    .tech-tag {
        width: 60px;
        height: 22px;
    }

    .tech-tag .tech-button {
        width: 60px;
        height: 22px;
        font-size: 7px;
        border-width: 1.5px;
        border-radius: 5px;
    }

    .tech-tag .tech-button::before {
        width: 60px;
        height: 22px;
        border-radius: 5px;
    }

    .tech-tag .tech-button::after {
        width: 60px;
        height: 22px;
        line-height: 22px;
        font-size: 7px;
        border-radius: 5px;
    }

    .tech-tag .hover-zone:hover ~ .tech-button::after {
        font-size: 14px;
        top: -100%;
    }

    .aceternity-project-link {
        margin-top: 1rem;
    }

    .project-link-button {
        padding: 6px 10px;
        font-size: 12px;
        gap: 6px;
        border-radius: 6px;
    }

    .project-link-button .text {
        font-size: 0.8em;
    }

    .project-link-button svg {
        width: 12px;
        height: 12px;
    }

    .aceternity-bottom-spacing {
        height: 3rem;
    }
}

/* Responsive adjustments for uniform sizing */
@media (max-width: 1024px) {
    .project-card {
        flex: 0 0 380px;
        min-height: 420px;
        max-height: 750px;
    }
}

@media (max-width: 768px) {
    .projects-wrapper {
        padding: 0 1rem;
    }
    
    .scroll-btn {
        display: none;
    }
    
    .projects-grid {
        padding: 1rem 0;
    }
    
    .project-card {
        flex: 0 0 350px;
        min-height: 400px;
        max-height: 700px;
    }
    
    .expand-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .project-footer {
        padding: 0.8rem 1rem;
    }
}

/* Project content styling for uniform layout */
.project-info p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
    text-align: justify;
}

.project-info ul {
    margin: 0.5rem 0;
    padding-left: 1rem;
    font-size: 0.85rem;
}

.project-info ul li {
    margin-bottom: 0.3rem;
    color: var(--text-secondary);
}

.project-image {
    height: 140px;
    margin: 0.8rem 0;
    overflow: hidden;
    border-radius: 8px;
    display: block;
    background: rgba(255, 0, 0, 0.05);
    border: 1px solid rgba(255, 0, 0, 0.1);
}

.project-image img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.project-highlights {
    margin-top: auto;
    padding-top: 1rem;
}

.project-highlights h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-bottom: 1rem;
}

.tech-tag {
    background: rgba(255, 0, 0, 0.1);
    color: var(--primary-color);
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    border: 1px solid rgba(255, 0, 0, 0.2);
}

.project-link {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.project-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
}

@media (max-width: 480px) {
    .project-card {
        flex: 0 0 320px;
        min-height: 380px;
        max-height: 650px;
    }
    
    .project-info {
        padding: 1rem;
    }
    
    .project-expandable-content {
        padding: 0 1rem;
    }
    
    .project-expandable-content.expanded {
        padding: 0 1rem 1rem;
    }
    
    .expand-btn {
        margin: 0.5rem 1rem;
        padding: 0.5rem 0.7rem;
        font-size: 0.8rem;
    }
    
    .project-footer {
        padding: 0.7rem 1rem;
    }
}

/* Old project card styles removed - using Swiper layout now */

.project-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 0, 0, 0.1), transparent 70%);
    transform: scale(0);
    transition: transform 0.5s ease;
}

.project-card:hover::before {
    transform: scale(1);
}

.project-info {
    padding: 1.5rem;
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

.project-info h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    position: relative;
    transform-style: preserve-3d;
    line-height: 1.4;
    min-height: auto;
    overflow: visible;
}

.project-info h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.project-card:hover h3::after {
    transform: scaleX(1);
}

.project-highlights {
    margin-top: auto;
    padding-top: 1rem;
}

.project-highlights h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1rem;
    position: relative;
    display: inline-block;
}

.project-highlights h4::before {
    content: '★';
    color: var(--primary-color);
    margin-right: 0.5rem;
    animation: starPulse 2s infinite;
}

@keyframes starPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

.project-highlights ul {
    list-style: none;
    padding: 0;
}

.project-highlights li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.project-highlights li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.project-card:hover .project-highlights li::before {
    opacity: 1;
    transform: translateX(0);
}

/* Project Technologies */
.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin: 0.5rem 0 1rem 0;
}

.tech-tag {
    background: rgba(255, 0, 0, 0.1);
    color: var(--primary-color);
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    border: 1px solid rgba(255, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
}

/* Project Card Hover Effects */
.project-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(255, 0, 0, 0.2);
}

/* Stagger Animation for List Items - Fixed visibility */
.project-highlights li {
    opacity: 1;
    transform: translateX(0);
}

@keyframes slideInList {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.project-card:hover .project-highlights li {
    animation: slideInList 0.5s ease forwards;
}

.project-highlights li:nth-child(1) { animation-delay: 0.1s; }
.project-highlights li:nth-child(2) { animation-delay: 0.2s; }
.project-highlights li:nth-child(3) { animation-delay: 0.3s; }
.project-highlights li:nth-child(4) { animation-delay: 0.4s; }
.project-highlights li:nth-child(5) { animation-delay: 0.5s; }

/* Project Image Styling - Simplified for Visibility */
.project-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin: 0.8rem 0;
    height: 140px;
    display: block;
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.1), rgba(255, 0, 0, 0.05));
    border: 1px solid rgba(255, 0, 0, 0.2);
}

.project-image img {
    width: 100% !important;
    height: 140px !important;
    object-fit: cover;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transition: transform 0.5s ease;
    border-radius: 8px;
}

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

.project-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 0, 0, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-image::after {
    opacity: 1;
}

/* Resume Section */
.resume {
    padding: 6rem 5%;
    background-color: var(--background-dark);
    text-align: center;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 5px;
    transition: var(--transition);
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 168, 255, 0.3);
}

/* Contact Section */
.contact {
    padding: 6rem 5%;
    background-color: var(--background-light);
}

.contact-email {
    margin: 2rem 0;
    text-align: center;
}

.email-link {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: linear-gradient(145deg, var(--background-dark), var(--background-light));
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.email-link i {
    font-size: 1.3rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.email-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 0, 0, 0.2);
    background: linear-gradient(145deg, var(--primary-color), var(--accent-color));
}

.email-link:hover i {
    transform: rotate(15deg);
    color: var(--text-primary);
}

.email-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 0, 0, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.email-link:hover::before {
    width: 200%;
    height: 200%;
}

.email-link span {
    position: relative;
    z-index: 1;
}

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

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background-color: var(--background-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: var(--text-primary);
    transition: var(--transition);
}

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

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.2);
}

.submit-btn {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--text-primary);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 168, 255, 0.3);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.social-links a {
    color: var(--text-primary);
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

/* Footer */
.footer {
    padding: 2rem;
    background-color: var(--background-dark);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    padding: 3rem 0;
    background: linear-gradient(to bottom, #1E1E1E, #000000);
    overflow: hidden;
}

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

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

/* Uiverse.io Social Media Icons */
.footer-social {
    display: inline-flex;
    list-style: none;
    height: 120px;
    width: 100%;
    padding-top: 40px;
    font-family: "Poppins", sans-serif;
    justify-content: center;
    margin: 0;
}

.footer-social .social-icon {
    position: relative;
    background: #fff;
    border-radius: 50%;
    margin: 10px;
    width: 50px;
    height: 50px;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    text-decoration: none;
    color: #333;
}

.footer-social .tooltip {
    position: absolute;
    top: 0;
    font-size: 14px;
    background: #fff;
    color: #fff;
    padding: 5px 8px;
    border-radius: 5px;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    white-space: nowrap;
    font-weight: 500;
}

.footer-social .tooltip::before {
    position: absolute;
    content: "";
    height: 8px;
    width: 8px;
    background: #fff;
    bottom: -3px;
    left: 50%;
    transform: translate(-50%) rotate(45deg);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.footer-social .social-icon:hover .tooltip {
    top: -45px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.footer-social .social-icon:hover span,
.footer-social .social-icon:hover .tooltip {
    text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.1);
}

.footer-social .social-icon svg {
    width: 1.2em;
    height: 1.2em;
    transition: all 0.3s ease;
}

/* Email/Gmail */
.footer-social .gmail:hover,
.footer-social .gmail:hover .tooltip,
.footer-social .gmail:hover .tooltip::before {
    background: #ea4335;
    color: #fff;
}

/* LinkedIn */
.footer-social .linkedin:hover,
.footer-social .linkedin:hover .tooltip,
.footer-social .linkedin:hover .tooltip::before {
    background: #0077b5;
    color: #fff;
}

/* GitHub */
.footer-social .github:hover,
.footer-social .github:hover .tooltip,
.footer-social .github:hover .tooltip::before {
    background: #333;
    color: #fff;
}

/* Instagram */
.footer-social .instagram:hover,
.footer-social .instagram:hover .tooltip,
.footer-social .instagram:hover .tooltip::before {
    background: #e4405f;
    color: #fff;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover:not(:active) {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.4);
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

.scroll-to-top:active {
    transform: translateY(0) scale(0.95) !important;
    transition: all 0.1s ease !important;
    box-shadow: 0 2px 10px rgba(255, 0, 0, 0.3) !important;
}

.scroll-to-top:focus {
    outline: none;
    transform: translateY(0) scale(1) !important;
}

.scroll-to-top:focus:not(:active) {
    transform: translateY(0) scale(1) !important;
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
    stroke: white;
    stroke-width: 2;
    transition: all 0.3s ease;
}

.scroll-to-top:hover svg {
    transform: translateY(-2px);
    stroke-width: 2.5;
}

/* Pulse animation for attention */
@keyframes scrollTopPulse {
    0% {
        box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 4px 15px rgba(255, 0, 0, 0.6), 0 0 20px rgba(255, 0, 0, 0.3);
    }
    100% {
        box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
    }
}

.scroll-to-top.pulse {
    animation: scrollTopPulse 2s infinite;
}

/* Responsive Design for Social Media Icons */
@media (max-width: 768px) {
    .footer-social {
        height: 100px;
        padding-top: 20px;
    }
    
    .footer-social .social-icon {
        width: 45px;
        height: 45px;
        font-size: 16px;
        margin: 8px;
    }
    
    .footer-social .tooltip {
        font-size: 12px;
        padding: 4px 6px;
    }
    
    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 25px;
        right: 25px;
    }
    
    .scroll-to-top svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .footer-social {
        height: 80px;
        padding-top: 15px;
    }
    
    .footer-social .social-icon {
        width: 40px;
        height: 40px;
        font-size: 14px;
        margin: 6px;
    }
    
    .footer-social .tooltip {
        font-size: 11px;
        padding: 3px 5px;
    }
    
    .footer-social .social-icon:hover .tooltip {
        top: -40px;
    }
    
    .scroll-to-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
    }
    
    .scroll-to-top svg {
        width: 18px;
        height: 18px;
    }
}

/* Smooth Cursor Effect - Disabled for better compatibility */
.smooth-cursor {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: all 0.1s ease-out;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.smooth-cursor.visible {
    opacity: 1;
}

.smooth-cursor-trail {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: rgba(255, 0, 0, 0.3);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: all 0.15s ease-out;
    opacity: 0;
}

.smooth-cursor-trail.visible {
    opacity: 1;
}

/* Cursor variations for different elements */
.smooth-cursor.hover-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 0, 0, 0.2);
    border: 2px solid var(--primary-color);
    mix-blend-mode: normal;
}

.smooth-cursor.hover-button {
    width: 50px;
    height: 50px;
    background: rgba(255, 0, 0, 0.1);
    border: 2px solid var(--primary-color);
    mix-blend-mode: normal;
}

.smooth-cursor.hover-image {
    width: 60px;
    height: 60px;
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid var(--primary-color);
    mix-blend-mode: normal;
}

/* Custom cursor is disabled - show normal cursor */
@media (min-width: 768px) {
    /* Ensure cursor is visible for all elements */
    * {
        cursor: auto;
    }
    
    /* Show appropriate cursor for interactive elements */
    a, button, [role="button"], .ripple-effect {
        cursor: pointer !important;
    }
    
    /* Show cursor for input elements */
    input, textarea, select {
        cursor: text !important;
    }
    
    /* Show cursor for text selection */
    ::selection {
        cursor: text !important;
    }
}

/* Cursor follower dots - Disabled */
.cursor-dot {
    display: none !important;
    position: fixed;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9997;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
}

.cursor-dot.visible {
    opacity: 0.6;
}

/* Smooth cursor animations */
@keyframes cursorPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
    }
}

.smooth-cursor.pulse {
    animation: cursorPulse 1s infinite;
}

/* Cursor text indicator */
.cursor-text {
    position: fixed;
    top: 0;
    left: 0;
    padding: 4px 8px;
    background: var(--primary-color);
    color: white;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
    pointer-events: none;
    z-index: 10000;
    opacity: 0;
    transform: translate(-50%, -120%);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cursor-text.visible {
    opacity: 1;
}

/* Mobile cursor hint */
.cursor-hint {
    position: fixed;
    top: 20px;
    left: 20px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 14px;
    border-radius: 8px;
    z-index: 10001;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.cursor-hint.visible {
    opacity: 1;
}

@media (max-width: 767px) {
    .cursor-hint.mobile {
        opacity: 1;
    }
    
    .smooth-cursor,
    .smooth-cursor-trail,
    .cursor-dot {
        display: none;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes skillIconSpin {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

@keyframes skillCardGlow {
    0% { box-shadow: 0 0 5px rgba(255, 0, 0, 0.2); }
    50% { box-shadow: 0 0 20px rgba(255, 0, 0, 0.4); }
    100% { box-shadow: 0 0 5px rgba(255, 0, 0, 0.2); }
}

/* Scroll-triggered animation classes */
.scroll-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.scroll-fade-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease-out;
}

.scroll-fade-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s ease-out;
}

.scroll-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.6s ease-out;
}

/* Active states for scroll animations */
.scroll-fade-up.active,
.scroll-fade-left.active,
.scroll-fade-right.active,
.scroll-scale.active {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Enhanced Skill Cards */
.skill-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: linear-gradient(145deg, var(--background-light), var(--background-dark));
}

.skill-card:hover {
    transform: translateY(-5px);
    animation: skillCardGlow 2s infinite;
}

.skill-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.skill-card:hover i {
    animation: skillIconSpin 1s ease-out;
    color: #FF0000;
}

.skill-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 0, 0, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.skill-card:hover::after {
    opacity: 1;
}

/* Skill Progress Animation */
.skill-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-top: 1rem;
    overflow: hidden;
    position: relative;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    animation: skillProgress 2s ease-in-out infinite;
}

@keyframes skillProgress {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Section Title Animation */
.section-title {
    position: relative;
    overflow: hidden;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    animation: titleLine 2s ease-in-out infinite;
}

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

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform-origin: 0 50%;
    transform: scaleX(0);
    z-index: 1001;
}

/* Enhanced Uchiha Clan Crest in Footer */
.uchiha-crest {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    position: relative;
    background: #000000;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
    overflow: hidden;
    animation: pulseSharingan 2s infinite ease-in-out;
}

.uchiha-crest::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 54px;
    height: 54px;
    background: conic-gradient(
        from 180deg at 50% 50%,
        #FF0000 0deg 180deg,
        #FFFFFF 180deg 360deg
    );
    border-radius: 50%;
    animation: rotateCrest 10s linear infinite;
}

.uchiha-crest::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 20px;
    background: #FFFFFF;
    border-radius: 4px;
}

@keyframes pulseSharingan {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 0, 0, 0.5);
        transform: scale(1.05);
    }
}

@keyframes rotateCrest {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Enhanced Section Title Animations */
.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%,
        #FF0000 50%,
        transparent 100%
    );
    animation: shimmer 2s infinite linear;
}

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

/* Enhanced Button Animations */
.cta-primary,
.cta-secondary,
.submit-btn {
    position: relative;
    overflow: hidden;
    animation: buttonPop 0.3s ease-out;
    transform-origin: center;
}

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

.cta-primary:hover,
.cta-secondary:hover {
    transform: scale(1.05);
    animation: buttonGlow 2s infinite;
}

@keyframes buttonGlow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(255, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
    }
}

/* Stagger animation for buttons */
.cta-primary {
    animation-delay: 0.2s;
}

.cta-secondary {
    animation-delay: 0.4s;
}

/* AI Assistant Label */
.ai-label {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    color: #FFFFFF;
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    opacity: 0;
    animation: labelFadeIn 0.5s ease-out forwards;
    animation-delay: 0.5s;
}

@keyframes labelFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -10px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Enhanced Label Hover Effect */
.chat-bot-icon:hover .ai-label {
    animation: labelGlow 2s infinite;
}

@keyframes labelGlow {
    0%, 100% {
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }
    50% {
        text-shadow: 0 0 10px rgba(255, 0, 0, 0.5),
                     0 0 20px rgba(255, 0, 0, 0.3);
    }
}

/* Label Container Adjustments */
.chat-bot-container {
    position: sticky;
    top: 80px; /* Position below the navbar */
    right: 20px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* Chat Box Styling */
.chat-box {
    position: absolute;
    top: 70px; /* Position below the AI icon */
    right: 0;
    width: 300px;
    background: rgba(15, 15, 15, 0.95);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(255, 0, 0, 0.15);
    overflow: hidden;
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 0, 0, 0.1);
}

.chat-box.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.chat-header {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: headerSlideDown 0.5s ease-out 0.2s both;
    background: linear-gradient(145deg, rgba(44, 44, 44, 0.9), rgba(26, 26, 26, 0.9));
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    max-height: 300px;
    animation: messagesSlideUp 0.5s ease-out 0.3s both;
}

.chat-input {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: inputSlideUp 0.5s ease-out 0.4s both;
    background: linear-gradient(145deg, rgba(44, 44, 44, 0.8), rgba(26, 26, 26, 0.8));
}

/* Chat Box Animations */
@keyframes chatBoxOpen {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
        border-color: rgba(255, 0, 0, 0.2);
    }
    50% {
        border-color: rgba(255, 0, 0, 0.6);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        border-color: rgba(255, 0, 0, 0.2);
    }
}

@keyframes headerSlideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes messagesSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes inputSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Message animations */
.message {
    padding: 10px 15px;
    border-radius: 15px;
    margin-bottom: 10px;
    max-width: 80%;
    opacity: 0;
    animation: messageAppear 0.5s ease forwards;
}

.bot-message {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.2);
    align-self: flex-start;
    animation-delay: 0.5s;
}

.user-message {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    align-self: flex-end;
}

@keyframes messageAppear {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced close button */
.close-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.close-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 0, 0, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.close-btn:hover::before {
    width: 100%;
    height: 100%;
}

.close-btn:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 5px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 0, 0, 0.3);
    border-radius: 5px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 0, 0, 0.5);
}

/* Chat box glow effect */
.chat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 15px;
    background: radial-gradient(circle at top right, rgba(255, 0, 0, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.chat-box.active::before {
    animation: glowPulse 2s infinite;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.1;
    }
    50% {
        opacity: 0.2;
    }
}

/* Chat Bot Icon */
.chat-bot-icon {
    cursor: pointer;
    background: rgba(15, 15, 15, 0.9);
    border-radius: 50%;
    padding: 10px;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.2);
}

/* Ensure the chat box appears in front of other elements */
.chat-box {
    z-index: 1002;
}

/* Position the chat box relative to the icon */
.chat-box.active {
    top: 170px; /* Position below the chat bot icon */
    right: 30px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .chat-box {
        width: calc(100vw - 40px);
        max-width: 300px;
    }
    
    .chat-bot-icon {
        width: 50px;
        height: 50px;
    }
    
    .robot-head {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 480px) {
    .chat-box {
        width: calc(100vw - 40px);
        max-width: 300px;
    }
    
    .chat-bot-icon {
        width: 50px;
        height: 50px;
    }
    
    .robot-head {
        width: 30px;
        height: 30px;
    }
}

/* Robot Head Styling */
.robot-head {
    width: 35px;
    height: 35px;
    background: linear-gradient(145deg, #2C2C2C, #1A1A1A);
    border-radius: 12px;
    position: relative;
    border: 2px solid rgba(255, 0, 0, 0.2);
    transition: all 0.3s ease;
    overflow: hidden;
}

.robot-head.small {
    width: 25px;
    height: 25px;
    border-radius: 8px;
}

.robot-face {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.robot-antenna-left,
.robot-antenna-right {
    position: absolute;
    top: -5px;
    width: 2px;
    height: 6px;
    background: var(--primary-color);
}

.robot-antenna-left {
    left: 30%;
    transform: rotate(-15deg);
}

.robot-antenna-right {
    right: 30%;
    transform: rotate(15deg);
}

.robot-eye {
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    top: 35%;
    animation: eyePulse 2s infinite;
}

.robot-eye.left {
    left: 25%;
}

.robot-eye.right {
    right: 25%;
}

.robot-mouth {
    width: 10px;
    height: 2px;
    background: var(--primary-color);
    position: absolute;
    bottom: 25%;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 1px;
}

@keyframes eyePulse {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
        box-shadow: 0 0 10px var(--primary-color);
    }
}

/* Enhanced Chat Bot Icon Container */
.chat-bot-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(145deg, #2C2C2C, #1A1A1A);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    border: 2px solid rgba(255, 0, 0, 0.2);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.chat-bot-icon:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.2);
}

.chat-bot-icon:hover .robot-head {
    border-color: var(--primary-color);
}

.chat-bot-icon:hover .robot-eye {
    animation: eyeGlow 1s infinite;
}

@keyframes eyeGlow {
    0%, 100% {
        box-shadow: 0 0 5px var(--primary-color);
    }
    50% {
        box-shadow: 0 0 15px var(--primary-color),
                    0 0 25px var(--primary-color);
    }
}

/* Chat Bot Container Position */
.chat-bot-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

/* Internship Section Styling */
.internship {
    padding: 6rem 5%;
    background-color: var(--background-dark);
    position: relative;
    overflow: hidden;
}

.internship::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: radial-gradient(circle at 50% 0%, rgba(255, 0, 0, 0.1), transparent);
    pointer-events: none;
}

.internship-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    position: relative;
}

.internship-card {
    background: linear-gradient(145deg, var(--background-light), var(--background-dark));
    border: 1px solid var(--accent-color);
    border-radius: 15px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
    opacity: 0;
    transform: translateY(20px);
    animation: cardAppear 0.5s ease forwards;
}

.internship-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 0, 0, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.internship-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(255, 0, 0, 0.2);
    border-color: var(--primary-color);
}

.internship-card:hover::before {
    opacity: 1;
}

.internship-details {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.internship-details h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    transform-style: preserve-3d;
}

.internship-details h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.internship-card:hover h3::after {
    transform: scaleX(1);
}

.internship-description {
    margin: 1.5rem 0;
    position: relative;
}

.internship-description p {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInList 0.5s ease forwards;
}

.internship-description p::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.internship-card:hover .internship-description p::before {
    opacity: 1;
    transform: translateX(0);
}

.internship-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.skill-tag {
    padding: 0.4rem 1rem;
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInTag 0.5s ease forwards;
}

.skill-tag:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
    animation: glowTag 1.5s infinite;
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInList {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes glowTag {
    0%, 100% {
        box-shadow: 0 0 5px var(--primary-color);
        transform: translateY(-3px);
    }
    50% {
        box-shadow: 0 0 15px var(--primary-color);
        transform: translateY(-5px);
    }
}

/* Stagger animations */
.internship-description p:nth-child(1) { animation-delay: 0.1s; }
.internship-description p:nth-child(2) { animation-delay: 0.2s; }

.internship-skills .skill-tag:nth-child(1) { animation-delay: 0.3s; }
.internship-skills .skill-tag:nth-child(2) { animation-delay: 0.4s; }
.internship-skills .skill-tag:nth-child(3) { animation-delay: 0.5s; }
.internship-skills .skill-tag:nth-child(4) { animation-delay: 0.6s; }
.internship-skills .skill-tag:nth-child(5) { animation-delay: 0.7s; }
.internship-skills .skill-tag:nth-child(6) { animation-delay: 0.8s; }

/* Company details animation */
.internship-details p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.5s ease forwards;
}

.internship-details p i {
    color: var(--primary-color);
    animation: iconPulse 2s infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
        color: #FF4444;
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .internship-container {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .internship {
        padding: 4rem 3%;
    }

    .internship-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .internship-card {
        padding: 1.5rem;
    }

    .internship-details h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .internship {
        padding: 3rem 2%;
    }

    .internship-card {
        padding: 1.2rem;
    }

    .internship-details h3 {
        font-size: 1.3rem;
    }

    .skill-tag {
        padding: 0.3rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .internship-card,
    .internship-description p,
    .skill-tag,
    .internship-details p {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .internship-card:hover {
        transform: none;
    }
}

/* Education Section */
.education {
    padding: 6rem 5%;
    background-color: var(--background-light);
    position: relative;
    overflow: hidden;
}

.education::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: radial-gradient(circle at 50% 0%, rgba(255, 0, 0, 0.1), transparent);
    pointer-events: none;
}

.education-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
    display: flex;
    justify-content: center;
    position: relative;
}

.education-card {
    background: linear-gradient(145deg, var(--background-light), var(--background-dark));
    border: 1px solid var(--accent-color);
    border-radius: 15px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
    width: 100%;
    max-width: 800px;
}

.education-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 0, 0, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.education-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(255, 0, 0, 0.2);
    border-color: var(--primary-color);
}

.education-card:hover::before {
    opacity: 1;
}

.education-card h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    transform-style: preserve-3d;
}

.education-card h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.education-card:hover h3::after {
    transform: scaleX(1);
}

.education-details {
    margin-top: 1.5rem;
}

.education-details p {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.5s ease forwards;
}

.education-details p i {
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.education-card:hover .education-details p i {
    animation: iconPulse 2s infinite;
}

.education-highlights {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.education-highlights p {
    color: var(--text-primary);
    font-weight: 500;
}

.education-highlights .cgpa i {
    color: #FFD700;
}

.education-highlights .achievement i {
    color: #FF4444;
}

/* Stagger animations for education details */
.education-details p:nth-child(1) { animation-delay: 0.1s; }
.education-details p:nth-child(2) { animation-delay: 0.2s; }
.education-details p:nth-child(3) { animation-delay: 0.3s; }
.education-details p:nth-child(4) { animation-delay: 0.4s; }
.education-highlights p:nth-child(1) { animation-delay: 0.5s; }
.education-highlights p:nth-child(2) { animation-delay: 0.6s; }

/* CTA Button Animations */
.cta-primary,
.cta-secondary {
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: inline-block;
    animation: buttonAppear 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}

.cta-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--text-primary);
    border: none;
    animation-delay: 0.3s;
}

.cta-secondary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    animation-delay: 0.5s;
}

/* Shine effect for primary button */
.cta-primary::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-color), transparent, var(--primary-color));
    z-index: -1;
    animation: borderGlow 3s linear infinite;
}

/* Ripple effect for secondary button */
.cta-secondary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 0, 0, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.cta-secondary:hover::before {
    width: 300%;
    height: 300%;
}

/* Hover effects */
.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 0, 0, 0.3);
    animation: buttonPulse 1.5s infinite;
}

.cta-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 0, 0, 0.2);
    color: var(--text-primary);
}

/* Active state */
.cta-primary:active,
.cta-secondary:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 10px rgba(255, 0, 0, 0.2);
}

/* Button animations */
@keyframes buttonAppear {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes buttonPulse {
    0%, 100% {
        transform: translateY(-3px) scale(1);
        box-shadow: 0 10px 20px rgba(255, 0, 0, 0.3);
    }
    50% {
        transform: translateY(-3px) scale(1.05);
        box-shadow: 0 15px 25px rgba(255, 0, 0, 0.4);
    }
}

@keyframes borderGlow {
    0%, 100% {
        opacity: 0.5;
        transform: rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: rotate(180deg);
    }
}

/* Add icon animations */
.cta-primary i,
.cta-secondary i {
    margin-left: 8px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.cta-primary:hover i {
    animation: iconBounce 0.8s infinite;
}

.cta-secondary:hover i {
    animation: iconSpin 0.8s infinite;
}

@keyframes iconBounce {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(5px);
    }
}

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

/* Button container animation */
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    position: relative;
}

.cta-buttons::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    animation: lineExpand 1s ease-out forwards;
    animation-delay: 0.8s;
}

@keyframes lineExpand {
    0% {
        width: 0;
        opacity: 0;
    }
    100% {
        width: 80%;
        opacity: 1;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .cta-primary,
    .cta-secondary {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }
}



