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

:root {
    --vh: 1vh;
    --primary-blue: #00d4ff;
    --bright-purple: #a855f7;
    --hot-pink: #ec4899;
    --electric-blue: #3b82f6;
    --neon-purple: #8b5cf6;
    --background-dark: #0a0a0f;
    --surface-dark: #1a1a2e;
    --surface-light: #16213e;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #6b7280;
    --gradient-primary: linear-gradient(135deg, var(--primary-blue), var(--hot-pink));
    --gradient-secondary: linear-gradient(135deg, var(--bright-purple), var(--primary-blue));
    --gradient-tertiary: linear-gradient(135deg, var(--hot-pink), var(--neon-purple));
    --gradient-bg: linear-gradient(135deg, #0a0a0f, #1a1a2e, #16213e);
    --shadow-glow: 0 0 30px rgba(0, 212, 255, 0.4);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
}

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px) rotate(0deg) scale(1); }
    25% { transform: translateY(-30px) rotate(90deg) scale(1.1); }
    50% { transform: translateY(-15px) rotate(180deg) scale(0.9); }
    75% { transform: translateY(-40px) rotate(270deg) scale(1.2); }
    100% { transform: translateY(0px) rotate(360deg) scale(1); }
}

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

@keyframes morphing {
    0% { border-radius: 50% 30% 70% 40%; transform: rotate(0deg) scale(1); }
    25% { border-radius: 30% 70% 40% 50%; transform: rotate(90deg) scale(1.2); }
    50% { border-radius: 70% 40% 50% 30%; transform: rotate(180deg) scale(0.8); }
    75% { border-radius: 40% 50% 30% 70%; transform: rotate(270deg) scale(1.1); }
    100% { border-radius: 50% 30% 70% 40%; transform: rotate(360deg) scale(1); }
}

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

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

@keyframes spiral {
    0% { transform: rotate(0deg) translateX(clamp(25px, 5vw, 50px)) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(clamp(25px, 5vw, 50px)) rotate(-360deg); }
}

@keyframes wave {
    0%, 100% { transform: translateY(0px) scaleY(1); }
    25% { transform: translateY(clamp(-10px, -2vw, -20px)) scaleY(1.2); }
    50% { transform: translateY(clamp(5px, 1vw, 10px)) scaleY(0.8); }
    75% { transform: translateY(clamp(-7px, -1.5vw, -15px)) scaleY(1.1); }
}

@keyframes orbit {
    0% { transform: rotate(0deg) translateX(clamp(50px, 8vw, 100px)) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(clamp(50px, 8vw, 100px)) rotate(-360deg); }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 15, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0 0 20px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo .logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

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

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

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-toggle:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.3);
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--primary-blue);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
    transform-origin: center;
}

.nav-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.nav-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Section */
/* Hero section base styles */
.hero {
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--gradient-bg);
    padding: 80px 0;
    transition: padding 0.3s ease;
}

.hero-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 3;
}

.hero-content {
    flex: none;
    max-width: 100%;
    z-index: 4;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
    width: 100%;
}

.hero-text {
    width: 100%;
    max-width: 800px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.hero-image {
    position: relative;
    width: 200px;
    height: 200px;
    margin-bottom: 1rem;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 50%;
    border: 2px solid rgba(0, 212, 255, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.image-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0.1;
    border-radius: 50%;
    animation: gradient-shift 4s ease infinite;
}

.image-placeholder i {
    font-size: 4rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    z-index: 2;
    position: relative;
}

.image-placeholder p {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    z-index: 2;
    position: relative;
}

.image-placeholder small {
    color: var(--text-secondary);
    font-size: 0.8rem;
    z-index: 2;
    position: relative;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 0;
    line-height: 1.1;
    text-align: center;
    color: var(--text-primary);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    word-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
}

.gradient-text {
    background: var(--gradient-primary);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
    text-shadow: none;
    position: relative;
}

.gradient-text::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    z-index: -1;
    filter: blur(3px);
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.6;
    text-align: center;
    max-width: 100%;
    word-wrap: break-word;
    hyphens: auto;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 1rem;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--background-dark);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.6);
}

