﻿:root {
    --bg-color: #0b0d17;
    --surface-color: rgba(255, 255, 255, 0.03);
    --surface-border: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #a0a4b8;
    --primary-color: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.4);
    --accent-color: #ec4899;
    --font-main: 'Outfit', sans-serif;
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 800;
    line-height: 1.1;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(11, 13, 23, 0.8);
    border-bottom: 1px solid var(--surface-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-family: var(--font-main);
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 4px;
    position: relative;
}

.logo .bracket {
    color: var(--primary-color);
    font-weight: 300;
    opacity: 0.8;
}

.logo-decor {
    position: absolute;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
    opacity: 0.4;
    transition: var(--transition-smooth);
    pointer-events: none;
    font-family: monospace;
}

.decor-1 {
    top: -12px;
    left: -10px;
    transform: rotate(-15deg);
}

.decor-2 {
    bottom: -10px;
    right: -8px;
    transform: rotate(10deg);
}

.logo:hover .logo-decor {
    opacity: 0.8;
    color: var(--secondary-color);
}

.logo:hover .decor-1 {
    transform: translate(-3px, -3px) rotate(-25deg);
}

.logo:hover .decor-2 {
    transform: translate(3px, 3px) rotate(20deg);
}

.logo .logo-text {
    color: var(--text-primary);
}

.logo span:not(.logo-text):not(.bracket) {
    color: var(--text-secondary);
    font-weight: 400;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 3rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.8rem 2rem;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-fast);
}

.nav-links a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 15px var(--primary-glow);
}

