/* ==========================================================================
   NEW LOOK — Dark, engineered, recruiter-friendly
   Layered on top of portfolio.css. Overrides variables and re-skins sections.
   ========================================================================== */

:root {
    --bg: #07070e;
    --bg-elevated: #0f0f1a;
    --bg-card: #13131f;
    --bg-card-hover: #181826;
    --bg-section: #0a0a12;

    --border: rgba(255, 255, 255, 0.07);
    --border-strong: rgba(255, 255, 255, 0.13);

    --text: #e8eaf3;
    --text-muted: #9098b0;
    --text-dim: #5b6280;

    --primary: #00d4aa;
    --primary-soft: rgba(0, 212, 170, 0.12);
    --accent: #7c5cff;
    --accent-soft: rgba(124, 92, 255, 0.12);

    --grad: linear-gradient(135deg, #00d4aa 0%, #7c5cff 100%);
    --grad-soft: linear-gradient(135deg, rgba(0, 212, 170, 0.15), rgba(124, 92, 255, 0.15));

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 40px 80px -20px rgba(0, 0, 0, 0.7);

    --primary-color: var(--primary);
    --bg-color: var(--bg);
    --bg-card: var(--bg-card);
    --bg-section: var(--bg-section);
    --bg-dark: var(--bg);
    --border-color: var(--border);
    --text-color: var(--text);
    --text-light: var(--text-muted);
    --text-white: var(--text);
    --shadow-light: var(--shadow-sm);
    --shadow-medium: var(--shadow-md);
    --shadow-large: var(--shadow-lg);
    --gradient-primary: var(--grad);
    --gradient-dark: linear-gradient(180deg, #0a0a14 0%, #13131f 100%);
}

html, body {
    background: var(--bg);
    color: var(--text);
}

body {
    font-feature-settings: "ss01", "cv11";
}

::selection {
    background: rgba(0, 212, 170, 0.25);
    color: var(--text);
}

/* Removed: background gradient animation for a cleaner look */

main {
    position: relative;
    z-index: 1;
}

/* ===== SECTION BASE ===== */
.section,
.section-dark,
.about,
.services,
.portfolio,
.highlights,
.mobile-apps,
.contact,
.hero {
    background: var(--bg) !important;
    position: relative;
}

.section-title {
    color: var(--text) !important;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-subtitle {
    color: var(--primary) !important;
    font-family: var(--font-mono);
    font-size: 0.78rem !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.section-subtitle::before {
    content: "//";
    color: var(--accent);
}

/* ===== NAVIGATION ===== */
.navbar {
    background: rgba(7, 7, 14, 0.7) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border) !important;
    box-shadow: none !important;
}

.navbar.scrolled {
    background: rgba(7, 7, 14, 0.85) !important;
    box-shadow: 0 1px 0 var(--border) !important;
}

.logo-text {
    color: var(--text) !important;
    font-family: var(--font-mono);
    font-weight: 600;
}

.nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    font-size: 0.92rem;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text) !important;
}

.nav-link::after {
    background: var(--primary) !important;
}

.hamburger .bar {
    background: var(--text) !important;
}

/* ===== BUTTONS ===== */
.btn {
    font-family: var(--font-primary);
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--primary) !important;
    color: #07070e !important;
    border: 1px solid var(--primary) !important;
}

.btn-primary:hover {
    background: #11e6bb !important;
    border-color: #11e6bb !important;
    box-shadow: 0 10px 30px -10px var(--primary);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent !important;
    color: var(--text) !important;
    border: 1px solid var(--border-strong) !important;
}

.btn-outline:hover {
    background: var(--bg-card) !important;
    border-color: var(--primary) !important;
    color: var(--primary) !important;
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    padding-top: 100px;
    overflow: hidden;
}

.hero-background,
.floating-shapes {
    display: none !important;
}

.hero-container {
    max-width: 1200px;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: var(--primary-soft);
    border: 1px solid rgba(0, 212, 170, 0.25);
    color: var(--primary);
    font-size: 0.78rem;
    font-family: var(--font-mono);
    font-weight: 500;
    letter-spacing: 0.3px;
    margin-bottom: 1.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.25);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

