/* 
* Ghulam Abbas - Electronics Engineer Portfolio
* Author: Ghulam Abbas
* Version: 1.0
*/

/* ===== Base Color Variables (Light Mode) ===== */
:root {
    /* Light mode palette */
    --bg-primary: #F5F7FB;           /* Page background */
    --light-color: #FFFFFF;          /* Section / hero / card background */
    --white-color: #FFFFFF;          /* Card / surface */

    --primary-color: #0EA5E9;        /* Primary accent */
    --primary-dark: #0284C7;         /* Accent hover */
    --primary-light: #67E8F9;

    --secondary-color: #1E293B;      /* Headings / primary text */
    --text-primary: #1E293B;
    --text-secondary: #64748B;       /* Secondary text */

    --border-color: #E5E7EB;         /* Light border */

    --dark-color: #0F172A;
    --gray-dark: #475569;
    --gray-medium: #64748B;
    --gray-light: #94A3B8;

    --box-shadow: 0 5px 15px rgba(2,6,23,0.06);
    --box-shadow-hover: 0 10px 20px rgba(2,6,23,0.08);
    --transition: all 0.3s ease;
    --border-radius: 6px;
    --border-radius-sm: 3px;
    --max-width: 1200px;

    /* Background tokens (kept for compatibility) */
    --bg-primary: var(--white-color);
    --bg-secondary: var(--light-color);
}

/* ===== Dark Mode Overrides ===== */
body.dark, body.dark-theme {
    /* Dark mode palette */
    --bg-primary: #020617;          /* Page background */
    --light-color: #0F172A;         /* Section / hero background */
    --white-color: #111827;         /* Card / surface background */

    --primary-color: #38BDF8;       /* Accent */
    --primary-dark: #0EA5E9;        /* Accent hover */
    --primary-light: #7DD3FC;

    --secondary-color: #E2E8F0;     /* Headings / primary text */
    --text-primary: #E2E8F0;
    --text-secondary: #94A3B8;

    --border-color: #1F2937;        /* Dark border */

    --dark-color: #000000;
    --gray-dark: #94A3B8;
    --gray-medium: #94A3B8;
    --gray-light: #94A3B8;

    --box-shadow: 0 5px 15px rgba(2,6,23,0.6);
    --box-shadow-hover: 0 10px 20px rgba(2,6,23,0.7);
}

/* ===== Base Styles ===== */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--gray-medium);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--secondary-color);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 0.5rem;
    position: relative;
}

.section-underline {
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 0.75rem auto 1.5rem;
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: var(--gray-medium);
}

.subsection-title {
    margin: 2rem 0 1.5rem;
    font-size: 1.5rem;
}

.highlight {
    color: var(--primary-color);
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--white-color);
}

.btn-secondary {
    background-color: var(--white-color);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.center-button {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: rgba(225, 126, 126, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* ===== Header and Navigation ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white-color);
    box-shadow: var(--box-shadow);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Theme Toggle Button */
.theme-toggle {
    margin-left: 1rem;
}

.theme-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--light-color);
    color: var(--dark-color);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

body.dark-theme .theme-btn {
    background-color: var(--dark-color);
    color: var(--light-color);
}

.theme-btn:hover {
    transform: translateY(-3px);
}

.logo {
    display: inline-block;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.nav-list {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: var(--secondary-color);
    font-weight: 500;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.dropdown .nav-link i {
    font-size: 0.75rem;
    margin-left: 0.25rem;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white-color);
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius-sm);
    padding: 0.5rem 0;
    min-width: 160px;
    z-index: 100;
    display: none;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--secondary-color);
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

.resume-btn {
    display: flex;
    align-items: center;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
}

.resume-btn:hover {
    background-color: var(--primary-dark);
    color: var(--white-color);
}

.resume-btn i {
    margin-right: 0.5rem;
}

/* Theme Toggle Button */
.theme-toggle {
    margin-left: 1rem;
}

.theme-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-color);
    color: var(--primary-color);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.theme-btn:hover {
    background-color: var(--primary-light);
}

