/* ===========================
   Variables CSS - Thème Spatial
   =========================== */
:root {
    --primary-color: #3498db;
    --primary-dark: #102e50;
    --primary-light: #5dade2;
    --secondary-color: #1a5490;
    --accent-color: #3498db;
    --text-primary: #ffffff;
    --text-secondary: #d1d5db;
    --text-light: #9ca3af;
    --bg-primary: #0a0a0a;
    --bg-secondary: rgba(64, 64, 64, 0.8);
    --bg-dark: #000000;
    --border-color: #102e50;
    --shadow-sm: 0 1px 2px 0 rgba(52, 152, 219, 0.2);
    --shadow-md: 0 4px 6px -1px rgba(52, 152, 219, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(52, 152, 219, 0.4);
    --shadow-xl: 0 20px 25px -5px rgba(52, 152, 219, 0.5);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===========================
   Reset & Base Styles
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-primary);
    background-color: #000000;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                      radial-gradient(circle at 20% 50%, rgba(52, 152, 219, 0.1) 0%, transparent 50%),
                      radial-gradient(circle at 80% 80%, rgba(16, 46, 80, 0.2) 0%, transparent 50%);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===========================
   Navigation
   =========================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 3px solid var(--border-color);
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.3);
    z-index: 1000;
    transition: all var(--transition-normal);
    overflow: hidden;
}

.navbar.scrolled {
    box-shadow: 0 0 30px rgba(52, 152, 219, 0.5);
    border-bottom: 3px solid var(--primary-color);
}

/* Navbar Matrix Animation */
.navbar-matrix {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-around;
    opacity: 0.4;
    z-index: 0;
    pointer-events: none;
}

.navbar-matrix-column {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(52, 152, 219, 1),
                 0 0 20px rgba(52, 152, 219, 0.8),
                 0 0 30px rgba(52, 152, 219, 0.6);
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 0.1rem;
    animation: navbarMatrixFall 5s linear infinite;
    opacity: 0;
}

.navbar-matrix-column:nth-child(1) {
    animation-delay: 0s;
}

.navbar-matrix-column:nth-child(2) {
    animation-delay: 0.3s;
}

.navbar-matrix-column:nth-child(3) {
    animation-delay: 0.6s;
}

.navbar-matrix-column:nth-child(4) {
    animation-delay: 0.9s;
}

.navbar-matrix-column:nth-child(5) {
    animation-delay: 1.2s;
}

.navbar-matrix-column:nth-child(6) {
    animation-delay: 1.5s;
}

.navbar-matrix-column:nth-child(7) {
    animation-delay: 1.8s;
}

.navbar-matrix-column:nth-child(8) {
    animation-delay: 2.1s;
}

.navbar-matrix-column:nth-child(9) {
    animation-delay: 2.4s;
}

.navbar-matrix-column:nth-child(10) {
    animation-delay: 2.7s;
}

.navbar-matrix-column:nth-child(11) {
    animation-delay: 3s;
}

.navbar-matrix-column:nth-child(12) {
    animation-delay: 3.3s;
}

.navbar-matrix-column:nth-child(13) {
    animation-delay: 3.6s;
}

.navbar-matrix-column:nth-child(14) {
    animation-delay: 3.9s;
}

.navbar-matrix-column:nth-child(15) {
    animation-delay: 4.2s;
}

.navbar-matrix-column:nth-child(16) {
    animation-delay: 4.5s;
}

@keyframes navbarMatrixFall {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100%);
        opacity: 0;
    }
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(52, 152, 219, 0.8);
}

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

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color var(--transition-fast);
}

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

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    text-shadow: 0 0 8px rgba(52, 152, 219, 0.6);
}

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

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

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    transition: all var(--transition-normal);
    border-radius: 3px;
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 6rem 2rem 4rem;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.animated-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(52, 152, 219, 0.15) 0%, transparent 70%);
    opacity: 1;
}

.animated-bg::before,
.animated-bg::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(52, 152, 219, 0.2) 0%, transparent 70%);
    opacity: 1;
    animation: float 20s infinite ease-in-out;
}

.animated-bg::before {
    top: -250px;
    left: -250px;
    animation-delay: 0s;
}

.animated-bg::after {
    bottom: -250px;
    right: -250px;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(50px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-50px, 50px) scale(0.9);
    }
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    animation: fadeInUp 1s ease;
}

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

.greeting {
    display: block;
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
    animation: fadeIn 1s ease 0.2s backwards;
}

.name {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(52, 152, 219, 0.8),
                 0 0 40px rgba(52, 152, 219, 0.4);
    margin-bottom: 1rem;
    animation: fadeIn 1s ease 0.4s backwards;
}

