@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;600;700&display=swap');

/* ==========================================================================
   CSS Variables & CS/Programming Theme
   ========================================================================== */
:root {
    /* === DARK MODE: Terminal / IDE Dark === */
    --bg-color: #0d111a;
    --bg-darker: #0d111a;
    --bg-card: rgba(30, 41, 59, 0.4);
    --bg-terminal: #0d1117;

    /* Syntax Colors - IDE palette */
    --primary-color: #00e5cc;
    /* Cyan - like function calls */
    --primary-hover: #00bfa5;
    --code-green: #4ec94e;
    /* Strings / success */
    --code-orange: #ff8c42;
    /* Variables / warnings */
    --code-purple: #c678dd;
    /* Keywords */
    --code-blue: #61afef;
    /* Functions / links */
    --code-red: #e06c75;
    /* Errors / important */
    --code-yellow: #e5c07b;
    /* Numbers / operators */

    --secondary-color: #161b2e;
    --text-main: #abb2bf;
    --text-bright: #e8f0fe;
    --text-muted: #4d5f7a;
    --text-comment: #5c6a7e;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #00e5cc 0%, #c678dd 100%);
    --gradient-hero: linear-gradient(135deg, #00e5cc, #61afef);
    --gradient-glow: linear-gradient(135deg, rgba(0, 229, 204, 0.35), rgba(98, 175, 239, 0.35));
    --gradient-card: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    --gradient-terminal: linear-gradient(180deg, rgba(22, 27, 46, 0.5) 0%, rgba(13, 17, 23, 0.5) 100%);

    /* Terminal chrome colors */
    --dot-red: #ff5f56;
    --dot-yellow: #ffbd2e;
    --dot-green: #27c93f;

    /* Glass / borders */
    --glass-bg: rgba(13, 17, 35, 0.7);
    --glass-border: rgba(0, 229, 204, 0.12);
    --glass-border-hover: rgba(0, 229, 204, 0.35);
    --scanline-color: rgba(0, 229, 204, 0.03);

    /* Shadows */
    --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 20px 60px rgba(0, 0, 0, 0.65);
    --shadow-glow: 0 0 30px rgba(0, 229, 204, 0.2), 0 0 60px rgba(0, 229, 204, 0.08);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(0, 229, 204, 0.06);

    /* Code font */
    --font-code: 'JetBrains Mono', 'Fira Code', monospace;

    /* Typography */
    --font-family: 'Tajawal', sans-serif;

    /* Transitions */
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === LIGHT MODE: VS Code Light / IDE Light Theme === */
body.light-mode {
    --bg-color: #f3f4f6;
    --bg-darker: #e8eaed;
    --bg-card: #ffffff;
    --bg-terminal: #1e1e2e;

    /* Syntax Colors - Light IDE */
    --primary-color: #0070c1;
    /* VS Code blue */
    --primary-hover: #005a9e;
    --code-green: #008000;
    /* Strings green */
    --code-orange: #c18401;
    /* Variables */
    --code-purple: #7b3f9e;
    /* Keywords */
    --code-blue: #0070c1;
    /* Functions */
    --code-red: #d11a2a;
    /* Errors */
    --code-yellow: #b8860b;
    /* Numbers */

    --secondary-color: #dde1e7;
    --text-main: #1e2030;
    --text-bright: #0d1117;
    --text-muted: #5a6a7e;
    --text-comment: #008000;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0070c1 0%, #7b3f9e 100%);
    --gradient-hero: linear-gradient(135deg, #0070c1, #7b3f9e);
    --gradient-glow: linear-gradient(135deg, rgba(0, 112, 193, 0.2), rgba(123, 63, 158, 0.2));
    --gradient-card: linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(243, 244, 246, 0.95));
    --gradient-terminal: linear-gradient(180deg, #1e2030 0%, #1a1a2e 100%);

    /* Terminal chrome */
    --dot-red: #ff5f56;
    --dot-yellow: #ffbd2e;
    --dot-green: #27c93f;

    /* Glass / borders */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 112, 193, 0.15);
    --glass-border-hover: rgba(0, 112, 193, 0.4);
    --scanline-color: rgba(0, 112, 193, 0.02);

    /* Shadows */
    --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 20px 60px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 30px rgba(0, 112, 193, 0.15), 0 0 60px rgba(0, 112, 193, 0.06);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(0, 112, 193, 0.08);
}

body.light-mode .section-header::before {
    background: rgba(0, 128, 0, 0.06);
    color: #006400;
    /* Darker green for light mode */
    border: 1px solid rgba(0, 128, 0, 0.12);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    direction: rtl;
    transition: background-color 0.5s ease, color 0.5s ease;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   Utility Classes & Layout
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.bg-darker {
    background-color: var(--bg-darker);
}

.grid {
    display: grid;
    gap: 30px;
}

/* Interactive Canvas Background */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

/* Background Ambient Orbs */
.bg-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
    will-change: transform;
}

.shape-1 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(0, 229, 204, 0.1) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    animation: orb-float-1 18s ease-in-out infinite;
}

.shape-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(198, 120, 221, 0.08) 0%, transparent 70%);
    bottom: 5%;
    left: -150px;
    animation: orb-float-2 22s ease-in-out infinite;
}

