/* ===== CSS Variables ===== */
:root {
    --primary-color: #64ffda;
    --secondary-color: #0a192f;
    --dark-bg: #0a192f;
    --light-bg: #112240;
    --text-primary: #ccd6f6;
    --text-secondary: #8892b0;
    --text-light: #a8b2d1;
    --accent-color: #ff6b6b;
    --white: #ffffff;
    --nav-height: 70px;
    --transition: all 0.3s ease;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-bg);
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(100, 255, 218, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 107, 107, 0.05) 0%, transparent 50%),
        linear-gradient(135deg, var(--dark-bg) 0%, var(--light-bg) 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    perspective: 1000px;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(100, 255, 218, 0.02) 2px, rgba(100, 255, 218, 0.02) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(100, 255, 218, 0.02) 2px, rgba(100, 255, 218, 0.02) 4px);
    background-size: 100px 100px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Navigation with Glassmorphism ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(
        135deg,
        rgba(10, 25, 47, 0.8) 0%,
        rgba(17, 34, 64, 0.9) 100%
    );
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
    background-clip: padding-box;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, rgba(100, 255, 218, 0.3), rgba(255, 107, 107, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 8px 32px rgba(100, 255, 218, 0.1);
    border-bottom: 2px solid rgba(100, 255, 218, 0.2);
}

.navbar.scrolled::before {
    opacity: 1;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--nav-height);
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    text-shadow: 0 0 30px rgba(100, 255, 218, 0.5);
    filter: drop-shadow(0 0 10px rgba(100, 255, 218, 0.3));
}

.logo a:hover {
    transform: scale(1.05) rotateY(10deg);
    filter: drop-shadow(0 0 20px rgba(100, 255, 218, 0.6));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    backdrop-filter: blur(10px);
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(100, 255, 218, 0.1), rgba(255, 107, 107, 0.1));
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--primary-color);
}

.nav-link:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link:hover::after {
    width: 80%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--nav-height);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--light-bg) 100%);
    z-index: -1;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(100, 255, 218, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 107, 107, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 10%, rgba(100, 255, 218, 0.1) 0%, transparent 40%);
    animation: gradientMove 10s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradientMove {
    0%, 100% { background-position: 0% 0%, 100% 100%, 50% 0%; }
    50% { background-position: 100% 100%, 0% 0%, 50% 100%; }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

.hero-greeting {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

.hero-name {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-color) 50%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
    filter: drop-shadow(0 0 30px rgba(100, 255, 218, 0.5));
    position: relative;
}

.hero-name::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: blur(20px);
    opacity: 0.5;
}

.hero-title {
    font-size: 3rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    min-height: 3.5rem;
}

.typing-text {
    color: var(--primary-color);
}

.cursor {
    animation: blink 1s infinite;
    color: var(--primary-color);
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
    position: relative;
    transform-style: preserve-3d;
    overflow: hidden;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.btn::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 10px;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color), var(--primary-color));
    background-size: 200% 200%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover::after {
    opacity: 1;
    animation: gradientRotate 3s linear infinite;
}

@keyframes gradientRotate {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #4dd4c4);
    color: var(--dark-bg);
    box-shadow: 0 4px 20px rgba(100, 255, 218, 0.4);
}

.btn-primary:hover {
    background: transparent;
    color: var(--primary-color);
    transform: translateY(-5px) translateZ(15px) rotateX(5deg) scale(1.05);
    box-shadow: 0 10px 30px rgba(100, 255, 218, 0.6), 0 0 40px rgba(100, 255, 218, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(100, 255, 218, 0.2);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--primary-color), #4dd4c4);
    color: var(--dark-bg);
    border-color: transparent;
    transform: translateY(-5px) translateZ(15px) rotateX(5deg) scale(1.05);
    box-shadow: 0 10px 30px rgba(100, 255, 218, 0.6), 0 0 40px rgba(100, 255, 218, 0.3);
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(100, 255, 218, 0.05);
    border: 2px solid rgba(100, 255, 218, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-5px) rotateY(360deg) scale(1.15);
    background: rgba(100, 255, 218, 0.15);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(100, 255, 218, 0.4), 0 0 40px rgba(100, 255, 218, 0.3);
}

