/* ==== VARIABLES ==== */
:root {
    /* Color Scheme - Updated to match profile image */
    --primary-color: #ff3333; /* Bright red from image */
    --secondary-color: #ab2121; /* Darker red from image */
    --accent-color: #8a3535; /* Brownish red accent */
    --dark-color: #1a0f0f; /* Very dark red-black */
    --darker-color: #0f0808; /* Nearly black with red undertone */
    --light-color: #f5e9e9; /* Off-white with red tint */
    --gray-color: #a19191; /* Muted gray with red undertone */
    --success-color: #db3939; /* Success as red */
    --warning-color: #ffab00; /* Keep warning as amber */
    --danger-color: #ff3d71; /* Keep danger as pink-red */
    
    /* Gradients - Updated for red theme */
    --primary-gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --accent-gradient: linear-gradient(135deg, #ff0000, #8a3535);
    --dark-gradient: linear-gradient(135deg, var(--dark-color), var(--darker-color));
    
    /* Typography */
    --heading-font: 'Orbitron', sans-serif;
    --body-font: 'Poppins', sans-serif;
    
    /* Spacing */
    --section-spacing: 120px;
    --container-padding: 80px;
    --card-spacing: 24px;
    
    /* Borders */
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-xl: 32px;
    
    /* Shadows */
    --shadow-sm: 0 5px 15px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 20px rgba(255, 51, 51, 0.5);
    
    /* Animations */
    --transition-fast: 0.3s ease;
    --transition-normal: 0.5s ease;
    --transition-slow: 0.8s ease;
}

/* ==== RESET & BASE STYLES ==== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--light-color);
    background-color: var(--darker-color);
    overflow-x: hidden;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 2rem;
}

h1 {
    font-size: 5.6rem;
}

h2 {
    font-size: 4.2rem;
}

h3 {
    font-size: 3.2rem;
}

h4 {
    font-size: 2.4rem;
}

p {
    margin-bottom: 2rem;
}

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

ul {
    list-style: none;
}

button, .btn {
    cursor: pointer;
}

section {
    padding: var(--section-spacing) 0;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.highlight {
    color: var(--primary-color);
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

/* ==== PRELOADER ==== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--darker-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: var(--transition-normal);
}

.preloader.hide {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 80px;
    height: 80px;
}

#loader-circle {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 4;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    animation: preloader-animation 1.5s infinite ease-in-out;
    transform-origin: center;
    stroke-linecap: round;
}

@keyframes preloader-animation {
    0% {
        stroke-dashoffset: 283;
        transform: rotate(0deg);
    }
    50% {
        stroke-dashoffset: 0;
        transform: rotate(180deg);
    }
    100% {
        stroke-dashoffset: 283;
        transform: rotate(360deg);
    }
}

/* ==== CURSOR FOLLOW ==== */
.cursor-follow {
    position: fixed;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9998;
    transition: width 0.3s, height 0.3s, border-color 0.3s;
    opacity: 0;
}

.cursor-follow.active {
    opacity: 1;
}

.cursor-follow.hover {
    width: 80px;
    height: 80px;
    border-color: var(--secondary-color);
    background-color: rgba(255, 51, 51, 0.05);
}

/* ==== BUTTONS ==== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 2.8rem;
    border-radius: var(--border-radius-md);
    font-family: var(--heading-font);
    font-size: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    z-index: -1;
    transition: var(--transition-fast);
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover::before {
    transform: scale(1.05);
    filter: brightness(1.1);
}

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

.btn-outline::before {
    opacity: 0;
    transform: scale(0.7);
}

.btn-outline:hover {
    color: var(--light-color);
    transform: translateY(-3px);
}

.btn-outline:hover::before {
    opacity: 1;
    transform: scale(1);
}

.btn i {
    margin-right: 1rem;
}

.connect-btn {
    background: rgba(255, 51, 51, 0.1);
    color: var(--light-color);
    border: 1px solid var(--primary-color);
    padding: 0.8rem 2rem;
    border-radius: var(--border-radius-sm);
    font-family: var(--heading-font);
    font-size: 1.4rem;
    font-weight: 600;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.connect-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 51, 51, 0.3), transparent);
    transition: var(--transition-normal);
}

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

.connect-btn:hover {
    background: rgba(255, 51, 51, 0.2);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.connect-btn.connected {
    background: var(--success-color);
    border-color: var(--success-color);
}

/* ==== NAVBAR ==== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 2rem 0;
    transition: var(--transition-fast);
}

.navbar.scrolled {
    background-color: rgba(5, 10, 20, 0.95);
    padding: 1rem 0;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

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

.navbar-brand {
    display: flex;
    align-items: center;
}

.logo {
    font-family: var(--heading-font);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--light-color);
    letter-spacing: 1px;
}

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

.navbar-menu {
    flex: 1;
    display: flex;
    justify-content: center;
}

.navbar-nav {
    display: flex;
    gap: 3rem;
}

.nav-link {
    font-size: 1.6rem;
    font-weight: 500;
    padding: 0.5rem 0;
    color: var(--light-color);
    position: relative;
}

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

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

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

.navbar-toggle {
    display: none;
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--light-color);
    transition: var(--transition-fast);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

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

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 51, 51, 0.12) 0%, rgba(15, 8, 8, 0) 70%);
    pointer-events: none;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    margin-bottom: 2rem;
    position: relative;
}

.hero-subtitle {
    font-size: 2rem;
    color: var(--gray-color);
    margin-bottom: 4rem;
}

.cta-buttons {
    display: flex;
    gap: 2rem;
    margin-bottom: 4rem;
}

.hero-socials {
    display: flex;
    gap: 1.5rem;
}

.social-icon {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--light-color);
    font-size: 1.8rem;
    transition: var(--transition-fast);
}

.social-icon:hover {
    background: var(--primary-color);
    color: var(--light-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.hero-visual {
    position: relative;
    width: 500px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-3d {
    width: 400px;
    height: 400px;
    position: relative;
    transform-style: preserve-3d;
    animation: float 6s infinite ease-in-out;
}

.profile-container {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate 15s infinite linear;
}

.profile-image {
    width: 100%;
    height: 100%;
    background: url("../../public/assets/images/img1.jpg") no-repeat center;
    background-size: contain;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 15%;
    box-shadow: 
        0 0 30px rgba(255, 51, 51, 0.6),
        0 0 60px rgba(171, 33, 33, 0.4);
    filter: drop-shadow(0 0 10px rgba(255, 51, 51, 0.8));
    animation: pulse 3s infinite;
    transform-style: preserve-3d;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 30px rgba(255, 51, 51, 0.6), 0 0 60px rgba(171, 33, 33, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 51, 51, 0.8), 0 0 80px rgba(171, 33, 33, 0.6);
    }
    100% {
        box-shadow: 0 0 30px rgba(255, 51, 51, 0.6), 0 0 60px rgba(171, 33, 33, 0.4);
    }
}

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

@keyframes rotate {
    0% {
        transform: rotateY(0deg) rotateX(0deg);
    }
    100% {
        transform: rotateY(360deg) rotateX(10deg);
    }
}

.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.glitch {
    position: relative;
    text-shadow: 0.05em 0 0 rgba(255, 51, 51, 0.75),
                 -0.025em -0.05em 0 rgba(171, 33, 33, 0.75),
                 0.025em 0.05em 0 rgba(138, 53, 53, 0.75);
    animation: glitch 500ms infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 0.05em;
    text-shadow: -0.025em -0.05em 0 rgba(255, 51, 51, 0.75);
    animation: glitch 650ms infinite;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

.glitch::after {
    left: -0.05em;
    text-shadow: 0.025em 0.05em 0 rgba(171, 33, 33, 0.75);
    animation: glitch 375ms infinite;
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}

@keyframes glitch {
    0% {
        text-shadow: 0.05em 0 0 rgba(255, 51, 51, 0.75),
                     -0.025em -0.05em 0 rgba(171, 33, 33, 0.75),
                     0.025em 0.05em 0 rgba(138, 53, 53, 0.75);
    }
    14% {
        text-shadow: 0.05em 0 0 rgba(255, 51, 51, 0.75),
                     -0.025em -0.05em 0 rgba(171, 33, 33, 0.75),
                     0.025em 0.05em 0 rgba(138, 53, 53, 0.75);
    }
    15% {
        text-shadow: -0.05em -0.025em 0 rgba(255, 51, 51, 0.75),
                     0.025em 0.025em 0 rgba(171, 33, 33, 0.75),
                     -0.05em -0.05em 0 rgba(138, 53, 53, 0.75);
    }
    49% {
        text-shadow: -0.05em -0.025em 0 rgba(255, 51, 51, 0.75),
                     0.025em 0.025em 0 rgba(171, 33, 33, 0.75),
                     -0.05em -0.05em 0 rgba(138, 53, 53, 0.75);
    }
    50% {
        text-shadow: 0.025em 0.05em 0 rgba(255, 51, 51, 0.75),
                     0.05em 0 0 rgba(171, 33, 33, 0.75),
                     0 -0.05em 0 rgba(138, 53, 53, 0.75);
    }
    99% {
        text-shadow: 0.025em 0.05em 0 rgba(255, 51, 51, 0.75),
                     0.05em 0 0 rgba(171, 33, 33, 0.75),
                     0 -0.05em 0 rgba(138, 53, 53, 0.75);
    }
    100% {
        text-shadow: -0.025em 0 0 rgba(255, 51, 51, 0.75),
                     -0.025em -0.025em 0 rgba(171, 33, 33, 0.75),
                     -0.025em -0.05em 0 rgba(138, 53, 53, 0.75);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    z-index: 1;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 10px;
}

.wheel {
    width: 5px;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: 2.5px;
    animation: scroll 1.5s infinite;
}

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

.arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.arrow span {
    display: block;
    width: 15px;
    height: 15px;
    border-bottom: 2px solid var(--primary-color);
    border-right: 2px solid var(--primary-color);
    transform: rotate(45deg);
    margin: -8px 0;
    animation: arrow 1.5s infinite;
}

.arrow span:nth-child(2) {
    animation-delay: 0.2s;
}

.arrow span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes arrow {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-5px, -5px);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: rotate(45deg) translate(5px, 5px);
    }
}

/* ==== SECTION HEADER ==== */
.section-header {
    text-align: center;
    margin-bottom: 6rem;
}

.section-tag {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    background: rgba(255, 51, 51, 0.1);
    color: var(--primary-color);
    border-radius: var(--border-radius-sm);
    font-size: 1.4rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

/* ==== ABOUT SECTION ==== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 6rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    width: 100%;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transform: perspective(1000px) rotateY(5deg);
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
}

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

.image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 51, 51, 0.3), rgba(171, 33, 33, 0.2));
    z-index: 1;
}

.image-wrapper img {
    display: block;
    width: 100%;
    height: auto;
    transition: var(--transition-normal);
}

.experience-badge {
    position: absolute;
    bottom: -25px;
    right: -25px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 2;
}

.experience-badge .number {
    font-family: var(--heading-font);
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1;
}

.experience-badge .text {
    font-size: 1.2rem;
    font-weight: 500;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-info {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.about-description {
    font-size: 1.8rem;
    color: var(--gray-color);
}

.skills h3 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-tag {
    padding: 0.8rem 2rem;
    background: rgba(255, 51, 51, 0.1);
    color: var(--light-color);
    border-radius: var(--border-radius-sm);
    font-size: 1.4rem;
    font-weight: 500;
    transition: var(--transition-fast);
    border-left: 3px solid var(--primary-color);
}

.skill-tag:hover {
    background: var(--primary-color);
    transform: translateY(-3px) rotate(2deg);
    box-shadow: var(--shadow-glow);
}

.crypto-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-fast);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary-color);
}

.stat-number {
    font-family: var(--heading-font);
    font-size: 3.6rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-text {
    font-size: 1.4rem;
    font-weight: 500;
    text-align: center;
    color: var(--gray-color);
}

.download-cv {
    align-self: flex-start;
    margin-top: 1rem;
}

/* ==== PROJECTS SECTION ==== */
.projects {
    background-color: var(--dark-color);
    position: relative;
    overflow: hidden;
}

.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255, 51, 51, 0.08) 0%, rgba(26, 15, 15, 0) 70%);
    pointer-events: none;
}

