/* ===== CSS Variables ===== */
:root {
    --color-primary: #E31E24;
    --color-primary-dark: #B91820;
    --color-secondary: #54595F;
    --color-text: #b0b0b0;
    --color-accent: #E31E24;
    --color-dark: #0a0a0a;
    --color-darker: #000000;
    --color-light: #ffffff;
    --color-gray: #0d0d0d;
    --color-gray-light: #1a1a1a;
    --color-neon-red: #ff1a1a;
    --color-neon-pink: #ff0066;
    
    --font-primary: 'Roboto', sans-serif;
    --font-secondary: 'Roboto Slab', serif;
    
    --container-max-width: 1200px;
    --spacing-section: 120px;
    --transition: all 0.6s ease;
    
    /* Futuristic Neon Glow Effects */
    --glow-primary: 0 0 20px rgba(227, 30, 36, 0.6), 0 0 40px rgba(227, 30, 36, 0.4), 0 0 80px rgba(227, 30, 36, 0.2);
    --glow-text: 0 0 10px rgba(227, 30, 36, 0.9), 0 0 30px rgba(227, 30, 36, 0.6), 0 0 50px rgba(227, 30, 36, 0.3);
    --glow-box: 0 0 30px rgba(227, 30, 36, 0.4), 0 0 60px rgba(227, 30, 36, 0.2);
    --glow-intense: 0 0 5px #fff, 0 0 10px #fff, 0 0 20px var(--color-primary), 0 0 40px var(--color-primary), 0 0 80px var(--color-primary);
    
    /* Glassmorphism */
    --glass-bg: rgba(10, 10, 10, 0.7);
    --glass-border: rgba(227, 30, 36, 0.3);
    --glass-blur: blur(20px);
}

/* ===== Reset & Base Styles ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-light);
    background-color: var(--color-darker);
    overflow-x: hidden;
    position: relative;
}

/* Dynamic Page Background GIF */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--page-bg-gif, none);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
    opacity: 0.7;
}

/* Light overlay for text readability */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
    z-index: -1;
    pointer-events: none;
}

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

ul {
    list-style: none;
}

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

/* ===== Container ===== */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(227, 30, 36, 0.2);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(227, 30, 36, 0.1);
    padding: 15px 0;
}

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

.logo img {
    height: 50px;
    width: auto;
}

.btn-contact {
    display: inline-block;
    padding: 8px 20px;
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-light);
    font-weight: 500;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    transition: all 0.7s ease;
}

.btn-contact:hover {
    background: var(--color-primary);
    color: var(--color-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(227, 30, 36, 0.3);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--color-darker);
    position: relative;
    overflow: hidden;
}

/* GIF Background - More visible, HD quality */
.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Minimal overlay - GIF more visible */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.5) 100%);
    z-index: 1;
}

/* Animated Neon Border Lines */
.hero .neon-line-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    box-shadow: var(--glow-primary);
    animation: neonPulse 2s ease-in-out infinite;
    z-index: 5;
}

.hero .neon-line-left {
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--color-primary), transparent);
    box-shadow: var(--glow-primary);
    z-index: 5;
}

/* Particles z-index */
.hero .particles {
    z-index: 3;
}

@keyframes neonPulse {
    0%, 100% { opacity: 1; box-shadow: var(--glow-primary); }
    50% { opacity: 0.7; box-shadow: 0 0 10px rgba(227, 30, 36, 0.3); }
}

.hero-content {
    position: relative;
    z-index: 10;
    animation: heroFadeIn 1.5s ease-out;
}

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

.hero-logo {
    margin-bottom: 50px;
    position: relative;
    perspective: 1000px;
}

.hero-logo img {
    height: 180px;
    width: auto;
    margin: 0 auto;
    filter: drop-shadow(0 0 40px rgba(227, 30, 36, 0.7));
    animation: logoFloat 4s ease-in-out infinite, logoPulse 2s ease-in-out infinite;
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-logo:hover img {
    transform: scale(1.1) rotateY(10deg);
    filter: drop-shadow(0 0 60px rgba(227, 30, 36, 0.9));
}

@keyframes logoPulse {
    0%, 100% { filter: drop-shadow(0 0 40px rgba(227, 30, 36, 0.7)); }
    50% { filter: drop-shadow(0 0 60px rgba(227, 30, 36, 0.9)); }
}

@keyframes logoFloat {
    0%, 100% { 
        transform: translateY(0) scale(1); 
        filter: drop-shadow(0 0 30px rgba(227, 30, 36, 0.6));
    }
    50% { 
        transform: translateY(-10px) scale(1.02); 
        filter: drop-shadow(0 0 50px rgba(227, 30, 36, 0.8));
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
}

.brand-name {
    font-family: var(--font-secondary);
    font-size: 90px;
    font-weight: 800;
    letter-spacing: 25px;
    margin-bottom: 30px;
    color: var(--color-primary);
    text-shadow: 0 0 40px rgba(227, 30, 36, 0.5);
    position: relative;
}

.brand-name::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    box-shadow: 0 0 20px var(--color-primary);
}

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

.tagline {
    font-size: 26px;
    color: var(--color-text);
    font-weight: 300;
    letter-spacing: 2px;
}

.typed-text {
    color: var(--color-primary);
    font-weight: 600;
    text-shadow: var(--glow-text);
}

.cursor {
    color: var(--color-primary);
    animation: blink 1s infinite;
    text-shadow: var(--glow-text);
}

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

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

/* ===== Section Common Styles ===== */
section {
    padding: var(--spacing-section) 0;
    position: relative;
}

/* ===== Futuristic Section Backgrounds ===== */
.features,
.services,
.fun-facts,
.portfolio-stats {
    background: linear-gradient(135deg, rgba(0,0,0,0.9) 0%, rgba(20,0,0,0.95) 100%);
    position: relative;
    overflow: hidden;
}

.features::before,
.services::before,
.fun-facts::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/section-bg-waves.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: 0;
}

.about,
.contact,
.testimonials-section {
    position: relative;
    overflow: hidden;
}

.about::before,
.contact::before,
.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/section-bg-spheres.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.25;
    z-index: 0;
}

.features > *,
.services > *,
.fun-facts > *,
.about > *,
.contact > *,
.testimonials-section > * {
    position: relative;
    z-index: 1;
}

/* ===== Futuristic Glassmorphism Cards ===== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
}

/* ===== Neon Border Animation ===== */
@keyframes neonPulse {
    0%, 100% { box-shadow: 0 0 5px var(--color-primary), 0 0 20px var(--color-primary), 0 0 40px rgba(227, 30, 36, 0.3); }
    50% { box-shadow: 0 0 10px var(--color-primary), 0 0 30px var(--color-primary), 0 0 60px rgba(227, 30, 36, 0.5); }
}

@keyframes borderGlow {
    0%, 100% { border-color: var(--color-primary); }
    50% { border-color: var(--color-neon-red); }
}

@keyframes scanline {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100vh); }
}

.section-label {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.section-title {
    font-family: var(--font-secondary);
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff 0%, var(--color-primary) 50%, #ffffff 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
    text-shadow: none;
    filter: drop-shadow(0 0 20px rgba(227, 30, 36, 0.3));
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ===== About Section ===== */
.about {
    background: var(--color-dark);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(227, 30, 36, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.about-description {
    margin-bottom: 40px;
}

.about-description li {
    font-size: 18px;
    color: var(--color-text);
    line-height: 1.8;
    position: relative;
    padding-left: 20px;
}

.about-description li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
}

/* ===== Skills ===== */
.skills {
    margin-top: 40px;
}

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

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

.skill-name {
    font-weight: 500;
    font-size: 16px;
}

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

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

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary) 0%, #ff4d4d 100%);
    border-radius: 10px;
    width: 0;
    transition: width 2s ease-out;
}

.about-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image img {
    width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 
        0 0 60px rgba(227, 30, 36, 0.4),
        0 30px 60px rgba(0, 0, 0, 0.5),
        inset 0 0 0 4px var(--color-primary);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 30px 100%, 0 calc(100% - 30px));
}