.shape-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(97, 175, 239, 0.07) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orb-float-3 26s ease-in-out infinite;
}

@keyframes orb-float-1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(-40px, 30px) scale(1.05);
    }

    66% {
        transform: translate(20px, -40px) scale(0.95);
    }
}

@keyframes orb-float-2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(50px, -30px) scale(1.08);
    }

    66% {
        transform: translate(-30px, 40px) scale(0.92);
    }
}

@keyframes orb-float-3 {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.15);
    }
}

body.light-mode .shape-1 {
    background: radial-gradient(circle, rgba(0, 112, 193, 0.08) 0%, transparent 70%);
}

body.light-mode .shape-2 {
    background: radial-gradient(circle, rgba(123, 63, 158, 0.07) 0%, transparent 70%);
}

body.light-mode .shape-3 {
    background: radial-gradient(circle, rgba(0, 112, 193, 0.05) 0%, transparent 70%);
}

/* Glassmorphism Utilities */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--glass-border);
}

/* Terminal-Style Card (glass-card) */
.glass-card {
    background: var(--gradient-card);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

/* Terminal window chrome bar */
.glass-card::before {
    content: '';
    display: block;
    height: 32px;
    background: rgba(0, 0, 0, 0.35);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1;
}

/* Terminal dots */
.glass-card::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 14px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--dot-red);
    box-shadow: -18px 0 0 var(--dot-yellow), -36px 0 0 var(--dot-green);
    z-index: 2;
}

body[dir="rtl"] .glass-card::after {
    right: auto;
    left: 14px;
    box-shadow: 18px 0 0 var(--dot-yellow), 36px 0 0 var(--dot-green);
}

.glass-card .card-body {
    padding: 25px 30px 30px;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow), var(--shadow-md);
    border-color: var(--glass-border-hover);
}

/* Cards that DON'T need terminal chrome - use .plain-card */
.plain-card {
    background: var(--gradient-card);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.plain-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-color: var(--glass-border-hover);
}

/* Scanline overlay effect */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            var(--scanline-color) 2px,
            var(--scanline-color) 4px);
    pointer-events: none;
    z-index: 9999;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

.highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    font-weight: 900;
}

/* Code-colored text variants */
.text-cyan {
    color: var(--primary-color);
}

.text-green {
    color: var(--code-green);
}

.text-orange {
    color: var(--code-orange);
}

.text-purple {
    color: var(--code-purple);
}

.text-blue {
    color: var(--code-blue);
}

/* Typing cursor */
.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background: var(--primary-color);
    margin-right: 4px;
    vertical-align: text-bottom;
    animation: blink-cursor 1s step-end infinite;
    border-radius: 2px;
}