.project-filters {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 2rem;
    background: transparent;
    color: var(--gray-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    font-family: var(--body-font);
    font-size: 1.4rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary-color);
    color: var(--light-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 3rem;
    margin-bottom: 6rem;
}

.project-card {
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: var(--transition-normal);
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
    z-index: 1;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

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

.project-card:hover {
    transform: translateY(-10px) rotate(1deg);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary-color);
}

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

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

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 16, 31, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-normal);
}

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

.project-links {
    display: flex;
    gap: 2rem;
}

.project-link, .project-github {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    color: var(--light-color);
    font-size: 1.8rem;
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition-normal);
}

.project-card:hover .project-link,
.project-card:hover .project-github {
    transform: translateY(0);
    opacity: 1;
}

.project-github {
    transition-delay: 0.1s;
}

.project-info {
    padding: 2.5rem;
}

.project-tags {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.project-tag {
    padding: 0.5rem 1rem;
    background: rgba(255, 51, 51, 0.1);
    color: var(--primary-color);
    border-radius: var(--border-radius-sm);
    font-size: 1.2rem;
    font-weight: 500;
}

.project-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--light-color);
    transition: var(--transition-fast);
}

.project-card:hover .project-title {
    color: var(--primary-color);
}

.project-description {
    font-size: 1.5rem;
    color: var(--gray-color);
    margin-bottom: 0;
}

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

