/* PROFESSIONAL NETWORK ENGINEER PORTFOLIO */
/* ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800&family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
    /* Reference Image Color Palette */
    --bg-dark: #fcfcfc;
    --bg-card: #ffffff;
    --bg-secondary: #f4f4f4;

    /* Text Colors */
    --text-primary: #1a1a1a;
    --text-secondary: #888d8b;
    --text-muted: #abb8c3;

    /* Accents */
    --accent: #9ca58d;
    /* Olive/Sage from image */
    --accent-glow: rgba(156, 165, 141, 0.3);
    --secondary-accent: #1a1a1a;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Effects */
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.15);
    --glass-blur: blur(20px);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 32px 64px rgba(0, 0, 0, 0.15);

    --transition: all 0.3s ease-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-gradient);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    zoom: 0.75;
    /* Scale down to 75% as per user preference */
}



a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: var(--transition);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    /* Gray shadow added */
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    padding: 0 15% 0 10%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: #9ca58d;
    /* Sage Green */
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-block;
    white-space: nowrap;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    padding: 5px 0;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-social {
    display: flex;
    gap: 25px;
    /* Increased space between icons */
}

.nav-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    background: transparent;
    transition: var(--transition);
    box-shadow: none;
}

.nav-social a i {
    font-size: 22px;
}

/* BRAND COLORS */
.nav-social #nav-linkedin i {
    color: #0077b5;
}

.nav-social #nav-whatsapp i {
    color: #25D366;
}

.nav-social #nav-email i {
    color: #EA4335;
}

.nav-social a:hover {
    transform: translateY(-3px);
    opacity: 0.8;
}


/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 24px;
    z-index: 1001;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
}

.menu-toggle:hover {
    color: var(--accent);
    transform: scale(1.1);
}

/* ========================================
   GLASS COMPONENT (Reusable)
   ======================================== */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 24px;
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-5px) scale(1.005);
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
    position: relative;
    min-height: 95vh;
    display: flex;
    align-items: stretch;
    padding-top: 80px;
    overflow: hidden;
    background: linear-gradient(110deg, #ffffff 60%, #dee2e6 60.1%);
}


.hero-section .container {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    padding-right: 0;
    padding-left: 10%;
}

.hero-content {
    order: 1;
    align-self: center;
    padding-bottom: 80px;
    /* Counter-balance the padding-top for center alignment */
}

.hero-content .greeting {
    display: inline-block;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
}

