/* 
    Muhammad Saad Inayat - Midnight Executive Theme
    Colors: Midnight Black (#0A0A0B), Slate Grey (#1A1B1E), Radiant Gold (#D4AF37)
    Professional, Minimalist, High-End Portfolio
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-midnight: #0A0A0B;
    --bg-slate: #1A1B1E;
    --accent-gold: #D4AF37;
    --accent-gold-soft: rgba(212, 175, 55, 0.15);
    --text-white: #F8F9FA;
    --text-gray: #A0A0A5;
    --glass-border: rgba(255, 255, 255, 0.08);
    --transition-base: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --nav-height: 80px;
    --shadow-soft: 0 10px 30px -10px rgba(0,0,0,0.5);
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-midnight);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .outfit {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.5px;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-midnight); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-gold); }

/* Layout & Containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

.section-padding {
    padding: 100px 0;
}

/* Typography Helpers */
.text-gold { color: var(--accent-gold); }
.text-dim { color: var(--text-gray); }
.text-center { text-align: center; }

.section-title {
    font-size: clamp(32px, 5vw, 42px);
    font-weight: 700;
    margin-bottom: 60px;
    text-align: center;
    position: relative;
    color: var(--text-white);
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background: transparent;
    z-index: 1000;
    transition: var(--transition-base);
}

header.scrolled {
    height: 70px;
    background: rgba(10, 10, 11, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-white);
    text-decoration: none;
}

.logo span { color: var(--accent-gold); }

.nav-links {
    display: flex;
    gap: 35px;
    list-style: none;
}

.nav-links li a {
    text-decoration: none;
    color: var(--text-white);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition-base);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--accent-gold);
}

/* Mobile Menu Button */
.menu-btn {
    display: none;
    font-size: 24px;
    color: var(--accent-gold);
    cursor: pointer;
}

/* Hero Section */
.hero-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    padding-top: var(--nav-height);
    gap: 50px;
}

.hero-text { flex: 1.2; }
.hero-image-area { flex: 0.8; position: relative; }

.hero-text h4 {
    color: var(--accent-gold);
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 500;
}

.hero-text h1 {
    font-size: clamp(40px, 8vw, 75px);
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero-text p {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 40px;
    max-width: 550px;
}

.hero-img-container {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1/1;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid var(--accent-gold);
    box-shadow: 0 0 30px var(--accent-gold-soft);
}

.hero-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 36px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-base);
    cursor: pointer;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-gold {
    background: var(--accent-gold);
    color: var(--bg-midnight);
}

.btn-gold:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px -10px var(--accent-gold);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
    margin-left: 15px;
}

.btn-outline:hover {
    background: var(--accent-gold-soft);
}

/* Skills & Project Cards */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: var(--bg-slate);
    border: 1px solid var(--glass-border);
    padding: 40px 30px;
    border-radius: 16px;
    position: relative;
    transition: var(--transition-base);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-gold);
    box-shadow: var(--shadow-soft);
}

.card i {
    font-size: 40px;
    color: var(--accent-gold);
    margin-bottom: 25px;
}

.card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-white);
}

.card p {
    color: var(--text-gray);
    font-size: 14px;
}

/* Project Card Override */
.project-card {
    padding: 0;
}

.project-img-box {
    height: 220px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.project-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-base);
}

.project-card:hover .project-img-box img {
    scale: 1.1;
}

.project-card-content {
    padding: 30px;
}

.project-category {
    font-family: monospace;
    color: var(--accent-gold);
    font-size: 12px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

/* Contact Page Form */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: flex-start;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.info-item i {
    width: 50px;
    height: 50px;
    background: var(--bg-slate);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    font-size: 20px;
    border: 1px solid var(--glass-border);
}

.info-item h4 { font-size: 14px; color: var(--text-gray); }
.info-item p, .info-item a { font-size: 16px; color: var(--text-white); text-decoration: none; font-weight: 600; }

.contact-form-box {
    background: var(--bg-slate);
    padding: 50px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 13px;
    margin-bottom: 10px;
    color: var(--text-gray);
    text-transform: uppercase;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    background: var(--bg-midnight);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-white);
    font-family: inherit;
    transition: var(--transition-base);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
}

/* Footer */
footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--glass-border);
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-nav a { text-decoration: none; color: var(--text-gray); font-size: 13px; transition: var(--transition-base); }
.footer-nav a:hover { color: var(--accent-gold); }

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 40px;
}

.social-circle {
    width: 45px;
    height: 45px;
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 18px;
    transition: var(--transition-base);
    text-decoration: none;
}

.social-circle:hover {
    background: var(--accent-gold);
    color: var(--bg-midnight);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    color: var(--text-gray);
    font-size: 12px;
}

.admin-discreet {
    display: block;
    margin-top: 20px;
    color: #333;
    text-decoration: none;
    font-size: 10px;
    transition: var(--transition-base);
}

.admin-discreet:hover { color: #555; }

/* Responsive Grid & Stack */
@media (max-width: 900px) {
    .menu-btn { display: block; z-index: 2000; }
    
    .nav-links { 
        display: none; 
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-midnight);
        justify-content: center;
        align-items: center;
        gap: 40px;
        z-index: 1000;
        padding: 50px;
    }

    .nav-links.mobile-active {
        display: flex;
    }
    
    .hero-flex {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 120px;
        padding-bottom: 60px;
    }
    
    .hero-image-area { margin-bottom: 30px; }
    .hero-text h1 { font-size: 45px; }
    .hero-text p { margin: 0 auto 40px; }
    
    .contact-grid { grid-template-columns: 1fr; gap: 50px; }
    .contact-form-box { padding: 30px; }
}

/* AOS Styles Customization */
[data-aos] {
    transition-duration: 800ms !important;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    z-index: 1001;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    transition: var(--transition-base);
}
.whatsapp-float:hover { scale: 1.1; box-shadow: 0 0 20px #25D366; }
