/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #ec4899;
    --accent-color: #06b6d4;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-dark: #111827;
    --border-color: #e5e7eb;
    --shadow-light: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-large: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-3d: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Spacing */
    --section-padding: 5rem 0;
    --container-padding: 0 2rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-3d: 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    perspective: 1000px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* 3D Background Elements */
.bg-3d-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.floating-cube {
    position: absolute;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0.1;
    animation: float3D 8s ease-in-out infinite;
    transform-style: preserve-3d;
}

.floating-cube::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 10px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    transform: rotateX(90deg) translateZ(20px);
    opacity: 0.8;
}

.floating-cube::after {
    content: '';
    position: absolute;
    top: 10px;
    left: -10px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    transform: rotateY(90deg) translateZ(20px);
    opacity: 0.6;
}

.cube-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.cube-2 {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.cube-3 {
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

.floating-sphere {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--accent-color), var(--primary-color));
    opacity: 0.08;
    animation: float3D 10s ease-in-out infinite reverse;
}

.sphere-1 {
    top: 40%;
    right: 20%;
    animation-delay: 1s;
}

.sphere-2 {
    bottom: 20%;
    right: 10%;
    animation-delay: 3s;
}

.floating-pyramid {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 50px solid var(--secondary-color);
    opacity: 0.1;
    animation: float3D 12s ease-in-out infinite;
    transform-origin: center bottom;
}

.pyramid-1 {
    top: 70%;
    left: 70%;
    animation-delay: 5s;
}

@keyframes float3D {
    0%, 100% {
        transform: translateY(0px) rotateX(0deg) rotateY(0deg);
    }
    25% {
        transform: translateY(-30px) rotateX(90deg) rotateY(90deg);
    }
    50% {
        transform: translateY(-60px) rotateX(180deg) rotateY(180deg);
    }
    75% {
        transform: translateY(-30px) rotateX(270deg) rotateY(270deg);
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition-medium);
    transform-style: preserve-3d;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    transform: perspective(500px) rotateY(0deg);
    transition: var(--transition-3d);
}

.nav-logo:hover {
    transform: perspective(500px) rotateY(15deg);
}