@keyframes shine {
    0% {
        background-position: 200% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero-content .name {
    font-family: var(--font-heading);
    font-size: 60px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    white-space: nowrap;

    /* Animated Gradient Text */
    background: linear-gradient(to right, var(--text-primary) 20%, #fff 50%, var(--text-primary) 80%);
    background-size: 200% auto;
    color: #444;
    /* Fallback */
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s linear infinite;
}

.hero-desc {
    font-size: 18px;
    color: #333333;
    /* Deeper color */
    font-weight: 600;
    /* Bold */
    max-width: 500px;
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-content .name span {
    color: var(--accent);
}

.hero-content .title {
    font-size: 15px;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 480px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.cta-button {
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
}

.cta-button:first-child {
    background: var(--accent);
    color: white;
}

.cta-button:first-child:hover {
    background: #879178;
    transform: translateY(-2px);
}

.cta-button.secondary {
    background: transparent;
    border: 1px solid #999;
    color: #555;
}

.cta-button.secondary:hover {
    background: #879178;
    border-color: #879178;
    color: white;
    transform: translateY(-2px);
}

.profile-picture {
    order: 2;
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-self: flex-end;
}

.profile-picture img {
    width: 100%;
    max-width: 750px;
    height: auto;
    object-fit: cover;
    display: block;
    transition: var(--transition);
    filter: drop-shadow(10px 15px 30px rgba(0, 0, 0, 0.1));
}


.profile-picture:hover img {
    transform: scale(1.02);
    /* Shadow removed to prevent boxy look on click/hover */
}

/* Background elements */
.hero-section::before,
.hero-section::after {
    display: none;
    /* Removed old shapes */
}

/* ========================================
   GLOBAL SECTION STYLES
   ======================================== */
.section {
    padding: 120px 0;
    position: relative;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: var(--bg-dark);
}

.section-label {
    display: block;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 38px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 70px;
    line-height: 1.7;
}

/* ========================================
   GLASS CARDS (GLOBAL)
   ======================================== */
.glass-card {
    background: var(--card-gradient);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 35px;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.glass-card:hover {
    transform: translateY(-8px);
    border-color: rgba(128, 0, 0, 0.3);
    box-shadow: 0 10px 30px rgba(128, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.85);
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about-section {
    background: #879178;
    padding-top: 50px;
    padding-bottom: 20px;
}

.about-layout {
    max-width: 100%;
    margin: 0;
    text-align: center;
}

.about-subtitle {
    display: block;
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 30px;
    -webkit-text-fill-color: initial;
    background: none;
}

.about-description {
    font-size: 18px;
    color: #f0f0f0;
    line-height: 1.8;
    margin-bottom: 24px;
    font-weight: 600;
    text-align: justify;
    max-width: 100%;
    width: 100%;
    display: block;
}

/* ========================================
   SKILLS & SERVICES SECTION
   ======================================== */
#skills-expertise {
    padding-top: 50px;
    padding-bottom: 80px;
    background: #e9ecef;
    /* Light Gray */
}

.skills-expertise-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

/* Skills Column */
.skills-column {
    text-align: left;
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Full width items */
    gap: 15px;
    /* Tighter vertical gap */
}

.skill-category {
    background: rgba(255, 255, 255, 0.85);
    /* Always use the hover color */
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 15px 20px;
    transition: var(--transition);
}

.skill-category:hover {
    border-color: var(--text-secondary);
    transform: translateY(-5px);
    /* Floating effect */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.skill-category h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    /* Reduced margin */
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    /* Reduced gap */
}

.skill-category h3 i {
    color: var(--accent);
    font-size: 18px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 15px;
    /* Row gap small, col gap moderate */
    align-items: center;
}

.tags span {
    padding: 2px 0;
    /* Removed padding */
    background: transparent;
    /* Removed background */
    color: #879178;
    /* Sage green color */
    font-size: 14px;
    /* Increased slightly for readability */
    font-weight: 500;
    border-radius: 0;
    /* Removed border radius */
    border: none;
    /* Removed border */
    transition: var(--transition);
    margin-right: 15px;
    /* Add spacing between text items */
}

.tags span:hover {
    background: rgba(128, 0, 0, 0.15);
    border-color: rgba(128, 0, 0, 0.3);
    color: var(--accent);
}

/* My Expertise Column - Right Aligned */
.expertise-column {
    text-align: left;
    /* Changed from right to left */
}

.expertise-column .section-title {
    text-align: left;
    /* Changed from right to left */
    margin-left: 0;
    padding-left: 200px;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Full width items */
    gap: 15px;
    text-align: left;
}

.service-card {
    text-align: left;
    display: flex;
    /* Horizontal layout */
    align-items: center;
    gap: 20px;
    padding: 15px 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.85);
    /* Always use the hover color */
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    /* Floating effect */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.service-icon {
    width: 40px;
    /* Smaller icon box */
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(128, 0, 0, 0.1);
    border-radius: 8px;
    /* Smaller radius */
    margin-bottom: 0;
    /* Remove bottom margin for horizontal layout */
    font-size: 18px;
    /* Smaller icon */
    color: var(--accent);
    box-shadow: inset 0 0 10px rgba(128, 0, 0, 0.1);
    flex-shrink: 0;
    /* Don't shrink */
}

.service-info {
    flex: 1;
    /* Take remaining space */
}

.service-card h3 {
    font-size: 16px;
    /* Match skill title */
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    /* Tight spacing */
}

.service-card p {
    font-size: 14px;
    /* Smaller text */
    color: #879178;
    line-height: 1.4;
    margin: 0;
}

/* ========================================
   EXPERIENCE / TIMELINE
   ======================================== */
#experience {
    padding-top: 50px;
    padding-bottom: 60px;
}

.timeline {
    display: grid;
    grid-template-columns: 1fr;
    /* Full width */
    gap: 20px;
}

.timeline-item {
    position: relative;
    padding: 25px 30px;
    /* Reduced vertical padding */
    text-align: left;
    background: rgba(255, 255, 255, 0.85);
    /* Consistent with other boxes */
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    max-width: 850px;
    /* Reduced width */
    margin: 0 auto;
    /* Centered */
    width: 100%;
    /* Full width up to max-width */
}

.timeline-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 30px;
    right: 30px;
    height: 2px;
    background: var(--accent);
    opacity: 0.8;
    box-shadow: 0 0 10px var(--accent-glow);
}

.job-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 12px;
    /* Reduced */
    margin-bottom: 15px;
    /* Reduced */
}

.job-header h3 {
    font-size: 18px;
    /* Slightly smaller */
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.job-header span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #879178;
    /* Sage green for metadata */
    margin-bottom: 4px;
    /* Reduced */
}

.job-header i {
    color: var(--accent);
    width: 14px;
    text-align: center;
}

.job-details-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}

.timeline-item.active .job-details-wrapper {
    /* max-height is handled by JS for precise values, but we can set a fallback */
    margin-top: 15px;
}

.timeline-toggle-btn {
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    opacity: 0.8;
}

.timeline-toggle-btn:hover {
    opacity: 1;
    transform: translateX(5px);
}

.timeline-toggle-btn i {
    transition: transform 0.3s ease;
    font-size: 12px;
}

.timeline-item.active .timeline-toggle-btn i {
    transform: rotate(180deg);
}

.job-details li {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    /* Reduced */
    padding-left: 20px;
    position: relative;
    line-height: 1.4;
    /* Tighter leading */
}

.job-details li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent);
    top: 0;
}