/* ==== BLOCKCHAIN SECTION ==== */
.blockchain {
    position: relative;
    overflow: hidden;
}

.blockchain::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at bottom left, rgba(255, 51, 51, 0.08) 0%, rgba(15, 8, 8, 0) 70%);
    pointer-events: none;
}

.blockchain-content {
    display: flex;
    flex-direction: column;
    gap: 8rem;
}

.blockchain-networks h3,
.crypto-market h3,
.blockchain-services h3 {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.8rem;
}

.networks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 3rem;
}

.network-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-normal);
}

.network-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary-color);
}

.network-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.network-icon img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: var(--transition-normal);
    filter: drop-shadow(0 0 5px rgba(255, 51, 51, 0.5));
}

.network-item:hover .network-icon img {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(255, 51, 51, 0.8));
}

.network-item h4 {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 0;
}

.market-ticker {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.crypto-prices {
    display: flex;
    gap: 3rem;
    animation: ticker 30s linear infinite;
}

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

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

.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4rem 2.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    transition: var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary-color);
}

.service-icon {
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 51, 51, 0.1);
    margin-bottom: 2.5rem;
    font-size: 3rem;
    color: var(--primary-color);
    transition: var(--transition-normal);
}

.service-card:hover .service-icon {
    background: var(--primary-gradient);
    color: var(--light-color);
    box-shadow: var(--shadow-glow);
}

