/* ===== CSS VARIABLES ===== */
:root {
    /* Primary Colors */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #7c3aed;
    --accent: #8b5cf6;
    
    /* Neutral Colors */
    --dark: #0f172a;
    --dark-light: #1e293b;
    --light: #f8fafc;
    --gray: #94a3b8;
    
    /* Semantic Colors */
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    
    /* Theme Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --border-color: #e2e8f0;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme */
[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --border-color: #334155;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s, color 0.3s;
}

/* ===== CUSTOM CURSOR ===== */
.cursor-follower {
    position: fixed;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.1s;
    transform: translate(-50%, -50%);
    opacity: 0;
}

@media (max-width: 768px) {
    .cursor-follower {
        display: none;
    }
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.highlight {
    color: var(--primary);
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s;
}

.highlight:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

[data-theme="dark"] .navbar {
    background: rgba(15, 23, 42, 0.8);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-dot {
    color: var(--primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
}

.theme-toggle:hover {
    background: var(--bg-secondary);
    transform: rotate(15deg);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* ===== SECTIONS ===== */
.section {
    padding: 100px 0;
    position: relative;
}

.section:first-of-type {
    padding-top: 180px;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    display: inline-block;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 1rem;
    position: relative;
}

.section-subtitle::before,
.section-subtitle::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 2px;
    background: var(--primary);
}

.section-subtitle::before {
    left: -30px;
}

.section-subtitle::after {
    right: -30px;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ===== HOME SECTION ===== */
.home .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    min-height: 80vh;
}

.home-content {
    padding-top: 2rem;
}

.home-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.badge-line {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.badge-text {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--primary);
}

.home-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.home-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
}

.home-stats {
    display: flex;
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.home-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.home-social {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-link:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

/* ===== STICKY CODE BOX ===== */
.home-visual {
    position: relative;
    height: 100%;
    min-height: 600px;
}

.visual-container.sticky-code {
    position: sticky;
    top: 120px;
    width: 100%;
}

.code-window {
    background: #0a0f1f;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 20;
    border: 1px solid rgba(37, 99, 235, 0.2);
    backdrop-filter: blur(10px);
    transition: var(--transition-slow);
}

.code-window:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        0 30px 60px -12px var(--primary),
        0 0 0 2px rgba(37, 99, 235, 0.3);
    border-color: var(--primary);
}

.window-header {
    background: #1a1f2e;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transition: var(--transition);
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.window-title {
    margin-left: auto;
    color: #8b9bb5;
    font-size: 0.85rem;
    font-family: 'Fira Code', monospace;
    opacity: 0.7;
}

.window-content {
    padding: 2rem;
    color: #fff;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    background: #0a0f1f;
    min-height: 350px;
}

.window-content pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.code-var { color: #ff79c6; }
.code-func { color: #50fa7b; }
.code-string { color: #f1fa8c; }
.code-keyword { color: #ff79c6; font-weight: 600; }
.code-comment { color: #6272a4; font-style: italic; }

.window-footer {
    background: #1a1f2e;
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cursor-blink {
    width: 8px;
    height: 16px;
    background: #50fa7b;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.status-text {
    color: #50fa7b;
    font-size: 0.85rem;
    font-family: 'Fira Code', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.code-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    pointer-events: none;
    overflow: hidden;
}

.code-lines span {
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    animation: scanLine 3s linear infinite;
    opacity: 0.1;
}

.code-lines span:nth-child(1) { top: 20%; animation-delay: 0s; }
.code-lines span:nth-child(2) { top: 40%; animation-delay: 0.5s; }
.code-lines span:nth-child(3) { top: 60%; animation-delay: 1s; }
.code-lines span:nth-child(4) { top: 80%; animation-delay: 1.5s; }
.code-lines span:nth-child(5) { top: 95%; animation-delay: 2s; }

@keyframes scanLine {
    0% { left: -100%; opacity: 0; }
    50% { left: 100%; opacity: 0.3; }
    100% { left: 200%; opacity: 0; }
}

.floating-shape {
    position: absolute;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    filter: blur(50px);
    opacity: 0.15;
    z-index: 1;
    animation: floatShape 10s ease-in-out infinite;
}

.shape-1 {
    top: -50px;
    right: -50px;
    animation-delay: 0s;
}

.shape-2 {
    bottom: -50px;
    left: -50px;
    animation-delay: -3s;
}

@keyframes floatShape {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -20px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ===== ABOUT SECTION ===== */
.about-container {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
    align-items: start;
}

.about-photo {
    position: sticky;
    top: 150px;
}

.photo-frame {
    position: relative;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

.photo-main {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    aspect-ratio: 1/1.1;
    box-shadow: var(--shadow-xl);
    z-index: 5;
    border: 4px solid var(--bg-primary);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.photo-main:hover .profile-image {
    transform: scale(1.05);
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.photo-main:hover .photo-overlay {
    transform: translateY(0);
}

.overlay-content {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.overlay-text {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.overlay-title {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

.frame-decoration {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    z-index: 1;
}

.decoration-1,
.decoration-2,
.decoration-3 {
    position: absolute;
    border: 2px solid var(--primary);
    border-radius: 30px;
    opacity: 0.2;
    transition: all 0.4s;
}

.decoration-1 {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    animation: borderPulse 3s ease-in-out infinite;
}

.decoration-2 {
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border-color: var(--secondary);
    animation: borderPulse 3s ease-in-out infinite 0.5s;
}

.decoration-3 {
    top: 30px;
    left: 30px;
    right: 30px;
    bottom: 30px;
    border-color: var(--accent);
    animation: borderPulse 3s ease-in-out infinite 1s;
}

@keyframes borderPulse {
    0%, 100% { transform: scale(1); opacity: 0.2; }
    50% { transform: scale(1.02); opacity: 0.4; }
}

.floating-badge {
    position: absolute;
    background: var(--bg-primary);
    padding: 0.8rem 1.2rem;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 10;
    font-weight: 600;
    border: 1px solid var(--border-color);
    animation: floatBadge 4s ease-in-out infinite;
}

.floating-badge i {
    color: var(--primary);
    font-size: 1.2rem;
}

.badge-1 { top: 10%; right: -10%; animation-delay: 0s; }
.badge-2 { bottom: 20%; left: -10%; animation-delay: 1s; }
.badge-3 { bottom: 5%; right: 5%; animation-delay: 2s; }

@keyframes floatBadge {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(5px, -10px) rotate(2deg); }
    66% { transform: translate(-5px, 5px) rotate(-2deg); }
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.bio-title {
    font-size: 1.8rem;
    line-height: 1.4;
    margin-bottom: 1.5rem;
}

.bio-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.info-card {
    background: var(--bg-secondary);
    padding: 1.2rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.info-icon {
    width: 45px;
    height: 45px;
    background: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    transition: var(--transition);
}

.info-card:hover .info-icon {
    background: var(--primary);
    color: white;
}

.info-detail {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-weight: 600;
    color: var(--text-primary);
}

.interests-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.interests-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.interest-item {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.interest-item:hover {
    transform: translateY(-5px);
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.interest-item:hover i {
    color: white;
}

.interest-item i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: block;
    transition: var(--transition);
}

.interest-item span {
    font-size: 0.9rem;
    font-weight: 500;
}

.about-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.signature {
    display: flex;
    flex-direction: column;
}

.signature-img {
    height: 40px;
    width: auto;
    margin-bottom: 0.5rem;
}

.signature-text {
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 700;
}

.quote {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 300px;
}

.quote i {
    font-size: 2rem;
    color: var(--primary);
    opacity: 0.3;
}

.quote p {
    font-style: italic;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ===== SKILLS SECTION ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
}

.skill-category h3 {
    margin-bottom: 2rem;
    color: var(--primary);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-progress span {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 4px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.skills-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.cloud-item {
    padding: 0.8rem 1.5rem;
    background: var(--bg-secondary);
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
    animation: cloudFloat 3s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.1s);
}

@keyframes cloudFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.cloud-item:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

/* ===== PROJECTS SECTION ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.project-card {
    background: var(--bg-secondary);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.project-card:hover .card-image img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(37, 99, 235, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .card-overlay {
    opacity: 1;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
    transition-delay: calc(var(--i) * 0.1s);
}

.project-card:hover .project-link {
    transform: translateY(0);
    opacity: 1;
}

.project-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-5px) !important;
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.card-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.card-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.card-tags span {
    padding: 0.3rem 0.8rem;
    background: var(--bg-primary);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ===== CONTACT SECTION ===== */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-info > p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-item i {
    width: 50px;
    height: 50px;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    transition: var(--transition);
}

.info-item:hover i {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.info-item div {
    flex: 1;
}

.info-item span {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.2rem;
}

.info-item a,
.info-item p {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}

.info-item a:hover {
    color: var(--primary);
}

.availability {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 50px;
    border: 1px solid var(--border-color);
}

.availability-dot {
    width: 12px;
    height: 12px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.contact-form {
    background: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: 20px;
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    color: var(--text-primary);
    transition: var(--transition);
    outline: none;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: var(--text-secondary);
    transition: var(--transition);
    pointer-events: none;
    background: var(--bg-primary);
    padding: 0 0.25rem;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
}

.form-group input:focus ~ label,
.form-group textarea:focus ~ label,
.form-group input:valid ~ label,
.form-group textarea:valid ~ label {
    top: -0.5rem;
    left: 0.8rem;
    font-size: 0.8rem;
    color: var(--primary);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-secondary);
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

/* ===== ANIMATIONS ===== */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s, transform 0.8s;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .home-title {
        font-size: 3.5rem;
    }
    
    .about-container,
    .skills-grid,
    .projects-grid {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--bg-primary);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transform: translateX(100%);
        transition: var(--transition);
        z-index: 1000;
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .home .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .home-badge {
        justify-content: center;
    }
    
    .home-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .home-stats,
    .home-cta,
    .home-social {
        justify-content: center;
    }
    
    .home-visual {
        min-height: auto;
        order: -1;
        margin-bottom: 2rem;
    }
    
    .visual-container.sticky-code {
        position: relative;
        top: 0;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .about-container,
    .skills-grid,
    .projects-grid,
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .about-photo {
        position: relative;
        top: 0;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .home-title {
        font-size: 2.5rem;
    }
    
    .home-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .home-cta {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .interests-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .about-footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .quote {
        max-width: 100%;
    }
    
    .floating-badge {
        display: none;
    }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar,
    .home-cta,
    .home-social,
    .contact-form,
    .footer {
        display: none;
    }
    
    .section {
        page-break-inside: avoid;
    }
}