/* ================================================
   PORTFOLIO — Mohamed-Taqy Salmi
   ================================================ */

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

:root {
    --bg: #0a0a0a;
    --text: #ffffff;
    --text-dim: #888888;
    --accent: #00ff88;
    --accent-2: #0088ff;
    --surface: #111111;
    --border: #222222;
}

[data-theme="light"] {
    --bg: #ffffff;
    --text: #000000;
    --text-dim: #666666;
    --accent: #00cc66;
    --accent-2: #0066cc;
    --surface: #f8f8f8;
    --border: #e0e0e0;
}

body {
    font-family: 'Crimson Pro', serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: all 0.3s ease;
    overflow-x: hidden;
}

/* ================================================
   SCROLL ANIMATIONS
   ================================================ */
[data-animate] {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ================================================
   NAVIGATION
   ================================================ */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

[data-theme="light"] nav {
    background: rgba(255, 255, 255, 0.8);
}

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

.logo-photo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
    transition: transform 0.3s ease;
}

.logo-photo:hover {
    transform: scale(1.1);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

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

.theme-toggle {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    border-color: var(--accent);
    transform: rotate(180deg);
}

/* ================================================
   HAMBURGER MENU (Mobile)
   ================================================ */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1100;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
    backdrop-filter: blur(20px);
    z-index: 1050;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease, background 0.3s ease;
}

.mobile-overlay.active {
    display: flex;
    opacity: 1;
}

/* Close X button */
.mobile-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: 1px solid var(--border);
    color: var(--text);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1100;
}

.mobile-close:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.mobile-nav {
    list-style: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.mobile-nav a {
    color: var(--text);
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.mobile-nav a:hover {
    color: var(--accent);
}

/* Theme toggle centered below nav links */
.mobile-theme-toggle {
    margin-top: 2rem;
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
}

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

/* Animated Background Shapes */
.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.shape {
    position: absolute;
    opacity: 0.08;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-radius: 50%;
    top: 10%;
    left: -10%;
    animation: float1 20s ease-in-out infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: var(--accent-2);
    top: 60%;
    right: -5%;
    transform: rotate(45deg);
    animation: float2 18s ease-in-out infinite;
}

.shape-3 {
    width: 250px;
    height: 250px;
    border: 3px solid var(--accent);
    border-radius: 50%;
    bottom: 10%;
    left: 15%;
    animation: float3 22s ease-in-out infinite;
}

.shape-4 {
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 174px solid var(--accent);
    top: 20%;
    right: 20%;
    animation: float4 16s ease-in-out infinite;
}

.shape-5 {
    width: 150px;
    height: 150px;
    background: linear-gradient(45deg, var(--accent), transparent);
    bottom: 30%;
    right: 10%;
    border-radius: 30px;
    animation: float5 19s ease-in-out infinite;
}

@keyframes float1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(100px, 150px) scale(1.2);
    }

    66% {
        transform: translate(-50px, 200px) scale(0.9);
    }
}

@keyframes float2 {

    0%,
    100% {
        transform: rotate(45deg) translate(0, 0);
    }

    33% {
        transform: rotate(135deg) translate(-150px, -100px);
    }

    66% {
        transform: rotate(225deg) translate(50px, 150px);
    }
}

@keyframes float3 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(-100px, -150px) rotate(120deg);
    }

    66% {
        transform: translate(150px, 100px) rotate(240deg);
    }
}

@keyframes float4 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.08;
    }

    50% {
        transform: translate(-200px, 100px) rotate(180deg);
        opacity: 0.15;
    }
}

@keyframes float5 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(100px, -150px) rotate(180deg);
    }
}

/* Browser Tab */
.browser-tab {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 60px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.tab-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.2rem;
    border-bottom: 1px solid var(--border);
}

.tab-dots {
    display: flex;
    gap: 0.5rem;
}

.tab-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red {
    background: #ff5f57;
}

.dot-yellow {
    background: #ffbd2e;
}

.dot-green {
    background: #28ca42;
}

.tab-url {
    flex: 1;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-dim);
    text-align: center;
    opacity: 0.6;
}

.tab-profile {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tab-profile.show {
    opacity: 1;
}

.tab-profile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Tab body — all info lives here */
.tab-body {
    padding: 1.5rem 2rem 2rem;
    text-align: left;
}

.tab-typing-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.2rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.tab-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--text-dim);
}

