/* ===================================
   GLOBAL STYLES & RESET
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --primary-color: #00d4ff;
    --secondary-color: #ff00ff;
    --accent-color: #ffcc00;
    --bg-dark: #0a0e27;
    --bg-darker: #050814;
    --text-light: #ffffff;
    --text-gray: #a8b2d1;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #ff00ff 100%);
    --gradient-secondary: linear-gradient(135deg, #ff00ff 0%, #ffcc00 100%);
    --gradient-accent: linear-gradient(135deg, #00d4ff 0%, #00ff88 100%);
    
    /* Spacing */
    --section-padding: 100px 0;
    --container-width: 1200px;
    
    /* Effects */
    --blur-sm: 10px;
    --blur-md: 20px;
    --blur-lg: 30px;
    --shadow-neon: 0 0 20px rgba(0, 212, 255, 0.5);
    --shadow-glow: 0 0 40px rgba(255, 0, 255, 0.3);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-darker);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255, 0, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ===================================
   FONT AWESOME ICON FIX
   =================================== */
/* Ensure Font Awesome icons display correctly in all situations */
.fas, .far, .fab, .fa,
i.fas, i.far, i.fab, i.fa {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    display: inline-block !important;
    -webkit-font-smoothing: antialiased !important;
}

/* Solid icons */
.fas, i.fas {
    font-weight: 900 !important;
}

/* Regular icons */
.far, i.far {
    font-weight: 400 !important;
}

/* Brand icons */
.fab, i.fab {
    font-weight: 400 !important;
}


.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   CANVAS BACKGROUNDS
   =================================== */
#particleCanvas,
#matrixCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

#matrixCanvas {
    opacity: 0.3;
    z-index: 0;
}

/* ===================================
   GLASSMORPHISM EFFECTS
   =================================== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-md));
    -webkit-backdrop-filter: blur(var(--blur-md));
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.glass-card:hover::before {
    left: 100%;
}

.glass-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.3);
    border-color: var(--primary-color);
}

/* ===================================
   NAVIGATION
   =================================== */
.floating-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1100px;
    z-index: 1000;
    animation: slideDown 0.8s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(var(--blur-lg));
    padding: 15px 30px;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

.highlight {
    color: var(--secondary-color);
    -webkit-text-fill-color: var(--secondary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
    font-size: 15px;
}

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

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

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

/* Language Toggle */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.lang-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
}

.lang-option {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-gray);
    transition: all 0.3s;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
}

.lang-option:hover {
    color: var(--primary-color);
}

.lang-option.active {
    color: var(--primary-color);
    background: rgba(139, 92, 246, 0.2);
}

.lang-separator {
    color: var(--text-gray);
    opacity: 0.5;
}

/* RTL Support for Farsi */
body.rtl {
    direction: rtl;
    text-align: right;
}

/* Navigation RTL */
body.rtl .floating-nav .nav-container {
    flex-direction: row-reverse;
}

body.rtl .nav-links {
    flex-direction: row-reverse;
}

/* Hero Section RTL - Complete Mirror */
body.rtl .hero-section {
    flex-direction: row-reverse;
}

body.rtl .hero-content {
    text-align: right;
}

body.rtl .hero-buttons {
    justify-content: flex-end;
}

body.rtl .btn i {
    order: -1;
    margin-left: 0;
    margin-right: 8px;
}

body.rtl .scroll-indicator {
    right: auto;
    left: 50px;
}

/* Floating Cube Mirror */
body.rtl .floating-cube-container {
    transform: scaleX(-1);
}

/* About Section RTL */
body.rtl .about-grid {
    direction: rtl;
}

body.rtl .about-card {
    text-align: right;
}

body.rtl .card-icon {
    margin-right: 0;
    margin-left: auto;
}

/* Skills Section RTL */
body.rtl .skills-grid {
    direction: rtl;
}

body.rtl .skill-category {
    text-align: right;
}

body.rtl .skill-info {
    text-align: right;
}

body.rtl .skill-item h3 i {
    margin-right: 0;
    margin-left: 10px;
}

/* Projects Section RTL */
body.rtl .projects-grid {
    direction: rtl;
}