.hero-greeting {
    display: none;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem) !important;
    font-weight: 700 !important;
    letter-spacing: -0.035em;
    line-height: 1.02;
    margin-bottom: 1rem;
    color: var(--text);
}

.hero h1 .title-line {
    display: inline;
    color: var(--text);
}

.hero-headline-accent {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-positioning {
    font-family: var(--font-primary);
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 560px;
    margin-bottom: 1.5rem;
}

.hero-positioning strong {
    color: var(--text);
    font-weight: 600;
}

.hero-subtitle,
.hero-description {
    display: none !important;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 2rem 0;
    padding: 1.25rem 1.35rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    max-width: 620px;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.hero-stat-value {
    font-family: var(--font-mono);
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.02em;
}

.hero-stat-value .accent {
    color: var(--primary);
}

.hero-stat-label {
    font-size: 0.72rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
    align-items: center;
}

.hero-buttons .btn {
    padding: 0.85rem 1.4rem;
    font-size: 0.92rem;
}

.hero-social {
    display: flex;
    gap: 0.5rem;
    margin-left: 0.5rem;
}

.hero-social-link {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.05rem;
    transition: all 0.2s ease;
}

.hero-social-link:hover {
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.hero-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-portrait {
    position: relative;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 4 / 5;
}

.portrait-frame {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}

.portrait-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
}

/* Hide any legacy hero image elements from the old markup */
.image-container,
.profile-section,
.profile-image,
.code-overlay {
    all: unset;
    display: none !important;
}

.scroll-indicator {
    display: none !important;
}

/* ===== ABOUT ===== */
.about-content.about-content--single {
    display: block !important;
    max-width: 780px;
    margin: 0 auto;
}

.about-content.about-content--single .about-text {
    width: 100%;
}

.about-highlights {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem !important;
    margin-top: 2rem !important;
}

@media (max-width: 768px) {
    .about-highlights {
        grid-template-columns: 1fr;
    }
}

.about-intro h3 {
    color: var(--text) !important;
    font-size: 1.65rem !important;
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.25 !important;
    margin-bottom: 1rem !important;
}

.about-intro p {
    color: var(--text-muted) !important;
    line-height: 1.7 !important;
    font-size: 1rem;
}

.about-highlights {
    gap: 1rem !important;
    margin-top: 2rem !important;
}

.highlight-item {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: 12px !important;
    padding: 1.25rem !important;
    transition: all 0.25s ease !important;
    box-shadow: none !important;
}

.highlight-item:hover {
    background: var(--bg-card-hover) !important;
    border-color: var(--border-strong) !important;
    transform: translateY(-3px) !important;
    box-shadow: none !important;
}

.about-highlights .highlight-item .highlight-icon {
    width: 42px !important;
    height: 42px !important;
    background: var(--primary-soft) !important;
    color: var(--primary) !important;
    border-radius: 10px !important;
    font-size: 1rem !important;
    flex-shrink: 0;
}

.highlight-item .highlight-content h4 {
    color: var(--text) !important;
    font-size: 1rem !important;
    margin-bottom: 0.25rem !important;
    font-weight: 600;
}

.highlight-item .highlight-content p {
    color: var(--text-muted) !important;
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
}

/* Code block */
.code-block {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-strong) !important;
    border-radius: 14px !important;
    box-shadow: var(--shadow-lg) !important;
    overflow: hidden;
}

.code-header {
    background: var(--bg-elevated) !important;
    border-bottom: 1px solid var(--border) !important;
    padding: 0.75rem 1rem !important;
}

.code-title {
    color: var(--text-muted) !important;
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.code-content {
    background: var(--bg-card) !important;
    padding: 1.25rem 1.35rem !important;
    font-size: 0.8rem;
}

.code-content pre {
    color: var(--text) !important;
}

.code-content .keyword { color: #ff79c6 !important; }
.code-content .variable { color: #8be9fd !important; }
.code-content .property { color: #50fa7b !important; }
.code-content .string { color: #f1fa8c !important; }
.code-content .number { color: #bd93f9 !important; }
.code-content .template-string { color: #f1fa8c !important; }

/* ===== SERVICES ===== */
.services-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.25rem !important;
    max-width: 1100px;
    margin: 0 auto !important;
}

@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr !important;
    }
}

.service-card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: 14px !important;
    padding: 1.75rem !important;
    box-shadow: none !important;
    transition: all 0.3s ease !important;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--grad);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    background: var(--bg-card-hover) !important;
    border-color: var(--border-strong) !important;
    transform: translateY(-5px) !important;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card .service-icon {
    width: 52px !important;
    height: 52px !important;
    background: var(--primary-soft) !important;
    color: var(--primary) !important;
    border-radius: 12px !important;
    font-size: 1.35rem !important;
    margin-bottom: 1.25rem !important;
}

.service-card h3 {
    color: var(--text) !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    margin-bottom: 0.6rem !important;
    letter-spacing: -0.01em;
}

.service-card p {
    color: var(--text-muted) !important;
    font-size: 0.92rem !important;
    line-height: 1.65 !important;
}

/* ===== TECH STACK ===== */
.tech-stack {
    padding: 100px 0;
    background: var(--bg) !important;
}

.tech-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    max-width: 1100px;
    margin: 0 auto;
}

.tech-group {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.tech-group:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-strong);
}

.tech-group-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.tech-group-header i {
    color: var(--primary);
    font-size: 1rem;
}

.tech-group-header h3 {
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: var(--font-mono);
    margin: 0;
}

.tech-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.tech-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.82rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.tech-item:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--primary-soft);
}