.dark-theme .theme-btn {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

/* ===== Hero Section ===== */
.hero {
    padding: 8rem 0 5rem;
    position: relative;
    overflow: hidden;
    background-color: var(--light-color);
    border-bottom: 1px solid var(--border-color);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hello-text {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.hero-title {
    font-size: 2.8rem;
    margin-bottom: 0.75rem;
    color: var(--secondary-color);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    color: var(--gray-dark);
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--gray-medium);
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

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

.hero-image-circle {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    overflow: hidden;
    border: 10px solid var(--white-color);
    background-image: url('../img/Profile.png');
    background-position: top center;
    background-size: cover;
    background-position: center;
    box-shadow: var(--box-shadow);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--light-color);
    border-radius: 50%;
    color: var(--primary-color);
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-3px);
}

/* ===== About Section ===== */
.about {
    background-color: var(--light-color);
}

/* Stats Container */
.stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    background-color: var(--dark-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 3rem;
    box-shadow: var(--box-shadow);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 1rem;
}

.stat-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #444;
    color: var(--primary-color);
    border-radius: 50%;
    font-size: 1.5rem;
}

.stat-text {
    color: var(--white-color);
}

.stat-text h3 {
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    font-size: 1.3rem;
}

.stat-text p {
    font-size: 0.9rem;
    margin-bottom: 0;
    font-weight: 500;
}

/* About Content */
.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image-circle {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    border: 10px solid var(--white-color);
    background-image: url('../img/Profile.png');
    background-size: cover;
    background-position: center;
}

.about-details {
    display: flex;
    flex-direction: column;
}

.about-text {
    max-width: 100%;
    margin-bottom: 2rem;
    text-align: left;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: var(--white-color);
    padding: 1.25rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.info-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(225, 126, 126, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    font-size: 1.25rem;
}

.info-content h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--gray-medium);
}

.info-content p {
    font-weight: 500;
    color: var(--secondary-color);
    margin-bottom: 0;
}

.about-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
    margin-top: 1rem;
}

/* ===== Skills Section ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.skill-card {
    background-color: var(--white-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.skill-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(225, 126, 126, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.skill-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.skill-description {
    color: var(--gray-medium);
    margin-bottom: 0;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

.tool-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background-color: var(--white-color);
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.tool-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-hover);
}

.tool-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1rem;
}

.tool-name {
    font-weight: 500;
    color: var(--secondary-color);
}

/* ===== Projects Section ===== */
.projects {
    background-color: var(--white-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.project-image {
    height: 200px;
    overflow: hidden;
}

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

/* Placeholder styling for missing images */
.project-image img:not([src]), 
.project-image img[src=""], 
.project-image img[src$=".png"][src^="img/"]:not([src*="?"]), 
.portfolio-image img:not([src]), 
.portfolio-image img[src=""], 
.portfolio-image img[src$=".png"][src^="img/"]:not([src*="?"]) {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-color) 100%);
    min-height: 200px;
    position: relative;
}