.btn-secondary {
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary-blue);
    border: 2px solid rgba(0, 212, 255, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: var(--background-dark);
    transform: translateY(-2px);
}

/* Hero Shapes */
.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
    transform-origin: center center;
}

.shape {
    position: absolute;
    filter: blur(1px);
    opacity: 0.8;
    will-change: transform;
}

.shape-1 {
    width: clamp(150px, 20vw, 300px);
    height: clamp(150px, 20vw, 300px);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.4), rgba(168, 85, 247, 0.4));
    border-radius: 50% 30% 70% 40%;
    top: 5%;
    right: 10%;
    animation: morphing 8s ease-in-out infinite;
    animation-delay: 0s;
}

.shape-2 {
    width: clamp(120px, 18vw, 250px);
    height: clamp(120px, 18vw, 250px);
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.4), rgba(139, 92, 246, 0.4));
    border-radius: 30% 70% 40% 50%;
    bottom: 15%;
    left: 20%;
    animation: morphing 6s ease-in-out infinite reverse;
    animation-delay: 2s;
}

.shape-3 {
    width: clamp(100px, 15vw, 200px);
    height: clamp(100px, 15vw, 200px);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.4), rgba(0, 212, 255, 0.4));
    border-radius: 70% 40% 50% 30%;
    top: 60%;
    right: 5%;
    animation: float 10s ease-in-out infinite;
    animation-delay: 4s;
}

.shape-4 {
    width: clamp(90px, 12vw, 180px);
    height: clamp(90px, 12vw, 180px);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(236, 72, 153, 0.3));
    border-radius: 40% 50% 30% 70%;
    top: 20%;
    left: 30%;
    animation: wave 7s ease-in-out infinite;
    animation-delay: 1s;
}

.shape-5 {
    width: clamp(80px, 10vw, 150px);
    height: clamp(80px, 10vw, 150px);
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.3), rgba(168, 85, 247, 0.3));
    border-radius: 60% 40% 80% 20%;
    bottom: 35%;
    right: 25%;
    animation: morphing 9s ease-in-out infinite;
    animation-delay: 3s;
}

.shape-6 {
    width: clamp(110px, 15vw, 220px);
    height: clamp(110px, 15vw, 220px);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.3), rgba(236, 72, 153, 0.3));
    border-radius: 80% 20% 60% 40%;
    top: 45%;
    left: 10%;
    animation: wave 11s ease-in-out infinite;
    animation-delay: 5s;
}

.shape-7 {
    width: clamp(70px, 9vw, 130px);
    height: clamp(70px, 9vw, 130px);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(59, 130, 246, 0.3));
    border-radius: 50% 50% 20% 80%;
    top: 10%;
    left: 60%;
    animation: spiral 14s linear infinite;
    animation-delay: 2s;
}

.shape-8 {
    width: clamp(85px, 11vw, 170px);
    height: clamp(85px, 11vw, 170px);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(0, 212, 255, 0.3));
    border-radius: 30% 70% 60% 40%;
    bottom: 10%;
    left: 50%;
    animation: float 13s ease-in-out infinite;
    animation-delay: 6s;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    transform-origin: center center;
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
    will-change: transform;
}

.element-1 {
    width: clamp(15px, 2.5vw, 30px);
    height: clamp(15px, 2.5vw, 30px);
    background: var(--primary-blue);
    top: 15%;
    right: 20%;
    animation: orbit 12s linear infinite;
}

.element-2 {
    width: clamp(12px, 2vw, 25px);
    height: clamp(12px, 2vw, 25px);
    background: var(--hot-pink);
    top: 55%;
    right: 30%;
    animation: spiral 15s linear infinite;
    animation-delay: 2s;
}