@keyframes blink-cursor {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

/* Code-comment style label above section title */
.section-header::before {
    content: attr(data-comment);
    display: inline-block;
    font-family: var(--font-code);
    font-size: 0.8rem;
    color: var(--code-green);
    background: rgba(0, 0, 0, 0.4);
    padding: 4px 14px;
    border-radius: 4px;
    margin-bottom: 12px;
    letter-spacing: 1px;
    border: 1px solid rgba(78, 201, 78, 0.15);
}

.section-title {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    color: var(--text-bright);
}

/* Bracket decoration around section title */
.section-title::before {
    content: '<';
    font-family: var(--font-code);
    color: var(--code-orange);
    font-size: 1.6rem;
    margin-left: 12px;
    opacity: 0.7;
    font-weight: 300;
}

.section-title::after {
    content: '/>';
    font-family: var(--font-code);
    color: var(--code-orange);
    font-size: 1.6rem;
    margin-right: 12px;
    opacity: 0.7;
    font-weight: 300;
}

.section-title span {
    color: var(--primary-color);
}

.section-subtitle {
    color: var(--text-main);
    font-family: var(--font-code);
    font-size: 0.95rem;
    margin-top: 10px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
    color: var(--text-main);
    font-family: var(--font-code);
    letter-spacing: 0.3px;
    transition: var(--transition);
}

.btn-primary {
    background: var(--gradient-hero);
    color: #000;
    box-shadow: var(--shadow-glow);
    font-weight: 700;
}

.btn-primary:hover {
    box-shadow: var(--shadow-glow), 0 8px 30px rgba(0, 229, 204, 0.4);
    transform: translateY(-2px);
    color: #000;
}

body.light-mode .btn-primary {
    color: #fff;
}

body.light-mode .btn-primary:hover {
    color: #fff;
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    font-weight: 600;
}

.btn-secondary:hover {
    background: rgba(0, 229, 204, 0.08);
    box-shadow: 0 0 15px rgba(0, 229, 204, 0.2);
}

body.light-mode .btn-secondary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-block {
    width: 100%;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    max-width: fit-content;
    z-index: 2000;
    padding: 10px 20px;
    border-radius: 50px;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.header.scrolled {
    top: 10px;
    padding: 8px 15px;
    background: rgba(13, 17, 26, 0.85);
    border-color: var(--primary-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 229, 204, 0.05);
}

body.light-mode .header.scrolled {
    background: rgba(243, 244, 246, 0.94);
    border-color: var(--primary-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.header-content.justify-end {
    justify-content: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
}

.logo span {
    color: var(--primary-color);
}

.nav {
    position: absolute;
    top: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    width: 280px;
    background: rgba(13, 17, 26, 0.9);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    padding: 20px 10px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2001;
}



.nav.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Background Overlay when menu is open */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

body.light-mode .menu-overlay {
    background: rgba(255, 255, 255, 0.4);
}

body.light-mode .nav {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.1);
}

.nav-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.nav-link {
    font-weight: 600;
    font-size: 1rem;
    padding: 12px 20px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: var(--transition);
    color: var(--text-main);
    white-space: nowrap;
}

.nav-link i {
    font-size: 1rem;
    color: var(--primary-color);
    opacity: 0.9;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

body.light-mode .nav-link:hover {
    background: rgba(0, 0, 0, 0.05);
}

.nav-link.active {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
    .header {
        max-width: fit-content;
    }

    .nav {
        position: static;
        width: auto;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent !important;
        backdrop-filter: none;
        border: none;
        padding: 0;
        box-shadow: none;
        display: block;
    }

    .nav-list {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 8px;
    }

    .nav-link {
        width: auto !important;
        white-space: nowrap !important;
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .nav-toggle {
        display: none !important;
    }

    .menu-overlay {
        display: none;
    }
}



.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.fi {
    border-radius: 50%;
    width: 24px;
    height: 24px;
    background-size: cover;
    background-position: center;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
}

.nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.mobile-menu-btn {
    display: none;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
}

.hero-container {
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.hero-text .subtitle {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(0, 229, 204, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    color: var(--primary-color);
    font-family: var(--font-code);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.hero-text .title {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    margin-bottom: 25px;
    color: var(--text-bright);
}

.hero-text .description {
    color: var(--text-main);
    font-size: 1.1rem;
    margin-bottom: 35px;
    max-width: 550px;
    line-height: 1.8;
}

.hero-image .image-wrapper {
    width: 400px;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    padding: 0;
    position: relative;
    background: transparent;
    border: none;
    box-shadow: none;
}



.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Floating code elements */
/* Hero Statistics Section (Replacing Hero Image) */
.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 25px;
    justify-content: center;
    padding: 20px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 350px;
    padding: 20px;
}

/* Staggered layout for stats */
.hero-stats .stat-card:nth-child(1) {
    align-self: flex-start;
}

.hero-stats .stat-card:nth-child(2) {
    align-self: center;
}

.hero-stats .stat-card:nth-child(3) {
    align-self: flex-end;
}

.stat-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
    background: var(--glass-bg);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.stat-card:hover .stat-icon {
    color: var(--code-orange);
    transform: rotate(10deg);
}

.stat-info h3 {
    font-size: 2.2rem;
    color: var(--text-bright);
    margin-bottom: 4px;
    font-family: var(--font-code);
}

.stat-info p {
    color: var(--text-main);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 992px) {
    .hero-stats {
        padding-left: 0;
        align-items: center;
    }

    .hero-stats .stat-card {
        align-self: center !important;
    }
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about {
    position: relative;
    overflow: hidden;
}

.about .container {
    position: relative;
    z-index: 1;
}

.about-content {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-details {
    display: flex;
    flex-direction: column;
    align-items: center;
}



.about-details .about-tag {
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-family: var(--font-code);
    color: var(--code-purple);
}

.about-details .bio {
    color: var(--text-main);
    margin-bottom: 35px;
    font-size: 1rem;
    line-height: 1.8;
    max-width: 650px;
}

/* Tech Stack Styles */
.tech-stack {
    margin-bottom: 35px;
}

.tech-stack-title {
    font-family: var(--font-code);
    color: var(--text-comment);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.tech-tags .tag {
    font-family: var(--font-code);
    font-size: 0.9rem;
    padding: 8px 16px;
    background: rgba(0, 229, 204, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    color: var(--primary-color);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tech-tags .tag i {
    font-size: 1.1rem;
    color: var(--code-orange);
}

/* Custom CSS Replit Icon */
.replit-icon {
    width: 14px;
    height: 14px;
    position: relative;
    display: inline-block;
}

.replit-icon::before,
.replit-icon::after {
    content: '';
    position: absolute;
    background: var(--code-orange);
    border-radius: 2px;
}

/* The three blocks of Replit logo */
.replit-icon::before {
    width: 6px;
    height: 6px;
    top: 0;
    left: 0;
    box-shadow: 8px 4px 0 var(--code-orange);
}

.replit-icon::after {
    width: 6px;
    height: 6px;
    bottom: 0;
    left: 0;
}

/* Custom CSS Antigravity Icon (Stylized A curve) */
.antigravity-icon {
    width: 16px;
    height: 14px;
    position: relative;
    display: inline-block;
    border-top: 2.5px solid var(--code-orange);
    border-left: 2.5px solid var(--code-orange);
    border-right: 2.5px solid var(--code-orange);
    border-radius: 6px 6px 0 0;
}

.antigravity-icon::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 4px;
    width: 8px;
    height: 6px;
    border-top: 2.5px solid var(--code-orange);
    border-left: 2.5px solid var(--code-orange);
    border-right: 2.5px solid var(--code-orange);
    border-radius: 4px 4px 0 0;
}

.tech-tags .tag:hover {
    background: rgba(0, 229, 204, 0.12);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 229, 204, 0.15);
}

/* Degree Card Styles Update */
.degree-card,
.specialization-card {
    max-width: 500px;
    margin-bottom: 20px;
}

.degree-card .card-body,
.specialization-card .card-body {
    display: flex;
    gap: 20px;
    align-items: center;
}

.degree-card .icon-box,
.specialization-card .icon-box {
    font-size: 1.8rem;
    color: var(--primary-color);
    background: var(--glass-bg);
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
    border: 1px solid var(--glass-border);
}

.degree-card .info h4,
.specialization-card .info h4 {
    font-size: 1.25rem;
    margin-bottom: 4px;
    color: var(--text-bright);
}

.degree-card .info .uni-name,
.specialization-card .info .uni-name {
    color: var(--code-orange);
    font-family: var(--font-code);
    font-size: 0.95rem;
    display: block;
    margin-bottom: 8px;
}

.degree-card .info .desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ==========================================================================
   Experience Section (Timeline)
   ========================================================================== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

/* The vertical line in the middle */
.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: linear-gradient(to bottom,
            transparent,
            var(--primary-color) 15%,
            var(--code-purple) 50%,
            var(--primary-color) 85%,
            transparent);
    top: 0;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    border-radius: 4px;
    opacity: 0.3;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    margin-bottom: 30px;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: inherit;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: inherit;
}

[dir="ltr"] .timeline-item:nth-child(odd) {
    text-align: right;
}

[dir="ltr"] .timeline-item:nth-child(even) {
    text-align: left;
}

/* The dot on the timeline line */
.timeline-dot {
    position: absolute;
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    top: 20px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.1rem;
    box-shadow: 0 0 15px rgba(0, 229, 204, 0.2), inset 0 0 10px rgba(0, 229, 204, 0.1);
    transition: var(--transition);
}

.timeline-item:hover .timeline-dot {
    background: var(--primary-color);
    color: #000;
    transform: scale(1.1) translateX(calc(var(--dir-offset) * -1px));
    box-shadow: var(--shadow-glow);
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -22px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -22px;
}

[dir="ltr"] .timeline-item:nth-child(odd) .timeline-dot {
    left: -22px;
    right: auto;
}

[dir="ltr"] .timeline-item:nth-child(even) .timeline-dot {
    right: -22px;
    left: auto;
}

.timeline-content {
    position: relative;
}

.timeline-content .date {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(0, 229, 204, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(0, 229, 204, 0.2);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font-code);
    margin-bottom: 15px;
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.exp-header h3 {
    margin-bottom: 0;
    font-size: 1.35rem;
    color: var(--text-bright);
}

.badge {
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-cyan {
    background: rgba(0, 229, 204, 0.15);
    color: var(--primary-color);
    border: 1px solid rgba(0, 229, 204, 0.3);
}

.badge-purple {
    background: rgba(198, 120, 221, 0.15);
    color: var(--code-purple);
    border: 1px solid rgba(198, 120, 221, 0.3);
}

.badge-orange {
    background: rgba(255, 140, 66, 0.15);
    color: var(--code-orange);
    border: 1px solid rgba(255, 140, 66, 0.3);
}

.company-name {
    color: var(--code-blue);
    font-size: 0.95rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.company-name i {
    font-size: 0.85rem;
    opacity: 0.8;
}

.exp-desc {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.6;
    margin-bottom: 20px;
}

.exp-techs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-mini {
    font-size: 0.75rem;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    color: var(--text-muted);
    font-family: var(--font-code);
}

.timeline-item:hover .tech-mini {
    border-color: var(--glass-border-hover);
    color: var(--text-main);
}

/* ==========================================================================
   Projects/Portfolio Section
   ========================================================================== */
.works-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.work-card {
    padding: 0;
    overflow: hidden;
    position: relative;
    border-radius: 16px;
}

.work-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), var(--shadow-glow);
}

.work-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.work-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    pointer-events: none;
    z-index: 1;
}

.work-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s ease;
}

.work-card:hover .work-img img {
    transform: scale(1.08);
    filter: brightness(1.1);
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 2;
}

.work-card:hover .work-overlay {
    opacity: 1;
}

.view-btn {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transform: translateY(15px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 229, 204, 0.3);
}

.work-card:hover .view-btn {
    transform: translateY(0) scale(1);
}

.view-btn:hover {
    background: var(--primary-hover);
    box-shadow: 0 8px 25px rgba(0, 229, 204, 0.5);
    transform: translateY(0) scale(1.1) !important;
}

/* Project Status Badge */
.project-status {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-family: var(--font-code);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 5px;
}

[dir="ltr"] .project-status {
    right: auto;
    left: 12px;
}

.project-status i {
    font-size: 0.45rem;
}

.status-live {
    background: rgba(39, 201, 63, 0.2);
    color: #27c93f;
    border: 1px solid rgba(39, 201, 63, 0.3);
}

.status-live i {
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.status-dev {
    background: rgba(255, 189, 46, 0.2);
    color: var(--dot-yellow);
    border: 1px solid rgba(255, 189, 46, 0.3);
}

.work-info {
    padding: 20px 25px 25px;
}

.work-info h3 {
    margin-bottom: 8px;
    color: var(--text-bright);
    font-size: 1.2rem;
    font-family: var(--font-code);
}

.work-info p {
    color: var(--text-main);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 18px;
}

/* Project Tech Tags */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.p-tag {
    font-size: 0.7rem;
    padding: 3px 10px;
    background: rgba(0, 229, 204, 0.08);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    color: var(--primary-color);
    font-family: var(--font-code);
    transition: var(--transition);
}

.work-card:hover .p-tag {
    border-color: rgba(0, 229, 204, 0.3);
    background: rgba(0, 229, 204, 0.12);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-content {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

.contact-card .icon {
    width: 50px;
    height: 50px;
    background: rgba(56, 189, 248, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-card h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-card p {
    color: var(--text-muted);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.social-icon:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

/* Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-control {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

textarea.form-control {
    resize: vertical;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    text-align: center;
    padding: 35px 0;
    background: var(--bg-darker);
    border-top: 1px solid var(--glass-border);
    color: var(--text-main);
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: var(--gradient-hero);
    opacity: 0.6;
}

/* ==========================================================================
   Animations (Scroll Reveal)
   ========================================================================== */
.reveal,
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: all 0.8s ease-out;
}

.reveal-up {
    transform: translateY(50px);
}

.reveal-left {
    transform: translateX(50px);
}

.reveal-right {
    transform: translateX(-50px);
}

[dir="ltr"] .reveal-left {
    transform: translateX(-50px);
}

[dir="ltr"] .reveal-right {
    transform: translateX(50px);
}

.reveal-up.active {
    transform: translateY(0);
    opacity: 1;
}

.reveal-left.active,
.reveal-right.active {
    transform: translateX(0);
    opacity: 1;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media screen and (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text .title {
        font-size: 2.8rem;
    }

    .hero-text .description {
        margin: 0 auto 30px;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-image {
        margin-top: 50px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image .image-wrapper {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    /* Timeline adjustments for mobile */
    .timeline::after {
        right: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-right: 70px;
        padding-left: 20px;
        left: 0 !important;
        text-align: inherit !important;
    }

    [dir="ltr"] .timeline-item {
        padding-left: 70px;
        padding-right: 20px;
    }

    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        right: 9px;
        left: auto;
    }

    [dir="ltr"] .timeline-item:nth-child(odd) .timeline-dot,
    [dir="ltr"] .timeline-item:nth-child(even) .timeline-dot {
        left: 9px;
        right: auto;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .header {
        width: 95%;
        top: 15px;
    }

    .nav {
        width: 260px;
        max-width: 90%;
        padding: 15px 5px;
    }

    .nav-link {
        font-size: 0.95rem;
        padding: 10px 15px;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-image .image-wrapper {
        width: 300px;
        height: 300px;
    }
}