/* Language Switcher Dropdown */
.lang-switcher {
    position: relative;
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.main-lang-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.main-lang-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.flag-icon {
    width: 20px;
    height: auto;
    border-radius: 2px;
}

.chevron-down {
    transition: transform 0.3s ease;
}

/* Dropdown Menu */
.dropdown-content {
    position: absolute;
    top: 120%;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    min-width: 150px;
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    z-index: 100;
}

.dropdown.open .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown.open .chevron-down {
    transform: rotate(180deg);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.7rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: var(--transition-fast);
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.lang-option.active {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #4f46e5);
    color: white;
    box-shadow: 0 10px 20px -5px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px var(--primary-glow);
}

.btn-secondary {
    background: var(--surface-color);
    color: var(--text-primary);
    border: 1px solid var(--surface-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid var(--surface-border);
    color: var(--text-primary) !important;
}

.btn-outline:hover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content {
    flex: 1;
    text-align: left;
    max-width: 600px;
}

.hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s ease 0.2s forwards;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    animation: fadeInUp 1s ease 0.4s forwards;
    opacity: 0;
}

/* Hero CSS Visuals */
.hero-visuals {
    flex: 1;
    position: relative;
    height: 500px;
    display: none;
    /* Mobile hidden by default */
    perspective: 1000px;
    animation: floatUpDown 6s ease-in-out infinite;
}

@media (min-width: 992px) {
    .hero-visuals {
        display: block;
    }
}

/* Abstract Tech Hologram Visuals */
.abstract-tech-hologram {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* Central glowing core */
.core-node {
    position: relative;
    width: 80px;
    height: 80px;
    background: rgba(99, 102, 241, 0.2);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-glow);
    box-shadow: 0 0 40px var(--primary-glow), inset 0 0 20px rgba(99, 102, 241, 0.5);
    z-index: 10;
    animation: pulseCore 2s infinite alternate;
}

@keyframes pulseCore {
    0% {
        transform: scale(1);
        box-shadow: 0 0 40px var(--primary-glow), inset 0 0 20px rgba(99, 102, 241, 0.5);
    }

    100% {
        transform: scale(1.1);
        box-shadow: 0 0 60px var(--primary-color), inset 0 0 30px rgba(99, 102, 241, 0.8);
    }
}

/* Orbital Rings */
.orbit-ring {
    position: absolute;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transform-style: preserve-3d;
    animation: spinOrbit 20s linear infinite;
}

.ring-1 {
    width: 220px;
    height: 220px;
    animation-duration: 15s;
}

.ring-2 {
    width: 340px;
    height: 340px;
    animation-direction: reverse;
    animation-duration: 25s;
}

.ring-3 {
    width: 460px;
    height: 460px;
    animation-duration: 35s;
}

@keyframes spinOrbit {
    from {
        transform: rotateX(60deg) rotateZ(0deg);
    }

    to {
        transform: rotateX(60deg) rotateZ(360deg);
    }
}

/* Tech Nodes on the rings */
.tech-node {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%) rotateX(-90deg);
    /* counter-rotate to stand up */
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    animation: counterRotate 20s linear infinite reverse;
    /* Needs to match parent spin duration to stay upright perfectly but abstract is okay */
}

/* Keep nodes upright relative to the screen despite orbit rotation */
.ring-1 .tech-node {
    animation-duration: 15s;
    animation-direction: normal;
}

.ring-2 .tech-node {
    animation-duration: 25s;
    animation-direction: reverse;
    bottom: -15px;
    top: auto;
}

.ring-3 .tech-node {
    animation-duration: 35s;
    animation-direction: normal;
    left: -10px;
    top: 50%;
    transform: translateY(-50%) rotateX(-90deg);
}

.ring-3 .node-python {
    left: auto;
    right: -10px;
}

@keyframes counterRotate {
    from {
        transform: translateX(-50%) rotateX(-90deg) rotateY(0deg);
    }

    to {
        transform: translateX(-50%) rotateX(-90deg) rotateY(-360deg);
    }
}

/* Distinct node colors */
.node-html {
    border-color: #E34F26;
    color: #E34F26;
}

.node-css {
    border-color: #1572B6;
    color: #1572B6;
}

.node-js {
    border-color: #F7DF1E;
    color: #F7DF1E;
}

.node-react {
    border-color: #61DAFB;
    color: #61DAFB;
}

.node-node {
    border-color: #339933;
    color: #339933;
}

.node-python {
    border-color: #3776AB;
    color: #3776AB;
}

/* Floating Code Snippets */
.floating-snippet {
    position: absolute;
    background: rgba(11, 13, 23, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 18px;
    backdrop-filter: blur(10px);
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 5;
}

.floating-snippet pre {
    margin: 0;
    color: #e2e8f0;
}

.floating-snippet .keyword {
    color: #c678dd;
}

.floating-snippet .function {
    color: #61afef;
}

.floating-snippet .string {
    color: #98c379;
}

.floating-snippet .class-name {
    color: #e5c07b;
}

.snippet-1 {
    top: 50px;
    right: -20px;
    transform: rotate(5deg);
    animation: float1 5s ease-in-out infinite alternate;
}

.snippet-2 {
    bottom: 80px;
    left: -20px;
    transform: rotate(-5deg);
    animation: float2 6s ease-in-out infinite alternate;
}

@keyframes float1 {
    0% {
        transform: translateY(0) rotate(5deg);
    }

    100% {
        transform: translateY(-15px) rotate(8deg);
    }
}

@keyframes float2 {
    0% {
        transform: translateY(0) rotate(-5deg);
    }

    100% {
        transform: translateY(15px) rotate(-8deg);
    }
}

.indented {
    margin-left: 20px;
}

@keyframes floatUpDown {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Glow Effects */
.background-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
}

.orb-1 {
    top: -200px;
    right: -100px;
    background: rgba(99, 102, 241, 0.3);
}

.orb-2 {
    bottom: -100px;
    left: -200px;
    background: rgba(236, 72, 153, 0.2);
}

#matrix-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* Below glow orbs and text */
    opacity: 0.8;
    /* Higher opacity to be visible over black background */
    pointer-events: none;
}

.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.section-text {
    text-align: center;
    color: var(--text-secondary);
}

.about {
    position: relative;
    overflow: hidden;
}

.about-content {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
}

.about-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.5;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
    /* Symmetrical top alignment */
    width: 100%;
}

/* Code Editor Mockup for About Section */
.code-editor-mockup {
    background: #1e1e1e;
    /* Standard VSCode Dark BG */
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    text-align: left;
    font-family: 'Fira Code', 'Courier New', Courier, monospace;
}

.editor-header {
    background: #2d2d2d;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.editor-header .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.editor-header .dot.red {
    background: #ff5f56;
}

.editor-header .dot.yellow {
    background: #ffbd2e;
}

.editor-header .dot.green {
    background: #27c93f;
}

