﻿/* /* =========================================================================
   DEEP JADWANI — PROFESSIONAL SOFTWARE ENGINEER PORTFOLIO
   Stable · Clean · Premium · Multi-page Safe
   ========================================================================= */

/* ==============================
   COLOR SYSTEM (PRO UI PALETTE)
   ============================== */
:root {
    --bg: #F5F7FB;
    --surface: #FFFFFF;
    --surface-soft: #F8FAFF;

    --text: #0F172A;
    --muted: #5B6476;

    --primary: #0EA5A4;
    --primary-600: #0C8F88;
    --primary-100: #DFF8F7;

    --accent: #6366F1;
    --accent-soft: #EEF2FF;

    --border: #E4EAF4;

    --radius: 14px;
    --container: 1150px;

    --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.12);
    --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.08);
    --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.05);

    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, Helvetica, Arial, sans-serif;

    --ease: cubic-bezier(.2, .9, .3, 1);
}

/* ==============================
   RESET
   ============================== */
* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

/* ==============================
   LAYOUT HELPERS
   ============================== */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 96px 0;
}

.section-soft {
    background: linear-gradient(180deg,
            var(--surface-soft),
            var(--surface));
}

.center {
    text-align: center;
}

/* ==============================
   PROFESSIONAL NAVBAR (FINAL)
   ============================== */

.navbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 500;
    backdrop-filter: blur(6px);
}

/* Container */
.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    position: relative;
    /* REQUIRED */
}

/* Remove underline */
.navbar a {
    text-decoration: none;
}

/* Brand */
.navbar-brand {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.2px;
    color: var(--primary);
    transition: color 0.2s ease;
}

.navbar-brand:hover {
    color: var(--primary-600);
}

/* Nav links (desktop) */
.navbar-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Links */
.nav-link {
    position: relative;
    font-size: 15px;
    font-weight: 600;
    color: var(--muted);
    padding: 8px 14px;
    border-radius: 10px;
    transition: color .2s ease, background .2s ease;
}

.nav-link:hover {
    color: var(--primary);
    background: var(--primary-100);
}

.nav-link.active {
    color: var(--primary);
    background: var(--primary-100);
    font-weight: 700;
}

/* Subtle underline */
.nav-link::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 6px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    opacity: 0;
    transform: scaleX(0);
    transition: transform .25s ease, opacity .25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    opacity: 1;
    transform: scaleX(1);
}

/* ==============================
   MOBILE NAVBAR
   ============================== */

/* Hamburger button */
.nav-toggle {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
    position: relative;
    z-index: 1001;
}

/* Mobile behavior */
@media (max-width: 768px) {

    .nav-toggle {
        display: block;
    }

    .navbar-nav {
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 12px 0;
        z-index: 1000;

        display: none;
    }

    .navbar-nav.active {
        display: flex;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 14px;
        border-radius: 0;
    }

    .nav-link::after {
        display: none;
    }
}



/* ==============================
   TYPOGRAPHY
   ============================== */
.page-title {
    font-size: 40px;
    font-weight: 800;
}

.subtitle {
    color: var(--muted);
    max-width: 640px;
    margin: 12px auto 40px;
}

/* ==============================
   HERO (INDEX)
   ============================== */
.home-hero {
    background:
        radial-gradient(900px 400px at 85% 15%, var(--accent-soft), transparent),
        linear-gradient(180deg, var(--primary-100), var(--surface));
}

.hero-grid {
    background: var(--surface);
    border-radius: 22px;
    box-shadow: var(--shadow-lg);
    padding: 56px;
    display: flex;
    align-items: center;
    gap: 56px;
}

.hero-left {
    flex: 1;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
}

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

.hero-sub {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-600);
    margin: 16px 0;
}

.hero-text {
    color: var(--muted);
    max-width: 680px;
}

.hero-actions {
    margin-top: 28px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* ==============================
   HERO IMAGE FLOAT ANIMATION
   ============================== */
.hero-image {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid var(--surface);
    box-shadow: var(--shadow-md);

    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }

    100% {
        transform: translateY(0);
    }
}