.project-image img:not([src])::before, 
.project-image img[src=""]::before, 
.project-image img[src$=".png"][src^="img/"]::before,
.portfolio-image img:not([src])::before, 
.portfolio-image img[src=""]::before, 
.portfolio-image img[src$=".png"][src^="img/"]::before {
    content: "Project Image";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: 500;
    font-size: 1.2rem;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.project-tags {
    margin-bottom: 1rem;
}

.project-description {
    margin-bottom: 1.25rem;
}

/* ===== Portfolio Section ===== */
.portfolio {
    background-color: var(--light-color);
    padding-bottom: 5rem;
}

.portfolio-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background-color: var(--white-color);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.portfolio-image {
    height: 200px;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-content {
    padding: 1.5rem;
}

.portfolio-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.portfolio-description {
    margin-bottom: 1rem;
}

.portfolio-tags {
    margin-bottom: 1.25rem;
}

.portfolio-link {
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    color: var(--primary-color);
}

.portfolio-link i {
    margin-left: 0.5rem;
    transition: var(--transition);
}

.portfolio-link:hover i {
    transform: translateX(5px);
}

/* ===== Experience Section ===== */
.experience {
    background-color: var(--white-color);
    padding: 5rem 0;
}

.experience-education-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.column-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.column-header i {
    margin-right: 0.75rem;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.column-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.timeline {
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 7px;
    height: 100%;
    width: 2px;
    background-color: #e9ecef;
}

.timeline-item {
    position: relative;
    padding-left: 30px;
    padding-bottom: 2.5rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    top: 5px;
    left: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 3px solid white;
    z-index: 1;
}

.timeline-date-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 30px;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.timeline-content {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    padding: 1rem 0;
}

.timeline-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    color: var(--secondary-color);
}

.company-name, .university-name, .certification-name {
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.timeline-content p {
    color: var(--gray-medium);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.timeline-content ul {
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

.timeline-content ul li {
    position: relative;
    padding-left: 0.5rem;
    margin-bottom: 0.5rem;
    list-style-type: disc;
    color: var(--gray-medium);
}

/* Position the work experience and education columns */
.work-experience {
    margin-right: 1rem;
}

.education {
    margin-left: 1rem;
}

/* ===== Contact Section ===== */
.contact {
    background-color: var(--white-color);
    padding: 5rem 0;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-info-card {
    background-color: var(--white-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.contact-info-card h3 {
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    color: var(--secondary-color);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(225, 126, 126, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    font-size: 1.25rem;
}

.contact-text h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--secondary-color);
}

.contact-text p {
    margin-bottom: 0;
    color: var(--gray-medium);
}

.follow-me {
    margin-top: 2rem;
}

.follow-me h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--light-color);
    color: var(--primary-color);
    border-radius: 50%;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-3px);
}

.contact-form-card {
    background-color: var(--white-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.contact-form-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
    color: var(--secondary-color);
}

.contact-form-card > p {
    margin-bottom: 1.5rem;
    color: var(--gray-medium);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--secondary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background-color: var(--lighter-color);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--secondary-color);
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-light);
}

.send-message-btn {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    padding: 0.85rem;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.send-message-btn:hover {
    background-color: var(--primary-dark);
}

/* ===== Footer ===== */
.footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 4rem 0 0.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Footer Brand Section */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    color: var(--white-color);
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.footer-logo .highlight {
    color: var(--primary-color);
}

.footer-description {
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-contact-info p {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #aaa;
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
}

.footer-contact-info i {
    color: var(--primary-color);
    font-size: 1rem;
}

/* Footer Links Column */
.footer-links-column h3 {
    color: var(--white-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links li a {
    color: #aaa;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-links li a:hover {
    color: var(--primary-color);
    padding-left: 3px;
}

/* Footer Services Column */
.footer-services-column h3 {
    color: var(--white-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-services {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-services li a {
    color: #aaa;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-services li a:hover {
    color: var(--primary-color);
    padding-left: 3px;
}

/* Footer Social Container */
.footer-social-container {
    margin-top: 1rem;
}

.footer-social-links {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.social-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white-color);
    border-radius: 50%;
    transition: var(--transition);
}

.social-circle:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

/* Copyright Bar */
.copyright-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    padding-bottom: 1rem;
    margin-top: 1rem;
}

.copyright-bar p {
    color: #888;
    font-size: 0.9rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 99;
}

/* ===== Biography Page ===== */
.biography {
    padding-top: 9rem;
    background-color: var(--white-color);
}

@media (max-width: 768px) {
    .biography {
        padding-top: 7rem;
    }
}

@media (max-width: 420px) {
    .biography {
        padding-top: 6rem;
    }

    .page-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }
}

.page-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--secondary-color);
    font-size: 2.5rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.75rem;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.bio-profile {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    justify-content: center;
}

.bio-profile-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--light-color);
}

.bio-profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bio-profile-details {
    text-align: center;
}

.bio-profile-details h2 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.bio-title {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 500;
}

.bio-content {
    margin-bottom: 3rem;
}

.bio-content h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.bio-content p {
    color: var(--gray-medium);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.bio-section {
    margin-bottom: 2.5rem;
}

.bio-section-title {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    border-bottom: 2px solid var(--light-color);
    padding-bottom: 0.75rem;
}

.bio-timeline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.bio-timeline-item {
    margin-bottom: 2rem;
    position: relative;
}

.bio-timeline-date {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 30px;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.bio-timeline-item h4 {
    font-size: 1.25rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.bio-company, .bio-institution {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.bio-achievements {
    list-style: none;
    padding: 0;
}

.bio-achievements li {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.achievement-year {
    min-width: 60px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.achievement-content h4 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.bio-skills {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.bio-skill-category h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    position: relative;
    padding-left: 1.5rem;
}

.bio-skill-category h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

.bio-skill-category ul {
    list-style: none;
    padding-left: 1.5rem;
}

.bio-skill-category li {
    color: var(--gray-medium);
    margin-bottom: 0.5rem;
    position: relative;
}

.bio-skill-category li::before {
    content: '•';
    position: absolute;
    left: -1rem;
    color: var(--primary-color);
}

.bio-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.copyright-bar .back-to-top {
    position: static;
    margin-left: auto;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

/* ===== Responsive Styles ===== */
@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-description {
        margin: 0 auto 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image {
        grid-row: 1;
        margin-bottom: 2rem;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .experience-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) and (min-width: 769px) {
    .tools-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    /* Stack hero content vertically and center it */
    .hero {
        padding: 5.5rem 0 3rem;
    }

    .hero .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.25rem;
    }

    .hero-content {
        width: 100%;
        text-align: center;
        order: 0;
        padding: 0 0.5rem;
    }

    .hero-image {
        order: 1;
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 0.5rem;
    }

    .hero-image-circle {
        width: 200px;
        height: 200px;
        border-width: 8px;
    }

    .hero-title {
        font-size: 1.9rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-description {
        font-size: 0.98rem;
        max-width: 100%;
        margin: 0 auto 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
        align-items: center;
    }

    .hero-buttons .btn { width: 90%; max-width: 360px; }

    /* Header and nav adjustments */
    .header-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
    }

    .logo-text { font-size: 1.15rem; }

    .nav-list {
        gap: 1rem;
        flex-wrap: nowrap;
        justify-content: center;
    }

    .nav-list li { margin: 0.5rem 0; }

    .resume-btn { margin-top: 0; }

    /* Keep other sections stacked */
    .project-card,
    .portfolio-item { max-width: 100%; margin: 0 auto; }

    .project-content,
    .portfolio-content { padding: 1rem; }

    .info-grid { grid-template-columns: 1fr; }

    .about-buttons { flex-direction: column; gap: 1rem; }

    .skills-grid, .projects-grid, .portfolio-grid { grid-template-columns: 1fr; }

    .tools-grid { grid-template-columns: repeat(3, 1fr); }

    .form-row { grid-template-columns: 1fr; }

    .about-content { grid-template-columns: 1fr; }

    .bio-timeline, .bio-skills { grid-template-columns: 1fr; }

    .bio-profile { flex-direction: column; text-align: center; }

    .bio-profile-details { max-width: 100%; }

    .bio-cta { flex-direction: column; }
}

@media (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.8rem;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .info-card {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .project-card {
        max-width: 100%;
    }
    
    .tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .project-image {
        height: 180px;
    }
    
    .portfolio-filter {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 100%;
        text-align: center;
    }
}

/* ===== Policy Pages Styles ===== */
.policy-page {
    padding-top: 80px;
}

.policy-section {
    background-color: var(--white-color);
    padding: 4rem 0;
}

.policy-content {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    margin-top: 2rem;
}

.policy-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.policy-header p {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.policy-item {
    margin-bottom: 2rem;
}

.policy-item h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.policy-item h4 {
    color: var(--gray-dark);
    margin: 1.5rem 0 0.75rem;
    font-size: 1.2rem;
}

.policy-item p {
    color: var(--gray-medium);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.policy-item ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.policy-item ul li {
    color: var(--gray-medium);
    margin-bottom: 0.5rem;
    list-style-type: disc;
    line-height: 1.6;
}

/* ===== Mobile hamburger & nav (added) ===== */
.hamburger {
    display: none;
    background: transparent;
    border: none;
    width: 44px;
    height: 44px;
    padding: 8px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 5px auto;
    border-radius: 2px;
    transition: var(--transition);
}
.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .header-content {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .nav-list {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--bg-primary);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1.25rem;
        transition: left 0.28s ease;
        z-index: 1050;
    }

    .nav-list.active {
        left: 0;
    }

    .nav-list li {
        margin: 0.6rem 0;
    }

    .header {
        position: fixed;
        z-index: 1100;
    }

    .theme-toggle {
        order: 3;
    }

    .hero-text h1 { font-size: 34px; }
    .profile-img-container { width: 240px; height: 240px; }
}

/* ===== Footer responsive adjustments ===== */
@media (max-width: 768px) {
    .footer-content {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
        padding: 1rem 0;
    }

    .footer-brand,
    .footer-links-column,
    .footer-services-column,
    .footer-social-container {
        width: 100%;
    }

    .footer-brand { text-align: left; }

    .footer-links, .footer-services {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem 1rem;
        padding: 0;
        margin: 0;
    }

    .footer-links li, .footer-services li {
        width: 50%;
        margin: 0.25rem 0;
    }

    .footer-contact-info p { font-size: 0.95rem; margin: 0.25rem 0; }

    .footer-social-links { display: flex; gap: 0.5rem; justify-content: flex-start; }

    .social-circle { width: 40px; height: 40px; }

    .copyright-bar {
        text-align: center;
        padding: 0.75rem 0;
        font-size: 0.9rem;
    }
}

@media (max-width: 420px) {
    .footer-links li, .footer-services li { width: 100%; }
    .footer-brand { text-align: center; }
    .footer-contact-info { text-align: center; }
    .footer-social-links { justify-content: center; }
}

/* ===== Experience & Education: tighter mobile layout ===== */
@media (max-width: 768px) {
    .experience-education-container {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin-top: 1rem;
        padding: 0 0.5rem;
    }

    .column-header {
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .column-header i {
        font-size: 1.25rem;
    }

    .column-header h3 {
        font-size: 1.25rem;
    }

    .timeline::before {
        left: 12px;
        width: 2px;
    }

    .timeline-item {
        padding-left: 36px;
        padding-bottom: 1.5rem;
    }

    .timeline-dot {
        left: 2px;
        top: 8px;
        width: 14px;
        height: 14px;
    }

    .timeline-content {
        padding: 0.75rem 0.5rem;
    }

    .work-experience, .education {
        margin: 0;
    }
}

@media (max-width: 420px) {
    .timeline-item { padding-left: 30px; }
    .timeline-dot { left: 0; transform: translateX(0); }
    .timeline-content h3 { font-size: 1.05rem; }
    .timeline-date-badge { font-size: 0.8rem; padding: 0.2rem 0.5rem; }
}

/* ===== Software & Tools responsive adjustments ===== */
@media (max-width: 992px) {
    .tools-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.85rem;
    }
}

@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

    .tool-card {
        padding: 0.75rem;
        flex-direction: column;
        text-align: center;
    }

    .tool-icon {
        width: 28px;
        height: 28px;
        font-size: 0.95rem;
    }

    .tool-name {
        font-size: 0.95rem;
    }
}

@media (max-width: 420px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .tool-card {
        padding: 0.6rem;
    }

    .tool-icon {
        width: 26px;
        height: 26px;
        font-size: 0.9rem;
    }

    .tool-name {
        font-size: 0.85rem;
    }
}

/* Typing animation cursor */
.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1.1em;
    margin-left: 6px;
    background-color: var(--primary-color);
    vertical-align: bottom;
    animation: blink 1s steps(2, start) infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Ensure typed text inherits readable color */
#typed-text { color: var(--secondary-color); }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .typing-cursor { animation: none; }
}