.service-card h4 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.service-card p {
    font-size: 1.5rem;
    color: var(--gray-color);
    margin-bottom: 0;
}

/* ==== CONTACT SECTION ==== */
.contact {
    background-color: var(--dark-color);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top left, rgba(255, 51, 51, 0.08) 0%, rgba(26, 15, 15, 0) 70%);
    pointer-events: none;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 6rem;
}

.contact-content-centered {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
}

.contact-content-centered .contact-info {
    max-width: 600px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
}

.contact-content-centered .contact-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-fast);
    text-decoration: none;
}

.contact-content-centered .contact-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary-color);
    color: var(--light-color);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    color: var(--light-color);
    transition: var(--transition-fast);
    text-decoration: none;
}

.contact-item:hover {
    transform: translateY(-5px);
    color: var(--light-color);
}

.contact-icon {
    width: 7rem;
    height: 7rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 51, 51, 0.1);
    font-size: 3rem;
    color: var(--primary-color);
    transition: var(--transition-fast);
    margin-right: 1.5rem;
}

.contact-item:hover .contact-icon {
    background: var(--primary-gradient);
    color: var(--light-color);
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}

.contact-details h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.contact-details p {
    font-size: 1.6rem;
    color: var(--gray-color);
    margin-bottom: 0;
}