.editor-header .filename {
    margin-left: auto;
    margin-right: auto;
    color: #858585;
    font-size: 0.85rem;
    font-family: inherit;
}

.editor-body {
    padding: 20px;
    overflow-x: auto;
    max-width: 100%;
}

.editor-body pre {
    margin: 0;
    white-space: pre;
    word-wrap: normal;
    overflow-x: auto;
}

.editor-body code {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #abb2bf;
    /* Default text color */
}

/* Python Syntax Highlighting */
.language-python .keyword {
    color: #c678dd;
}

/* Purple */
.language-python .class-name {
    color: #e5c07b;
}

/* Yellow */
.language-python .function {
    color: #61afef;
}

/* Blue */
.language-python .variable {
    color: #e06c75;
}

/* Red */
.language-python .string {
    color: #98c379;
}

/* Green */
.language-python .comment {
    color: #5c6370;
    font-style: italic;
}

/* Gray */
.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.stat-box {
    background: rgba(11, 13, 23, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: clamp(0.8rem, 3vw, 1.2rem);
    border-radius: 12px;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-box:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.stat-number {
    font-size: clamp(1.1rem, 4vw, 1.5rem);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    background-clip: text;
    /* Standard compatibility fix */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Development Culture Section */
.culture-section {
    width: 100%;
    margin-top: 2rem;
}

.culture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.culture-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    position: relative;
    overflow: hidden;
}

.culture-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.04);
}

.culture-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    position: relative;
    transition: all 0.4s ease;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.culture-card:hover .culture-icon-wrapper {
    transform: scale(1.1);
}

/* Neon Variants */
.neon-indigo {
    color: #818cf8;
}

.culture-card:hover .neon-indigo {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.4);
}

.neon-pink {
    color: #f472b6;
}

.culture-card:hover .neon-pink {
    background: rgba(236, 72, 153, 0.15);
    border-color: rgba(236, 72, 153, 0.5);
    box-shadow: 0 0 25px rgba(236, 72, 153, 0.4);
}

.neon-emerald {
    color: #34d399;
}

.culture-card:hover .neon-emerald {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.4);
}

.culture-item-title {
    font-size: 1.3rem;
    color: var(--text-primary);
    font-weight: 700;
}

.culture-item-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Services Section */
.services {
    background: radial-gradient(circle at right bottom, rgba(99, 102, 241, 0.05), transparent 40%), radial-gradient(circle at left top, rgba(236, 72, 153, 0.05), transparent 40%);
}

.section-header {
    margin-bottom: 4rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
    max-width: 700px;
}

/* Service Card Specific Themes */
:root {
    --mobile-color: #6366f1;
    /* Indigo */
    --web-color: #10b981;
    /* Emerald */
    --design-color: #ec4899;
    /* Pink */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    padding: clamp(1.5rem, 5vw, 3rem);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

.service-card>* {
    position: relative;
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-12px);
    background: rgba(255, 255, 255, 0.06);
}

.service-card:hover::before {
    opacity: 1;
}

/* Card Specific Themes (More Colorful) */
.mobile-service:hover {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 20px rgba(99, 102, 241, 0.1);
}

.mobile-service::before {
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.2), transparent 70%);
}

.mobile-service .service-icon {
    color: var(--mobile-color);
}

.mobile-service:hover .service-icon {
    background: var(--mobile-color);
    color: white;
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.5);
}

.mobile-service .tag {
    border-color: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    background: rgba(99, 102, 241, 0.05);
}

.mobile-service:hover .tag {
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(99, 102, 241, 0.15);
    color: white;
}

.web-service:hover {
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 20px rgba(16, 185, 129, 0.1);
}

.web-service::before {
    background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.2), transparent 70%);
}

.web-service .service-icon {
    color: var(--web-color);
}

.web-service:hover .service-icon {
    background: var(--web-color);
    color: white;
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.5);
}

.web-service .tag {
    border-color: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
    background: rgba(16, 185, 129, 0.05);
}

.web-service:hover .tag {
    border-color: rgba(16, 185, 129, 0.5);
    background: rgba(16, 185, 129, 0.15);
    color: white;
}

.design-service:hover {
    border-color: rgba(236, 72, 153, 0.4);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 20px rgba(236, 72, 153, 0.1);
}