.about-image::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    width: calc(100% + 30px);
    height: calc(100% + 30px);
    border: 2px solid var(--color-primary);
    clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 30px 100%, 0 calc(100% - 30px));
    z-index: -1;
    opacity: 0.5;
    animation: borderPulse 3s ease-in-out infinite;
}

.about-image::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -40px;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--color-primary) 0%, rgba(227, 30, 36, 0.5) 100%);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    animation: floatDiamond 4s ease-in-out infinite;
    box-shadow: 0 0 30px var(--color-primary);
}

@keyframes floatDiamond {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.8; }
    50% { transform: translateY(-20px) rotate(45deg); opacity: 1; }
}

@keyframes borderPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.02); }
}

.about-image:hover img {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 
        0 0 80px rgba(227, 30, 36, 0.6),
        0 40px 80px rgba(0, 0, 0, 0.6);
}

/* ===== Features Section ===== */
.features {
    background: var(--color-darker);
    position: relative;
}

.features-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.features-title {
    font-family: var(--font-secondary);
    font-size: 42px;
    font-weight: 600;
    margin-bottom: 20px;
}

.features-description {
    font-size: 18px;
    color: var(--color-text);
    margin-bottom: 25px;
    line-height: 1.8;
}

.btn-link {
    display: inline-block;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
}

.btn-link:hover {
    color: var(--color-light);
    transform: translateX(5px);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.9) 0%, rgba(10, 10, 10, 0.95) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(227, 30, 36, 0.2);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(227, 30, 36, 0.1), transparent);
    transition: left 0.8s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 0 20px rgba(227, 30, 36, 0.3), 0 25px 50px rgba(0, 0, 0, 0.5);
}

.feature-card h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--color-light);
}

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

.icon-card {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary) 0%, #ff4d4d 100%);
    box-shadow: 0 0 30px rgba(227, 30, 36, 0.4);
    animation: neonPulse 3s ease-in-out infinite;
}

.feature-icon svg {
    width: 80px;
    height: 80px;
    fill: var(--color-light);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

/* ===== Services Section ===== */
.services {
    background: linear-gradient(180deg, rgba(10, 0, 0, 0.95) 0%, rgba(20, 5, 5, 0.9) 50%, rgba(10, 0, 0, 0.95) 100%);
    position: relative;
}

.services-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.services-subtitle {
    font-size: 18px;
    font-weight: 400;
    color: var(--color-text);
    line-height: 1.8;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: linear-gradient(145deg, rgba(15, 15, 15, 0.95) 0%, rgba(5, 5, 5, 0.98) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 50px 40px;
    border-radius: 0;
    text-align: center;
    transition: all 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(227, 30, 36, 0.2);
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    box-shadow: var(--glow-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, var(--color-primary), transparent);
    box-shadow: var(--glow-primary);
    transition: 0.8s;
}

.service-card:hover::before {
    transform: scaleX(1);
}

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

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 0 30px rgba(227, 30, 36, 0.4), 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 0 60px rgba(227, 30, 36, 0.05);
    border-color: var(--color-neon-red);
}

.service-card h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 15px;
}

.service-card h2 a {
    color: var(--color-light);
    transition: var(--transition);
}

.service-card h2 a:hover {
    color: var(--color-primary);
}

.service-card p {
    font-size: 16px;
    color: var(--color-text);
    margin-bottom: 25px;
    line-height: 1.7;
}

.service-link {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-link:hover {
    color: var(--color-light);
}

/* ===== Contact Section ===== */
.contact {
    background: var(--color-darker);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at bottom right, rgba(227, 30, 36, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.contact-title {
    font-family: var(--font-secondary);
    font-size: 42px;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.3;
}

.contact-subtitle {
    font-size: 18px;
    font-weight: 400;
    color: var(--color-text);
    margin-bottom: 40px;
    line-height: 1.8;
}

.contact-info li a {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--color-light);
    font-size: 16px;
    padding: 15px 25px;
    background: var(--color-gray);
    border-radius: 10px;
    transition: var(--transition);
}

.contact-info li a:hover {
    background: var(--color-primary);
}

.contact-info svg {
    width: 24px;
    height: 24px;
    fill: var(--color-primary);
    transition: var(--transition);
}

.contact-info li a:hover svg {
    fill: var(--color-light);
}

/* ===== Contact Form ===== */
.contact-form {
    background: var(--color-gray);
    padding: 50px;
    border-radius: 20px;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 18px 25px;
    background: var(--color-dark);
    border: 1px solid var(--color-gray-light);
    border-radius: 10px;
    color: var(--color-light);
    font-family: var(--font-primary);
    font-size: 16px;
    transition: var(--transition);
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text);
}

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

.btn-submit {
    width: 100%;
    padding: 12px 28px;
    background: linear-gradient(90deg, var(--color-primary) 0%, #ff4d4d 100%);
    border: none;
    border-radius: 8px;
    color: var(--color-light);
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.7s ease;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(227, 30, 36, 0.4);
}

/* ===== Footer ===== */
.footer {
    background: linear-gradient(180deg, rgba(5, 0, 0, 0.98) 0%, rgba(0, 0, 0, 1) 100%);
    padding: 100px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: none;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--color-primary) 20%, var(--color-primary) 80%, transparent 100%);
    box-shadow: 0 0 30px var(--color-primary), 0 0 60px rgba(227, 30, 36, 0.5);
}

.footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 0%, rgba(227, 30, 36, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(227, 30, 36, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

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

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

.footer-logo img {
    height: 100px;
    width: auto;
    filter: drop-shadow(0 0 20px rgba(227, 30, 36, 0.4));
    transition: all 0.7s ease;
}

.footer-logo:hover img {
    filter: drop-shadow(0 0 40px rgba(227, 30, 36, 0.7));
    transform: scale(1.05);
}

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

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(227, 30, 36, 0.4);
}

.scroll-top svg {
    width: 20px;
    height: 20px;
    fill: var(--color-light);
}

.copyright {
    font-size: 14px;
    color: var(--color-text);
}

/* ===== Responsive Styles ===== */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image {
        order: -1;
    }
    
    .brand-name {
        font-size: 48px;
        letter-spacing: 10px;
    }
    
    .section-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-section: 60px;
    }
    
    .hero-logo img {
        height: 80px;
    }
    
    .brand-name {
        font-size: 36px;
        letter-spacing: 5px;
    }
    
    .tagline {
        font-size: 18px;
    }
    
    .features-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title,
    .contact-title,
    .features-title {
        font-size: 32px;
    }
    
    .contact-form {
        padding: 30px;
    }
    
    .about-image::before,
    .about-image::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        padding: 0;
    }
    
    .logo img {
        height: 40px;
    }
    
    .btn-contact {
        padding: 6px 14px;
        font-size: 10px;
    }
    
    .brand-name {
        font-size: 28px;
        letter-spacing: 3px;
    }
    
    .service-card {
        padding: 30px 20px;
    }
    
    .service-card h2 {
        font-size: 22px;
    }
}

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

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Blur Animation for Titles ===== */
[data-blur-delay] {
    animation: blurIn 1s ease forwards;
}

@keyframes blurIn {
    from {
        filter: blur(10px);
        opacity: 0;
    }
    to {
        filter: blur(0);
        opacity: 1;
    }
}

/* ===== Navigation Menu ===== */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
}

.nav-menu a {
    color: var(--color-light);
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--color-primary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--color-light);
    transition: var(--transition);
}