.contact-socials {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.contact-form {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4rem;
}

.form-group {
    position: relative;
    margin-bottom: 3rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-md);
    font-family: var(--body-font);
    font-size: 1.6rem;
    color: var(--light-color);
    transition: var(--transition-fast);
}

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

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

.form-group label {
    position: absolute;
    top: 50%;
    left: 2rem;
    transform: translateY(-50%);
    color: var(--gray-color);
    pointer-events: none;
    transition: var(--transition-fast);
}

.form-group textarea + label {
    top: 1.5rem;
    transform: none;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -1.2rem;
    left: 1rem;
    font-size: 1.2rem;
    color: var(--primary-color);
    background-color: var(--dark-color);
    padding: 0 0.5rem;
}

.contact-form .btn {
    width: 100%;
    margin-top: 1rem;
}

.contact-content-centered .contact-socials {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    width: 100%;
}

.contact-content-centered .social-icon {
    width: 6rem;
    height: 6rem;
    font-size: 2.4rem;
    margin: 0 1rem;
    transition: var(--transition-fast);
}

.contact-content-centered .social-icon:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
}

/* ==== FOOTER ==== */
.footer {
    background-color: var(--darker-color);
    padding: 8rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5rem;
    flex-wrap: wrap;
    gap: 3rem;
}

.footer-nav ul {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.footer-nav ul li a {
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--gray-color);
    transition: var(--transition-fast);
}

.footer-nav ul li a:hover {
    color: var(--primary-color);
}

.footer-socials {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-bottom p {
    font-size: 1.4rem;
    color: var(--gray-color);
    margin-bottom: 0;
}

.eth-address {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.4rem;
    color: var(--gray-color);
}

.eth-address code {
    font-family: monospace;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
}

/* ==== BACK TO TOP ==== */
.back-to-top {
    position: fixed;
    bottom: 3rem;
    right: 3rem;
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-glow);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
    z-index: 99;
}

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

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(255, 51, 51, 0.8);
}

/* ==== RESPONSIVE DESIGN ==== */
@media screen and (max-width: 1200px) {
    html {
        font-size: 60%;
    }
    
    .hero-visual {
        width: 400px;
        height: 400px;
    }
}