.element-3 {
    width: clamp(10px, 1.5vw, 20px);
    height: clamp(10px, 1.5vw, 20px);
    background: var(--bright-purple);
    bottom: 25%;
    left: 40%;
    animation: float 8s ease-in-out infinite;
    animation-delay: 4s;
}

.element-4 {
    width: clamp(18px, 3vw, 35px);
    height: clamp(18px, 3vw, 35px);
    background: var(--electric-blue);
    top: 35%;
    right: 15%;
    animation: wave 10s ease-in-out infinite;
    animation-delay: 1s;
}

.element-5 {
    width: clamp(8px, 1.2vw, 15px);
    height: clamp(8px, 1.2vw, 15px);
    background: var(--neon-purple);
    top: 70%;
    left: 70%;
    animation: pulse 4s ease-in-out infinite;
    animation-delay: 3s;
}

.element-6 {
    width: clamp(14px, 2.2vw, 28px);
    height: clamp(14px, 2.2vw, 28px);
    background: var(--primary-blue);
    top: 25%;
    left: 80%;
    animation: orbit 16s linear infinite reverse;
    animation-delay: 5s;
}

.element-7 {
    width: clamp(11px, 1.8vw, 22px);
    height: clamp(11px, 1.8vw, 22px);
    background: var(--hot-pink);
    bottom: 45%;
    right: 10%;
    animation: wave 9s ease-in-out infinite;
    animation-delay: 7s;
}

.element-8 {
    width: clamp(9px, 1.4vw, 18px);
    height: clamp(9px, 1.4vw, 18px);
    background: var(--bright-purple);
    top: 80%;
    right: 50%;
    animation: spiral 13s linear infinite;
    animation-delay: 1s;
}

/* Additional complex background elements */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: 
        radial-gradient(circle at 40% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 60% 60%, rgba(168, 85, 247, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 90% 30%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 30% 70%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    animation: gradient-shift 6s ease infinite;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(0, 212, 255, 0.05) 40%, transparent 50%),
        linear-gradient(-45deg, transparent 30%, rgba(236, 72, 153, 0.05) 40%, transparent 50%),
        linear-gradient(135deg, transparent 30%, rgba(168, 85, 247, 0.05) 40%, transparent 50%);
    animation: wave 8s ease-in-out infinite;
    z-index: 0;
}

/* Section Styles */
section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

/* 3D Elements for each section */
section::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(168, 85, 247, 0.1));
    border-radius: 50% 30% 70% 40%;
    top: 10%;
    right: 5%;
    animation: float 12s ease-in-out infinite;
    z-index: 0;
}

section::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 40% 60% 30% 70%;
    bottom: 10%;
    left: 5%;
    animation: morphing 15s ease-in-out infinite reverse;
    z-index: 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

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

.about::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(236, 72, 153, 0.08));
    border-radius: 60% 40% 80% 20%;
    top: 20%;
    left: -10%;
    animation: morphing 20s ease-in-out infinite;
    z-index: 0;
}

.about::after {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.08), rgba(59, 130, 246, 0.08));
    border-radius: 30% 70% 50% 50%;
    bottom: 15%;
    right: -5%;
    animation: float 18s ease-in-out infinite reverse;
    z-index: 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.about-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

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

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

.about-visual {
    display: flex;
    justify-content: center;
}

.about-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-card);
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.about-card:hover .card-glow {
    opacity: 0.1;
}

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

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.about-card p {
    color: var(--text-secondary);
}

/* Projects Section */
.projects {
    background: var(--background-dark);
    position: relative;
}

.projects::before {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(0, 212, 255, 0.1));
    border-radius: 50% 20% 80% 30%;
    top: 15%;
    right: 8%;
    animation: wave 14s ease-in-out infinite;
    z-index: 0;
}