body.rtl .project-card {
    text-align: right;
}

body.rtl .project-tags {
    justify-content: flex-end;
}

body.rtl .project-links {
    justify-content: flex-end;
}

body.rtl .project-links i {
    margin-left: 0;
    margin-right: 5px;
}

/* Experience Section RTL */
body.rtl .timeline {
    padding-left: 0;
    padding-right: 0;
}

body.rtl .timeline::before {
    left: 50%;
    right: auto;
}

body.rtl .timeline-marker {
    left: 50%;
    right: auto;
}

body.rtl .timeline-item:nth-child(odd) .timeline-content {
    margin-left: 50%;
    margin-right: auto;
    padding-right: 0;
    padding-left: 50px;
}

body.rtl .timeline-item:nth-child(even) .timeline-content {
    margin-right: 50%;
    margin-left: auto;
    padding-left: 0;
    padding-right: 50px;
}

body.rtl .experience-card {
    text-align: right;
}

body.rtl .experience-header {
    text-align: right;
}

/* Contact Section RTL */
body.rtl .contact-content {
    flex-direction: row-reverse;
}

body.rtl .contact-info {
    text-align: right;
}

body.rtl .contact-method {
    flex-direction: row-reverse;
    text-align: right;
    align-items: center;
    gap: 20px;
}

body.rtl .contact-method i {
    margin-right: 0;
    margin-left: 0;
}