.design-service::before {
    background: radial-gradient(circle at top right, rgba(236, 72, 153, 0.2), transparent 70%);
}

.design-service .service-icon {
    color: var(--design-color);
}

.design-service:hover .service-icon {
    background: var(--design-color);
    color: white;
    box-shadow: 0 0 25px rgba(236, 72, 153, 0.5);
}

.design-service .tag {
    border-color: rgba(236, 72, 153, 0.2);
    color: #f9a8d4;
    background: rgba(236, 72, 153, 0.05);
}

.design-service:hover .tag {
    border-color: rgba(236, 72, 153, 0.5);
    background: rgba(236, 72, 153, 0.15);
    color: white;
}

.service-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    transition: all 0.5s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    border-color: transparent;
}

.service-card-title {
    font-size: 1.5rem;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.service-card-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: auto;
}

.tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* Base syntax highlighting already exists for Python.   Adding universal colors so Swift and JS classes hook onto them. */
.keyword {
    color: #c678dd;
}

/* Purple */
.class-name {
    color: #e5c07b;
}

/* Yellow */
.function {
    color: #61afef;
}

/* Blue */
.variable {
    color: #e06c75;
}

/* Red */
.string {
    color: #98c379;
}

/* Green */
.comment {
    color: #5c6370;
    font-style: italic;
}

