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

:root {
    --primary-color: #8314a5;
    --primary-dark: #a032b6;
    --secondary-color: #c084fc;
    --text-dark: #f8fafc;
    --text-light: #94a3b8;
    --bg-light: #000000;
    --bg-white: #0a0a0a;
    --bg-card: rgba(24, 24, 27, 0.8);
    --border-color: rgba(168, 85, 247, 0.2);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.6);
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    background: var(--bg-light);
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(168, 85, 247, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(126, 34, 206, 0.08), transparent 25%);
    background-attachment: fixed;
    cursor: none; /* Hide default cursor */
}

/* Custom Cursor */
.cursor-dot {
    width: 5px;
    height: 5px;
    background-color: var(--primary-color);
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    box-shadow: 0 0 10px var(--primary-color);
}

.cursor-outline {
    width: 30px;
    height: 30px;
    border: 2px solid var(--primary-color);
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9998;
    pointer-events: none;
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

body:hover .cursor-dot,
body:hover .cursor-outline {
    opacity: 1;
}

/* Cursor Hover State */
body.hovering .cursor-outline {
    width: 50px;
    height: 50px;
    background-color: rgba(168, 85, 247, 0.1);
    border-color: transparent;
}

body.hovering .cursor-dot {
    width: 10px;
    height: 10px;
    background-color: var(--secondary-color);
}

@media (max-width: 768px) {
    .cursor-dot, .cursor-outline {
        display: none;
    }
    body {
        cursor: auto;
    }
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    z-index: 1001;
    transition: width 0.1s ease-out;
}

#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

/* Glitch Effect for Title */
.glitch {
    position: relative;
    color: var(--text-dark);
}

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

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim-1 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 #00fff9;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim-2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% { clip: rect(30px, 9999px, 36px, 0); }
    5% { clip: rect(78px, 9999px, 92px, 0); }
    10% { clip: rect(12px, 9999px, 6px, 0); }
    15% { clip: rect(54px, 9999px, 42px, 0); }
    20% { clip: rect(25px, 9999px, 88px, 0); }
    25% { clip: rect(67px, 9999px, 2px, 0); }
    30% { clip: rect(10px, 9999px, 50px, 0); }
    35% { clip: rect(96px, 9999px, 28px, 0); }
    40% { clip: rect(18px, 9999px, 76px, 0); }
    45% { clip: rect(44px, 9999px, 33px, 0); }
    50% { clip: rect(82px, 9999px, 14px, 0); }
    55% { clip: rect(59px, 9999px, 91px, 0); }
    60% { clip: rect(7px, 9999px, 63px, 0); }
    65% { clip: rect(39px, 9999px, 85px, 0); }
    70% { clip: rect(93px, 9999px, 22px, 0); }
    75% { clip: rect(26px, 9999px, 58px, 0); }
    80% { clip: rect(61px, 9999px, 19px, 0); }
    85% { clip: rect(8px, 9999px, 47px, 0); }
    90% { clip: rect(72px, 9999px, 35px, 0); }
    95% { clip: rect(48px, 9999px, 98px, 0); }
    100% { clip: rect(15px, 9999px, 65px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(65px, 9999px, 15px, 0); }
    100% { clip: rect(12px, 9999px, 86px, 0); }
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(167, 139, 250, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

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

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

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

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

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(30, 10, 60, 0.9) 50%, rgba(0, 0, 0, 0.9) 100%);
    color: white;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(167, 139, 250, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(124, 58, 237, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.hero-title2 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 1rem;
    min-height: 1.2em; /* Ensure height for typing effect */
    animation: fadeInUp 0.8s ease; 
}

/* Cursor for typing effect */
.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background-color: var(--primary-color);
    margin-left: 5px;
    animation: blink 1s infinite;
    vertical-align: middle;
}

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

.highlight {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(168, 85, 247, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-light);
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.btn {
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: width 0.3s ease;
    z-index: -1;
}

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

.btn-primary:hover {
    box-shadow: 0 10px 25px rgba(167, 139, 250, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 1s ease 0.8s both;
    perspective: 1000px; /* For 3D tilt */
}

.image-placeholder {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.2) 0%, rgba(124, 58, 237, 0.2) 100%);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(167, 139, 250, 0.3);
    border: 1px solid rgba(167, 139, 250, 0.3);
    transition: transform 0.1s ease-out; /* For smooth tilt */
    position: relative;
    overflow: hidden;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    border: 4px solid rgba(167, 139, 250, 0.3);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
}

.image-placeholder::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 50%,
        rgba(168, 85, 247, 0.2) 50%,
        rgba(168, 85, 247, 0.2) 51%,
        transparent 51%
    );
    background-size: 100% 10px;
    animation: scanlines 1s linear infinite;
    pointer-events: none;
    z-index: 3;
    opacity: 0.3;
    border-radius: 20px;
}

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

.image-placeholder:hover .profile-photo {
    animation: glitch-skew 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
}

@keyframes glitch-skew {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

/* removed collage styles */

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
    position: relative;
    width: 300px;
}

.scanner {
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
    animation: scan 2s linear infinite;
}

.loader-text {
    font-family: 'Courier New', monospace;
    color: var(--primary-color);
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
    position: relative;
}