.tab-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--text-dim);
    flex: 1;
}

.cursor-blink {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: var(--accent);
    margin-left: 2px;
    animation: blink 0.7s infinite;
}

@keyframes blink {

    0%,
    49% {
        opacity: 1;
    }

    50%,
    100% {
        opacity: 0;
    }
}

.tab-info {
    padding-top: 0.5rem;
}

.tab-tagline {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    color: var(--accent);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.tab-description {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    color: var(--text-dim);
    line-height: 1.8;
    margin-bottom: 1.8rem;
}

.tab-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Hero Content */
.hero-content {
    width: 100%;
    max-width: 1200px;
    position: relative;
    z-index: 2;
    padding: 0 2rem;
}

.hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(3.5rem, 10vw, 7rem);
    font-weight: 900;
    margin-bottom: 2.5rem;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #fff 0%, var(--accent) 50%, var(--accent-2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    line-height: 1.1;
    animation: slideIn 1s ease 0.2s backwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn {
    padding: 1.1rem 2.8rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid var(--border);
    background: transparent;
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    transition: left 0.3s ease;
    z-index: -1;
}

.btn:hover {
    border-color: var(--accent);
    color: var(--bg);
    transform: translateY(-2px);
}

.btn:hover::before {
    left: 0;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-color: var(--accent);
    color: var(--bg);
}

.btn-primary::before {
    background: var(--bg);
}

.btn-primary:hover {
    color: var(--text);
    border-color: var(--accent);
}

/* ================================================
   SECTIONS — SHARED
   ================================================ */
section {
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    color: var(--text-dim);
    font-size: 1.1rem;
    margin-bottom: 4rem;
}

/* ================================================
   ABOUT ME SECTION
   ================================================ */
.about-section {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 4rem;
    align-items: start;
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.about-photo {
    position: relative;
}

.about-photo img {
    width: 100%;
    border-radius: 12px;
    border: 2px solid var(--border);
    transition: border-color 0.3s ease;
}

.about-photo img:hover {
    border-color: var(--accent);
}

.about-photo::after {
    content: '';
    position: absolute;
    top: 12px;
    left: 12px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent);
    border-radius: 12px;
    z-index: -1;
    opacity: 0.3;
}

.about-content h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.about-tagline {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 2rem;
}

.about-text {
    font-size: 1.15rem;
    color: var(--text-dim);
    line-height: 1.9;
    margin-bottom: 2rem;
}

.about-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.about-detail {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

.about-detail:hover {
    border-color: var(--accent);
}

.about-detail-icon {
    font-size: 0.6rem;
    flex-shrink: 0;
    color: var(--accent);
}

.about-detail-text {
    display: flex;
    flex-direction: column;
}

.about-detail-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.about-detail-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
}

/* ================================================
   SKILLS — PROFICIENCY BARS (replacing radar)
   ================================================ */
.skills-container {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 3rem;
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
}

.skills-container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 136, 255, 0.1), transparent);
    animation: floatBg 6s ease-in-out infinite;
}

@keyframes floatBg {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-20px, -20px);
    }
}

.skills-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 2.5rem;
}

.skill-bars {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.8rem 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
}

.skill-pct {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--accent);
}

.skill-track {
    width: 100%;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    width: 0%;
    transition: width 1.5s ease;
}

/* Tech Stack */
.tech-stack {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.tech-category h4 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.tech-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.tech-list li {
    color: var(--text-dim);
    font-size: 0.95rem;
    padding-left: 1.2rem;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tech-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.tech-list li:hover {
    color: var(--accent);
    padding-left: 1.5rem;
}

.tech-list li::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--surface);
    border: 1px solid var(--accent);
    color: var(--text);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    pointer-events: none;
    margin-bottom: 0.5rem;
}

.tech-list li:hover::after {
    opacity: 1;
    visibility: visible;
}

/* ================================================
   FEATURED PROJECT
   ================================================ */