body.rtl .contact-method > div {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

body.rtl .social-links {
    justify-content: flex-start;
}

body.rtl .form-group {
    text-align: right;
}

body.rtl .form-group input,
body.rtl .form-group textarea {
    text-align: right;
}

/* Section Titles RTL */
body.rtl .section-title {
    text-align: right;
}

body.rtl .title-number {
    margin-right: 0;
    margin-left: 15px;
}

body.rtl .title-line {
    margin-left: 0;
    margin-right: 20px;
}

/* Stats Container RTL */
body.rtl .stats-container {
    direction: rtl;
}

/* Footer RTL */
body.rtl footer {
    text-align: center;
}

/* Icons - Ensure Font Awesome loads properly */
body.rtl i.fas,
body.rtl i.fab,
body.rtl i.far,
body.rtl i.fa {
    direction: ltr !important;
    display: inline-block !important;
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
}

/* Force Font Awesome for all icons in RTL */
body.rtl .fas,
body.rtl .fab,
body.rtl .far,
body.rtl .fa {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
}

/* Specific fix for card icons */
body.rtl .card-icon i {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

/* Fix for all icon containers */
body.rtl [class*="icon"] i,
body.rtl [class*="Icon"] i {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
}

/* Buttons RTL */
body.rtl .hero-buttons {
    flex-direction: row-reverse;
}

body.rtl .btn {
    flex-direction: row-reverse;
}

body.rtl .btn i {
    margin-right: 0;
    margin-left: 8px;
}

/* Persian Font Support */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700&display=swap');

body.rtl,
body.rtl *:not(i):not(.fas):not(.far):not(.fab):not(.fa) {
    font-family: 'Vazirmatn', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

/* Explicitly keep Font Awesome for icons */
body.rtl i,
body.rtl .fas,
body.rtl .far,
body.rtl .fab,
body.rtl .fa {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
}


/* ===================================
   HERO SECTION
   =================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 50px 50px;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.glitch-container {
    margin-bottom: 20px;
}

.glitch {
    font-size: 72px;
    font-weight: 900;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    color: var(--text-light);
    animation: glitch 1s infinite;
}

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

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--primary-color);
    animation: glitch-1 2s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: 2px 0 var(--secondary-color);
    animation: glitch-2 3s infinite linear alternate-reverse;
}

@keyframes glitch-1 {
    0% { clip-path: inset(40% 0 61% 0); }
    20% { clip-path: inset(92% 0 1% 0); }
    40% { clip-path: inset(43% 0 1% 0); }
    60% { clip-path: inset(25% 0 58% 0); }
    80% { clip-path: inset(54% 0 7% 0); }
    100% { clip-path: inset(58% 0 43% 0); }
}

@keyframes glitch-2 {
    0% { clip-path: inset(92% 0 1% 0); }
    20% { clip-path: inset(40% 0 61% 0); }
    40% { clip-path: inset(43% 0 1% 0); }
    60% { clip-path: inset(54% 0 7% 0); }
    80% { clip-path: inset(25% 0 58% 0); }
    100% { clip-path: inset(58% 0 43% 0); }
}

.typing-container {
    margin: 20px 0 30px 0;
}

.typing-text {
    font-size: 36px;
    font-weight: 300;
    color: var(--text-gray);
    margin-bottom: 10px;
}

.typed-words {
    color: var(--primary-color);
    font-weight: 600;
    border-right: 3px solid var(--primary-color);
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 50% { border-color: transparent; }
    51%, 100% { border-color: var(--primary-color); }
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-gray);
    margin: 20px 0 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 2px solid;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-light);
    border-color: transparent;
    box-shadow: var(--shadow-neon);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.8);
}

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

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    transform: translateY(-3px) scale(1.05);
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-gray);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

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

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

@keyframes scroll {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 24px; }
}

/* ===================================
   3D CUBE ANIMATION
   =================================== */
.hero-visual {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-cube-container {
    perspective: 1000px;
}

.cube {
    width: 200px;
    height: 200px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 20s infinite linear;
}

@keyframes rotateCube {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}

.cube-face {
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(0, 212, 255, 0.1);
    border: 2px solid var(--primary-color);
    backdrop-filter: blur(10px);
    box-shadow: inset 0 0 30px rgba(0, 212, 255, 0.3);
}

.cube-face.front { transform: rotateY(0deg) translateZ(100px); }
.cube-face.back { transform: rotateY(180deg) translateZ(100px); }
.cube-face.right { transform: rotateY(90deg) translateZ(100px); }
.cube-face.left { transform: rotateY(-90deg) translateZ(100px); }
.cube-face.top { transform: rotateX(90deg) translateZ(100px); }
.cube-face.bottom { transform: rotateX(-90deg) translateZ(100px); }

/* ===================================
   SECTION STYLES
   =================================== */
section {
    padding: var(--section-padding);
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 48px;
    margin-bottom: 60px;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.title-number {
    font-size: 24px;
    color: var(--primary-color);
    font-weight: 700;
}

.title-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
}

/* ===================================
   ABOUT SECTION
   =================================== */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.about-card {
    text-align: center;
}

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    background: var(--gradient-primary);
    border-radius: 20px;
    box-shadow: var(--shadow-neon);
}

.about-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-light);
}

.about-card p {
    color: var(--text-gray);
    line-height: 1.8;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.stat-item {
    text-align: center;
    padding: 30px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    transition: all 0.3s;
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-neon);
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-plus {
    font-size: 36px;
    color: var(--primary-color);
}

.stat-item p {
    color: var(--text-gray);
    margin-top: 10px;
    font-size: 16px;
}

/* ===================================
   SKILLS SECTION
   =================================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.skill-category h3 {
    font-size: 22px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
}

.skill-item {
    margin-bottom: 25px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: var(--text-light);
    font-weight: 500;
}

.skill-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 10px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    position: relative;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    filter: blur(10px);
}

.tech-stack {
    text-align: center;
    margin-top: 60px;
}

.tech-stack h3 {
    font-size: 28px;
    margin-bottom: 40px;
    color: var(--text-light);
}

.tech-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.tech-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: 15px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.tech-icon:hover {
    transform: translateY(-10px) rotate(10deg) scale(1.1);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-neon);
    background: var(--gradient-primary);
}

/* ===================================
   PROJECTS SECTION
   =================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.project-card {
    overflow: hidden;
    cursor: pointer;
}

.project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 20px;
}

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    font-size: 80px;
    color: var(--text-light);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

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

.project-links {
    display: flex;
    gap: 20px;
}

.project-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: var(--bg-dark);
    border-radius: 50%;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s;
}

.project-link:hover {
    transform: scale(1.2) rotate(360deg);
    background: var(--secondary-color);
}

.project-content h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-light);
}

.project-content p {
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.8;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    padding: 5px 15px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    font-size: 14px;
    color: var(--primary-color);
    transition: all 0.3s;
}

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

/* ===================================
   EXPERIENCE/TIMELINE SECTION
   =================================== */
.timeline {
    position: relative;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 60px;
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
    margin-right: 50%;
    padding-right: 50px;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: auto;
    margin-left: 50%;
    padding-left: 50px;
}

.timeline-marker {
    width: 20px;
    height: 20px;
    background: var(--gradient-primary);
    border: 4px solid var(--bg-dark);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    z-index: 10;
    box-shadow: var(--shadow-neon);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.5); }
    50% { box-shadow: 0 0 40px rgba(0, 212, 255, 1); }
}