/* ==============================
   BUTTONS
   ============================== */
.btn {
    padding: 12px 22px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    transition: all .2s var(--ease);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 12px 30px rgba(14, 165, 164, 0.35);
}

.btn-primary:hover {
    background: var(--primary-600);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary-100);
}

/* ==============================
   ABOUT PAGE (PROFESSIONAL FINAL)
   Text LEFT · Image RIGHT
   ============================== */

.about-section {
    padding-top: 50px;
    padding-bottom: 96px;
}

/* ---------- Header ---------- */
.about-header {
    text-align: center;
    margin-bottom: 10px;
}

.about-header .page-title {
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.about-header .subtitle {
    font-size: 16px;
    color: var(--muted);
    margin-top: 12px;
}

/* ---------- Main Layout ---------- */
.about-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    /* 🔥 KEY: premium spacing */
}

/* ---------- Left Content ---------- */
.about-content {
    flex: 1;
    max-width: 640px;
}

.about-content .intro-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 18px;
}

.about-content .intro-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--muted);
    margin-bottom: 18px;
}

/* ---------- Skills ---------- */
.skill-list {
    list-style: none;
    padding: 0;
    margin-top: 28px;
}

.skill-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 14px;
    color: var(--text);
}

.skill-list li::before {
    content: "";
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ---------- Right Image ---------- */
.about-photo {
    flex: 0 0 340px;
    display: flex;
    justify-content: center;
}

.profile-photo {
    width: 300px;
    height: auto;
    border-radius: 22px;
    object-fit: cover;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.15);
}

/* ==============================
   RESPONSIVE (ABOUT)
   ============================== */
@media (max-width: 900px) {
    .about-grid {
        flex-direction: column-reverse;
        gap: 48px;
        text-align: center;
    }

    .about-content {
        max-width: 100%;
    }

    .skill-list {
        display: inline-block;
        text-align: left;
    }
}


/* ==============================
   CARDS (SUMMARY / WORK / PROJECTS)
   ============================== */
.about-cards,
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.about-card,
.project-card {
    background: var(--surface);
    padding: 24px;
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}

.about-card:hover,
.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}


/* ==============================
   CONTACT (MODERN SOCIAL STYLE)
   ============================== */

.contact-wrap {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
}

/* Left block — text area */
.contact-left {
    flex: 1;
}

/* Hide old form area */
.contact-right {
    display: none;
}

/* -------- Social Buttons -------- */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 22px;
}

/* Each social button */
.social-btn {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 14px 18px;
    border-radius: 14px;

    background: var(--surface);
    box-shadow: var(--shadow-sm);

    color: var(--text);
    text-decoration: none;
    font-weight: 700;

    transition:
        transform .25s var(--ease),
        box-shadow .25s var(--ease),
        background .25s;
}

/* Hover effect */
.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    background: var(--primary-100);
}

/* Remove generic underline styling */
.contact-section a {
    color: var(--text);
    text-decoration: none;
}

.contact-section a:hover {
    color: var(--primary);
}


/* ---------- ICON STYLING ---------- */
.icon {
    width: 22px;
    height: 22px;
    margin-right: 10px;
    flex-shrink: 0;
}


/* ---------- Mobile Friendly ---------- */
@media (max-width: 768px) {

    .contact-wrap {
        flex-direction: column;
        text-align: center;
        gap: 28px;
    }

    .social-links {
        align-items: center;
    }

    .social-btn {
        width: 100%;
        max-width: 420px;
        justify-content: center;
    }
}


/* ==============================
   FOOTER (COMPACT · PREMIUM)
================================ */
.site-footer {
    background: var(--surface);
    color: var(--muted);
    padding: 20px 0; /* ↓ reduced */
    border-top: 1px solid var(--border);
    font-family: var(--font-sans);
}