.featured-project {
    background: linear-gradient(135deg, var(--surface), var(--bg));
    border: 1px solid var(--border);
    padding: 4rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.featured-project::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.featured-badge {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
    background: var(--accent);
    color: var(--bg);
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.featured-project h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.featured-project p {
    font-size: 1.15rem;
    color: var(--text-dim);
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 800px;
}

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

.project-card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 2.5rem;
    transition: all 0.4s ease;
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.project-card:hover {
    border-color: var(--accent);
    transform: translateY(-8px);
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--accent);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.project-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.project-card p {
    color: var(--text-dim);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

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

.tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    padding: 0.4rem 0.9rem;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-dim);
    transition: all 0.3s ease;
}

.tag:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ================================================
   INTERACTIVE FAQ (Chatbot)
   ================================================ */
.chatbot-section {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 3rem;
    position: relative;
}

.chatbot-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
}

.chat-window {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg);
    border: 1px solid var(--border);
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
    max-height: 500px;
}

.chat-message {
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    max-width: 80%;
    animation: messageSlide 0.3s ease;
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-message.bot {
    background: var(--surface);
    border: 1px solid var(--border);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chat-message.user {
    background: var(--accent);
    color: var(--bg);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-options {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1rem;
}

.chat-option {
    padding: 1rem 1.5rem;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-family: 'Crimson Pro', serif;
    font-size: 0.95rem;
}

.chat-option:hover {
    border-color: var(--accent);
    background: var(--surface);
    transform: translateX(5px);
}

/* ================================================
   CONTACT SECTION
   ================================================ */
.contact-section {
    position: relative;
    padding: 8rem 2rem;
    overflow: hidden;
}

.shapes-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.contact-shape {
    position: absolute;
    opacity: 0.1;
    animation: rotate3d 20s linear infinite;
}

@keyframes rotate3d {
    0% {
        transform: rotate(0deg) translateX(50px) rotate(0deg);
    }

    100% {
        transform: rotate(360deg) translateX(50px) rotate(-360deg);
    }
}

.contact-shape:nth-child(1) {
    top: 10%;
    left: 10%;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    animation-duration: 15s;
}

.contact-shape:nth-child(2) {
    top: 60%;
    right: 15%;
    width: 80px;
    height: 80px;
    border: 3px solid var(--accent);
    border-radius: 50%;
    animation-duration: 20s;
    animation-direction: reverse;
}

.contact-shape:nth-child(3) {
    bottom: 20%;
    left: 20%;
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 87px solid var(--accent-2);
    animation-duration: 18s;
}

.contact-shape:nth-child(4) {
    top: 30%;
    right: 30%;
    width: 60px;
    height: 60px;
    background: var(--accent);
    transform: rotate(45deg);
    animation-duration: 22s;
}

.loading-text {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-bottom: 3rem;
}

.loading-text h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
}

.loading-bar {
    width: 200px;
    height: 3px;
    background: var(--border);
    margin: 2rem auto;
    position: relative;
    overflow: hidden;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    animation: loading 2s ease-in-out infinite;
}

@keyframes loading {
    0% {
        width: 0;
        transform: translateX(0);
    }

    50% {
        width: 100%;
        transform: translateX(0);
    }

    100% {
        width: 100%;
        transform: translateX(100%);
    }
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem 2.5rem;
    border: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent);
    transition: left 0.3s ease;
    z-index: -1;
}

.contact-link:hover {
    border-color: var(--accent);
    color: var(--bg);
}

.contact-link:hover::before {
    left: 0;
}

.contact-icon {
    width: 20px;
    height: 20px;
}

/* ================================================
   FOOTER
   ================================================ */
footer {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-dim);
    font-size: 0.9rem;
    border-top: 1px solid var(--border);
}

/* ================================================
   RESPONSIVE — Tablet (≤ 1024px)
   ================================================ */
@media (max-width: 1024px) {
    .hero-content {
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: clamp(2.8rem, 8vw, 5rem);
    }

    .browser-tab {
        max-width: 90%;
    }

    .about-section {
        gap: 3rem;
        padding: 5rem 2rem;
    }

    .about-content h2 {
        font-size: 2.2rem;
    }

    .featured-project {
        padding: 3rem 2rem;
    }

    .featured-project h3 {
        font-size: 2rem;
    }

    .loading-text h2 {
        font-size: 2.5rem;
    }
}

/* ================================================
   RESPONSIVE — Mobile (≤ 768px)
   ================================================ */