/* ========================================
   EDUCATION
   ======================================== */
#education {
    padding-top: 40px;
    padding-bottom: 80px;
    background: #e5e7eb;
    /* Light Gray Background */
}

/* Education Section Styles - Title Shifted Left */
#education .section-title {
    text-align: center;
    padding-right: 150px;
    margin-left: 0;
}

/* Education Layout Split */
.education-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: start;
}

/* Right Column (Training) */
.education-layout .edu-column:last-child {
    padding-left: 60px;
}

.edu-column h3 {
    font-size: 28px;
    margin-bottom: 25px;
    color: var(--text-primary);
}

.edu-column-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* Education Timeline */
.edu-timeline {
    position: relative;
    padding-left: 10px;
    display: flex;
    flex-direction: column;
    gap: 0;
    /* Gap handled by margin-bottom of items to control line */
}

.edu-timeline::before {
    content: '';
    position: absolute;
    left: 28px;
    /* Center of the rank box (36px width / 2 + 10px padding) */
    top: 10px;
    /* Start a bit down */
    bottom: 0;
    width: 2px;
    background: rgba(135, 145, 120, 0.3);
    /* Sage green tint */
}

.edu-item {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
}

.edu-item:last-child {
    margin-bottom: 0;
}

.edu-rank {
    width: 36px;
    height: 36px;
    background: #e9ecef;
    /* Light grey/lavender base */
    border-radius: 8px;
    /* Rounded square */
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: #333;
    z-index: 2;
    /* Sit on top of line */
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Horizontal Connector Line */
.edu-rank::after {
    content: '';
    position: absolute;
    right: -30px;
    /* Span the gap to content */
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 2px;
    background: rgba(135, 145, 120, 0.3);
}

.edu-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 0;
    /* Align with top of box */
}

.edu-info h4 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 2px 0;
    line-height: 1.3;
}

.edu-info .institution {
    font-size: 17px;
    color: var(--text-secondary);
    /* Subtitle color */
    font-weight: 500;
    margin-bottom: 4px;
}

.edu-info .date {
    font-size: 15px;
    color: var(--accent);
    font-weight: 600;
}

.edu-info .details {
    font-size: 15px;
    color: var(--text-muted);
    margin-top: 5px;
    line-height: 1.5;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 5px;
}


/* ========================================
   BLOG (Optional)
   ======================================== */
.blog-section {
    background: var(--bg-dark);
    padding-top: 50px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.blog-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-meta {
    padding: 20px 25px 5px;
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.blog-date {
    color: var(--accent);
}

.blog-title {
    padding: 0 25px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 10px 0;
    line-height: 1.4;
}

.blog-excerpt {
    padding: 0 25px 25px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Album Styles */
.blog-image {
    position: relative;
    cursor: pointer;
}

.album-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 600;
    backdrop-filter: blur(5px);
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 6px;
}

.view-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(128, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
}

.blog-card:hover .view-overlay {
    opacity: 1;
}

/* Lightbox Base */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

#lightbox.active {
    display: flex;
}

.lightbox-content {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 0;
}

.lightbox-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 10px;
}