.hero-subtitle {
    font-size: 2rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    animation: fadeIn 1s ease 0.6s backwards;
}

.typing-text {
    position: relative;
}

.typing-text::after {
    content: '|';
    animation: blink 1s infinite;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    animation: fadeIn 1s ease 0.8s backwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeIn 1s ease 1s backwards;
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary,
.btn-secondary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.4);
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(52, 152, 219, 0.8);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 1s ease 0.5s backwards;
}

.profile-card {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 40px rgba(52, 152, 219, 0.6),
                0 0 60px rgba(52, 152, 219, 0.3);
    animation: float 6s infinite ease-in-out;
    position: relative;
    border: 2px solid var(--primary-color);
}

.profile-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: radial-gradient(circle, var(--primary-color), transparent);
    border-radius: 20px;
    z-index: -1;
    opacity: 0.5;
    filter: blur(20px);
}

.profile-icon {
    font-size: 8rem;
    color: white;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.3);
}

.binary-icon {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle, rgba(16, 46, 80, 0.8), rgba(0, 0, 0, 0.95));
}

/* Matrix Rain Effect */
.matrix-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-around;
    opacity: 0.4;
    z-index: 1;
}

.matrix-column {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 8px rgba(52, 152, 219, 0.8),
                 0 0 15px rgba(52, 152, 219, 0.6);
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 0.2rem;
    animation: matrixFall 4s linear infinite;
    opacity: 0;
}

.matrix-column:nth-child(1) {
    animation-delay: 0s;
}

.matrix-column:nth-child(2) {
    animation-delay: 0.8s;
}

.matrix-column:nth-child(3) {
    animation-delay: 1.6s;
}

.matrix-column:nth-child(4) {
    animation-delay: 2.4s;
}

.matrix-column:nth-child(5) {
    animation-delay: 3.2s;
}

@keyframes matrixFall {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100%);
        opacity: 0;
    }
}

.binary-row {
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(52, 152, 219, 0.8),
                 0 0 20px rgba(52, 152, 219, 0.6),
                 0 0 30px rgba(52, 152, 219, 0.4);
    letter-spacing: 0.8rem;
    opacity: 0.25;
    animation: matrixGlow 3s infinite ease-in-out;
    z-index: 2;
    position: relative;
}

.binary-row:nth-child(2) {
    animation-delay: 0s;
}

.binary-row:nth-child(3) {
    animation-delay: 0.6s;
}

.binary-row:nth-child(4) {
    animation-delay: 1.2s;
}

.binary-row:nth-child(5) {
    animation-delay: 1.8s;
}

.binary-row:nth-child(6) {
    animation-delay: 2.4s;
}

@keyframes matrixGlow {
    0%, 100% {
        opacity: 0.2;
        text-shadow: 0 0 10px rgba(52, 152, 219, 0.8),
                     0 0 20px rgba(52, 152, 219, 0.6);
    }
    50% {
        opacity: 0.5;
        text-shadow: 0 0 15px rgba(52, 152, 219, 0.9),
                     0 0 30px rgba(52, 152, 219, 0.7),
                     0 0 45px rgba(52, 152, 219, 0.5);
    }
}

.computer-icon {
    position: absolute;
    font-size: 6rem;
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(52, 152, 219, 1),
                 0 0 40px rgba(52, 152, 219, 0.8),
                 0 0 60px rgba(52, 152, 219, 0.6),
                 0 0 80px rgba(52, 152, 219, 0.4);
    z-index: 10;
    animation: matrixPulse 2s infinite ease-in-out;
    filter: drop-shadow(0 0 10px rgba(52, 152, 219, 0.8));
}

.profile-picture {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    z-index: 10;
    animation: matrixPulse 2s infinite ease-in-out;
    border: 4px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(52, 152, 219, 1),
                0 0 40px rgba(52, 152, 219, 0.8),
                0 0 60px rgba(52, 152, 219, 0.6);
}

@keyframes matrixPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
        filter: drop-shadow(0 0 10px rgba(52, 152, 219, 0.8));
    }
    50% {
        transform: scale(1.08);
        opacity: 0.85;
        filter: drop-shadow(0 0 20px rgba(52, 152, 219, 1)) drop-shadow(0 0 30px rgba(52, 152, 219, 0.8));
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator a {
    color: var(--primary-color);
    font-size: 2rem;
    text-decoration: none;
}

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

/* ===========================
   Container & Sections
   =========================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.title-number {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* ===========================
   About Section
   =========================== */
.about {
    background: rgba(10, 10, 10, 0.8);
}

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

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 1.15rem;
    line-height: 1.8;
}

