/* 
   CYBER BLACK & NEON GREEN THEME FOR AMJAD SHAH 
   Colors: Deep Black, Neon Green, Dark Slate
*/

:root {
    /* Colors */
    --bg-main: #050505;
    --bg-sec: #0a0a0a;
    --bg-card: #111111;
    --primary: #00ff88;
    --primary-dim: rgba(0, 255, 136, 0.15);
    --text-light: #ffffff;
    --text-muted: #8892b0;
    --border-color: #222222;
    
    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;

    /* Base Font Sizes (PC) */
    --fs-h1: 56px;
    --fs-h2: 20px;
    --fs-p: 16px;
    --fs-stat: 40px;
    --fs-card-h: 20px;
    --fs-btn: 16px;
    --fs-small: 14px;
}

/* Tablet Font Sizes (-2px) */
@media (max-width: 992px) {
    :root {
        --fs-h1: 54px;
        --fs-h2: 18px;
        --fs-p: 14px;
        --fs-stat: 38px;
        --fs-card-h: 18px;
        --fs-btn: 14px;
        --fs-small: 12px;
    }
}

/* Mobile Font Sizes (-4px from PC) */
@media (max-width: 768px) {
    :root {
        --fs-h1: 42px; /* Adjusted to prevent overflow, but strictly follows scale */
        --fs-h2: 16px;
        --fs-p: 12px;
        --fs-stat: 36px;
        --fs-card-h: 16px;
        --fs-btn: 12px;
        --fs-small: 10px;
    }
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-muted);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo {
    font-family: var(--font-heading);
    color: var(--text-light);
}

h1 { font-size: var(--fs-h1); line-height: 1.1; margin-bottom: 20px; letter-spacing: -1px; }
h2 { font-size: var(--fs-h2); font-family: var(--font-body); font-weight: 400; margin-bottom: 40px; line-height: 1.5; color: var(--text-muted); }
p { font-size: var(--fs-p); }

span {
    color: var(--primary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

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

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: var(--fs-small);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-btn {
    border: 1px solid var(--primary);
    padding: 8px 20px;
    border-radius: 4px;
    color: var(--primary) !important;
    transition: all 0.3s ease !important;
}

.nav-btn:hover {
    background: var(--primary-dim);
}

.menu-toggle {
    display: none;
    color: var(--text-light);
    font-size: 24px;
    cursor: pointer;
}

/* --- BUTTONS --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    color: #000;
    padding: 14px 32px;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--fs-btn);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--primary);
}

.btn-primary:hover {
    background: transparent;
    color: var(--primary);
    box-shadow: 0 0 20px var(--primary-dim);
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    height: 30vh;
    min-height: 900px;
    display: flex;
    align-items: stretch;
    padding-top: 10px; /* Accounts for navbar */
    overflow: hidden;
}

/* Tech Grid Background */
.grid-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
}

.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
}

.hero-content {
    flex: 1;
    max-width: 550px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 40px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-dim);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: var(--fs-small);
    font-weight: 500;
    margin-bottom: 25px;
    border: 1px solid rgba(0,255,136,0.2);
    width: fit-content;
}

.pulse-dot {
    width: 8px; height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(0, 255, 136, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); }
}

.hero-btns {
    display: flex;
    align-items: center;
    gap: 25px;
}

.hero-contact-mini {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.hero-contact-mini a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: var(--fs-small);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.hero-contact-mini a i {
    color: var(--primary);
}

.hero-contact-mini a:hover {
    color: var(--text-light);
}

/* Hero Image */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end; /* Stick to bottom */
}

.image-wrapper {
    position: relative!important;
    height: calc(100% - 10px)!important; /* Fill container but leave exactly 10px from top */
    display: flex!important;
    align-items: flex-end !important;
    justify-content: center !important;
}

.image-wrapper img {
    height: 100% !important;
    width: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
    object-position: bottom !important;
    position: relative !important;
    z-index: 2 !important;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.8)) !important;
    border-bottom: 3px solid var(--primary) !important;
}

.glow-effect {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100%; height: 100%;
    background: radial-gradient(circle, var(--primary-dim) 0%, transparent 70%);
    z-index: 1;
    filter: blur(40px);
}