.projects::after {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(168, 85, 247, 0.1));
    border-radius: 70% 30% 40% 60%;
    bottom: 20%;
    left: 3%;
    animation: spiral 25s linear infinite;
    z-index: 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-card);
}

.project-image {
    height: 200px;
    background: var(--gradient-secondary);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.project-link {
    color: var(--primary-blue);
    font-size: 2rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.project-link:hover {
    transform: scale(1.2);
}

.project-content {
    padding: 2rem;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary-blue);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

/* Skills Section */
.skills {
    background: var(--surface-dark);
    position: relative;
}

.skills::before {
    content: '';
    position: absolute;
    width: 160px;
    height: 160px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(236, 72, 153, 0.1));
    border-radius: 80% 20% 60% 40%;
    top: 25%;
    left: 2%;
    animation: orbit 30s linear infinite;
    z-index: 0;
}

.skills::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 40% 60% 20% 80%;
    bottom: 10%;
    right: 5%;
    animation: morphing 22s ease-in-out infinite;
    z-index: 0;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-card);
}

.skill-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.skill-icon i {
    font-size: 2rem;
    color: var(--background-dark);
}

.skill-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.skill-item {
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary-blue);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

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

.contact::before {
    content: '';
    position: absolute;
    width: 240px;
    height: 240px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.08), rgba(0, 212, 255, 0.08));
    border-radius: 60% 40% 30% 70%;
    top: 20%;
    right: 2%;
    animation: float 16s ease-in-out infinite;
    z-index: 0;
}

.contact::after {
    content: '';
    position: absolute;
    width: 190px;
    height: 190px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.08), rgba(139, 92, 246, 0.08));
    border-radius: 50% 50% 20% 80%;
    bottom: 15%;
    left: 8%;
    animation: wave 13s ease-in-out infinite reverse;
    z-index: 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-card);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.5rem;
    color: var(--background-dark);
}

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

.contact-details a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.cta-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0.05;
    transition: left 0.5s ease;
}

.cta-card:hover::before {
    left: 0;
}

.cta-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.cta-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    background: var(--surface-dark);
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.social-links a:hover {
    background: var(--primary-blue);
    color: var(--background-dark);
    transform: translateY(-3px);
}

/* Responsive Design */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-title {
        font-size: clamp(2rem, 3.5vw, 3rem);
        white-space: nowrap;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-container {
        gap: 2rem;
    }
}

@media (min-width: 1025px) {
    .hero-title {
        white-space: nowrap;
        font-size: clamp(2.5rem, 4vw, 3.5rem);
    }
}

/* Enhanced Mobile Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(13, 13, 13, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 2rem 0;
        border-top: 1px solid rgba(0, 212, 255, 0.2);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
        animation: slideInLeft 0.3s ease;
    }

    .nav-item {
        margin: 0.5rem 0;
        opacity: 0;
        transform: translateX(-20px);
        transition: all 0.3s ease;
    }

    .nav-menu.active .nav-item {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-menu.active .nav-item:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu.active .nav-item:nth-child(2) { transition-delay: 0.2s; }
    .nav-menu.active .nav-item:nth-child(3) { transition-delay: 0.3s; }
    .nav-menu.active .nav-item:nth-child(4) { transition-delay: 0.4s; }
    .nav-menu.active .nav-item:nth-child(5) { transition-delay: 0.5s; }

    .nav-link {
        display: block;
        padding: 1rem 2rem;
        font-size: 1.1rem;
        font-weight: 600;
        border-radius: 8px;
        margin: 0 1rem;
        transition: all 0.3s ease;
    }

    .nav-link:hover {
        background: rgba(0, 212, 255, 0.1);
        color: var(--primary-blue);
        transform: translateY(-2px);
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .hero-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 2rem;
        padding: 0 20px;
        min-height: calc(100vh - 140px);
    }

    .hero-content {
        max-width: 100%;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 2.8rem);
        white-space: normal;
        word-break: break-word;
        line-height: 1.2;
        text-align: center;
        margin-bottom: 0;
    }

    .hero-shapes {
        position: relative;
        width: 100%;
        height: 400px;
        margin-top: 2rem;
        justify-self: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-stats {
        justify-content: center;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .footer-content {
        text-align: center;
        flex-direction: column;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 250px;
    }

    .about-stats {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Additional 3D floating elements */