@media screen and (max-width: 992px) {
    html {
        font-size: 58%;
    }
    
    section {
        padding: 80px 0;
    }
    
    .navbar-menu {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background-color: rgba(15, 8, 8, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 6rem;
        transition: var(--transition-fast);
        z-index: 1000;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }
    
    .navbar-menu.active {
        right: 0;
    }
    
    .navbar-nav {
        flex-direction: column;
        align-items: center;
    }
    
    .navbar-toggle {
        display: block;
        z-index: 1001;
    }
    
    .hero .container {
        flex-direction: column;
        gap: 5rem;
    }
    
    .hero-content {
        text-align: center;
        max-width: 100%;
    }
    
    .cta-buttons, .hero-socials {
        justify-content: center;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .contact-content-centered .contact-info {
        width: 90%;
    }
    
    .about-image {
        margin: 0 auto;
        max-width: 400px;
    }
    
    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .wallet-connect {
        position: absolute;
        right: 70px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .connect-btn {
        padding: 0.6rem 1.5rem;
        font-size: 1.3rem;
    }
}

@media screen and (max-width: 768px) {
    html {
        font-size: 55%;
    }
    
    h1 {
        font-size: 4.5rem;
    }
    
    h2 {
        font-size: 3.6rem;
    }
    
    .crypto-stats {
        grid-template-columns: 1fr;
    }
    
    .crypto-stats .stat-item {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .networks-grid,
    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .contact-content-centered .contact-info {
        width: 100%;
    }
    
    .footer-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-subtitle {
        font-size: 1.8rem;
    }
    
    .hero-visual {
        width: 100%;
        height: 400px;
    }
    
    .profile-3d {
        width: 300px;
        height: 300px;
    }
    
    .project-filters {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .filter-btn {
        padding: 0.6rem 1.5rem;
        font-size: 1.3rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 250px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .cta-buttons .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
}

@media screen and (max-width: 576px) {
    html {
        font-size: 50%;
    }
    
    h1 {
        font-size: 3.8rem;
    }
    
    h2 {
        font-size: 3rem;
    }
    
    h3 {
        font-size: 2.5rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .navbar {
        padding: 1.5rem 0;
    }
    
    .logo {
        font-size: 2.2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card {
        max-width: 320px;
        margin: 0 auto;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    .wallet-connect {
        display: none;
    }
    
    .section-header {
        margin-bottom: 4rem;
    }
    
    .hero-socials {
        justify-content: center;
    }
    
    .social-icon {
        width: 4.5rem;
        height: 4.5rem;
        font-size: 1.8rem;
        margin: 0 0.5rem;
    }
    
    .contact-content-centered .contact-item {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .contact-icon {
        width: 5rem;
        height: 5rem;
        font-size: 2rem;
    }
    
    .contact-details h3 {
        font-size: 1.8rem;
    }
    
    .contact-details p {
        font-size: 1.4rem;
    }
    
    .service-card {
        padding: 3rem 1.5rem;
    }
    
    .service-icon {
        width: 6rem;
        height: 6rem;
        font-size: 2.5rem;
    }
    
    .hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 50px;
    }
    
    .profile-3d {
        width: 250px;
        height: 250px;
    }
    
    input, textarea, button, select {
        font-size: 16px !important; /* Prevents iOS Safari from zooming in */
    }
    
    .form-group input,
    .form-group textarea {
        padding: 1.2rem 1.5rem;
    }
    
    .btn {
        padding: 1.2rem 2.2rem;
        margin-bottom: 1rem;
    }
    
    /* Make project cards better on mobile */
    .project-card {
        box-shadow: var(--shadow-md);
        transition: transform 0.3s ease;
    }
    
    .project-card:active {
        transform: scale(0.98);
    }
    
    .project-link, 
    .project-github {
        width: 5rem;
        height: 5rem;
        font-size: 2rem;
    }
    
    /* Improve touch areas */
    .filter-btn {
        padding: 0.8rem 1.5rem;
        margin: 0.5rem;
    }
    
    /* Footer improvements */
    .footer {
        padding: 5rem 0 2rem;
    }
    
    .footer-nav ul li {
        margin-bottom: 1rem;
    }
    
    .footer-nav ul li a {
        padding: 0.8rem;
        display: inline-block;
    }
    
    /* Scroll indicator mobile optimizations */
    .scroll-indicator {
        bottom: 10px;
    }
    
    .mouse {
        width: 24px;
        height: 40px;
    }
    
    /* Navbar hamburger improvement */
    .hamburger {
        width: 28px;
        height: 22px;
    }
    
    .hamburger span {
        height: 3px;
    }
    
}

/* Extra small devices */
@media screen and (max-width: 380px) {
    .profile-3d {
        width: 200px;
        height: 200px;
    }
    
    .contact-content-centered .contact-icon {
        width: 4.5rem;
        height: 4.5rem;
        font-size: 1.8rem;
        margin-right: 1rem;
    }
    
    .contact-details h3 {
        font-size: 1.6rem;
    }
    
    .contact-details p {
        font-size: 1.3rem;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .footer-socials {
        gap: 0.8rem;
    }
    
    .footer-socials .social-icon {
        width: 4rem;
        height: 4rem;
    }
    
    .experience-badge {
        width: 80px;
        height: 80px;
        bottom: -15px;
        right: -15px;
    }
    
    .experience-badge .number {
        font-size: 2.2rem;
    }
    
    .experience-badge .text {
        font-size: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.6rem;
    }
    
    /* Smaller back to top button on tiny screens */
    .back-to-top {
        width: 4rem;
        height: 4rem;
        bottom: 2rem;
        right: 2rem;
    }
}

/* Mobile menu specific styles */
@media (max-width: 992px) {
    .navbar-menu.active {
        padding: 5rem 2rem 2rem;
    }
    
    .navbar-menu .nav-item {
        margin-bottom: 2rem;
        width: 100%;
        text-align: center;
    }
    
    .navbar-menu .nav-link {
        display: block;
        padding: 1.2rem;
        font-size: 1.8rem;
        border-radius: var(--border-radius-sm);
        transition: all 0.3s ease;
    }
    
    .navbar-menu .nav-link:hover,
    .navbar-menu .nav-link.active {
        background: rgba(255, 51, 51, 0.1);
        transform: translateX(5px);
    }
    
    .navbar-toggle {
        position: relative;
        z-index: 1001;
    }
    
    /* Make profile image less intensive on mobile */
    @media (max-width: 768px) {
        .profile-image {
            animation: pulse 4s infinite;
        }
        
        .profile-container {
            animation: rotate 25s infinite linear;
        }
        
        /* Reduce parallax effect on mobile for better performance */
        .particles-container {
            opacity: 0.5;
        }
    }
}

/* Touch-friendly styles for mobile devices */
@media (hover: none) {
    .social-icon:active,
    .project-card:active,
    .service-card:active,
    .contact-item:active,
    .btn:active {
        transform: scale(0.95);
    }
    
    .contact-content-centered .contact-item {
        transition: transform 0.2s ease;
    }
    
    .contact-content-centered .contact-item:active {
        transform: translateY(-2px);
    }
    
    /* Disable fancy animations on touch devices for better performance */
    .glitch::before,
    .glitch::after {
        animation: none;
    }
    
    .glitch {
        animation: none;
        text-shadow: 2px 2px 0 rgba(255, 51, 51, 0.7);
    }
}

/* Mobile menu styles */
body.menu-open {
    overflow: hidden;
}

.navbar-menu.active {
    right: 0;
    padding: 2rem;
}

.navbar-menu .navbar-nav {
    margin-top: 3rem;
}

.navbar-menu .nav-item {
    margin-bottom: 2rem;
    width: 100%;
    text-align: center;
}

.navbar-menu .nav-link {
    display: block;
    padding: 1rem 0;
    font-size: 1.8rem;
}

/* Touch active state for mobile interactions */
.touch-device .btn:active,
.touch-device .social-icon:active,
.touch-device .project-card:active,
.touch-device .service-card:active,
.touch-device .contact-item:active,
.touch-device .filter-btn:active {
    transform: scale(0.97);
    transition: transform 0.1s ease;
}

.touch-active {
    transform: scale(0.97) !important;
}

/* ==== RESPONSIVE DESIGN ==== */
@media screen and (max-width: 1200px) {
    html { font-size: 60%; } .hero-visual { width: 400px; height: 400px; }
} 