/* ===== Buttons ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #ff4d4d 50%, var(--color-primary) 100%);
    background-size: 200% auto;
    color: var(--color-light);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 0;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.7s ease;
    position: relative;
    overflow: hidden;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    box-shadow: 0 0 15px rgba(227, 30, 36, 0.3);
}

.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.8s;
}

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

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 25px rgba(227, 30, 36, 0.5), 0 0 50px rgba(227, 30, 36, 0.25), 0 15px 30px rgba(0, 0, 0, 0.35);
    background-position: right center;
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-primary svg {
    width: 14px;
    height: 14px;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: transparent;
    color: var(--color-light);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 0;
    border: 2px solid var(--color-gray-light);
    cursor: pointer;
    transition: all 0.7s ease;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.btn-secondary:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: var(--glow-box);
}

.btn-large {
    padding: 12px 30px;
    font-size: 13px;
}

/* ===== Hero Enhancements ===== */
.hero-subtitle {
    font-size: 18px;
    color: var(--color-text);
    margin-top: 20px;
    margin-bottom: 40px;
}

.hero-cta {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 50px;
}

.hero-stats {
    display: flex;
    gap: 60px;
    justify-content: center;
}

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

.stat-number {
    font-family: var(--font-secondary);
    font-size: 48px;
    font-weight: 700;
    color: var(--color-primary);
}

.stat-label {
    display: block;
    font-size: 14px;
    color: var(--color-text);
    margin-top: 5px;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.hero-scroll a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--color-text);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: bounce 2s infinite;
}

.hero-scroll svg {
    width: 24px;
    height: 24px;
}

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

/* ===== Page Hero ===== */
.page-hero {
    padding: 200px 0 120px;
    background: var(--color-darker);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* GIF Background for Page Hero - More visible, HD */
.page-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.page-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

/* Neon corner decorations */
.page-hero .neon-corner {
    position: absolute;
    width: 100px;
    height: 100px;
    z-index: 1;
}

.page-hero .neon-corner::before,
.page-hero .neon-corner::after {
    content: '';
    position: absolute;
    background: var(--color-primary);
    box-shadow: var(--glow-primary);
}

.page-hero-content {
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    font-family: var(--font-secondary);
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 0 40px rgba(227, 30, 36, 0.3);
}

.page-hero p {
    font-size: 18px;
    color: var(--color-text);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    color: var(--color-text);
}

.breadcrumb a {
    color: var(--color-primary);
}

.breadcrumb a:hover {
    color: var(--color-light);
}

/* ===== Section Header ===== */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-description {
    font-size: 18px;
    color: var(--color-text);
    line-height: 1.8;
}

.section-cta {
    text-align: center;
    margin-top: 50px;
}

/* ===== About Page Styles ===== */
.about-text {
    font-size: 17px;
    color: var(--color-text);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-highlights {
    margin: 30px 0;
}

.about-highlights li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-size: 16px;
    color: var(--color-light);
}

.highlight-icon {
    color: var(--color-primary);
    font-weight: bold;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.story-image {
    position: relative;
}

.story-image img {
    border-radius: 20px;
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--color-primary);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
}

.exp-number {
    display: block;
    font-size: 42px;
    font-weight: 700;
    font-family: var(--font-secondary);
}

.exp-text {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.personal-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

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

.info-label {
    font-size: 12px;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-value {
    font-size: 16px;
    font-weight: 500;
}

.info-value.available {
    color: #10b981;
}

/* ===== Skills Section ===== */
.skills-section {
    background: var(--color-darker);
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.skills-bars h3,
.tools-grid h3 {
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--color-light);
}

.tools-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.tool-item {
    background: var(--color-gray);
    padding: 15px 25px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.tool-item:hover {
    background: var(--color-primary);
}

/* ===== Values Section ===== */
.values-section {
    background: var(--color-dark);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.value-card {
    background: var(--color-gray);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-10px);
    border: 1px solid var(--color-primary);
}

.value-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--color-primary);
}

.value-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

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

/* ===== Fun Facts / Stats Section ===== */
.fun-facts,
.portfolio-stats,
.testimonial-stats {
    background: linear-gradient(135deg, var(--color-primary) 0%, #cc1a1f 50%, var(--color-primary) 100%);
    background-size: 200% 200%;
    animation: gradientMove 8s ease infinite;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.fun-facts::after,
.portfolio-stats::after,
.testimonial-stats::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(0,0,0,0.2) 0%, transparent 50%);
    pointer-events: none;
}

@keyframes gradientMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.facts-grid,
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.fact-item,
.stats-grid .stat-item {
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fact-item:hover,
.stats-grid .stat-item:hover {
    transform: translateY(-10px) scale(1.05);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.fact-item .fact-number,
.stats-grid .stat-number {
    font-size: 64px;
    font-weight: 800;
    font-family: var(--font-secondary);
    color: var(--color-light);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: block;
    line-height: 1;
    margin-bottom: 10px;
}

.fact-item .fact-label,
.stats-grid .stat-label {
    color: rgba(255, 255, 255, 0.95);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ===== Services Preview ===== */
.services-preview {
    background: var(--color-darker);
}

.services-preview .service-card {
    text-align: left;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(227, 30, 36, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.service-icon svg {
    width: 30px;
    height: 30px;
    stroke: var(--color-primary);
}

.services-preview .service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

/* ===== Service Detail Page ===== */
.services-intro {
    background: var(--color-dark);
    text-align: center;
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
}

.intro-content p {
    font-size: 18px;
    color: var(--color-text);
    line-height: 1.8;
}

.service-detail {
    background: var(--color-darker);
}

.service-detail.alt {
    background: var(--color-dark);
}

.service-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.service-detail-grid.reverse {
    direction: rtl;
}

.service-detail-grid.reverse > * {
    direction: ltr;
}

.service-number {
    font-size: 72px;
    font-weight: 700;
    font-family: var(--font-secondary);
    color: var(--color-gray);
    line-height: 1;
}

.service-detail-content h2 {
    font-size: 42px;
    font-family: var(--font-secondary);
    margin-bottom: 20px;
}

.service-description {
    font-size: 17px;
    color: var(--color-text);
    line-height: 1.8;
    margin-bottom: 30px;
}

.service-features h4,
.service-tech h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--color-light);
}

.service-features ul {
    margin-bottom: 30px;
}

.service-features li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--color-text);
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.tech-tags span {
    background: var(--color-gray);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.service-pricing {
    margin-top: 30px;
}

.service-pricing p {
    font-size: 18px;
    margin-bottom: 20px;
}

.service-pricing strong {
    font-size: 28px;
    color: var(--color-primary);
}

.service-detail-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.service-detail-image img {
    width: 380px;
    height: 380px;
    object-fit: cover;
    border-radius: 20px;
    border: none;
    box-shadow: 
        0 0 50px rgba(227, 30, 36, 0.4),
        0 30px 60px rgba(0, 0, 0, 0.5);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    clip-path: polygon(0 0, calc(100% - 25px) 0, 100% 25px, 100% 100%, 25px 100%, 0 calc(100% - 25px));
}

.service-detail-image::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background: var(--color-primary);
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    z-index: -1;
    animation: pulseGlow 3s ease-in-out infinite;
}

.service-detail-image img:hover {
    transform: scale(1.05) rotate(-2deg);
    box-shadow: 
        0 0 80px rgba(227, 30, 36, 0.6),
        0 40px 80px rgba(0, 0, 0, 0.6);
}

/* ===== Process Section ===== */
.process-section {
    background: var(--color-darker);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.process-step {
    background: var(--color-gray);
    padding: 40px 30px;
    border-radius: 15px;
    position: relative;
}

.step-number {
    font-size: 48px;
    font-weight: 700;
    font-family: var(--font-secondary);
    color: var(--color-primary);
    opacity: 0.3;
    position: absolute;
    top: 20px;
    right: 20px;
}

.process-step h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

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

/* ===== FAQ Section ===== */
.faq-section {
    background: var(--color-dark);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--color-gray);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 25px 30px;
    background: none;
    border: none;
    color: var(--color-light);
    font-size: 18px;
    font-weight: 500;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--color-primary);
}

.faq-question svg {
    width: 20px;
    height: 20px;
    transition: var(--transition);
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.6s ease;
}

.faq-item.active .faq-answer {
    padding: 0 30px 25px;
    max-height: 200px;
}

.faq-answer p {
    color: var(--color-text);
    line-height: 1.7;
}

/* ===== Portfolio Section ===== */
.portfolio-section {
    background: var(--color-darker);
}

.portfolio-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
}

.filter-btn {
    padding: 8px 18px;
    background: var(--color-gray);
    border: none;
    border-radius: 20px;
    color: var(--color-light);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--color-primary);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.portfolio-item {
    overflow: hidden;
    border-radius: 0;
    position: relative;
    border: 1px solid rgba(227, 30, 36, 0.1);
    transition: var(--transition);
}

.portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    z-index: 2;
    pointer-events: none;
    transition: var(--transition);
}

.portfolio-item:hover::before {
    border-color: var(--color-primary);
    box-shadow: inset 0 0 30px rgba(227, 30, 36, 0.2);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: 0.8s ease;
    filter: grayscale(20%);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.3) 30%, rgba(0,0,0,0.95) 100%);
    display: flex;
    align-items: flex-end;
    padding: 30px;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.15) rotate(2deg);
    filter: grayscale(0%) brightness(1.1);
}

