:root {
    --primary-color: #1a1a2e;
    --primary-dark: #0f0f1a;
    --secondary-color: #f5a623;
    --accent-color: #e63946;
    --dark-color: #121212;
    --light-color: #e6e6e6;
    --gray-color: #4a4a4a;
    --light-gray: #2d2d2d;
    --transition: all 0.3s ease;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.7);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.8);
    --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.9);
    --shadow-xl: 0 25px 50px rgba(0, 0, 0, 1);
    --border-radius: 8px;
    --border-radius-lg: 12px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--dark-color);
    color: var(--light-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(26, 26, 46, 0.8) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(26, 26, 46, 0.8) 0%, transparent 20%),
        linear-gradient(to bottom, rgba(0,0,0,0.9), rgba(0,0,0,1));
    background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    letter-spacing: 1px;
    line-height: 1.2;
    color: var(--light-color);
}

a {
    text-decoration: none;
    color: inherit;
}

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

ul {
    list-style: none;
}

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

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    outline: none;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--dark-color);
    box-shadow: var(--shadow);
    font-weight: 700;
}

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

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

.btn-primary:hover::before {
    left: 100%;
}

.btn-outline {
    background-color: transparent;
    color: var(--light-color);
    border: 1px solid var(--secondary-color);
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: var(--secondary-color);
    color: var(--dark-color);
    box-shadow: 0 0 10px var(--secondary-color);
}

.section {
    padding: 70px 0;
    position: relative;
}

.gotham-section {
    background-color: rgba(26, 26, 46, 0.7);
    border-radius: var(--border-radius-lg);
    margin: 15px 0;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(245, 166, 35, 0.1);
    backdrop-filter: blur(5px);
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

.spline-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.8;
}

.section-header {
    text-align: center;
    margin-bottom: 45px;
    transform: translateZ(50px);
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
    color: var(--secondary-color);
    letter-spacing: -0.5px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
}

.section-subtitle {
    font-size: 1rem;
    color: var(--gray-color);
    max-width: 700px;
    margin: 0 auto;
}

.section-divider {
    height: 2px;
    width: 80px;
    background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
    margin: 15px auto;
}

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

/* 3D Particles */
.particles-3d {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Gotham City Elements */
.bat-signal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 10%, rgba(245, 166, 35, 0.1) 0%, transparent 30%);
    pointer-events: none;
    z-index: 0;
    animation: batSignalPulse 8s infinite alternate;
}

@keyframes batSignalPulse {
    0% { opacity: 0.3; }
    100% { opacity: 0.7; }
}

.gotham-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.raindrop {
    position: absolute;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(66, 66, 66, 0.6));
    animation: falling linear forwards;
    transform-origin: top;
}

@keyframes falling {
    to {
        transform: translateY(100vh);
    }
}

.batwing-animation {
    position: absolute;
    top: 10%;
    right: 10%;
    width: 100px;
    height: 50px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 50"><path d="M50 0 L100 25 L50 50 L0 25 Z" fill="none" stroke="%23f5a623" stroke-width="1"/></svg>');
    background-repeat: no-repeat;
    opacity: 0.5;
    animation: batwingFly 15s linear infinite;
}

@keyframes batwingFly {
    0% { transform: translateX(100px) translateY(-50px) rotate(10deg); opacity: 0; }
    10% { opacity: 0.5; }
    90% { opacity: 0.5; }
    100% { transform: translateX(-100px) translateY(100px) rotate(-10deg); opacity: 0; }
}

/* Header Styles */
.gotham-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(18, 18, 18, 0.95);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-bottom: 1px solid rgba(245, 166, 35, 0.1);
    backdrop-filter: blur(5px);
}

.gotham-header.scrolled {
    background-color: rgba(10, 10, 20, 0.98);
    box-shadow: var(--shadow);
}

.gotham-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
}

.logo {
    height: 50px;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.logo-img {
    height: 100%;
    width: auto;
    transition: var(--transition);
    filter: drop-shadow(0 0 5px rgba(245, 166, 35, 0.5));
}

.logo:hover .logo-img {
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px var(--secondary-color));
}

nav {
    display: flex;
    gap: 25px;
}