@media (max-width: 768px) {

    /* Navigation */
    .hamburger {
        display: flex;
    }

    nav {
        padding: 1rem 1.2rem;
    }

    .nav-links {
        display: none;
    }

    /* Hero */
    .hero {
        padding: 6rem 1rem 3rem;
        min-height: auto;
    }

    .hero-content {
        padding: 0;
    }

    .hero h1 {
        font-size: clamp(2rem, 10vw, 3rem);
        margin-bottom: 1.5rem;
    }

    .browser-tab {
        max-width: 100%;
        border-radius: 8px;
    }

    .tab-body {
        padding: 1.2rem 1.2rem 1.5rem;
    }

    .tab-typing-row {
        padding: 0.8rem 1rem;
        gap: 0.6rem;
    }

    .tab-text {
        font-size: 0.8rem;
    }

    .tab-tagline {
        font-size: 1.2rem;
        letter-spacing: 0.15em;
    }

    .tab-description {
        font-size: 0.95rem;
        margin-bottom: 1.4rem;
    }

    .tab-cta {
        flex-direction: column;
    }

    .tab-cta .btn {
        text-align: center;
        padding: 0.9rem 1.5rem;
    }

    .tab-url {
        font-size: 0.65rem;
    }

    .tab-profile {
        width: 28px;
        height: 28px;
    }

    /* About */
    .about-section {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 4rem 1.2rem;
    }

    .about-photo {
        max-width: 200px;
        margin: 0 auto;
    }

    .about-content h2 {
        font-size: 1.8rem;
        text-align: center;
    }

    .about-tagline {
        text-align: center;
        font-size: 0.75rem;
    }

    .about-text {
        font-size: 1rem;
    }

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

    /* Sections general */
    section {
        padding: 4rem 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    /* Skills */
    .skills-container {
        padding: 2rem 1.2rem;
    }

    .skill-bars {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .skills-title {
        font-size: 1.2rem;
    }

    /* Tech Stack */
    .tech-stack {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

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

    .project-card {
        padding: 1.8rem;
    }

    .project-card h3 {
        font-size: 1.3rem;
    }

    /* Featured Project */
    .featured-project {
        padding: 2rem 1.5rem;
    }

    .featured-project h3 {
        font-size: 1.6rem;
    }

    .featured-project p {
        font-size: 1rem;
    }

    /* Chatbot / FAQ */
    .chatbot-section {
        padding: 2rem 1rem;
    }

    .chatbot-title {
        font-size: 1.3rem;
    }

    .chat-messages {
        padding: 1.2rem;
        max-height: 400px;
    }

    .chat-message {
        max-width: 92%;
        padding: 1rem;
        font-size: 0.9rem;
    }

    .chat-option {
        padding: 0.8rem 1rem;
        font-size: 0.85rem;
    }

    /* Contact */
    .contact-section {
        padding: 5rem 1.2rem;
    }

    .loading-text h2 {
        font-size: 1.8rem;
    }

    .contact-links {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-link {
        justify-content: center;
        padding: 1rem 1.5rem;
    }

    /* Buttons */
    .btn {
        padding: 0.9rem 2rem;
        font-size: 0.9rem;
    }

    /* Background shapes — smaller on mobile */
    .shape-1 {
        width: 150px;
        height: 150px;
    }

    .shape-2 {
        width: 100px;
        height: 100px;
    }

    .shape-3 {
        width: 120px;
        height: 120px;
    }

    .shape-4 {
        border-left-width: 50px;
        border-right-width: 50px;
        border-bottom-width: 87px;
    }

    .shape-5 {
        width: 80px;
        height: 80px;
    }
}

/* ================================================
   RESPONSIVE — Small Phone (≤ 480px)
   ================================================ */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 1.2rem;
    }

    .tab-body {
        padding: 1rem;
    }

    .tab-tagline {
        font-size: 1rem;
        letter-spacing: 0.1em;
    }

    .tab-description {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .about-content h2 {
        font-size: 1.5rem;
    }

    .about-text {
        font-size: 0.92rem;
    }

    .tech-stack {
        grid-template-columns: 1fr;
    }

    .featured-project h3 {
        font-size: 1.3rem;
    }

    .loading-text h2 {
        font-size: 1.4rem;
    }

    .section-title {
        font-size: 1.6rem;
    }
}