.portfolio-info {
    width: 100%;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.1s;
}

.portfolio-item:hover .portfolio-info {
    transform: translateY(0);
    opacity: 1;
}

.portfolio-category {
    display: inline-block;
    background: var(--color-primary);
    padding: 6px 18px;
    border-radius: 0;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
    box-shadow: 0 0 20px rgba(227, 30, 36, 0.5);
}

.portfolio-info h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.portfolio-info p {
    font-size: 14px;
    color: var(--color-text);
    margin-bottom: 15px;
}

.portfolio-tech {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.portfolio-tech span {
    background: rgba(255,255,255,0.1);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
}

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

.portfolio-load-more {
    text-align: center;
    margin-top: 50px;
}

/* ===== Featured Projects ===== */
.featured-projects {
    background: var(--color-dark);
}

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

.project-card.large {
    grid-row: span 2;
}

.project-card .project-image img {
    height: 100%;
    min-height: 300px;
}

.project-card.large .project-image img {
    min-height: 630px;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.9) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-category {
    display: inline-block;
    background: var(--color-primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 10px;
    width: fit-content;
}

.project-link {
    color: var(--color-primary);
    font-weight: 600;
    margin-top: 15px;
    display: inline-block;
}

/* ===== Testimonials Section ===== */
.testimonials-preview {
    background: var(--color-darker);
}

.testimonials-section {
    background: var(--color-darker);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.testimonial-card,
.testimonial-card-full {
    background: var(--color-gray);
    padding: 40px;
    border-radius: 20px;
    position: relative;
}

.testimonial-content {
    margin-bottom: 30px;
}

.quote-icon {
    font-size: 80px;
    font-family: var(--font-secondary);
    color: var(--color-primary);
    opacity: 0.3;
    line-height: 1;
    position: absolute;
    top: 20px;
    right: 30px;
}

.testimonial-card p,
.testimonial-card-full .testimonial-text {
    font-size: 17px;
    line-height: 1.8;
    color: var(--color-text);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
}

.author-info h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.author-info p {
    font-size: 14px;
    color: var(--color-text);
    font-style: normal;
}

.testimonial-rating {
    margin-left: auto;
    color: #fbbf24;
    font-size: 18px;
    letter-spacing: 2px;
}

.testimonial-project {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--color-gray-light);
}

.testimonial-project span {
    font-size: 13px;
    color: var(--color-text);
}

/* ===== Review CTA ===== */
.review-cta {
    background: var(--color-dark);
    text-align: center;
}

.review-cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.review-cta h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.review-cta p {
    color: var(--color-text);
    margin-bottom: 30px;
}

/* ===== CTA Section ===== */
.cta-section {
    background: var(--color-gray);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/waves-bg.jpg') center/cover no-repeat;
    opacity: 0.15;
}

.cta-section::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(227, 30, 36, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-family: var(--font-secondary);
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 0 0 30px rgba(227, 30, 36, 0.3);
}

.cta-content p {
    font-size: 18px;
    color: var(--color-text);
    margin-bottom: 40px;
}

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

/* ===== Blog Styles ===== */
.featured-post {
    background: var(--color-dark);
}

.featured-post-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.featured-post-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.featured-post-image img {
    width: 100%;
    max-width: 450px;
    height: 350px;
    object-fit: cover;
    border-radius: 20px;
    border: none;
    box-shadow: 
        0 0 50px rgba(227, 30, 36, 0.3),
        0 30px 60px rgba(0, 0, 0, 0.5);
    transition: all 0.9s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 30px 100%, 0 calc(100% - 30px));
}

.featured-post-image::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    background: var(--color-primary);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    animation: floatDiamond 4s ease-in-out infinite;
    box-shadow: 0 0 30px var(--color-primary);
}

.featured-post-image:hover img {
    transform: scale(1.05) rotate(1deg);
    box-shadow: 
        0 0 80px rgba(227, 30, 36, 0.5),
        0 40px 80px rgba(0, 0, 0, 0.6);
}

.post-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--color-primary);
    padding: 8px 18px;
    border-radius: 0;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    z-index: 2;
    clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
    box-shadow: 0 0 20px rgba(227, 30, 36, 0.5);
}

.post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.post-date,
.post-read-time {
    font-size: 14px;
    color: var(--color-text);
}

.featured-post-content h2 {
    font-size: 36px;
    font-family: var(--font-secondary);
    margin-bottom: 20px;
    line-height: 1.3;
}

.featured-post-content p {
    font-size: 17px;
    color: var(--color-text);
    line-height: 1.8;
    margin-bottom: 25px;
}

.blog-section {
    background: var(--color-darker);
}

.blog-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.blog-card {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    background: rgba(15, 15, 15, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 30px;
    padding: 0;
    border: 1px solid rgba(227, 30, 36, 0.2);
    transition: all 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 30px rgba(227, 30, 36, 0.2);
    border-color: var(--color-primary);
}

.blog-card-image {
    position: relative;
    width: 250px;
    height: 250px;
    overflow: hidden;
    border-radius: 20px 0 0 20px;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.9s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.15);
    filter: brightness(1.1);
}

.blog-card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-card-content h3 {
    font-size: 22px;
    margin-bottom: 15px;
    line-height: 1.4;
    transition: color 0.6s ease;
}

.blog-card:hover .blog-card-content h3 {
    color: var(--color-primary);
}

.blog-card-content p {
    font-size: 15px;
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: 15px;
}

/* ===== Blog Sidebar ===== */
.blog-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: var(--color-gray);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.sidebar-widget h4 {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--color-primary);
}

.search-form {
    display: flex;
    gap: 10px;
}

.search-form input {
    flex: 1;
    padding: 12px 15px;
    background: var(--color-dark);
    border: none;
    border-radius: 8px;
    color: var(--color-light);
}

.search-form button {
    padding: 8px;
    background: var(--color-primary);
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.search-form svg {
    width: 20px;
    height: 20px;
    stroke: var(--color-light);
}

.category-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--color-gray-light);
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    color: var(--color-text);
}