.social-links a:hover::before {
    opacity: 1;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.image-wrapper {
    width: 400px;
    height: 400px;
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    opacity: 0.2;
    animation: float3d 6s ease-in-out infinite;
    transform-style: preserve-3d;
}

.shape-1 {
    width: 200px;
    height: 200px;
    top: 0;
    left: 0;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    bottom: 0;
    right: 0;
    animation-delay: 2s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    top: 50%;
    right: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes float3d {
    0%, 100% { 
        transform: translate3d(0, 0, 0) rotateX(0deg) rotateY(0deg) rotateZ(0deg); 
    }
    25% { 
        transform: translate3d(20px, -20px, 50px) rotateX(90deg) rotateY(45deg) rotateZ(45deg); 
    }
    50% { 
        transform: translate3d(-20px, -40px, 100px) rotateX(180deg) rotateY(90deg) rotateZ(90deg); 
    }
    75% { 
        transform: translate3d(20px, -20px, 50px) rotateX(270deg) rotateY(135deg) rotateZ(135deg); 
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator a {
    color: var(--primary-color);
    font-size: 1.5rem;
    text-decoration: none;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* ===== Section Styles ===== */
section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(100, 255, 218, 0.03), transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 4rem;
}

.section-number {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-right: 1rem;
    font-family: 'Courier New', monospace;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-right: 1rem;
}

.title-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--primary-color), transparent);
    max-width: 300px;
}

/* ===== About Section ===== */
.about {
    background-color: var(--light-bg);
}

.about-content {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.about-text {
    position: relative;
    z-index: 2;
}

/* ===== Animated Background ===== */
.animated-background {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        rgba(100, 255, 218, 0.1) 0%,
        rgba(255, 107, 107, 0.1) 25%,
        rgba(100, 255, 218, 0.1) 50%,
        rgba(255, 107, 107, 0.1) 75%,
        rgba(100, 255, 218, 0.1) 100%
    );
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    z-index: 0;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== Particles Container ===== */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.6;
    animation: floatParticle 15s infinite ease-in-out;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) translateX(0) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) translateX(100px) scale(1);
        opacity: 0;
    }
}

/* ===== Text Reveal Animation ===== */
.text-reveal {
    position: relative;
    z-index: 2;
}

.reveal-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    opacity: 0;
    transform: translateY(30px);
    animation: revealText 1s ease forwards;
}

.reveal-text:nth-child(1) {
    animation-delay: 0.3s;
}

.reveal-text:nth-child(2) {
    animation-delay: 0.6s;
}

@keyframes revealText {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-text p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.highlight-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    background-color: rgba(100, 255, 218, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(100, 255, 218, 0.1);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.highlight-item:nth-child(1) {
    animation-delay: 0.9s;
}

.highlight-item:nth-child(2) {
    animation-delay: 1.1s;
}

.highlight-item:nth-child(3) {
    animation-delay: 1.3s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.highlight-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(100, 255, 218, 0.2) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.highlight-item:hover::before {
    animation: shimmer 0.6s ease;
    opacity: 1;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.highlight-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(100, 255, 218, 0.1), transparent);
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.highlight-item:hover {
    transform: translateY(-5px) rotateX(10deg) rotateY(5deg) scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(100, 255, 218, 0.3);
}

.highlight-item:hover::after {
    opacity: 1;
}

.icon-wrapper {
    position: relative;
    z-index: 1;
    margin-bottom: 1rem;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.1) rotate(5deg);
    }
}

.highlight-item i {
    font-size: 2rem;
    color: var(--primary-color);
    display: block;
    transition: all 0.3s ease;
}

.highlight-item:hover i {
    transform: scale(1.2) rotate(360deg);
    color: var(--accent-color);
}

.highlight-item span {
    color: var(--text-light);
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* ===== Skills Section ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.skill-category {
    background: linear-gradient(135deg, rgba(17, 34, 64, 0.8), rgba(10, 25, 47, 0.9));
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 2.5rem;
    border-radius: 15px;
    border: 2px solid rgba(100, 255, 218, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(100, 255, 218, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.skill-category::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 15px;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color), var(--primary-color));
    background-size: 200% 200%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.skill-category:hover::before {
    opacity: 1;
}

.skill-category:hover::after {
    opacity: 1;
    animation: gradientRotate 3s linear infinite;
}

.skill-category:hover {
    transform: translateY(-10px) translateZ(30px) rotateX(8deg) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 20px 60px rgba(100, 255, 218, 0.4), 0 0 80px rgba(100, 255, 218, 0.2);
}

.skill-category h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.skill-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background-color: rgba(100, 255, 218, 0.05);
    border-radius: 8px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    transform-style: preserve-3d;
    position: relative;
}

.skill-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(100, 255, 218, 0.3), transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
    z-index: 0;
}

.skill-item:hover::before {
    width: 200%;
    height: 200%;
}

.skill-item:hover {
    background-color: rgba(100, 255, 218, 0.1);
    transform: scale(1.05) rotateY(15deg) rotateX(5deg) translateZ(20px);
}

.skill-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.skill-item span {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.9rem;
}

/* ===== Projects Section ===== */
.projects {
    background-color: var(--light-bg);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.project-card {
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.9), rgba(17, 34, 64, 0.9));
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid rgba(100, 255, 218, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    perspective: 1000px;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(100, 255, 218, 0.15), rgba(255, 107, 107, 0.15));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
    border-radius: 20px;
}

.project-card::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color), var(--primary-color));
    background-size: 200% 200%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover::after {
    opacity: 1;
    animation: gradientRotate 3s linear infinite;
}

.project-card:hover {
    transform: translateY(-15px) rotateX(8deg) rotateY(8deg) translateZ(30px);
    box-shadow: 0 20px 60px rgba(100, 255, 218, 0.4), 0 0 80px rgba(100, 255, 218, 0.2);
    border-color: var(--primary-color);
}