/* Accent line (thinner & tighter) */
.footer-line {
    height: 1.5px;
    background: linear-gradient(
        to right,
        var(--primary),
        var(--accent)
    );
    margin-bottom: 14px; /* ↓ reduced */
}

/* Layout */
.footer-content {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px; /* ↓ reduced */
}

/* Left text */
.footer-left p {
    margin: 0;
    line-height: 1.4;
    font-size: 14px; /* ↓ slightly smaller */
}

.footer-left strong {
    color: var(--text);
    font-weight: 700;
}

.footer-role {
    font-size: 12px; /* ↓ reduced */
    color: var(--muted);
    margin-top: 2px;
}

/* Right links */
.footer-right a {
    color: var(--muted);
    text-decoration: none;
    font-size: 13px; /* ↓ reduced */
    font-weight: 600;
    margin-left: 14px; /* ↓ reduced */
    position: relative;
    transition:
        color .2s ease,
        transform .2s var(--ease);
}

/* Separator */
.footer-right a:not(:last-child)::after {
    content: "•";
    margin-left: 14px;
    color: var(--border);
}

/* Hover underline */
.footer-right a::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px; /* tighter */
    width: 0;
    height: 1.5px;
    background: var(--primary);
    border-radius: 2px;
    transition: width .25s var(--ease);
}

.footer-right a:hover {
    color: var(--primary);
    transform: translateY(-1px);
}

.footer-right a:hover::before {
    width: 100%;
}

/* ==============================
   MOBILE
================================ */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 10px; /* ↓ tighter */
    }

    .footer-right a {
        margin: 0 8px;
    }

    .footer-right a:not(:last-child)::after {
        margin-left: 8px;
    }
}


/* ==============================
   ANIMATIONS
   ============================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(14px);
    animation: fadeUp .7s ease forwards;
}

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

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

    .hero-grid,
    .about-grid,
    .contact-wrap {
        flex-direction: column;
        text-align: center;
    }

    .hero-image-wrap {
        margin-top: 24px;
    }
}


/* =========================================================================
   MOBILE RESPONSIVE PATCH (NON-DESTRUCTIVE)
   ========================================================================= */

/* ---------- Tablets & small laptops ---------- */
@media (max-width: 1024px) {
    .hero-grid {
        gap: 40px;
        padding: 44px;
    }

    .about-grid {
        gap: 56px;
    }
}

/* ---------- Mobile layout ---------- */
@media (max-width: 768px) {

    /* Global section spacing */
    .section {
        padding: 64px 0;
    }

    /* HERO */
    .hero-grid {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
    }

    .hero-title {
        font-size: 34px;
        line-height: 1.2;
    }

    .hero-sub {
        font-size: 17px;
    }

    .hero-text {
        font-size: 15px;
    }

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

    .hero-image {
        width: 180px;
        height: 180px;
    }

    /* ABOUT */
    .about-grid {
        flex-direction: column-reverse;
        text-align: center;
        gap: 48px;
    }

    .about-content {
        max-width: 100%;
    }

    .intro-title {
        font-size: 24px;
    }

    .intro-text {
        font-size: 15px;
        line-height: 1.7;
    }

    .profile-photo {
        width: 240px;
    }

    /* CARDS */
    .about-cards,
    .project-grid {
        grid-template-columns: 1fr;
    }

    .about-card,
    .project-card {
        padding: 20px;
    }

    /* CONTACT */
    .contact-wrap {
        flex-direction: column;
        text-align: center;
        gap: 28px;
    }

    .social-links {
        align-items: center;
    }

    .social-btn {
        width: 100%;
        max-width: 420px;
    }
}

/* ---------- Small phones ---------- */
@media (max-width: 480px) {
    .page-title {
        font-size: 32px;
    }

    .subtitle {
        font-size: 14px;
    }
}


/* ==============================
   NAVBAR DESKTOP LOCK (FINAL FIX) patch
   ============================== */
@media (min-width: 769px) {
    .nav-toggle {
        display: none !important;
    }

    .navbar-nav {
        display: flex !important;
        position: static !important;
    }
}