.timeline-content {
    width: 45%;
}

.timeline-date {
    display: inline-block;
    padding: 5px 15px;
    background: var(--gradient-primary);
    color: var(--text-light);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.timeline-content h3 {
    font-size: 24px;
    margin-bottom: 5px;
    color: var(--text-light);
}

.timeline-content h4 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.timeline-content p {
    color: var(--text-gray);
    margin-bottom: 15px;
    line-height: 1.8;
}

.achievement-list {
    list-style: none;
    padding-left: 0;
}

.achievement-list li {
    color: var(--text-gray);
    padding-left: 25px;
    margin-bottom: 10px;
    position: relative;
}

.achievement-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 20px;
}

/* ===================================
   CONTACT SECTION
   =================================== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h3 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--text-light);
}

.contact-info p {
    color: var(--text-gray);
    margin-bottom: 40px;
    line-height: 1.8;
}

.contact-methods {
    margin-bottom: 40px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-method i {
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--gradient-primary);
    border-radius: 50%;
    font-size: 20px;
    flex-shrink: 0;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-style: normal !important;
    text-align: center !important;
    line-height: 50px !important;
    vertical-align: middle;
    padding: 0 !important;
    margin: 0;
}

.contact-method i::before {
    display: block;
    text-align: center;
    width: 100%;
}

.contact-method h4 {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.contact-method a,
.contact-method p {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s;
}

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

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s;
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    transform: translateY(-5px) rotate(360deg);
}

/* ===================================
   CONTACT FORM
   =================================== */
.contact-form {
    padding: 40px;
}

.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-light);
    font-size: 16px;
    transition: all 0.3s;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.form-group label {
    position: absolute;
    left: 15px;
    top: 15px;
    color: var(--text-gray);
    pointer-events: none;
    transition: all 0.3s;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:valid + label,
.form-group textarea:valid + label {
    top: -10px;
    left: 10px;
    font-size: 12px;
    color: var(--primary-color);
    background: var(--bg-dark);
    padding: 0 5px;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid var(--glass-border);
    background: rgba(10, 14, 39, 0.5);
}

.footer p {
    color: var(--text-gray);
    font-size: 14px;
}

.footer i {
    color: var(--secondary-color);
    margin: 0 5px;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    10%, 30% { transform: scale(0.9); }
    20%, 40% { transform: scale(1.1); }
}

/* ===================================
   AOS ANIMATIONS
   =================================== */
[data-aos] {
    opacity: 0;
    transition-property: transform, opacity;
    transition-duration: 0.8s;
}

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

[data-aos="fade-up"] {
    transform: translateY(50px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-right"] {
    transform: translateX(-50px);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-left"] {
    transform: translateX(50px);
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}

[data-aos="zoom-in"] {
    transform: scale(0.8);
}

[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
}

[data-aos="flip-left"] {
    transform: perspective(2500px) rotateY(-100deg);
}

[data-aos="flip-left"].aos-animate {
    transform: perspective(2500px) rotateY(0);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 1024px) {
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px;
        padding-left: 30px;
        margin-right: 0;
        padding-right: 0;
    }
    
    .timeline-marker {
        left: 30px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-section {
        flex-direction: column;
        padding: 100px 20px 50px;
    }
    
    .glitch {
        font-size: 48px;
    }
    
    .typing-text {
        font-size: 24px;
    }
    
    .hero-visual {
        margin-top: 50px;
    }
    
    .cube {
        width: 150px;
        height: 150px;
    }
    
    .cube-face {
        width: 150px;
        height: 150px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .skills-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
}