.project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.3);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 25, 47, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-links {
    display: flex;
    gap: 2rem;
}

.project-links a {
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: var(--transition);
}

.project-links a:hover {
    color: var(--white);
    transform: scale(1.2);
}

.project-content {
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.project-content h3 {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    filter: drop-shadow(0 0 10px rgba(100, 255, 218, 0.3));
}

.project-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.project-tech span {
    padding: 0.4rem 0.8rem;
    background: rgba(100, 255, 218, 0.1);
    backdrop-filter: blur(10px);
    color: var(--primary-color);
    border-radius: 8px;
    font-size: 0.85rem;
    border: 1px solid rgba(100, 255, 218, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-tech span::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(100, 255, 218, 0.3), transparent);
    transition: left 0.5s ease;
}

.project-tech span:hover {
    background: rgba(100, 255, 218, 0.2);
    border-color: var(--primary-color);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 15px rgba(100, 255, 218, 0.3);
}

.project-tech span:hover::before {
    left: 100%;
}

/* ===== Contact Section ===== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
}

.contact-intro {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--light-bg);
    border-radius: 10px;
    border: 1px solid rgba(100, 255, 218, 0.1);
    transition: var(--transition);
}

.contact-item:hover {
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0.25rem;
}

.contact-item h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-item a,
.contact-item span {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--primary-color);
}

.contact-social {
    display: flex;
    gap: 1.5rem;
}

.contact-social a {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-bg);
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: var(--transition);
}

.contact-social a:hover {
    background-color: var(--primary-color);
    color: var(--dark-bg);
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(17, 34, 64, 0.8), rgba(10, 25, 47, 0.9));
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 2px solid rgba(100, 255, 218, 0.2);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(100, 255, 218, 0.2), 0 8px 30px rgba(100, 255, 218, 0.3);
    transform: translateY(-2px) scale(1.02);
    background: linear-gradient(135deg, rgba(17, 34, 64, 0.95), rgba(10, 25, 47, 0.95));
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* ===== Footer ===== */
.footer {
    background-color: var(--light-bg);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(100, 255, 218, 0.1);
}

.footer p {
    color: var(--text-secondary);
    margin: 0.5rem 0;
}

.footer i {
    color: var(--accent-color);
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ===== Responsive Design ===== */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-name {
        font-size: 3.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-image {
        display: none;
    }

    .about-content {
        max-width: 100%;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--nav-height);
        flex-direction: column;
        background-color: var(--dark-bg);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
        border-top: 1px solid rgba(100, 255, 218, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}

@media (max-width: 600px) {
    .hero-name {
        font-size: 2.5rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .about-highlights {
        grid-template-columns: 1fr;
    }

    .skill-items {
        grid-template-columns: 1fr;
    }
    
    /* Reduce 3D effects on mobile for performance */
    .hero-3d-container {
        display: none;
    }
    
    .project-card:hover {
        transform: translateY(-10px);
    }
    
    .skill-item:hover {
        transform: scale(1.05);
    }
    
    .highlight-item:hover {
        transform: translateY(-5px);
    }
}

/* ===== 3D Geometric Shapes ===== */
.hero-3d-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.geometric-shape {
    position: absolute;
    opacity: 0.1;
    animation: rotate3d 20s linear infinite;
    transform-style: preserve-3d;
}

.shape-cube {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    transform: rotateX(45deg) rotateY(45deg);
    border-radius: 10px;
}

.shape-pyramid {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 86px solid var(--primary-color);
    transform: rotateX(60deg) rotateY(45deg);
    opacity: 0.1;
    position: relative;
}

.shape-pyramid::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 86px solid var(--accent-color);
    transform: rotateX(180deg) translateZ(50px);
    opacity: 0.1;
}

.shape-sphere {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    transform: rotateX(45deg) rotateY(45deg);
}

@keyframes rotate3d {
    0% {
        transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg) translateZ(0);
    }
    100% {
        transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg) translateZ(100px);
    }
}

/* ===== 3D Button Effects ===== */
.btn {
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

.btn::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: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px) translateZ(10px) rotateX(5deg);
}

.btn-secondary:hover {
    transform: translateY(-2px) translateZ(10px) rotateX(5deg);
}

/* ===== 3D Section Headers ===== */
.section-header {
    transform-style: preserve-3d;
}

.section-title {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.section-header:hover .section-title {
    transform: translateZ(20px) rotateY(5deg);
}

/* ===== 3D Contact Items ===== */
.contact-item {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateX(5px) translateZ(10px) rotateY(5deg);
}

/* ===== 3D Skill Categories ===== */
.skill-category {
    transform-style: preserve-3d;
    position: relative;
}

.skill-category::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(100, 255, 218, 0.05), transparent);
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.skill-category:hover::after {
    opacity: 1;
}

.skill-category:hover {
    transform: translateY(-5px) translateZ(20px) rotateX(5deg);
}

/* ===== Scroll Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px) translateZ(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0) translateZ(0);
}