.lightbox-main img {
    max-width: 100%;
    max-height: 95vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.4s ease;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    color: black;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    transform: rotate(90deg) scale(1.1);
    background: #fff;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 30px;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    z-index: 100;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(128, 0, 0, 0.8);
    border-color: var(--accent);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 20px;
    text-align: center;
    color: white;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    z-index: 100;
    pointer-events: none;
    /* Let clicks pass to thumbnails if overlapping */
}

.lightbox-info h4 {
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.lightbox-thumbnails {
    display: flex;
    justify-content: center;
    gap: 12px;
    overflow-x: auto;
    padding: 0 20px 10px;
    pointer-events: auto;
    /* Enable clicks for thumbnails */
}

.thumb {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.thumb:hover,
.thumb.active {
    opacity: 1;
    border-color: white;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-like-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    padding: 0;
    margin: 0;
    text-transform: none;
    /* Keep likes count original case */
}

.blog-like-btn:hover {
    color: var(--accent);
    transform: scale(1.1);
}

.blog-like-btn.liked {
    color: var(--accent);
}

.blog-like-btn.liked i {
    font-weight: 900;
}

.like-count {
    font-weight: 700;
}

/* ========================================
   CONTACT
   ======================================== */
.contact-section {
    background: #e5e7eb;
    /* Light Gray Background - Matching Education */
    padding-top: 80px;
    padding-bottom: 80px;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    margin-top: 40px;
}

.contact-form textarea,
.contact-form input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 18px 22px;
    border-radius: 12px;
    font-family: inherit;
    color: var(--text-primary);
    margin-bottom: 20px;
    transition: var(--transition);
    font-size: 15px;
}

.contact-form textarea:focus,
.contact-form input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(128, 0, 0, 0.05);
    box-shadow: 0 0 0 4px rgba(128, 0, 0, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.submit-btn {
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    padding: 18px 32px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    display: block;
    width: 100%;
    font-size: 15px;
}

.submit-btn:hover {
    background: #000;
    color: white;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.contact-info-side {
    padding-top: 10px;
}

.contact-info-item {
    display: flex;
    gap: 25px;
    margin-bottom: 20px;
    align-items: center;
}

.contact-info-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 20px;
    border: 1px solid var(--glass-border);
}

/* Specific Contact Icon Colors */
.contact-info-item:nth-child(1) .contact-info-icon i {
    color: #EA4335;
}

/* Address/Map */
.contact-info-item:nth-child(2) .contact-info-icon i {
    color: #25D366;
}

/* Phone */
.contact-info-item:nth-child(3) .contact-info-icon i {
    color: #EA4335;
}

/* Email */
.contact-info-item:nth-child(4) .contact-info-icon i {
    color: #4285F4;
}

/* Website/Globe */

.contact-info-content h4 {
    font-size: 12px;
    color: #9ca58d;
    /* Sage Green */
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
    font-weight: 700;
}

.contact-info-content p {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

/* ========================================
   FOOTER
   ======================================== */
.footer-dark {
    background: #eaeaec;
    border-top: 1px solid rgba(0, 0, 0, 0.15);
}

.footer-main .container {
    max-width: 1200px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-links h3,
.footer-services h3,
.footer-contact h3 {
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links ul li,
.footer-services ul li {
    margin-bottom: 15px;
}

.footer-links a,
.footer-services a {
    color: var(--text-secondary);
    font-size: 14px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links a i,
.footer-services a i {
    font-size: 10px;
    color: var(--accent);
    opacity: 0.5;
}

.footer-links a:hover,
.footer-services a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-contact-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.footer-contact-item i {
    color: var(--accent);
    margin-top: 4px;
}

.footer-contact-item span {
    font-size: 14px;
    color: var(--text-secondary);
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: var(--transition);
    font-size: 14px;
}

.footer-social a:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    padding: 30px 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

/* ========================================
   ANIMATIONS & UTILITIES
   ======================================== */
.hidden {
    opacity: 0;
    transform: translateY(30px);
}

.show {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
/* ========================================
   RESPONSIVE DESIGN (Consolidated & Organized)
   ======================================== */

/* Tablet & Smaller Desktop (1024px) */
@media (max-width: 1024px) {

    /* Stacked Grid Layouts */
    .skills-expertise-layout,
    .timeline,
    .blog-grid,
    .contact-layout,
    .education-layout,
    .skills-grid,
    .services-grid,
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .expertise-column .section-title,
    .skills-column {
        text-align: center;
        margin-left: 0;
        padding-left: 0;
    }

    /* Hero Section Centering */
    .hero-section {
        background: linear-gradient(to bottom, #ffffff 70%, #dee2e6 100%);
        min-height: auto;
        padding-top: 100px;
    }

    .hero-section .container {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 40px 20px;
    }

    .hero-content {
        order: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero-content .name {
        font-size: clamp(18px, 6.5vw, 28px);
        line-height: 1.2;
        white-space: nowrap;
        text-align: center;
        display: block;
        margin-bottom: 20px;
    }

    .hero-content .name span {
        display: inline;
        color: var(--accent);
    }

    .hero-content .greeting {
        display: block;
        text-align: center;
        margin-bottom: 20px;
    }

    .hero-desc {
        font-size: 16px;
        text-align: center;
        margin: 0 auto 30px;
        max-width: 100%;
    }

    .profile-picture {
        order: 1;
        margin-bottom: 40px;
        max-width: 350px;
        margin-left: auto;
        margin-right: auto;
        position: relative;
    }

    .profile-picture img {
        -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0) 100%);
        mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0) 100%);
        filter: drop-shadow(0px 10px 40px rgba(0, 0, 0, 0.05));
    }

    /* Global Section Title Centering */
    .section-title,
    #education .section-title {
        font-size: 24px;
        white-space: nowrap;
        text-align: center;
        width: 100%;
        margin: 0 auto;
        padding-right: 0;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
        gap: 12px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Fixed Gmail Icon Size */
    #nav-email svg {
        width: 22px !important;
        height: auto !important;
    }
}

/* Mobile Devices (768px) */
@media (max-width: 768px) {
    body {
        zoom: 1;
    }

    .container {
        padding: 0 20px;
    }

    /* Navbar & Navigation Menu */
    .navbar .container {
        padding: 5px 20px;
        justify-content: space-between;
    }

    .logo {
        font-size: 15px;
        margin: 0;
    }

    .nav-right {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-end !important;
        gap: 4px !important;
    }

    .nav-social {
        display: flex !important;
        gap: 10px !important;
    }

    .menu-toggle {
        font-size: 20px !important;
        margin-right: -8px !important;
        display: flex !important;
        padding: 0 !important;
    }

    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 75%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 25px;
        transform: translateX(100%);
        transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        z-index: 1500;
        box-shadow: -15px 0 40px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 20px;
        font-weight: 700;
    }

    /* Content Scaling */
    .cta-button {
        width: 100%;
        padding: 12px 24px;
        font-size: 15px;
    }

    .about-description {
        font-size: 15px;
        text-align: justify;
        text-align-last: left;
        text-justify: inter-word;
        word-spacing: -0.05em;
        hyphens: auto;
    }

    /* Education & Training Fixes */
    .edu-column h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .edu-timeline::before {
        left: 14px;
    }

    .edu-item {
        flex-direction: row;
        gap: 20px;
        margin-bottom: 30px;
    }

    .edu-rank {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }

    .edu-rank::after {
        width: 20px;
        right: -20px;
    }

    .edu-info h4 {
        font-size: 14px;
    }

    .edu-info .institution {
        font-size: 13px;
    }

    .edu-info .date {
        font-size: 12px;
    }

    .profile-picture {
        max-width: 280px;
    }

    .section {
        padding: 50px 0;
    }
}

/* Small Phones (480px) */
@media (max-width: 480px) {
    .navbar .container {
        padding: 5px 15px;
    }

    .logo {
        font-size: 14px;
    }

    .nav-right {
        gap: 3px !important;
    }

    .nav-social {
        gap: 8px !important;
    }

    .section {
        padding: 30px 0;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* ========================================
   BLOG/GALLERY SECTION
   ======================================== */

.blog-section {
    background: linear-gradient(to bottom, #dee2e6 0%, #ffffff 100%);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.blog-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.blog-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #f0f0f0;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.album-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.blog-date {
    font-size: 13px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-like-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 4px;
}

.blog-like-btn:hover {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.blog-like-btn.liked {
    color: #e74c3c;
}

.blog-like-btn i {
    font-size: 16px;
}

.blog-title {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    padding: 12px 20px;
    line-height: 1.4;
}

.blog-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
    padding: 0 20px 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 24px;
    }

    .blog-image {
        height: 200px;
    }

    .blog-title {
        font-size: 18px;
    }
}

/* ======================== */
/* Footer CSS Additions */
/* ======================== */

.nav-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

.site-footer {
    padding: 15px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.15);
    background: #fdfdfd;
    text-align: center;
}

.footer-credit {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
}