.loader-text::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: var(--secondary-color);
    opacity: 0.5;
    clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
    animation: glitch-text 0.3s infinite;
}

.loader-bar {
    width: 100%;
    height: 2px;
    background: rgba(168, 85, 247, 0.2);
    position: relative;
    overflow: hidden;
}

.loader-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
    transition: width 2s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes scan {
    0% { top: -20px; opacity: 0; }
    50% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

@keyframes glitch-text {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
    animation: fadeScroll 2s infinite;
    z-index: 10;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: wheelDrop 1.5s infinite;
}

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

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

@keyframes wheelDrop {
    0% { top: 6px; opacity: 1; }
    100% { top: 20px; opacity: 0; }
}

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

@keyframes fadeScroll {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 0.3; }
}

/* Section Styles */
section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

/* Diagonal Dividers */
.about {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
    margin: 50px 0;
    padding: 120px 0;
}

.projects {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    clip-path: polygon(0 0, 100% 5%, 100% 100%, 0 95%);
    margin: 50px 0;
    padding: 120px 0;
}

/* Enhanced Section Title */
.section-title {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--text-dark);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 2px;
}

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

.about-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    text-align: center;
}

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

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-light);
    font-weight: 500;
}

/* Skills Section */
.skills {
    background: transparent;
    position: relative;
    z-index: 1;
}

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

.skill-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

/* Spotlight Effect for Skill Card */
.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        800px circle at var(--mouse-x) var(--mouse-y),
        rgba(168, 85, 247, 0.15),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: 0;
}

.skill-card:hover::before {
    opacity: 1;
}

.skill-card > * {
    position: relative;
    z-index: 1;
}

/* Tilt effect handled by JS, but hover state enhanced */
.skill-card:hover {
    box-shadow: 0 20px 40px rgba(167, 139, 250, 0.2);
    border-color: var(--primary-color);
}

.skill-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(168, 85, 247, 0.1);
    border-radius: 16px;
    color: var(--primary-color);
    transition: var(--transition-smooth);
    transform: translateZ(20px); /* 3D effect */
    animation: float 6s ease-in-out infinite;
}

.skill-icon svg {
    width: 32px;
    height: 32px;
}

.skill-card:hover .skill-icon {
    background: var(--primary-color);
    color: var(--bg-white);
    transform: translateZ(30px) scale(1.1);
    animation: none;
}

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

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(168, 85, 247, 0); }
    100% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0); }
}

.btn-primary.pulse {
    animation: pulse-glow 2s infinite;
}

.skill-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    transform: translateZ(10px);
}

.skill-description {
    color: var(--text-light);
    transform: translateZ(10px);
}

/* Projects Section */
.projects {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
}

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

.project-card {
    background: var(--bg-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.1s ease; /* Faster transition for tilt */
    border: 1px solid var(--border-color);
    transform-style: preserve-3d;
    position: relative;
}

/* Spotlight Effect for Project Card */
.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        800px circle at var(--mouse-x) var(--mouse-y),
        rgba(168, 85, 247, 0.15),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: 2; /* Above image but below content if needed, check z-index */
}

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

.project-card:hover {
    box-shadow: 0 20px 40px rgba(167, 139, 250, 0.2);
    border-color: var(--primary-color);
}

.project-image {
    height: 220px;
    background-color: var(--bg-light);
    background-size: cover;
    background-position: center;
    position: relative;
    transform: translateZ(10px);
}

.project-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}

.project-content {
    padding: 1.5rem;
    transform: translateZ(20px);
    background: var(--bg-light); /* Fix for 3D stacking context */
}

.project-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

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

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

.tag {
    padding: 4px 12px;
    background: rgba(168, 85, 247, 0.1);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 500;
    border: 1px solid rgba(168, 85, 247, 0.2);
    transition: 0.3s;
    text-decoration: none;
    display: inline-block;
}

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

.project-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: var(--secondary-color);
}

/* Contact Section */
.contact {
    background: transparent;
    position: relative;
    z-index: 1;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 8px;
}

.contact-item h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.contact-item p {
    color: var(--text-light);
}

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

.social-link {
    padding: 8px 16px;
    background: var(--bg-white);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
}

.social-link:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-color: var(--primary-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-input {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    color: var(--text-dark);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1), 0 0 20px rgba(168, 85, 247, 0.1);
    background: rgba(30, 41, 59, 0.8);
}

.form-input::placeholder {
    color: var(--text-light);
}

/* Footer */
.footer {
    background: #0a0a0a;
    color: var(--text-light);
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Animation System */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(10px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform, filter;
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    filter: blur(10px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    filter: blur(10px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.reveal-zoom {
    opacity: 0;
    transform: scale(0.9);
    filter: blur(10px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-zoom.active {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--bg-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu.active {
        left: 0;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

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

    .about-stats {
        grid-template-columns: 1fr;
    }

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

    .section-title {
        font-size: 2rem;
    }
    
    /* Disable complex 3D tilts on mobile for performance */
    .skill-card, .project-card, .image-placeholder {
        transform: none !important;
    }

    /* Change horizontal reveals to vertical on mobile to prevent overflow */
    .reveal-left, .reveal-right {
        transform: translateY(30px);
    }
    
    .reveal-left.active, .reveal-right.active {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

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