.logo-dot {
    color: var(--primary-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
    transform: perspective(500px) rotateX(0deg);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    transform: perspective(500px) rotateX(10deg);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: var(--transition-fast);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
    width: 100%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.greeting {
    display: block;
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 0.5rem;
    animation: slideInLeft 1s ease-out;
}

.name {
    display: block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideInUp 1s ease-out 0.3s both;
    transform: perspective(500px) rotateX(0deg);
    transition: var(--transition-3d);
}

.name:hover {
    transform: perspective(500px) rotateX(10deg) scale(1.05);
}

.title {
    display: block;
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 0.5rem;
    animation: slideInRight 1s ease-out 0.6s both;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
    animation: fadeInUp 1s ease-out 0.9s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 1.2s both;
}

.btn {
    padding: 0.75rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-3d);
    border: 2px solid transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transform: perspective(500px) rotateX(0deg);
    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: var(--transition-medium);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: perspective(500px) rotateX(-10deg) translateY(-5px);
    box-shadow: var(--shadow-3d);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: perspective(500px) rotateX(-10deg) translateY(-5px);
    box-shadow: var(--shadow-medium);
}

/* Profile Image */
.profile-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.profile-image-wrapper {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    transform: perspective(800px) rotateY(0deg);
    transition: var(--transition-3d);
    animation: profileFloat 6s ease-in-out infinite;
}

.profile-image-wrapper:hover {
    transform: perspective(800px) rotateY(15deg) scale(1.05);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid transparent;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-clip: padding-box;
}

.profile-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0.3;
    filter: blur(20px);
    z-index: -1;
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes profileFloat {
    0%, 100% {
        transform: perspective(800px) rotateY(0deg) translateY(0px);
    }
    50% {
        transform: perspective(800px) rotateY(5deg) translateY(-10px);
    }
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

/* Floating Elements */
.hero-visual {
    position: relative;
    height: 500px;
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.floating-element {
    position: absolute;
    font-size: 2rem;
    color: var(--primary-color);
    animation: techFloat 8s ease-in-out infinite;
    opacity: 0.8;
    transform: perspective(500px) rotateX(0deg);
    transition: var(--transition-3d);
}

.floating-element:hover {
    transform: perspective(500px) rotateX(20deg) scale(1.3);
    color: var(--secondary-color);
}

.tech-icon:nth-child(1) {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.tech-icon:nth-child(2) {
    top: 60%;
    right: 20%;
    animation-delay: 1s;
}

.tech-icon:nth-child(3) {
    bottom: 20%;
    left: 10%;
    animation-delay: 2s;
}

.tech-icon:nth-child(4) {
    top: 30%;
    right: 10%;
    animation-delay: 3s;
}

.tech-icon:nth-child(5) {
    bottom: 40%;
    left: 50%;
    animation-delay: 4s;
}

.tech-icon:nth-child(6) {
    top: 70%;
    right: 40%;
    animation-delay: 5s;
}

@keyframes techFloat {
    0%, 100% {
        transform: translateY(0px) rotateZ(0deg);
    }
    25% {
        transform: translateY(-20px) rotateZ(90deg);
    }
    50% {
        transform: translateY(-40px) rotateZ(180deg);
    }
    75% {
        transform: translateY(-20px) rotateZ(270deg);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: var(--primary-color);
    position: relative;
    animation: scrollBounce 2s infinite;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -3px;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    transform: rotate(45deg);
}

@keyframes scrollBounce {
    0%, 100% {
        opacity: 0.4;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(10px);
    }
}

/* Section Styles */
section {
    padding: var(--section-padding);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: perspective(500px) rotateX(0deg);
    transition: var(--transition-3d);
}

.section-title:hover {
    transform: perspective(500px) rotateX(10deg);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* About Section */
.about {
    background: var(--bg-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.about-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
    transform: perspective(500px) rotateY(0deg);
    transition: var(--transition-3d);
}

.stat:hover {
    transform: perspective(500px) rotateY(15deg) scale(1.1);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.about-interests h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.interests-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.interest-tag {
    background: var(--bg-primary);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    transform: perspective(300px) rotateX(0deg);
    transition: var(--transition-3d);
}

.interest-tag:hover {
    transform: perspective(300px) rotateX(10deg) translateY(-2px);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: transparent;
}

.about-education {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    transform: perspective(800px) rotateY(0deg);
    transition: var(--transition-3d);
}

.about-education:hover {
    transform: perspective(800px) rotateY(-5deg);
    box-shadow: var(--shadow-medium);
}

.about-education h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.education-item {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.education-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.education-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 0.5rem;
}

.education-header h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
}

.education-year {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
}

.education-school {
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.education-gpa {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.education-courses {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.course-tag {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    transform: perspective(300px) rotateX(0deg);
    transition: var(--transition-fast);
}

.course-tag:hover {
    transform: perspective(300px) rotateX(10deg) scale(1.05);
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    transition: var(--transition-3d);
    transform: perspective(800px) rotateY(0deg);
}

.skill-category:hover {
    transform: perspective(800px) rotateY(10deg) translateY(-10px);
    box-shadow: var(--shadow-3d);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.category-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
    transform: perspective(300px) rotateY(0deg);
    transition: var(--transition-3d);
}

.skill-category:hover .category-header i {
    transform: perspective(300px) rotateY(180deg);
}

.category-header h3 {
    color: var(--text-primary);
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tag {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-3d);
    transform: perspective(300px) rotateX(0deg);
}

.skill-tag:hover {
    transform: perspective(300px) rotateX(15deg) scale(1.1);
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
}

/* Experience Section */
.experience {
    background: var(--bg-secondary);
}

.experience-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 3rem;
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 15px;
    height: 15px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid var(--bg-primary);
    animation: markerPulse 2s infinite;
}

@keyframes markerPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(99, 102, 241, 0);
    }
}

.timeline-marker::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 15px;
    width: 2px;
    height: 100px;
    background: linear-gradient(to bottom, var(--primary-color), transparent);
    transform: translateX(-50%);
}

.timeline-content {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    transform: perspective(800px) rotateY(0deg);
    transition: var(--transition-3d);
}

.timeline-content:hover {
    transform: perspective(800px) rotateY(-5deg);
    box-shadow: var(--shadow-medium);
}

.experience-header {
    margin-bottom: 1rem;
}

.experience-header h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.experience-company {
    color: var(--primary-color);
    font-weight: 600;
    margin-right: 1rem;
}

.experience-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.experience-description ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.experience-description li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.experience-description li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.experience-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.exp-skill {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid var(--border-color);
    transform: perspective(300px) rotateX(0deg);
    transition: var(--transition-fast);
}

.exp-skill:hover {
    transform: perspective(300px) rotateX(10deg);
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--bg-primary);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition-3d);
    transform: perspective(1000px) rotateY(0deg);
    position: relative;
}

.project-card:hover {
    transform: perspective(1000px) rotateY(10deg) translateY(-15px);
    box-shadow: var(--shadow-3d);
}

.project-card.featured {
    border: 2px solid var(--primary-color);
}

.project-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.project-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    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: var(--transition-medium);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    width: 50px;
    height: 50px;
    background: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-3d);
    transform: perspective(300px) rotateY(0deg);
}

.project-link:hover {
    background: var(--primary-color);
    color: white;
    transform: perspective(300px) rotateY(15deg) scale(1.1);
}

.project-content {
    padding: 2rem;
}

.project-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    transform: perspective(300px) rotateX(0deg);
    transition: var(--transition-fast);
}

.project-badge:hover {
    transform: perspective(300px) rotateX(10deg) scale(1.05);
}

.project-title {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    transform: perspective(500px) rotateX(0deg);
    transition: var(--transition-3d);
}

.project-card:hover .project-title {
    transform: perspective(500px) rotateX(5deg);
}

.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: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid var(--border-color);
    transform: perspective(300px) rotateX(0deg);
    transition: var(--transition-fast);
}