.floating-3d {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

.floating-sphere {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(168, 85, 247, 0.2));
    border-radius: 50%;
    box-shadow: 
        0 0 20px rgba(0, 212, 255, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    animation: float 8s ease-in-out infinite;
}

.floating-cube {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(139, 92, 246, 0.2));
    border-radius: 10px;
    box-shadow: 
        0 0 15px rgba(236, 72, 153, 0.3),
        inset 0 0 15px rgba(255, 255, 255, 0.1);
    animation: spiral 12s linear infinite;
    transform-style: preserve-3d;
}

.floating-pyramid {
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 50px solid rgba(59, 130, 246, 0.2);
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.3));
    animation: wave 10s ease-in-out infinite;
}

.floating-ring {
    width: 80px;
    height: 80px;
    border: 8px solid rgba(0, 212, 255, 0.2);
    border-radius: 50%;
    box-shadow: 
        0 0 25px rgba(0, 212, 255, 0.3),
        inset 0 0 25px rgba(255, 255, 255, 0.1);
    animation: orbit 15s linear infinite;
}

/* Enhanced card hover effects with 3D transform */
.project-card:hover,
.skill-category:hover,
.about-card:hover,
.contact-item:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(0, 212, 255, 0.2);
}

.btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(0, 212, 255, 0.4);
}
/* Scroll Animations */
[data-aos] {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
}