/* ===== PORTFOLIO ===== */
.portfolio-filter {
    gap: 0.5rem !important;
    margin-bottom: 2.5rem !important;
}

.filter-btn {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-muted) !important;
    padding: 0.55rem 1.05rem !important;
    border-radius: 999px !important;
    font-size: 0.82rem !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-soft) !important;
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.portfolio-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
    gap: 1.25rem !important;
}

.project-card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: 14px !important;
    box-shadow: none !important;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    background: var(--bg-card-hover) !important;
    border-color: var(--border-strong) !important;
    transform: translateY(-5px) !important;
}

.project-image {
    background: var(--bg-elevated) !important;
    padding: 1.25rem !important;
    border-bottom: 1px solid var(--border);
    min-height: auto !important;
    position: relative;
    height: auto !important;
}

.project-tech {
    position: static !important;
    display: flex !important;
    flex-wrap: wrap;
    gap: 0.4rem !important;
    opacity: 1 !important;
    transform: none !important;
    background: transparent !important;
    padding: 0 !important;
}

.project-tech .tech-tag {
    background: var(--bg-card) !important;
    color: var(--primary) !important;
    border: 1px solid var(--border-strong) !important;
    padding: 0.3rem 0.65rem !important;
    border-radius: 6px !important;
    font-size: 0.72rem !important;
    font-weight: 500 !important;
    font-family: var(--font-mono);
}

.project-overlay {
    display: none !important;
}

.project-content {
    padding: 1.25rem 1.35rem 1.5rem !important;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
}

.project-content h3 {
    color: var(--text) !important;
    font-size: 1.15rem !important;
    font-weight: 600 !important;
    margin: 0 !important;
    letter-spacing: -0.01em;
}

.project-content p {
    color: var(--text-muted) !important;
    font-size: 0.88rem !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

.project-features {
    display: flex !important;
    flex-wrap: wrap;
    gap: 0.4rem !important;
    margin-top: auto;
    padding-top: 0.5rem;
}

.project-features span {
    background: transparent !important;
    color: var(--text-dim) !important;
    padding: 0 !important;
    font-size: 0.75rem !important;
    font-family: var(--font-mono);
    border: none !important;
}

.project-features span::before {
    content: "→ ";
    color: var(--primary);
}

/* ===== HIGHLIGHTS ===== */
.highlight-card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    box-shadow: none !important;
}

.highlight-card:hover {
    background: var(--bg-card-hover) !important;
    border-color: var(--border-strong) !important;
    box-shadow: none !important;
}

.highlight-card h3 {
    color: var(--text) !important;
}