.category-list a:hover {
    color: var(--color-primary);
}

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

.popular-post {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--color-gray-light);
    align-items: center;
}

.popular-post:last-child {
    border-bottom: none;
}

.popular-post img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--color-primary);
    flex-shrink: 0;
}

.popular-post-info h5 {
    font-size: 15px;
    margin-bottom: 5px;
    line-height: 1.4;
}

.popular-post-info span {
    font-size: 12px;
    color: var(--color-text);
}

.newsletter-widget {
    background: linear-gradient(135deg, var(--color-primary) 0%, #ff4d4d 100%);
}

.newsletter-widget p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.newsletter-form input {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: none;
}

.newsletter-form .btn-primary {
    width: 100%;
    background: var(--color-dark);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: var(--color-dark);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
    transition: var(--transition);
}

.tag:hover {
    background: var(--color-primary);
}

.blog-pagination {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 40px;
}

.pagination-btn {
    padding: 8px 14px;
    background: var(--color-gray);
    border-radius: 6px;
    font-weight: 500;
    font-size: 12px;
    transition: var(--transition);
}

.pagination-btn:hover,
.pagination-btn.active {
    background: var(--color-primary);
}

/* ===== Resume Page ===== */
.resume-header {
    background: var(--color-dark);
    padding-top: 0;
}

.resume-intro {
    display: flex;
    gap: 40px;
    align-items: center;
    background: var(--color-gray);
    padding: 50px;
    border-radius: 20px;
    margin-top: -50px;
    position: relative;
    z-index: 1;
}

.resume-avatar {
    position: relative;
}

.resume-avatar img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: contain;
    background: var(--color-darker);
    border: 3px solid var(--color-primary);
    box-shadow: 
        0 0 40px rgba(227, 30, 36, 0.5),
        0 0 80px rgba(227, 30, 36, 0.2);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 15px;
}

.resume-avatar::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    opacity: 0.5;
    animation: rotateRing 10s linear infinite;
}

.resume-avatar::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 1px dashed var(--color-primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: rotateRing 15s linear infinite reverse;
}

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

.resume-avatar img:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 
        0 0 60px rgba(227, 30, 36, 0.7),
        0 0 100px rgba(227, 30, 36, 0.3);
}

.resume-title {
    font-size: 20px;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.resume-summary {
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: 25px;
}

.resume-actions {
    display: flex;
    gap: 15px;
}

.resume-content {
    background: var(--color-darker);
}

.resume-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.resume-section {
    margin-bottom: 40px;
}

.resume-section-title {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 24px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--color-primary);
}

.resume-section-title svg {
    width: 24px;
    height: 24px;
    stroke: var(--color-primary);
}

/* ===== Timeline ===== */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-gray-light);
}

.timeline-item {
    position: relative;
    padding-bottom: 40px;
}

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

.timeline-marker {
    position: absolute;
    left: -35px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: var(--color-primary);
    border-radius: 50%;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.timeline-header h4 {
    font-size: 20px;
}

.timeline-date {
    background: var(--color-primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.timeline-company {
    color: var(--color-text);
    margin-bottom: 15px;
}

.timeline-list {
    padding-left: 20px;
}

.timeline-list li {
    list-style: disc;
    color: var(--color-text);
    padding: 5px 0;
    line-height: 1.6;
}

/* ===== Resume Sidebar ===== */
.resume-sidebar .resume-section-title {
    font-size: 18px;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--color-gray-light);
}

.contact-list li:last-child {
    border-bottom: none;
}

.contact-list svg {
    width: 20px;
    height: 20px;
    stroke: var(--color-primary);
}

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

.skill-category h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--color-text);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tags span {
    background: var(--color-gray);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
}

.language-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-gray-light);
}

.language-level {
    color: var(--color-primary);
    font-size: 14px;
}

.certification-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--color-gray-light);
    color: var(--color-text);
}

.interests-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.interests-list span {
    background: var(--color-gray);
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 14px;
}

/* ===== Contact Page ===== */
.contact-page {
    background: var(--color-darker);
}

.contact-page-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
}

.contact-form-section h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.contact-form-section > p {
    color: var(--color-text);
    margin-bottom: 40px;
}

.contact-form-full {
    background: var(--color-gray);
    padding: 50px;
    border-radius: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    font-size: 14px;
}

.form-group select {
    width: 100%;
    padding: 18px 25px;
    background: var(--color-dark);
    border: 1px solid var(--color-gray-light);
    border-radius: 10px;
    color: var(--color-light);
    font-family: var(--font-primary);
    font-size: 16px;
    cursor: pointer;
}

.checkbox-group {
    margin-top: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--color-text);
}

.checkbox-label input {
    width: 20px;
    height: 20px;
    accent-color: var(--color-primary);
}

.contact-info-card {
    background: var(--color-gray);
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 30px;
}

.contact-info-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.contact-info-card > p {
    color: var(--color-text);
    margin-bottom: 30px;
    line-height: 1.7;
}

.contact-details li {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--color-gray-light);
}

.contact-details li:last-child {
    border-bottom: none;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(227, 30, 36, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--color-primary);
}

.contact-text h4 {
    font-size: 14px;
    color: var(--color-text);
    font-weight: 400;
    margin-bottom: 5px;
}

.contact-text a,
.contact-text span {
    font-size: 16px;
    font-weight: 500;
}

.available-badge {
    color: #10b981 !important;
}

.social-connect {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--color-gray-light);
}

.social-connect h4 {
    font-size: 16px;
    margin-bottom: 20px;
}

.social-links-large {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: var(--color-dark);
    border-radius: 10px;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--color-primary);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.contact-faq {
    background: var(--color-gray);
    padding: 30px;
    border-radius: 20px;
}

.contact-faq h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

.faq-mini-item {
    padding: 15px 0;
    border-bottom: 1px solid var(--color-gray-light);
}

.faq-mini-item:last-child {
    border-bottom: none;
}

.faq-mini-item h4 {
    font-size: 15px;
    margin-bottom: 8px;
}

.faq-mini-item p {
    font-size: 14px;
    color: var(--color-text);
}

.map-section {
    padding: 0;
}

.map-placeholder {
    height: 300px;
    background: linear-gradient(135deg, var(--color-gray) 0%, var(--color-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.map-overlay h3 {
    font-size: 28px;
    margin-bottom: 10px;
}

.map-overlay p {
    color: var(--color-text);
}

/* ===== Footer Grid ===== */
/* ===== FUTURISTIC FOOTER ===== */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    text-align: left;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(227, 30, 36, 0.2);
    position: relative;
}

.footer-grid::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    animation: footerLineGlow 3s ease-in-out infinite;
}

@keyframes footerLineGlow {
    0%, 100% { opacity: 0.3; transform: scaleX(0.5); }
    50% { opacity: 1; transform: scaleX(1); }
}

.footer-brand {
    position: relative;
}

.footer-brand .footer-logo {
    position: relative;
    display: inline-block;
}

.footer-brand .footer-logo img {
    height: 120px;
    filter: drop-shadow(0 0 30px rgba(227, 30, 36, 0.5));
    transition: all 0.8s ease;
}

.footer-brand .footer-logo:hover img {
    filter: drop-shadow(0 0 50px rgba(227, 30, 36, 0.8));
    transform: scale(1.05);
}

.footer-brand p {
    color: var(--color-text);
    margin: 25px 0;
    line-height: 1.8;
    font-size: 15px;
}

/* Futuristic Social Links */
.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.9) 0%, rgba(10, 10, 10, 0.95) 100%);
    border: 1px solid rgba(227, 30, 36, 0.3);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.9s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(227, 30, 36, 0.3), transparent);
    transition: left 0.8s ease;
}

.social-links a:hover::before {
    left: 100%;
}