.about-intro {
    color: var(--text-primary);
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.2);
    transition: all var(--transition-normal);
}

.highlight-item:hover {
    transform: translateX(10px);
    box-shadow: 0 0 25px rgba(52, 152, 219, 0.5);
    border-color: var(--primary-color);
}

.highlight-item i {
    font-size: 2rem;
    color: var(--primary-color);
}

.highlight-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.highlight-item p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.about-skills-preview {
    display: flex;
    justify-content: center;
    align-items: center;
}

.skills-circle {
    position: relative;
    width: 350px;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    margin: -50px 0 0 -50px;
    --orbit-radius: 125px;
    animation: orbit 24s linear infinite;
}

.skill-item:nth-child(1) {
    animation-delay: -18s;
}

.skill-item:nth-child(2) {
    animation-delay: -12s;
}

.skill-item:nth-child(3) {
    animation-delay: -6s;
}

.skill-item:nth-child(4) {
    animation-delay: 0s;
}

@keyframes orbit {
    from {
        transform: rotate(0deg) translateX(var(--orbit-radius)) rotate(0deg);
    }
    to {
        transform: rotate(360deg) translateX(var(--orbit-radius)) rotate(-360deg);
    }
}

.skill-badge {
    width: 100%;
    height: 100%;
    background: var(--bg-secondary);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0 8px;
    box-sizing: border-box;
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.4);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    animation: badgeFloat 6s infinite ease-in-out;
}

.skill-item:nth-child(1) .skill-badge {
    animation-delay: 0s;
}

.skill-item:nth-child(2) .skill-badge {
    animation-delay: 1.5s;
}

.skill-item:nth-child(3) .skill-badge {
    animation-delay: 3s;
}

.skill-item:nth-child(4) .skill-badge {
    animation-delay: 4.5s;
}

.skill-item:hover .skill-badge {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(52, 152, 219, 0.8);
}

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

.skill-item i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    transition: opacity 1.5s ease;
}

.skill-item span {
    transition: opacity 1.5s ease;
    display: block;
    max-width: 78px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.skill-item .skill-content-fade {
    opacity: 0;
}

.skill-item:nth-child(odd) i {
    color: var(--primary-color);
}

.skill-item:nth-child(even) i {
    color: var(--primary-light);
}

.skill-item span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    text-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

/* ===========================
   Skills Section
   =========================== */
.skills {
    background: rgba(5, 5, 5, 0.9);
}

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

.skill-category {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 16px;
    border: 2px solid var(--border-color);
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.2);
    transition: all var(--transition-normal);
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(52, 152, 219, 0.5);
    border-color: var(--primary-color);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.category-header i {
    font-size: 2rem;
    color: var(--primary-color);
}

.category-header h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.skill-icons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.skill-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    transition: all var(--transition-normal);
}

.skill-icon-item:hover {
    transform: translateY(-5px);
}

.skill-icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(52, 152, 219, 0.1);
    border: 2px solid var(--primary-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.skill-icon-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-color), transparent);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.skill-icon-item:hover .skill-icon-wrapper {
    background: var(--primary-color);
    box-shadow: 0 0 25px rgba(52, 152, 219, 0.8);
    transform: rotate(5deg);
}

.skill-icon-item:hover .skill-icon-wrapper::before {
    opacity: 0.2;
}

.skill-icon-wrapper i {
    font-size: 2.5rem;
    color: var(--primary-color);
    transition: all var(--transition-normal);
    position: relative;
    z-index: 1;
}

.skill-icon-item:hover .skill-icon-wrapper i {
    color: white;
    transform: scale(1.1);
}

.skill-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    transition: color var(--transition-fast);
}

.skill-icon-item:hover .skill-name {
    color: var(--primary-color);
    text-shadow: 0 0 8px rgba(52, 152, 219, 0.5);
}

.soft-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.soft-skill-tag {
    padding: 0.5rem 1rem;
    background: rgba(52, 152, 219, 0.1);
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.soft-skill-tag:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.6);
}

/* ===========================
   Projects Section
   =========================== */
.projects {
    background: rgba(10, 10, 10, 0.8);
}

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

.project-card {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.3);
    transition: all var(--transition-normal);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 40px rgba(52, 152, 219, 0.6);
    border-color: var(--primary-color);
}

.project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(16, 46, 80, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

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

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

.project-link {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all var(--transition-fast);
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.6);
}

.project-link:hover {
    transform: scale(1.1);
    background: white;
    color: var(--primary-color);
    box-shadow: 0 0 25px rgba(52, 152, 219, 1);
}

.project-content {
    padding: 2rem;
}

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

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

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

.tech-tag {
    padding: 0.4rem 0.8rem;
    background: rgba(52, 152, 219, 0.15);
    border: 1px solid var(--primary-color);
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 500;
}