.highlight-card p {
    color: var(--text-muted) !important;
}

.highlight-footer {
    border-top-color: var(--border) !important;
}

.highlight-domain {
    color: var(--text-dim) !important;
}

.highlight-arrow {
    background: var(--bg-elevated) !important;
    color: var(--primary) !important;
}

.highlight-card:hover .highlight-arrow {
    background: var(--grad) !important;
    color: #07070e !important;
}

/* ===== MOBILE APPS ===== */
.mobile-app-title {
    color: var(--text) !important;
}

.mobile-app-description {
    color: var(--text-muted) !important;
}

.meta-label {
    color: var(--text-dim) !important;
}

.meta-tag {
    background: var(--bg-elevated) !important;
    border-color: var(--border) !important;
    color: var(--text-muted) !important;
}

.meta-tag.tech-tag {
    background: var(--primary-soft) !important;
    border-color: rgba(0, 212, 170, 0.25) !important;
    color: var(--primary) !important;
}

.phone-frame {
    background: #06060c !important;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.05) inset,
        0 0 0 2px #181826,
        0 25px 50px -12px rgba(0, 0, 0, 0.6) !important;
}

.phone-notch {
    background: #06060c !important;
}

.carousel-hint {
    color: var(--text-dim) !important;
}

/* ===== CONTACT ===== */
.contact-intro h3 {
    color: var(--text) !important;
    font-size: 1.65rem !important;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.contact-intro p {
    color: var(--text-muted) !important;
    line-height: 1.7 !important;
}

.contact-method {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.1rem 1.25rem;
    transition: all 0.25s ease;
}

.contact-method:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-strong);
}

.method-icon {
    background: var(--primary-soft) !important;
    color: var(--primary) !important;
    width: 42px !important;
    height: 42px !important;
    font-size: 1rem !important;
}

.method-content h4 {
    color: var(--text) !important;
    font-size: 0.95rem !important;
}

.method-content a,
.method-content span {
    color: var(--text-muted) !important;
    font-size: 0.9rem !important;
}

.method-content a:hover {
    color: var(--primary) !important;
}

.social-links {
    gap: 0.75rem !important;
    margin-top: 1.75rem;
}

.social-link {
    width: 46px !important;
    height: 46px !important;
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: 10px !important;
    color: var(--text-muted) !important;
    transition: all 0.2s ease !important;
}

.social-link:hover {
    background: var(--primary-soft) !important;
    border-color: var(--primary) !important;
    color: var(--primary) !important;
    transform: translateY(-3px) !important;
}

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
}

.form-group input,
.form-group textarea {
    background: var(--bg-elevated) !important;
    border: 1px solid var(--border) !important;
    color: var(--text) !important;
    border-radius: 10px !important;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px var(--primary-soft) !important;
}

.form-group label {
    color: var(--text-dim) !important;
}

.alert-success {
    background: var(--primary-soft) !important;
    border: 1px solid rgba(0, 212, 170, 0.3) !important;
    color: var(--primary) !important;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg) !important;
    border-top: 1px solid var(--border);
    padding: 2.5rem 0 2rem !important;
}

.footer .logo-text {
    color: var(--text) !important;
}

.footer-left p {
    color: var(--text-muted) !important;
    font-size: 0.9rem;
}

.footer-links a {
    color: var(--text-muted) !important;
    font-size: 0.88rem;
}

.footer-links a:hover {
    color: var(--primary) !important;
}

.footer-bottom {
    border-top: 1px solid var(--border) !important;
}

.footer-bottom p {
    color: var(--text-dim) !important;
    font-size: 0.82rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-positioning {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        margin-left: auto;
        margin-right: auto;
    }

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

    .hero-social {
        margin-left: 0;
    }

    .profile-image {
        width: 280px;
        height: 340px;
    }

    .code-overlay {
        position: relative;
        right: 0;
        bottom: 0;
        margin-top: 1rem;
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .hero-stats {
        padding: 1rem;
    }

    .hero-stat-value {
        font-size: 1.25rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-social {
        justify-content: center;
        margin: 0.5rem 0 0;
    }
}