.social-links a:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(227, 30, 36, 0.4), 0 0 20px rgba(227, 30, 36, 0.2);
}

.social-links svg {
    width: 20px;
    height: 20px;
    transition: transform 0.6s ease;
}

.social-links a:hover svg {
    transform: scale(1.2);
}

/* Footer Links Styling */
.footer-links h4,
.footer-contact h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-light);
    position: relative;
    padding-bottom: 15px;
}

.footer-links h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--color-primary);
    box-shadow: 0 0 10px var(--color-primary);
}

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

.footer-links a {
    color: var(--color-text);
    transition: all 0.6s ease;
    position: relative;
    padding-left: 0;
    display: inline-block;
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    color: var(--color-primary);
    transition: all 0.6s ease;
}

.footer-links a:hover {
    color: var(--color-primary);
    padding-left: 25px;
    text-shadow: 0 0 10px rgba(227, 30, 36, 0.5);
}

.footer-links a:hover::before {
    left: 0;
    opacity: 1;
}

/* Contact Info Styling */
.footer-contact li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    color: var(--color-text);
    padding: 15px;
    background: rgba(20, 20, 20, 0.5);
    border: 1px solid rgba(227, 30, 36, 0.1);
    border-radius: 10px;
    transition: all 0.6s ease;
}

.footer-contact li:hover {
    border-color: rgba(227, 30, 36, 0.3);
    background: rgba(227, 30, 36, 0.05);
    transform: translateX(5px);
}

.footer-contact svg {
    width: 22px;
    height: 22px;
    stroke: var(--color-primary);
    flex-shrink: 0;
    filter: drop-shadow(0 0 5px rgba(227, 30, 36, 0.5));
}

.footer-contact a {
    color: var(--color-text);
    transition: color 0.6s ease;
}

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

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    position: relative;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--color-primary);
    clip-path: polygon(10% 0, 90% 0, 100% 50%, 90% 100%, 10% 100%, 0% 50%);
    box-shadow: 0 0 20px var(--color-primary);
}

.footer-bottom p {
    color: var(--color-text);
    font-size: 14px;
}

.footer-bottom p span {
    color: var(--color-primary);
    font-weight: 600;
}

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

.footer-bottom-links a {
    color: var(--color-text);
    font-size: 14px;
    transition: all 0.6s ease;
    position: relative;
}

.footer-bottom-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-primary);
    transition: width 0.6s ease;
}

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

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

/* Decorative Corner Elements */
.footer-corner {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 2px solid rgba(227, 30, 36, 0.3);
    pointer-events: none;
}

.footer-corner.top-left {
    top: 30px;
    left: 30px;
    border-right: none;
    border-bottom: none;
}

.footer-corner.top-right {
    top: 30px;
    right: 30px;
    border-left: none;
    border-bottom: none;
}

.footer-corner.bottom-left {
    bottom: 30px;
    left: 30px;
    border-right: none;
    border-top: none;
}

.footer-corner.bottom-right {
    bottom: 30px;
    right: 30px;
    border-left: none;
    border-top: none;
}

/* ===== Additional Responsive Styles ===== */
@media (max-width: 1024px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--color-dark);
        flex-direction: column;
        padding: 100px 40px 40px;
        transition: var(--transition);
        z-index: 999;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-toggle {
        display: flex;
        z-index: 1000;
    }
    
    .story-grid,
    .service-detail-grid,
    .featured-post-card,
    .contact-page-grid {
        grid-template-columns: 1fr;
    }
    
    .service-detail-grid.reverse {
        direction: ltr;
    }
    
    .resume-grid,
    .blog-layout {
        grid-template-columns: 1fr;
    }
    
    .resume-intro {
        flex-direction: column;
        text-align: center;
    }
    
    .resume-actions {
        justify-content: center;
    }
    
    .values-grid,
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card.large {
        grid-row: span 1;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .facts-grid,
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .page-hero h1 {
        font-size: 40px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .blog-card {
        grid-template-columns: 1fr;
        text-align: left;
    }
    
    .blog-card-image {
        width: 100%;
        height: 200px;
        border-radius: 20px 20px 0 0;
    }
    
    .blog-card-content {
        padding: 25px;
    }
    
    .about-image img {
        width: 300px;
        height: 300px;
    }
    
    .service-detail-image img {
        width: 300px;
        height: 300px;
    }
    
    .featured-post-image img {
        height: 280px;
    }
    
    .values-grid,
    .process-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }
    
    .experience-badge {
        bottom: -20px;
        right: 50%;
        transform: translateX(50%);
    }
    
    .personal-info {
        grid-template-columns: 1fr;
    }
    
    .timeline-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .social-links-large {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .stat-number {
        font-size: 36px;
    }
    
    .hero-stats {
        flex-direction: column;
    }
    
    .contact-form-full,
    .contact-info-card {
        padding: 30px 20px;
    }
    
    .resume-intro {
        padding: 30px 20px;
        margin-top: -30px;
    }
    
    .resume-avatar img {
        width: 100px;
        height: 100px;
    }
}

/* ===== Neon Glow Effects ===== */
.glow-text {
    text-shadow: var(--glow-text);
}

.glow-box {
    box-shadow: var(--glow-box);
}

/* ===== Animated Background Particles ===== */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--color-primary);
    border-radius: 50%;
    opacity: 0.5;
    animation: float 15s infinite;
    box-shadow: 0 0 10px var(--color-primary);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-100vh) translateX(20px);
        opacity: 0;
    }
}

/* ===== Scrollbar Styling ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff4d4d;
}

/* ===== Selection Styling ===== */
::selection {
    background: var(--color-primary);
    color: var(--color-light);
}

/* ===== Loading Animation ===== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-darker);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s, visibility 0.8s;
}

.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

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

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== Glitch Text Effect - Red Only, No Blue ===== */
.glitch {
    position: relative;
}

.glitch::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    left: 2px;
    text-shadow: -2px 0 var(--color-primary);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

/* Remove the blue ::after effect */
.glitch::after {
    display: none;
}

@keyframes glitch-anim {
    0% { clip: rect(31px, 9999px, 94px, 0); }
    5% { clip: rect(70px, 9999px, 71px, 0); }
    10% { clip: rect(29px, 9999px, 24px, 0); }
    15% { clip: rect(69px, 9999px, 96px, 0); }
    20% { clip: rect(85px, 9999px, 15px, 0); }
    25% { clip: rect(91px, 9999px, 52px, 0); }
    30% { clip: rect(67px, 9999px, 72px, 0); }
    35% { clip: rect(56px, 9999px, 36px, 0); }
    40% { clip: rect(83px, 9999px, 99px, 0); }
    45% { clip: rect(96px, 9999px, 26px, 0); }
    50% { clip: rect(42px, 9999px, 31px, 0); }
    55% { clip: rect(76px, 9999px, 73px, 0); }
    60% { clip: rect(47px, 9999px, 35px, 0); }
    65% { clip: rect(24px, 9999px, 73px, 0); }
    70% { clip: rect(68px, 9999px, 98px, 0); }
    75% { clip: rect(38px, 9999px, 47px, 0); }
    80% { clip: rect(91px, 9999px, 42px, 0); }
    85% { clip: rect(77px, 9999px, 17px, 0); }
    90% { clip: rect(13px, 9999px, 88px, 0); }
    95% { clip: rect(51px, 9999px, 46px, 0); }
    100% { clip: rect(38px, 9999px, 97px, 0); }
}

/* ===== Neon Border Card ===== */
.neon-card {
    position: relative;
    background: var(--color-gray);
    border: 1px solid rgba(227, 30, 36, 0.3);
    overflow: hidden;
}

.neon-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--color-primary), transparent, var(--color-primary));
    z-index: -1;
    animation: neonBorder 3s linear infinite;
    background-size: 400%;
}