/* Gray */
/* Footer Section */
.footer {
    background: #06070a;
    /* Darker than background */
    padding: 5rem 0 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand .logo {
    display: inline-block;
    margin-bottom: 1rem;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 400px;
    line-height: 1.6;
}

.footer-heading {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.footer-email {
    display: inline-block;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    transition: var(--transition-fast);
}

.footer-email:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-icon:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

.store-badges {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.store-badge {
    display: block;
    height: 40px;
    transition: var(--transition-fast);
}

.store-badge img {
    height: 100%;
    width: auto;
}

.store-badge:hover {
    transform: translateY(-3px) scale(1.02);
    opacity: 0.9;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem 0;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

/* Multi-Page & Subpage Styling */
.subpage {
    background: var(--bg-color);
}

.subpage-header {
    padding: 10rem 0 5rem 0;
    text-align: center;
    background: radial-gradient(circle at top, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
}

.subpage-header h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
}

/* Services Preview on Home */
.services-mini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.service-mini-card {
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    padding: 1.5rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.service-mini-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.mini-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mini-icon.indigo {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}

.mini-icon.emerald {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.mini-icon.pink {
    background: rgba(236, 72, 153, 0.1);
    color: #ec4899;
}

/* Projects Preview on Home */
.projects-mini-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
}

.project-mini-card {
    height: 250px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--surface-border);
}

.project-mini-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-mini-card:hover img {
    transform: scale(1.05);
}

/* Services Detailed Items */
.services-detailed {
    display: flex;
    flex-direction: column;
    gap: 8rem;
    padding: 4rem 0;
}

.service-detail-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.service-detail-item.reverse {
    direction: ltr;
    /* Reset if RTL is inherited */
}

.service-detail-item.reverse .service-info {
    order: 2;
}

.service-category {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-info h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.service-info p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.icon-orb {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.icon-orb::before {
    content: '';
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    opacity: 0.15;
    z-index: -1;
    animation: pulseGlow 4s infinite;
}

.mobile-orb {
    color: #6366f1;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.web-orb {
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.design-orb {
    color: #ec4899;
    border: 1px solid rgba(236, 72, 153, 0.2);
}

/* Projects Detailed Page */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.project-image {
    height: 240px;
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11, 13, 23, 0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.project-cat {
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
}

.project-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

@keyframes pulseGlow {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.15;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.25;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .container {
        padding: 0 6%;
    }

    .hero-title {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem 0;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: rgba(11, 13, 23, 0.98);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        padding: 2rem;
        border-radius: 0;
        border: none;
        border-left: 1px solid var(--surface-border);
        transition: right var(--transition-smooth);
        z-index: 1000;
        backdrop-filter: blur(20px);
    }

    .nav-links.active {
        right: 0;
    }

    /* Hamburger Animation */
    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(9.5px) rotate(45deg);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-9.5px) rotate(-45deg);
    }

    .nav-actions {
        gap: 0.5rem;
    }

    .lang-switcher {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .hero-content {
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        overflow-x: hidden;
    }

    .about-content {
        padding: 0 1rem;
    }

    .code-editor-mockup {
        width: 100%;
        max-width: 100%;
        margin-bottom: 2rem;
        box-sizing: border-box;
        overflow: hidden;
        border-radius: 8px;
    }

    .editor-body {
        padding: 5px 10px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .editor-body pre {
        white-space: pre-wrap;
        word-break: break-all;
        font-size: 0.75rem;
    }

    .editor-body code {
        font-size: 0.75rem;
    }

    .stat-number {
        font-size: 1rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .founders-title {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }

    .founders-row {
        flex-direction: column;
        gap: 3rem;
        padding-bottom: 2rem;
        align-items: center;
    }

    .founder-card {
        width: 100%;
        box-sizing: border-box;
    }

    .speech-bubble {
        padding: 1rem;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        margin: 0;
        border-radius: 12px;
    }

    .speech-bubble p {
        font-size: 0.85rem;
        word-wrap: break-word;
        word-break: break-word;
        hyphens: auto;
    }

    .about-text-wrapper,
    .text-left {
        text-align: center !important;
    }

    .founders-chat {
        align-items: center;
    }

    .chat-bubble.left,
    .chat-bubble.right {
        align-self: center;
        max-width: 100%;
    }

    .service-card {
        padding: 1.5rem;
    }

    .service-card-title {
        font-size: 1.3rem;
    }

    .service-card-desc {
        font-size: 0.95rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .footer-desc {
        margin: 0 auto;
    }

    .social-links {
        justify-content: center;
    }

    .store-badges {
        justify-content: center;
    }
}

/* RTL (Right-to-Left) Support for Arabic */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .hero-content,
[dir="rtl"] .section-header,
[dir="rtl"] .about-text-wrapper,
[dir="rtl"] .footer-brand,
[dir="rtl"] .footer-links,
[dir="rtl"] .footer-contact {
    text-align: right;
}

/* Reversing the Navbar Logo & Links */
[dir="rtl"] .nav-container {
    flex-direction: row-reverse;
}

[dir="rtl"] .lang-switcher {
    margin-left: 0;
    margin-right: 1rem;
    padding-left: 0;
    padding-right: 1rem;
    border-left: none;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

/* Fixing Hero Layout for RTL */
[dir="rtl"] .hero-container {
    flex-direction: row-reverse;
}

/* Reversing margin/padding directions in specific grids */
[dir="rtl"] .about-stats,
[dir="rtl"] .founders-row {
    flex-direction: row-reverse;
}

/* Keeping Code Mockups LTR even in RTL to maintain logic/syntax formatting */
[dir="rtl"] .code-editor-mockup {
    direction: ltr;
    text-align: left;
}

/* Adjust store badges in Footer */
[dir="rtl"] .store-badges {
    justify-content: flex-end;
}

/* Center text globally if on mobile even in RTL */
@media (max-width: 768px) {

    [dir="rtl"] .hero-content,
    [dir="rtl"] .section-header,
    [dir="rtl"] .about-text-wrapper,
    [dir="rtl"] .footer-brand,
    [dir="rtl"] .footer-links,
    [dir="rtl"] .footer-contact {
        text-align: center;
    }

    [dir="rtl"] .store-badges,
    [dir="rtl"] .social-links {
        justify-content: center;
    }
}

/* --- Premium Services Redesign --- */
.services-premium-list {
    display: flex;
    flex-direction: column;
    gap: 10rem;
    padding: 6rem 0;
}

.premium-service-card {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 6rem;
    align-items: center;
    position: relative;
    padding: 4rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 40px;
    backdrop-filter: blur(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.premium-service-card.reverse {
    grid-template-columns: 0.8fr 1.2fr;
}

.premium-service-card.reverse .card-content {
    order: 2;
}

.premium-service-card::before {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: 40px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    pointer-events: none;
}

.premium-service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
}

/* Card Header & Content */
.service-tag {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2rem;
}

.indigo-theme .service-tag {
    background: rgba(99, 102, 241, 0.1);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.emerald-theme .service-tag {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.pink-theme .service-tag {
    background: rgba(236, 72, 153, 0.1);
    color: #f472b6;
    border: 1px solid rgba(236, 72, 153, 0.2);
}

.premium-service-card h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.service-desc {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

/* Feature List */
.service-features {
    list-style: none;
    margin-bottom: 3rem;
    padding: 0;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1.1rem;
}

.service-features li::before {
    content: '\2192';
    font-weight: 800;
    transition: transform 0.3s ease;
}

.indigo-theme li::before {
    color: #818cf8;
}

.emerald-theme li::before {
    color: #34d399;
}

.pink-theme li::before {
    color: #f472b6;
}

.premium-service-card:hover .service-features li::before {
    transform: translateX(5px);
}

/* Tech Stack Pills */
.tech-stack-mini {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.tech-pill {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Visual Container */
.card-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.glow-orb {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    z-index: -1;
    animation: rotateGlow 10s linear infinite;
}

.indigo-theme .glow-orb {
    background: #6366f1;
}

.emerald-theme .glow-orb {
    background: #10b981;
}

.pink-theme .glow-orb {
    background: #ec4899;
}

@keyframes rotateGlow {
    from {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.2);
    }

    to {
        transform: rotate(360deg) scale(1);
    }
}

@media (max-width: 1100px) {
    .services-premium-list {
        gap: 6rem;
    }

    .premium-service-card {
        grid-template-columns: 1fr;
        gap: 4rem;
        padding: 3rem 2rem;
        text-align: center;
        border-radius: 24px;
    }

    .premium-service-card.reverse .card-content {
        order: 1;
    }

    .card-visual {
        order: 2;
    }

    .service-features li {
        justify-content: center;
    }

    .tech-stack-mini {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .premium-service-card h2 {
        font-size: 1.8rem;
    }

    .service-desc {
        font-size: 1rem;
    }
}

/* ============================================   HERO CONTACT LINE   ============================================ */
.hero-contact-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 2rem;
    animation: fadeInUp 1s ease 0.6s forwards;
    opacity: 0;
}

.hero-contact-pulse {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
    animation: heroPulse 2s ease-in-out infinite;
}

@keyframes heroPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
    }

    60% {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.hero-contact-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.hero-contact-sep {
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.9rem;
}

.hero-contact-email {
    font-size: 0.9rem;
    font-weight: 600;
    color: transparent;
    background: linear-gradient(135deg, #a5b4fc, #f9a8d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    letter-spacing: 0.01em;
    position: relative;
    transition: opacity 0.2s ease;
}

.hero-contact-email::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0%;
    height: 1px;
    background: linear-gradient(90deg, #a5b4fc, #f9a8d4);
    transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-contact-email:hover::after {
    width: 100%;
}

.hero-contact-email:hover {
    opacity: 0.85;
}

.philosophy-section .section-title,
.philosophy-section .philosophy-intro {
    text-align: left;
}

.philosophy-intro {
    font-size: 1.1rem;
    line-height: 1.6;
}

.philosophy-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    background: transparent;
    padding: 0;
    border-radius: 0;
    border: none;
    transition: var(--transition-smooth);
}

.philosophy-number {
    font-family: monospace;
    font-weight: bold;
    font-size: 1.2rem;
    min-width: 50px;
    margin-top: 0.2rem;
}

.philosophy-item-title {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.philosophy-item-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .hero-contact-line {
        flex-wrap: wrap;
        gap: 6px;
    }

    .philosophy-section {
        margin-top: 1.5rem;
    }

    .philosophy-section .section-title,
    .philosophy-section .philosophy-intro {
        text-align: center;
        /* Center align title/intro on mobile */
    }

    .philosophy-list {
        margin-top: 2rem;
    }

    .philosophy-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        background: rgba(255, 255, 255, 0.02);
        padding: 1.5rem;
        border-radius: 16px;
        border: 1px solid rgba(255, 255, 255, 0.05);
        gap: 0.8rem;
    }

    .philosophy-item-title {
        font-size: 1.2rem;
    }

    .philosophy-item-desc {
        font-size: 0.95rem;
    }

    .philosophy-number {
        font-size: 1.5rem;
        min-width: auto;
        margin-top: 0;
    }
}