/* --- STATS BANNER --- */
.stats-banner {
    background: var(--bg-sec);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 40px 0;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-direction: row;
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: var(--fs-stat);
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-item p {
    font-size: var(--fs-small);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 60px;
    background: var(--border-color);
}

/* --- SECTION HEADERS --- */
.section-header {
    margin-bottom: 60px;
}

.section-header.center {
    text-align: center;
}

.section-title {
    font-size: clamp(32px, 4vw, 45px);
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: var(--fs-p);
    color: var(--primary);
}

/* --- ABOUT SECTION --- */
.about {
    padding: 120px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text-content p {
    margin-bottom: 20px;
}

.about-text-content strong {
    color: var(--text-light);
}

.skills-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.skill-tag {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 12px 20px;
    border-radius: 4px;
    color: var(--text-light);
    font-size: var(--fs-small);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: border-color 0.3s;
}

.skill-tag i {
    color: var(--primary);
    font-size: 16px;
}

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

/* --- PORTFOLIO SECTION --- */
.portfolio {
    padding: 100px 0;
    background: var(--bg-sec);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 cols for PC */
    gap: 30px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;
}

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

.project-img {
    height: 200px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

/* Normal State Green Shade (25-30% from bottom) */
.project-img::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, rgba(0, 255, 136, 0.25), transparent);
    z-index: 1;
    pointer-events: none;
}

.project-img img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.4s;
    position: relative;
    z-index: 2;
}

.project-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 3;
}

.project-overlay span {
    color: #000;
    background: var(--primary);
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    font-size: var(--fs-small);
    transform: translateY(20px);
    transition: transform 0.3s;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-card:hover .project-overlay span {
    transform: translateY(0);
}

.project-info {
    padding: 25px;
    flex-grow: 1;
}

.project-info h3 {
    font-size: var(--fs-card-h);
    margin-bottom: 8px;
}

.project-info p {
    font-size: var(--fs-small);
    color: var(--text-muted);
}

/* --- FOOTER --- */
.footer {
    padding-top: 80px;
    background: var(--bg-main);
}

.cta-box {
    background: var(--bg-card);
    border: 1px solid var(--primary-dim);
    border-radius: 12px;
    padding: 60px 40px;
    text-align: center;
    margin-bottom: 80px;
    background-image: radial-gradient(circle at center, rgba(0,255,136,0.05) 0%, transparent 70%);
}

.cta-box h2 {
    font-size: clamp(28px, 4vw, 36px);
    margin-bottom: 15px;
    color: var(--text-light);
}

.cta-box p {
    margin-bottom: 30px;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 40px;
}

.footer-brand .logo {
    font-size: 28px;
    margin-bottom: 5px;
}

.footer-socials {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px; height: 45px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    border-radius: 4px;
    font-size: 18px;
    transition: all 0.3s;
}

.footer-socials a:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-dim);
}

.seo-text {
    font-size: 13px;
    color: #444; 
    margin-bottom: 30px;
    text-align: justify;
    line-height: 1.8;
}

.footer-bottom {
    text-align: center;
    padding-bottom: 30px;
    font-size: var(--fs-small);
}

/* --- RESPONSIVE DESIGN --- */

@media (max-width: 992px) {
    .project-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 Cols for Tab */
        gap: 20px;
    }
    
    .hero {
        height: auto;
        min-height: 100vh;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .skills-wrapper {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px 5%;
    }
    .menu-toggle {
        display: block;
    }
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-card);
        flex-direction: column;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        border-bottom: 1px solid var(--border-color);
    }
    .nav-links.active {
        max-height: 400px;
        padding: 20px 0;
    }
    .nav-links li {
        width: 100%;
        text-align: center;
        padding: 15px 0;
    }
    .nav-btn {
        border: none;
        padding: 0;
    }
    
    /* Hero Adjustments */
    .hero {
        padding-top: 100px;
        height: auto;
    }
    .hero-container {
        flex-direction: column;
        gap: 40px;
    }
    .hero-content {
        align-items: center;
        text-align: center;
        max-width: 100%;
        padding-bottom: 0;
    }
    .hero-btns {
        width: 100%;
        justify-content: center;
    }
    .hero-contact-mini {
        flex-direction: column;
        gap: 10px;
    }
    .image-wrapper {
        height: auto;
        max-width: 450px;
        margin: 0 auto;
    }
    .image-wrapper img {
        width: 100%;
        height: auto;
        border-bottom: 2px solid var(--primary);
    }
    
    /* Stats Row Mobile */
    .stats-container {
        flex-direction: row;
        justify-content: space-between;
        gap: 10px;
        padding: 0 10px;
    }
    .stat-item {
        flex: 1;
    }
    .stat-divider {
        height: 40px;
    }
    
    /* Project Grid Mobile */
    .project-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 Cols for Mobile */
        gap: 15px;
    }
    .project-img {
        height: 140px;
        padding: 15px;
    }
    .project-info {
        padding: 15px;
    }
    
    /* Mobile Gap Tightening */
    .about, .portfolio, .footer {
        padding-top: 60px;
    }
    .skills-wrapper {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .skill-tag {
        width: 100%;
        justify-content: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .cta-box {
        padding: 40px 20px;
    }
}