@keyframes neonBorder {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== Hover Lift Effect ===== */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), var(--glow-box);
}

/* ===== Skills Showcase Marquee ===== */
.skills-showcase {
    background: var(--color-dark);
    padding: 80px 0;
    overflow: hidden;
}

.skills-marquee {
    overflow: hidden;
    margin-top: 40px;
}

.skills-track {
    display: flex;
    gap: 30px;
    animation: marquee 30s linear infinite;
    width: max-content;
}

.skill-tag {
    background: linear-gradient(135deg, var(--color-gray) 0%, var(--color-darker) 100%);
    padding: 15px 35px;
    border-radius: 0;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1px solid rgba(227, 30, 36, 0.3);
    white-space: nowrap;
    transition: var(--transition);
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.skill-tag:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: var(--glow-box);
}

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

/* ===== Why Choose Section ===== */
.why-choose {
    background: var(--color-darker);
    position: relative;
}

.why-choose::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/waves-bg.jpg') center/cover no-repeat;
    opacity: 0.05;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
}

.feature-item {
    background: linear-gradient(145deg, var(--color-gray) 0%, rgba(0,0,0,0.5) 100%);
    padding: 40px 30px;
    border: 1px solid rgba(227, 30, 36, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--color-primary);
    box-shadow: var(--glow-primary);
    transition: 0.8s;
}

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

.feature-item:hover {
    border-color: var(--color-primary);
    transform: translateY(-5px);
}

.feature-number {
    font-size: 48px;
    font-weight: 700;
    font-family: var(--font-secondary);
    color: var(--color-primary);
    opacity: 0.3;
    margin-bottom: 15px;
}

.feature-item h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.feature-item p {
    color: var(--color-text);
    line-height: 1.7;
}

/* ===== Back to Top Button ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    box-shadow: var(--glow-box);
}

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

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow-primary);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
    stroke: var(--color-light);
}

/* ===== Additional Responsive for New Sections ===== */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-track {
        animation-duration: 20s;
    }
}

@media (max-width: 480px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* ===== FUTURISTIC CYBER EFFECTS ===== */

/* Custom Cursor - Advanced */
* {
    cursor: none !important;
}

.cursor-dot {
    position: fixed;
    width: 12px;
    height: 12px;
    background: var(--color-primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 999999;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, background 0.3s ease, border-radius 0.3s ease;
    box-shadow: 
        0 0 10px var(--color-primary),
        0 0 20px var(--color-primary),
        0 0 40px rgba(227, 30, 36, 0.5),
        inset 0 0 10px rgba(255, 255, 255, 0.3);
}

.cursor-outline {
    position: fixed;
    width: 50px;
    height: 50px;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 999998;
    transform: translate(-50%, -50%);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0.6;
    background: radial-gradient(circle, rgba(227, 30, 36, 0.05) 0%, transparent 70%);
}

.cursor-trail {
    position: fixed;
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 999997;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
}

.cursor-text {
    z-index: 999999 !important;
}

.cursor-dot.hover {
    width: 60px;
    height: 60px;
    background: transparent;
    border: 2px solid var(--color-primary);
    border-radius: 10px;
    box-shadow: 
        0 0 30px var(--color-primary),
        0 0 60px rgba(227, 30, 36, 0.3),
        inset 0 0 30px rgba(227, 30, 36, 0.1);
}

.cursor-outline.hover {
    width: 80px;
    height: 80px;
    border-color: var(--color-neon-red);
    opacity: 1;
    border-radius: 15px;
    animation: cursorRotate 2s linear infinite;
}

@keyframes cursorRotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.cursor-dot.click {
    transform: translate(-50%, -50%) scale(0.3);
    background: var(--color-neon-red);
}

.cursor-outline.click {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
}

.cursor-text {
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    transform: translate(20px, -20px);
}

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

/* Advanced Page Transitions */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-darker);
    z-index: 99997;
    transform: scaleY(0);
    transform-origin: bottom;
}

.page-transition.active {
    animation: pageTransition 0.8s ease-in-out;
}

@keyframes pageTransition {
    0% { transform: scaleY(0); transform-origin: bottom; }
    50% { transform: scaleY(1); transform-origin: bottom; }
    50.1% { transform-origin: top; }
    100% { transform: scaleY(0); transform-origin: top; }
}

/* Reveal Animation on Scroll */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: all 1.2s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-100px);
    transition: all 1.2s cubic-bezier(0.5, 0, 0, 1);
}

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

.reveal-right {
    opacity: 0;
    transform: translateX(100px);
    transition: all 1.2s cubic-bezier(0.5, 0, 0, 1);
}

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

.reveal-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: all 1.2s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* Stagger Animation Delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* Magnetic Button Effect */
.magnetic-btn {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Text Reveal Animation */
.text-reveal {
    overflow: hidden;
}

.text-reveal span {
    display: inline-block;
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.5, 0, 0, 1);
}

.text-reveal.active span {
    transform: translateY(0);
}

/* Image Parallax Container */
.parallax-container {
    overflow: hidden;
    position: relative;
}

.parallax-img {
    transform: scale(1.2);
    transition: transform 0.1s ease-out;
}

/* Cyber Grid Overlay */
.cyber-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background-image: 
        linear-gradient(rgba(227, 30, 36, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(227, 30, 36, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
}

/* Scanline Effect */
.scanlines::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.05),
        rgba(0, 0, 0, 0.05) 1px,
        transparent 1px,
        transparent 2px
    );
    opacity: 0.3;
}

/* Futuristic Input Fields */
input, textarea, select {
    background: rgba(10, 10, 10, 0.8) !important;
    border: 1px solid rgba(227, 30, 36, 0.3) !important;
    color: var(--color-light) !important;
    padding: 15px 20px;
    transition: all 0.6s ease;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

input:focus, textarea:focus, select:focus {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 20px rgba(227, 30, 36, 0.2), inset 0 0 20px rgba(227, 30, 36, 0.05);
    outline: none;
}

/* Futuristic Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-darker);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--color-primary) 0%, #ff4d4d 100%);
    border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-neon-red);
    box-shadow: 0 0 10px var(--color-primary);
}

/* Holographic Text Effect */
.holo-text {
    background: linear-gradient(
        90deg,
        var(--color-light) 0%,
        var(--color-primary) 25%,
        var(--color-light) 50%,
        var(--color-primary) 75%,
        var(--color-light) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: holoShine 3s linear infinite;
}

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

/* Neon Line Decorations */
.neon-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    box-shadow: 0 0 10px var(--color-primary), 0 0 20px var(--color-primary);
}

.neon-line-vertical {
    width: 2px;
    background: linear-gradient(180deg, transparent, var(--color-primary), transparent);
    box-shadow: 0 0 10px var(--color-primary), 0 0 20px var(--color-primary);
}

/* Corner Decorations */
.corner-decoration {
    position: relative;
}

.corner-decoration::before,
.corner-decoration::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid var(--color-primary);
}

.corner-decoration::before {
    top: -10px;
    left: -10px;
    border-right: none;
    border-bottom: none;
}

.corner-decoration::after {
    bottom: -10px;
    right: -10px;
    border-left: none;
    border-top: none;
}

/* Pulse Animation for Elements */
.pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 5px var(--color-primary), 0 0 10px var(--color-primary);
    }
    50% {
        box-shadow: 0 0 20px var(--color-primary), 0 0 40px var(--color-primary), 0 0 60px rgba(227, 30, 36, 0.5);
    }
}

/* Data Stream Effect for Backgrounds */
@keyframes dataStream {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 0 100vh;
    }
}

/* Floating Particles Animation */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-primary);
    animation: floatParticle 10s infinite ease-in-out;
}