.tech-tag:hover {
    transform: perspective(300px) rotateX(10deg);
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Achievements Section */
.achievements {
    background: var(--bg-secondary);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.achievement-category {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    transform: perspective(800px) rotateY(0deg);
    transition: var(--transition-3d);
}

.achievement-category:hover {
    transform: perspective(800px) rotateY(-5deg) translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.achievement-category h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.achievement-list {
    list-style: none;
}

.achievement-list li {
    position: relative;
    padding: 0.75rem 0;
    padding-left: 2rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    transform: perspective(300px) rotateX(0deg);
    transition: var(--transition-fast);
}

.achievement-list li:hover {
    transform: perspective(300px) rotateX(5deg);
    color: var(--text-primary);
}

.achievement-list li:last-child {
    border-bottom: none;
}

.achievement-list li::before {
    content: '🏆';
    position: absolute;
    left: 0;
    top: 0.75rem;
}

.achievement-category:nth-child(2) .achievement-list li::before {
    content: '📜';
}

.achievement-category:nth-child(3) .achievement-list li::before {
    content: '🎓';
}

/* Contact Section */
.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;
    transform: perspective(500px) rotateY(0deg);
    transition: var(--transition-3d);
}

.contact-item:hover {
    transform: perspective(500px) rotateY(5deg);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transform: perspective(300px) rotateY(0deg);
    transition: var(--transition-3d);
}

.contact-item:hover .contact-icon {
    transform: perspective(300px) rotateY(15deg) scale(1.1);
}

.contact-details h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.contact-details a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.contact-details a:hover {
    color: var(--primary-color);
}

.contact-form {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 15px;
    transform: perspective(800px) rotateY(0deg);
    transition: var(--transition-3d);
}

.contact-form:hover {
    transform: perspective(800px) rotateY(-3deg);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition-fast);
    background: var(--bg-primary);
    transform: perspective(500px) rotateX(0deg);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    transform: perspective(500px) rotateX(2deg);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-links {
    display: flex;
    gap: 1rem;
}

.footer-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition-3d);
    transform: perspective(300px) rotateY(0deg);
}

.footer-links a:hover {
    background: var(--primary-color);
    transform: perspective(300px) rotateY(15deg) translateY(-2px);
}

/* Animation Keyframes */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Loading animation */
.loading {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-primary);
        width: 100%;
        text-align: center;
        transition: var(--transition-medium);
        box-shadow: var(--shadow-medium);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-visual {
        height: 400px;
    }
    
    .profile-image-wrapper {
        width: 250px;
        height: 250px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-stats {
        justify-content: center;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .education-header {
        flex-direction: column;
        align-items: start;
    }
    
    .bg-3d-elements {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .profile-image-wrapper {
        width: 200px;
        height: 200px;
    }
    
    .floating-elements {
        display: none;
    }
}

/* Accessibility */
.keyboard-navigation *:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

body:not(.keyboard-navigation) *:focus {
    outline: none;
}

/* Print styles */
@media print {
    .navbar,
    .floating-elements,
    .bg-3d-elements,
    .contact-form {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .section-title {
        color: black;
    }
}