.nav-link {
    position: relative;
    font-weight: 500;
    color: var(--light-color);
    transition: var(--transition);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

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

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

.nav-link:hover {
    color: var(--secondary-color);
    text-shadow: 0 0 5px rgba(245, 166, 35, 0.5);
}

.menu-toggle {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger {
    width: 25px;
    height: 2px;
    background-color: var(--secondary-color);
    position: relative;
    transition: var(--transition);
    box-shadow: 0 0 5px var(--secondary-color);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
    box-shadow: 0 0 5px var(--secondary-color);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

.menu-toggle.active .hamburger {
    background-color: transparent;
}

.menu-toggle.active .hamburger::before {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .hamburger::after {
    transform: translateY(-8px) rotate(-45deg);
}

.gotham-hero {
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0a14 0%, #1a1a2e 100%);
    perspective: 1000px;
}

.gotham-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1508511267-5edd661c5d3b?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1170&q=80') no-repeat center center/cover;
    opacity: 0.3;
    z-index: 0;
}

.gotham-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.9) 100%);
    z-index: 1;
}

.gotham-building-silhouette {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height:55%;
    background-image: url('ChatGPT Image Aug 2, 2025, 03_36_16 AM.png');
    background-repeat: repeat-x;
    background-size: auto 100%;
    background-position: bottom;
    z-index: 1;
    pointer-events: none;
    opacity: 0.45;
    filter: drop-shadow(0 -5px 10px rgba(245, 166, 35, 0.2));
    mask-image: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
}

.gotham-lightning {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0) 90%,
        rgba(255,255,255,0.8) 92%,
        rgba(255,255,255,0) 94%,
        rgba(255,255,255,0) 100%);
    z-index: 1;
    opacity: 0;
    pointer-events: none;
    animation: lightningFlash 15s infinite;
}

@keyframes lightningFlash {
    0%, 85% { opacity: 0; }
    87% { opacity: 0.8; }
    89% { opacity: 0.3; }
    91% { opacity: 0.6; }
    93% { opacity: 0.1; }
    95% { opacity: 0.4; }
    97% { opacity: 0; }
    100% { opacity: 0; }
}

.gotham-fog {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(26,26,46,0.6) 0%, transparent 100%);
    z-index: 1;
    pointer-events: none;
    animation: fogMovement 20s infinite alternate ease-in-out;
}

@keyframes fogMovement {
    0% { transform: translateX(-50px); opacity: 0.6; }
    50% { opacity: 0.8; }
    100% { transform: translateX(50px); opacity: 0.6; }
}

/* Improved Rain Styles */
.gotham-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.raindrop {
    position: absolute;
    background: linear-gradient(to bottom, transparent, rgba(200, 200, 200, 0.8));
    animation: falling linear forwards;
    transform-origin: top;
    z-index: 2;
    pointer-events: none;
    top: -100px;
}

@keyframes falling {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(calc(100vh + 100px)) rotate(5deg);
    }
}

.hero-content {
    z-index: 2;
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    transform: translateZ(50px);
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 15px;
    animation: fadeInUp 1s ease;
    color: var(--light-color);
    text-shadow: 0 0 20px rgba(245, 166, 35, 0.8);
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 25px;
    animation: fadeInUp 1s ease 0.2s both;
    color: var(--secondary-color);
    text-shadow: 0 0 10px rgba(245, 166, 35, 0.5);
    letter-spacing: 0.5px;
}

.title-line {
    display: block;
}

.scroll-down {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--gray-color);
    font-size: 0.85rem;
    cursor: pointer;
    z-index: 2;
}

.arrow {
    width: 20px;
    height: 20px;
    border-bottom: 2px solid var(--secondary-color);
    border-right: 2px solid var(--secondary-color);
    transform: rotate(45deg);
    margin-top: 10px;
    animation: bounce 2s infinite;
    box-shadow: 0 0 5px var(--secondary-color);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: rotate(45deg) translateY(0);
    }
    40% {
        transform: rotate(45deg) translateY(-10px);
    }
    60% {
        transform: rotate(45deg) translateY(-5px);
    }
}

/* About Section */
.about-section {
    background-color: transparent;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 16px;
    color: var(--gray-color);
    font-size: 0.95rem;
    line-height: 1.7;
}

.about-text .lead {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--light-color);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
    padding: 18px;
    background-color: rgba(26, 26, 46, 0.5);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(245, 166, 35, 0.1);
    transform-style: preserve-3d;
}

.stat-item:hover {
    transform: translateY(-5px) translateZ(10px);
    box-shadow: var(--shadow);
    border-color: var(--secondary-color);
    background-color: rgba(26, 26, 46, 0.8);
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(245, 166, 35, 0.5);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-color);
}

.about-image {
    flex: 1;
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 3px solid var(--secondary-color);
    transform-style: preserve-3d;
    transition: var(--transition);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    color: white;
}

.image-wrapper:hover .image-overlay {
    opacity: 1;
}

.profile-img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
}

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