@keyframes floatParticle {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-20px) translateX(10px);
        opacity: 1;
    }
    50% {
        transform: translateY(-10px) translateX(-10px);
        opacity: 0.5;
    }
    75% {
        transform: translateY(-30px) translateX(5px);
        opacity: 0.8;
    }
}

/* Tech Border Animation */
.tech-border {
    position: relative;
}

.tech-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    background: linear-gradient(90deg, var(--color-primary), transparent, var(--color-primary)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: techBorderMove 4s linear infinite;
}

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

/* Futuristic Stats Cards */
.stat-card-futuristic {
    background: linear-gradient(145deg, rgba(20, 5, 5, 0.9) 0%, rgba(10, 0, 0, 0.95) 100%);
    border: 1px solid rgba(227, 30, 36, 0.3);
    padding: 40px;
    position: relative;
    overflow: hidden;
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
}

.stat-card-futuristic::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    animation: scanlineHorizontal 2s ease-in-out infinite;
}

/* Enhanced Section Transitions */
section {
    transition: background 0.5s ease;
}

section:hover {
    background-blend-mode: overlay;
}

/* Futuristic Link Hover */
a:not(.btn-primary):not(.btn-secondary):hover {
    text-shadow: 0 0 10px var(--color-primary);
}

/* Circuit Pattern Background */
.circuit-bg {
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(227, 30, 36, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(227, 30, 36, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* ===== ADVANCED HOVER EFFECTS ===== */

/* 3D Tilt Effect */
.tilt-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.tilt-card:hover {
    transform: rotateX(5deg) rotateY(5deg);
}

/* Morphing Border */
.morph-border {
    position: relative;
}

.morph-border::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(45deg, var(--color-primary), transparent, var(--color-primary), transparent);
    background-size: 400% 400%;
    z-index: -1;
    animation: morphBorder 8s ease infinite;
    filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.morph-border:hover::before {
    opacity: 1;
}

@keyframes morphBorder {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Ripple Effect on Click */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(227, 30, 36, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease, opacity 0.6s ease;
    opacity: 0;
}

.ripple:active::after {
    width: 300px;
    height: 300px;
    opacity: 1;
}

/* Shimmer Loading Effect */
.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% { left: 100%; }
}

/* Underline Hover Effect */
.underline-hover {
    position: relative;
}

.underline-hover::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-neon-red));
    transition: width 0.4s cubic-bezier(0.5, 0, 0, 1);
    box-shadow: 0 0 10px var(--color-primary);
}

.underline-hover:hover::after {
    width: 100%;
}

/* Split Text Hover */
.split-hover {
    position: relative;
    overflow: hidden;
}

.split-hover span {
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.5, 0, 0, 1);
}

.split-hover:hover span {
    transform: translateY(-100%);
}

.split-hover::after {
    content: attr(data-text);
    position: absolute;
    top: 100%;
    left: 0;
    color: var(--color-primary);
    transition: top 0.4s cubic-bezier(0.5, 0, 0, 1);
}

.split-hover:hover::after {
    top: 0;
}

/* Elastic Scale */
.elastic-scale {
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.elastic-scale:hover {
    transform: scale(1.1);
}

/* Skew on Hover */
.skew-hover {
    transition: transform 0.6s ease;
}

.skew-hover:hover {
    transform: skewX(-5deg);
}

/* Rotate 3D */
.rotate-3d {
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.rotate-3d:hover {
    transform: rotateY(10deg) rotateX(5deg);
}

/* Glow Pulse on Hover */
.glow-hover {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.glow-hover:hover {
    box-shadow: 0 0 30px var(--color-primary), 0 0 60px rgba(227, 30, 36, 0.5), 0 0 90px rgba(227, 30, 36, 0.3);
    transform: translateY(-5px);
}

/* Smooth Image Zoom */
.img-zoom {
    overflow: hidden;
}

.img-zoom img {
    transition: transform 0.6s cubic-bezier(0.5, 0, 0, 1), filter 0.6s ease;
}

.img-zoom:hover img {
    transform: scale(1.15);
    filter: brightness(1.1);
}

/* Border Animation */
.animated-border {
    position: relative;
}

.animated-border::before,
.animated-border::after {
    content: '';
    position: absolute;
    background: var(--color-primary);
    transition: all 0.8s ease;
}

.animated-border::before {
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
}

.animated-border::after {
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
}

.animated-border:hover::before,
.animated-border:hover::after {
    width: 100%;
}

/* Smooth Color Transition */
.color-shift {
    transition: color 0.3s ease, background 0.3s ease;
}

.color-shift:hover {
    color: var(--color-primary);
}

/* ===== HIRE ME POPUP MODAL ===== */
.hire-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9990;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.7s ease;
}

.hire-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.hire-popup {
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.95) 0%, rgba(10, 10, 10, 0.98) 100%);
    border: 2px solid var(--color-primary);
    border-radius: 20px;
    padding: 50px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    transform: scale(0.8) translateY(50px);
    transition: all 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        0 0 60px rgba(227, 30, 36, 0.4),
        0 30px 60px rgba(0, 0, 0, 0.5),
        inset 0 0 100px rgba(227, 30, 36, 0.05);
    position: relative;
    overflow: hidden;
}

.hire-popup::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(227, 30, 36, 0.1), transparent);
    animation: popupShine 3s ease-in-out infinite;
}

@keyframes popupShine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

.hire-popup-overlay.active .hire-popup {
    transform: scale(1) translateY(0);
}

.hire-popup-close {
    position: absolute;
    top: 12px;
    right: 15px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    color: var(--color-primary);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.6s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hire-popup-close:hover {
    background: var(--color-primary);
    color: var(--color-light);
    transform: rotate(90deg);
}

.hire-popup-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #ff4d4d 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: popupPulse 2s ease-in-out infinite;
}

@keyframes popupPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(227, 30, 36, 0.4); }
    50% { box-shadow: 0 0 0 20px rgba(227, 30, 36, 0); }
}

.hire-popup-icon svg {
    width: 30px;
    height: 30px;
    fill: white;
}

.hire-popup h2 {
    font-family: var(--font-secondary);
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--color-light);
}

.hire-popup p {
    color: var(--color-text);
    margin-bottom: 30px;
    line-height: 1.7;
}

.hire-popup-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.hire-popup-btn {
    padding: 10px 22px;
    border-radius: 0;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.8s ease;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.hire-popup-btn.primary {
    background: var(--color-primary);
    color: var(--color-light);
    border: none;
}

.hire-popup-btn.primary:hover {
    background: #ff4d4d;
    box-shadow: 0 0 30px rgba(227, 30, 36, 0.5);
    transform: translateY(-3px);
}

.hire-popup-btn.secondary {
    background: transparent;
    color: var(--color-light);
    border: 2px solid var(--color-primary);
}

.hire-popup-btn.secondary:hover {
    background: var(--color-primary);
    transform: translateY(-3px);
}

/* Ensure cursor works over popup */
.hire-popup-overlay,
.hire-popup,
.hire-popup * {
    cursor: none !important;
}

.hire-popup-btn,
.hire-popup-close,
.hire-popup-email {
    position: relative;
    z-index: 1;
}

.hire-popup-contact {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hire-popup-contact p {
    margin-bottom: 10px;
    font-size: 14px;
}

.hire-popup-email {
    color: var(--color-primary);
    font-size: 18px;
    font-weight: 600;
}

/* ===== MOBILE CURSOR FALLBACK ===== */
@media (max-width: 1024px) {
    * {
        cursor: auto !important;
    }
    
    .cursor-dot,
    .cursor-outline {
        display: none !important;
    }
    
    .hire-popup {
        padding: 30px 20px;
    }
    
    .hire-popup h2 {
        font-size: 24px;
    }
}

