/*=========================================================
    Syed Muhammad Aqeel Portfolio - Modern Professional Theme
==========================================================*/

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

/*=========================================================
    1. ROOT VARIABLES (SINGLE SOURCE OF TRUTH)
==========================================================*/
:root {
    --primary: #F5F5DC !important;       /* Standard Beige Page Background */
    --accent: #A8BFA0 !important;        /* Soft Sage Accent & Buttons */
    --accent-hover: #6F8A6D !important;  /* Darker Sage Hover Accent */
    --card-bg: #FFFFFF !important;      /* Card Surfaces */
    --heading: #2F3A2F !important;       /* Dark Text */
    --text: #444444 !important;          /* Main Body Text */
    --light: #666666 !important;         /* Secondary Muted Text */
    --border: #D8D5C8 !important;        /* Subtle Borders */
    --shadow: 0 8px 25px rgba(0,0,0,.06);
    --shadow-hover: 0 14px 35px rgba(0,0,0,.12);
    --radius: 18px;
    --transition: all 0.35s ease;
}

/*=========================================================
    2. GLOBAL OVERRIDES & RESET
==========================================================*/
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, 
body, 
section, 
footer,
.hero,
.bg-light, 
.bg-white, 
.bg-body {
    background-color: var(--primary) !important;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.7;
}

section {
    padding: 90px 0;
}

a {
    text-decoration: none !important;
    transition: var(--transition);
}

ul {
    list-style: none;
    padding-left: 0;
}

/*=========================================================
    3. SCROLLBAR
==========================================================*/
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--primary);
}
::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 20px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
}

/*=========================================================
    4. NAVBAR & HEADER ALIGNMENT
==========================================================*/
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background-color: var(--primary) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,.05);
    padding: 15px 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: var(--heading) !important;
    font-size: 22px;
    border-bottom: none !important;
}

.logo-circle {
    width: 70px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.logo-circle:hover {
    background: var(--accent-hover);
    transform: rotate(6deg);
}

.navbar-nav {
    gap: 8px;
    margin-left: 18% !important; 
    margin-right: auto !important;
}

/* Navigation Links - Standardized across all states */
.nav-link {
    color: var(--heading) !important;
    font-weight: 500;
    padding: 8px 18px !important;
    border-radius: 30px;
    background: transparent !important;
    transition: var(--transition);
}

/* Darker sage background ONLY on hover */
.nav-link:hover,
.nav-link.active:hover {
    background-color: var(--accent-hover) !important;
    color: #ffffff !important;
}

/* Active state maintains standard text without permanent dark fill */
.nav-link.active {
    background-color: transparent !important;
    color: var(--heading) !important;
    font-weight: 600;
}

/*=========================================================
    5. BUTTONS & HOVERS
==========================================================*/
.btn-theme {
    background-color: var(--accent) !important;
    color: #ffffff !important;
    border: none;
    padding: 12px 30px;
    border-radius: 40px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-theme:hover {
    background-color: var(--accent-hover) !important;
    color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-outline-theme {
    border: 2px solid var(--accent) !important;
    color: var(--heading) !important;
    background: transparent !important;
    padding: 10px 30px;
    border-radius: 40px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline-theme:hover {
    background-color: var(--accent-hover) !important;
    border-color: var(--accent-hover) !important;
    color: #ffffff !important;
    transform: translateY(-3px);
}

/*=========================================================
    6. HERO SECTION
==========================================================*/
.hero {
    min-height: 100vh;
    padding-top: 130px;
    display: flex;
    align-items: center;
}

.hero-content h5 {
    color: var(--accent-hover);
    font-weight: 600;
    margin-bottom: 15px;
}

.hero-content h1 {
    font-size: 56px;
    font-weight: 800;
    color: var(--heading);
    line-height: 1.2;
    margin-bottom: 18px;
}

.hero-content h3 {
    color: var(--accent-hover);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
}

.profile-box {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-hover);
    transition: var(--transition);
}

.profile-box:hover {
    background: var(--accent-hover);
    transform: scale(1.02);
}

.profile-box img {
    width: 92%;
    border-radius: 50%;
}

.stat-box {
    background: var(--card-bg) !important;
    padding: 22px 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.stat-box:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-hover);
}

.stat-box h2 {
    color: var(--accent-hover);
    font-size: 34px;
    font-weight: 700;
}

/*=========================================================
    7. CARDS & CONTAINERS
==========================================================*/
.about-badge {
    background: var(--accent-hover);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    display: inline-block;
    margin-top: 15px;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
}

.info-item i, .contact-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--card-bg) !important;
    color: var(--accent-hover);
    border: 1px solid var(--border);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    margin-right: 16px;
    transition: var(--transition);
}

.info-item:hover i, .contact-item:hover .contact-icon {
    background: var(--accent-hover) !important;
    color: #ffffff;
    border-color: var(--accent-hover);
}

.contact-link {
    color: var(--text) !important;
    font-weight: 500;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--accent-hover) !important;
    text-decoration: underline !important;
}

.achievement-card, 
.timeline-content, 
.skill-box, 
.project-card, 
.research-card,
.experience-card, 
.contact-card, 
.contact-form {
    background: var(--card-bg) !important;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.achievement-card:hover, 
.timeline-content:hover, 
.skill-box:hover, 
.project-card:hover, 
.research-card:hover,
.experience-card:hover, 
.contact-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-hover);
}

/*=========================================================
    8. TIMELINE & EXPERIENCE
==========================================================*/
.timeline, .experience-timeline {
    position: relative;
    margin-top: 40px;
}

.timeline::before, .experience-timeline::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--accent);
}

.timeline-item, .experience-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 40px;
}

.timeline-dot, .experience-dot {
    position: absolute;
    left: 6px;
    top: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent-hover);
    border: 5px solid var(--primary);
}

/*=========================================================
    9. SKILLS & RESEARCH
==========================================================*/
.skill-box i {
    font-size: 36px;
    color: var(--accent-hover);
    margin-bottom: 12px;
}

.research-tag {
    background: var(--accent);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 12px;
}

/*=========================================================
    10. FOOTER
==========================================================*/
footer {
    padding: 60px 0 30px;
    border-top: 1px solid var(--border);
}

.footer-links a {
    color: var(--text);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-hover);
    padding-left: 5px;
}

.footer-social a, .social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: var(--card-bg) !important;
    color: var(--accent-hover);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.footer-social a:hover, .social-links a:hover {
    background: var(--accent-hover) !important;
    color: #ffffff !important;
    border-color: var(--accent-hover) !important;
    transform: translateY(-3px);
}

.back-to-top {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-hover) !important;
    color: #ffffff !important;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-hover);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--heading) !important;
}

/* Responsive Adjustments */
@media(max-width:992px) {
    .navbar-nav { margin-left: 0 !important; }
    .hero { text-align: center; }
    .profile-box { margin: 30px auto 0; }
}