/* Experience Section */
.experience-section {
    background-color: transparent;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, var(--secondary-color) 10%, var(--secondary-color) 90%, transparent 100%);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    perspective: 1000px;
}

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

.timeline-content {
    position: relative;
    width: calc(50% - 35px);
    padding: 18px;
    background: rgba(26, 26, 46, 0.7);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(245, 166, 35, 0.1);
    transition: var(--transition);
    transform-style: preserve-3d;
}

.timeline-item:nth-child(odd) .timeline-content {
    left: 0;
}

.timeline-item:nth-child(even) .timeline-content {
    left: calc(50% + 35px);
}

.timeline-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    opacity: 0;
    pointer-events: none;
    animation: lightningFlash 15s infinite;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.timeline-item:nth-child(even) .timeline-icon {
    left: -70px;
    right: auto;
}

.timeline-date {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 10px;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
}

.timeline-title {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--light-color);
}

.timeline-subtitle {
    font-size: 0.95rem;
    color: var(--secondary-color);
    margin-bottom: 8px;
    font-family: 'Bebas Neue', sans-serif;
}

.timeline-description {
    color: var(--gray-color);
    font-size: 0.88rem;
    line-height: 1.6;
}

.timeline-content:hover {
    transform: translateY(-5px) translateZ(10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

/* Skills Section */
.skills-section {
    background-color: transparent;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.skill-category {
    background-color: rgba(18, 18, 18, 0.8);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(245, 166, 35, 0.1);
    transform-style: preserve-3d;
}

.skill-category:hover {
    transform: translateY(-8px) translateZ(10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

.skill-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
    color: var(--dark-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 16px;
    box-shadow: 0 0 10px var(--secondary-color);
    transition: var(--transition);
}

.skill-category:hover .skill-icon {
    transform: rotateY(180deg);
}

.skill-category h3 {
    margin-bottom: 16px;
    font-size: 1.35rem;
    color: var(--secondary-color);
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.skill-name {
    font-size: 0.88rem;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    color: var(--light-color);
}

.skill-bar {
    height: 7px;
    background-color: var(--light-gray);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
    width: 0;
    border-radius: 4px;
    transition: width 1.5s ease;
    box-shadow: 0 0 5px var(--secondary-color);
}

/* Portfolio Section */
.portfolio-section {
    background-color: transparent;
}

/* Featured Projects Grid */
.featured-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.featured-project-card {
    background: rgba(26, 26, 46, 0.4);
    border: 1px solid rgba(245, 166, 35, 0.2);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.featured-project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(245, 166, 35, 0.6);
    box-shadow: 0 15px 50px rgba(245, 166, 35, 0.3);
}

.featured-project-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.featured-project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.featured-overlay-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: var(--dark-color);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.4);
}

.featured-project-content {
    padding: 25px;
}

.featured-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 16px;
}

.tech-pill {
    background: rgba(245, 166, 35, 0.15);
    border: 1px solid rgba(245, 166, 35, 0.4);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--secondary-color);
    font-weight: 600;
    transition: all 0.3s ease;
}

.featured-project-card:hover .tech-pill {
    background: rgba(245, 166, 35, 0.25);
    border-color: var(--secondary-color);
}

.featured-project-title {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 12px;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1.2px;
    line-height: 1.3;
}

.featured-project-description {
    color: var(--light-color);
    line-height: 1.7;
    font-size: 0.92rem;
    margin-bottom: 16px;
    opacity: 0.9;
}

.featured-highlights {
    margin-bottom: 20px;
}

.highlight {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    color: var(--light-color);
    font-size: 0.88rem;
}

.highlight i {
    color: var(--secondary-color);
    font-size: 0.95rem;
    min-width: 16px;
}

.featured-project-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-featured {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-size: 0.88rem;
    font-weight: 600;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-demo {
    background: var(--secondary-color);
    color: var(--dark-color);
    border-color: var(--secondary-color);
}

.btn-demo:hover {
    background: transparent;
    color: var(--secondary-color);
    box-shadow: 0 0 20px rgba(245, 166, 35, 0.4);
}

.btn-details {
    background: transparent;
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-details:hover {
    background: var(--secondary-color);
    color: var(--dark-color);
    box-shadow: 0 0 20px rgba(245, 166, 35, 0.4);
}

.view-all-section {
    margin-top: 45px;
}

.btn-view-all {
    font-size: 1.05rem;
    padding: 12px 35px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.view-all-subtitle {
    margin-top: 15px;
    color: var(--light-color);
    opacity: 0.7;
    font-size: 0.95rem;
}

/* Old portfolio styles (kept for projects.html compatibility) */
.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 8px 20px;
    background-color: transparent;
    border: 1px solid var(--light-gray);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    color: var(--light-color);
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
}

.filter-btn:hover {
    background-color: var(--secondary-color);
    color: var(--dark-color);
    border-color: var(--secondary-color);
    box-shadow: 0 0 10px var(--secondary-color);
}

.filter-btn.active {
    background-color: var(--secondary-color);
    color: var(--dark-color);
    border-color: var(--secondary-color);
    box-shadow: 0 0 10px var(--secondary-color);
    font-weight: 700;
}

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

.portfolio-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    height: 250px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(245, 166, 35, 0.1);
    transform-style: preserve-3d;
}

.portfolio-item-featured {
    height: 350px;
}

.portfolio-item:hover {
    box-shadow: 0 0 20px rgba(245, 166, 35, 0.5);
    transform: translateY(-5px) rotateX(5deg) rotateY(5deg);
}

.portfolio-img {
    width: 100%;
    height: 100%;
    position: relative;
}

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

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    transform: translateZ(20px);
    overflow-y: auto;
    padding: 20px;
}

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

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

.overlay-content {
    text-align: center;
    padding: 20px;
    color: white;
    transform: translateY(20px);
    transition: var(--transition);
    max-width: 100%;
}

.portfolio-item:hover .overlay-content {
    transform: translateY(0);
}

.overlay-content h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.overlay-content p {
    margin-bottom: 20px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.project-tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 15px;
}

.tech-badge {
    background: rgba(245, 166, 35, 0.2);
    border: 1px solid var(--secondary-color);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    color: var(--secondary-color);
    font-weight: 500;
}

.project-highlights {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    text-align: left;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
}

.highlight-item i {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.project-links-featured {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.project-links-featured .btn {
    font-size: 0.85rem;
    padding: 8px 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.project-links-featured .btn i {
    font-size: 0.8rem;
}

/* Contact Section */
.contact-section {
    background-color: transparent;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: var(--transition);
    transform-style: preserve-3d;
}

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

.info-icon {
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    color: var(--dark-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 0 10px var(--secondary-color);
    transition: var(--transition);
}

.info-item:hover .info-icon {
    transform: rotateY(180deg);
}

.info-content h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.info-content a {
    color: var(--gray-color);
    transition: var(--transition);
}

.info-content a:hover {
    color: var(--secondary-color);
    text-shadow: 0 0 5px rgba(245, 166, 35, 0.5);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group input,
.form-group textarea {
    padding: 11px 14px;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
    background-color: rgba(18, 18, 18, 0.8);
    color: var(--light-color);
    transform-style: preserve-3d;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.1);
    transform: translateZ(5px);
}

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

/* Footer */
.gotham-footer {
    background-color: var(--primary-dark);
    color: white;
    padding: 60px 0 0;
    position: relative;
    border-top: 1px solid rgba(245, 166, 35, 0.1);
}

.gotham-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1518709268805-4e9042af9f23?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1170&q=80') no-repeat center center/cover;
    opacity: 0.1;
    z-index: 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.footer-logo {
    height: 80px;
    margin-bottom: 20px;
}

.footer-logo-img {
    height: 100%;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(245, 166, 35, 0.7));
}

.footer-text {
    max-width: 600px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.7);
}

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

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(245, 166, 35, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--secondary-color);
    border: 1px solid rgba(245, 166, 35, 0.3);
    transform-style: preserve-3d;
}

.social-link:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px) rotateY(180deg);
    color: var(--dark-color);
    box-shadow: 0 0 15px var(--secondary-color);
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(245, 166, 35, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(245, 166, 35, 0.7);
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

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

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

.footer-links a:hover {
    color: var(--secondary-color);
    text-shadow: 0 0 5px rgba(245, 166, 35, 0.5);
}

/* Cursor Animation */
.cursor {
    position: fixed;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    pointer-events: none;
    mix-blend-mode: difference;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: 
        transform 0.15s ease,
        width 0.2s ease,
        height 0.2s ease;
    box-shadow: 0 0 5px var(--secondary-color);
}
    
.cursor-follower {
    position: fixed;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid var(--secondary-color);
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: 
        transform 0.3s ease,
        width 0.3s ease,
        height 0.3s ease;
    box-shadow: 0 0 10px var(--secondary-color);
}
    
/* Cursor states */
.cursor-active {
    transform: translate(-50%, -50%) scale(1.5);
    background-color: var(--accent-color);
}
    
.cursor-follower-active {
    transform: translate(-50%, -50%) scale(0.8);
    background-color: rgba(245, 166, 35, 0.2);
    border-width: 1px;
}
    
.cursor-click {
    transform: translate(-50%, -50%) scale(0.8);
}
    
.cursor-follower-click {
    transform: translate(-50%, -50%) scale(1.2);
    border-color: var(--accent-color);
}
    
/* Hide cursor when not needed */
.cursor-hidden {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
}
    
.cursor-follower-hidden {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        order: -1;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    .timeline::before {
        left: 40px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        left: 80px;
        width: calc(100% - 120px);
    }
    
    .timeline-item:nth-child(odd) .timeline-icon,
    .timeline-item:nth-child(even) .timeline-icon {
        left: 0;
        right: auto;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 70px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: rgba(18, 18, 18, 0.98);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        gap: 20px;
        box-shadow: var(--shadow);
        transform: translateY(-150%);
        transition: var(--transition);
        backdrop-filter: blur(5px);
        border-bottom: 1px solid rgba(245, 166, 35, 0.1);
    }
    
    nav.active {
        transform: translateY(0);
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .featured-projects-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .featured-project-content {
        padding: 25px;
    }

    .featured-project-title {
        font-size: 1.4rem;
    }

    .featured-project-actions {
        flex-direction: column;
    }

    .btn-featured {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .btn {
        padding: 10px 20px;
    }
    
    .filter-btn {
        padding: 6px 15px;
        font-size: 0.8rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }
}

/* Tech Stack Section */
.tech-stack-section {
    background-color: transparent;
}

.tech-stack-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.tech-category {
    background-color: rgba(18, 18, 18, 0.8);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(245, 166, 35, 0.1);
    transform-style: preserve-3d;
}

.tech-category:hover {
    transform: translateY(-10px) translateZ(10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

.tech-category h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.tech-icons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px;
    background-color: rgba(26, 26, 46, 0.5);
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 1px solid rgba(245, 166, 35, 0.1);
}

.tech-item:hover {
    transform: translateY(-5px) translateZ(5px);
    border-color: var(--secondary-color);
    box-shadow: 0 0 10px rgba(245, 166, 35, 0.3);
}

.tech-item i {
    font-size: 2rem;
    color: var(--secondary-color);
}

.tech-item span {
    font-size: 0.9rem;
    color: var(--light-color);
    text-align: center;
}

/* Responsive adjustments for tech stack */
@media (max-width: 768px) {
    .tech-icons {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }

    .tech-item i {
        font-size: 1.5rem;
    }

    .tech-item span {
        font-size: 0.8rem;
    }
}

/* ===== SCROLL ANIMATIONS ===== */

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes textReveal {
    from {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes scaleRotate {
    from {
        opacity: 0;
        transform: scale(0.8) rotate(-5deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes parallaxUp {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-50px);
    }
}

@keyframes parallaxDown {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(50px);
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.animate {
    opacity: 1;
    transform: translateY(0);
    will-change: auto;
}

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

.slide-in-left.animate {
    opacity: 1;
    transform: translateX(0);
    will-change: auto;
}

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

.slide-in-right.animate {
    opacity: 1;
    transform: translateX(0);
    will-change: auto;
}

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

.slide-in-up.animate {
    opacity: 1;
    transform: translateY(0);
    will-change: auto;
}

.text-reveal {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(10px);
    transition: opacity 0.8s ease, transform 0.8s ease, filter 0.8s ease;
}

.text-reveal.animate {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
    will-change: auto;
}

.scale-rotate {
    opacity: 0;
    transform: scale(0.8) rotate(-5deg);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scale-rotate.animate {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    will-change: auto;
}

/* Staggered Animation Delays */
.skill-item[data-delay] {
    transition-delay: calc(var(--delay) * 0.1s);
}

.tech-item[data-delay] {
    transition-delay: calc(var(--delay) * 0.05s);
}

/* Parallax Classes */
.parallax-up {
    will-change: auto;
}

.parallax-down {
    will-change: auto;
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
    transform-origin: left;
    z-index: 1001;
    will-change: auto;
}

/* Accessibility: Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    .fade-in,
    .slide-in-left,
    .slide-in-right,
    .slide-in-up,
    .text-reveal,
    .scale-rotate {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition: none !important;
    }

    .parallax-up,
    .parallax-down {
        transform: none !important;
    }

    .bat-signal,
    .gotham-rain,
    .batwing-animation,
    .gotham-lightning,
    .gotham-fog {
        animation: none !important;
    }
}

/* Performance optimizations */
.fade-in,
.slide-in-left,
.slide-in-right,
.slide-in-up,
.text-reveal,
.scale-rotate {
    backface-visibility: hidden;
    perspective: 1000px;
}