/* Enhanced Mobile Responsive Design */
@media (max-width: 480px) {
    /* Base mobile styles */
    body {
        font-size: 14px;
        line-height: 1.5;
    }
    
    /* Hero section mobile optimization */
    .hero {
        padding: 60px 0 40px;
        min-height: 100vh;
        min-height: calc(var(--vh, 1vh) * 100);
    }
    
    .hero-container {
        padding: 0 15px;
        gap: 1.5rem;
        min-height: calc(100vh - 100px);
    }
    
    .hero-content {
        gap: 1.5rem;
    }
    
    .hero-text {
        gap: 1.2rem;
        max-width: 100%;
    }
    
    .hero-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem) !important;
        line-height: 1.1;
        margin-bottom: 0;
    }
    
    .hero-subtitle {
        font-size: clamp(0.9rem, 4vw, 1.1rem) !important;
        line-height: 1.5;
        margin-bottom: 0;
        padding: 0 5px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        align-items: center;
        justify-content: center;
        margin-top: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        padding: 14px 20px;
        font-size: 1rem;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
    }
    
    /* Navigation mobile optimization */
    .nav-container {
        padding: 0 15px;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(13, 13, 13, 0.95);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        border-radius: 0 0 20px 20px;
        padding: 20px 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 10px 0;
    }
    
    .nav-link {
        padding: 10px 20px;
        display: block;
        font-size: 1.1rem;
    }
    
    /* Sections mobile optimization */
    .section {
        padding: 60px 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    /* About section mobile */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    /* Skills mobile */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .skill-category {
        padding: 1.5rem;
    }
    
    .skill-category h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    /* Projects mobile */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-card {
        padding: 1.5rem;
    }
    
    /* Contact mobile */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px 15px;
        font-size: 1rem;
    }
    
    /* Animations mobile optimization - reduce interference with text */
    .hero-shapes {
        opacity: 0.2;
        z-index: 0;
    }
    
    .shape {
        opacity: 0.3;
        filter: blur(3px);
        transform: scale(0.7);
    }
    
    .floating-elements {
        opacity: 0.2;
        z-index: 0;
    }
    
    .floating-element {
        opacity: 0.4;
        filter: blur(1px);
    }
    
    /* Hide complex animations on very small screens for better readability */
    .shape-1, .shape-2, .shape-3, .shape-4,
    .element-5, .element-6, .element-7, .element-8 {
        display: none;
    }
    
    /* Keep only simple animations that don't interfere */
    .shape-5, .shape-6, .shape-7, .shape-8 {
        opacity: 0.15;
        animation-duration: 12s;
        filter: blur(4px);
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    /* Tablet styles */
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(13, 13, 13, 0.95);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        border-top: 1px solid rgba(0, 212, 255, 0.2);
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
    
    /* Tablet hero section optimization */
    .hero {
        padding: 100px 0 80px;
        min-height: calc(var(--vh, 1vh) * 100);
        display: flex;
        align-items: center;
    }
    
    .hero-container {
        padding: 0 30px;
        gap: 2.5rem;
    }
    
    .hero-content {
        gap: 2rem;
        text-align: center;
        max-width: 100%;
    }
    
    .hero-text {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .hero-title {
        font-size: clamp(2.2rem, 6vw, 3rem) !important;
        line-height: 1.1;
        margin-bottom: 0;
    }
    
    .hero-subtitle {
        font-size: clamp(1rem, 3vw, 1.2rem) !important;
        line-height: 1.5;
        margin-bottom: 0;
    }
    
    .hero-buttons {
        gap: 1rem;
    }
    
    .btn {
        padding: 14px 24px;
        min-width: 160px;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    /* Reduce animation complexity for better tablet performance */
    .hero-shapes {
        opacity: 0.5;
    }
    
    .shape {
        opacity: 0.6;
        filter: blur(1.5px);
        transform: scale(0.85);
    }
    
    .floating-elements {
        opacity: 0.5;
    }
    
    .floating-element {
        opacity: 0.7;
        filter: blur(0.5px);
    }
    
    /* Hide some elements for cleaner look */
    .element-7, .element-8 {
        opacity: 0.3;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    /* Desktop/laptop styles */
    .hero-title {
        font-size: clamp(2.5rem, 4vw, 3.2rem);
    }
    
    .container {
        padding: 0 30px;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn:hover,
    .project-card:hover,
    .skill-category:hover {
        transform: none;
    }
    
    .btn:active {
        transform: scale(0.98);
    }
    
    .nav-link:hover {
        background: rgba(0, 212, 255, 0.1);
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-shapes {
        transform: scale(0.9);
    }
}

/* Very small screens optimization */
@media (max-width: 320px) {
    .hero {
        padding: 70px 0 50px;
    }
    
    .hero-container {
        padding: 0 15px;
        gap: 1.5rem;
    }
    
    .hero-title {
        font-size: clamp(1.6rem, 10vw, 2.2rem) !important;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: clamp(0.9rem, 4.5vw, 1.1rem);
        padding: 0 5px;
    }
    
    .hero-buttons {
        gap: 0.8rem;
    }
    
    .btn {
        padding: 12px 16px;
        font-size: 0.9rem;
        max-width: 260px;
    }
}

/* Landscape mobile */
@media (max-width: 896px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 60px 0 40px;
        display: flex;
        align-items: center;
    }
    
    .hero-container {
        padding: 0 30px;
        gap: 1.5rem;
        min-height: calc(100vh - 100px);
        justify-content: center;
    }
    
    .hero-content {
        gap: 1rem;
        max-width: 80%;
    }
    
    .hero-title {
        font-size: clamp(1.8rem, 5vw, 2.2rem);
        margin-bottom: 0;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: clamp(0.9rem, 2.5vw, 1.1rem);
        margin-bottom: 0;
        line-height: 1.4;
    }
    
    .hero-buttons {
        flex-direction: row;
        gap: 1rem;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        min-width: 140px;
        max-width: 180px;
    }
}