.project-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.project-features p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.project-features i {
    color: var(--accent-color);
}

/* ===========================
   Contact Section
   =========================== */
.contact {
    background: rgba(5, 5, 5, 0.9);
}

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

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.contact-info > p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

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

.contact-method {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.2);
    transition: all var(--transition-normal);
}

.contact-method:hover {
    transform: translateX(10px);
    box-shadow: 0 0 25px rgba(52, 152, 219, 0.5);
    border-color: var(--primary-color);
}

.method-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.5);
}

.method-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.method-info a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.method-info a:hover {
    color: white;
    text-shadow: 0 0 8px white
}

.contact-form-wrapper {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.2);
}

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

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

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    padding: 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: rgba(0, 0, 0, 0.5);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3),
                0 0 15px rgba(52, 152, 219, 0.4);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn-primary {
    margin-top: 1rem;
    justify-content: center;
}

/* ===========================
   Footer
   =========================== */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
}

/* Footer Matrix Animation */
.footer-matrix {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-around;
    opacity: 0.4;
    z-index: 0;
    pointer-events: none;
}

.footer-matrix-column {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(52, 152, 219, 1),
                 0 0 20px rgba(52, 152, 219, 0.8),
                 0 0 30px rgba(52, 152, 219, 0.6);
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 0.1rem;
    animation: footerMatrixFall 5s linear infinite;
    opacity: 0;
}

.footer-matrix-column:nth-child(1) {
    animation-delay: 0s;
}

.footer-matrix-column:nth-child(2) {
    animation-delay: 0.3s;
}

.footer-matrix-column:nth-child(3) {
    animation-delay: 0.6s;
}

.footer-matrix-column:nth-child(4) {
    animation-delay: 0.9s;
}

.footer-matrix-column:nth-child(5) {
    animation-delay: 1.2s;
}

.footer-matrix-column:nth-child(6) {
    animation-delay: 1.5s;
}

.footer-matrix-column:nth-child(7) {
    animation-delay: 1.8s;
}

.footer-matrix-column:nth-child(8) {
    animation-delay: 2.1s;
}

.footer-matrix-column:nth-child(9) {
    animation-delay: 2.4s;
}

.footer-matrix-column:nth-child(10) {
    animation-delay: 2.7s;
}

.footer-matrix-column:nth-child(11) {
    animation-delay: 3s;
}

.footer-matrix-column:nth-child(12) {
    animation-delay: 3.3s;
}

.footer-matrix-column:nth-child(13) {
    animation-delay: 3.6s;
}

.footer-matrix-column:nth-child(14) {
    animation-delay: 3.9s;
}

.footer-matrix-column:nth-child(15) {
    animation-delay: 4.2s;
}

.footer-matrix-column:nth-child(16) {
    animation-delay: 4.5s;
}

@keyframes footerMatrixFall {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100%);
        opacity: 0;
    }
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(52, 152, 219, 0.2);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.8);
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image {
        order: -1;
    }

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

    .name {
        font-size: 2.5rem;
    }

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

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

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

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

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

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.98);
        border-bottom: 3px solid var(--border-color);
        width: 100%;
        text-align: center;
        transition: left var(--transition-normal);
        box-shadow: 0 0 30px rgba(52, 152, 219, 0.5);
        padding: 2rem 0;
    }

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

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

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

    .name {
        font-size: 2rem;
    }

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

    .container {
        padding: 0 1rem;
    }

    section {
        padding: 3rem 0;
    }

    .profile-card {
        width: 200px;
        height: 200px;
    }

    .profile-icon {
        font-size: 5rem;
    }

    .binary-row {
        font-size: 1.2rem;
        letter-spacing: 0.4rem;
    }

    .computer-icon {
        font-size: 4rem;
    }

    .profile-picture {
        width: 150px;
        height: 150px;
    }

    .matrix-column {
        font-size: 0.9rem;
        letter-spacing: 0.1rem;
    }

    .skills-circle {
        width: 250px;
        height: 250px;
    }

    .skill-item {
        width: 70px;
        height: 70px;
        margin: -35px 0 0 -35px;
        --orbit-radius: 90px;
    }

    .skill-item i {
        font-size: 1.5rem;
    }

    .skill-item span {
        font-size: 0.7rem;
        max-width: 54px;
    }

    .skill-icons-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .skill-icon-wrapper {
        width: 60px;
        height: 60px;
    }

    .skill-icon-wrapper i {
        font-size: 2rem;
    }

    .skill-name {
        font-size: 0.8rem;
    }

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

/* ===========================
   Animations on Scroll
   =========================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
