/* ==========================================================================
   Typography & Font Configuration
   ========================================================================== */
@import url('https://googleapis.com');

/* ==========================================================================
   Smooth Scrolling and Anchor Offsets
   ========================================================================== */
html {
    scroll-behavior: smooth;    /* Makes the transition smooth when clicking links */
    scroll-padding-top: 110px;  /* 90px navbar + 20px breathing room */
}

/* Global Reset & Base Styling */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    margin: 0;
    padding-top: 90px; 
}

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

.section {
    padding: 40px 0;
}

#about {
    padding-top: 20px; 
}

/* ==========================================================================
   Header Navigation Styles
   ========================================================================== */

/* Header Container */
header.navbar {
    display: flex;
    justify-content: space-between; 
    align-items: center;            
    padding: 15px 40px;             
    background-color: #f7f9fa;      
    position: fixed;        /* UPDATED: Locked to view screen */
    top: 0;                 /* NEW: Anchored to absolute top edge */
    left: 0;                /* NEW: Anchored to absolute left edge */
    width: 100%;            /* NEW: Spans entire horizontal viewport screen */
    z-index: 1000;          /* NEW: Forces bar to stay layered on top of sections */
    height: 90px;  /* Reduced from 120px to save vertical screen space */                   
    box-sizing: border-box;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); /* OPTIONAL: Subtle separator line during scroll */
}


/* Structural anchor wrapper for Logo */
header > a {
    display: block;
    width: auto;                   
    height: 90px;                   
    position: absolute;             
    left: 40px;                     
    top: 50%;
    transform: translateY(-50%);    
    z-index: 10;                    
}

/* Base Logo Styling */
.logo-img {
    height: 90px;                   
    width: auto;                    
    display: block;
    cursor: pointer;                
    transform-origin: left center;  
    transition: transform 0.25s ease; 
}

.logo-img:hover {
    transform: scale(1.15); /* Controlled scale up to keep navbar elements balanced */        
}

/* Navigation Menu */
header nav {
    display: flex;
    align-items: center;            
    gap: 30px;                      
    margin-left: auto;              
}

header nav a {
    text-decoration: none;         
    color: #333333;                 
    font-weight: 500;               
    font-size: 15px;                
    transition: color 0.2s ease;    
}

header nav a:hover {
    color: #0066cc;                 
}

/* ==========================================================================
   Compact Professional Hero Section Styles
   ========================================================================== */

.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 50px 0; 
    background-color: #f7f9fa;
 }

/* Increased max-width to 850px to prevent text wrapping on Honeywell title */
.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 850px;
    width: 100%;
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #eef1f3;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.03);
}

.hero-text-box {
    flex: 1;
    padding-right: 40px;
}

/* Scaled down headline font sizing for executive polish */
.hero-title {
    font-family: 'Noto Serif', serif;
    font-size: 2.6rem;
    font-weight: 500;
    color: #111827;
    margin: 0;          /* Zeroes out top, right, bottom, and left margins */
    letter-spacing: -0.02em;
    padding-bottom: 0;  /* Prevents any padding from creating a gap */
}

/* Compact structural metadata line */
.hero-credentials {
    font-size: 1.1rem;
    color: #4b5563;
    margin-top: 0;      /* Removes default top spacing from the credentials */
    margin-bottom: 16px;/* Keeps space below credentials before the next element */
    padding-top: 0;     /* Prevents any top padding */
}

.native-name {
    font-weight: 500;
}

.degree {
    color: #6b7280;
}

/* Tighter padding spacing around grid rules */
.divider-line {
    border: none;
    height: 1px;
    background-color: #e5e7eb;
    margin-bottom: 18px;
}

.subtitle {
    margin: 0;
    line-height: 1.5;
}

.main-role {
    font-size: 0.95rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 4px;
}

.sub-role {
    font-size: 1rem;
    font-weight: 400;
    color: #6b7280;
}

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

/* Tighter profile highlight frame padding layout */
.image-ring {
    padding: 8px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid #f3f4f6;
}

/* Scaled profile image boundary frame downwards to match typographic scale */
.profile-pic {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: contain;
    display: block;
    background-color: #f9fafb;
}

/* ==========================================================================
   Portfolio Inner Subsections & Cards
   ========================================================================== */

/* Flexbox Portfolio Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

/* Cards Design Elements */
.card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 28px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.card h3 {
    margin-top: 0;
    color: #1a202c;
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.card h4 {
    margin-top: 16px;
    margin-bottom: 8px;
    color: #2d3748;
    font-size: 1rem;
}

h2 {
    font-size: 2rem;
    color: #111827;
    margin-bottom: 20px;
    font-weight: 600;
}

p {
    font-size: 1.05rem; /* Clean, highly readable default size */
    color: #4b5563;
    margin-bottom: 16px;
}

.project-desc {
    margin-bottom: 14px;
    color: #4a5568;
}

/* Bullet list architectural styles (Consolidated from duplicates) */
.achievements-list {
    list-style-type: disc; 
    padding-left: 20px;    
    margin-bottom: 24px;   
}

.achievements-list li {
    margin-bottom: 10px;    
    color: #4a5568;
}

/* Technical Stack Tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.tags span {
    background: #edf2f7;
    color: #2d3748;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.project-link {
    color: #0066cc;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

/* ==========================================================================
   Socials & Contact Elements
   ========================================================================== */

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

.contact-links {
    margin-top: 20px;
    margin-bottom: 50px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.contact-links a {
    color: #6b7280;
    text-decoration: none;
    font-weight: 400;
    display: inline-flex;
    align-items: center;
}

.contact-links a:hover {
    color: #0066cc;                 
}

.hero-socials {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 35px;
    margin-top: 30px;
}

.hero-socials a {
    color: #9ca3af;
    font-size: 1.35rem;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.hero-socials a:hover {
    color: #4b5563;
    transform: translateY(-2px);
}

footer {
    text-align: center;
    padding: 40px 0;
    color: #6b7280;
    font-size: 14px;
    border-top: 1px solid #e5e7eb;
    margin-top: 40px;
}

/* ==========================================================================
   Responsive Adaptations (Mobile Viewports)
   ========================================================================== */
@media (max-width: 768px) {
    header.navbar {
        flex-direction: column;
        height: auto;
        padding: 20px;
        gap: 15px;
    }

    header > a {
        position: relative;
        left: 0;
        top: 0;
        transform: none;
        height: auto;
        margin-bottom: 10px;
    }

    header nav {
        margin-left: 0;
        justify-content: center;
        width: 100%;
    }

    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        padding: 30px 20px;
    }
    
    .hero-text-box {
        padding-right: 0;
        margin-top: 25px;
    }
    
    .hero-title {
        font-size: 1.9rem;
    }

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

.divider-text-wrap {
    display: inline-block;       /* Shrinks the width to fit the text exactly */
    border-top: 2px solid #ccc;  /* Creates the divider line; change color/thickness as needed */
    padding-top: 3px;           /* Adds space between the line and the text below it */
    margin-top: 3px;            /* Adds space between the line and the credentials above it */
}

/* Optional: Ensure the paragraph inside doesn't add extra unwanted margins */
.divider-text-wrap .main-role {
    margin: 0;
}

/* Container for the logo section */
.trusted-by-container {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    text-align: center; /* Center the whole section */
}


/* Elegant minor label for the section */
.trusted-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 15px;
}

/* Horizontal flexbox grid layout */
.logo-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center; /* Center logos in the grid */
    gap: 40px;
    margin-top: 0;
}

/* Individual logo wrapper */
.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* The actual logo image styles */
.company-logo {
    height: auto;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    opacity: 0.65;
    transition: all 0.25s ease;
}

/* Interactive hover effect */
.company-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}


/* Responsive fix for mobile displays */
@media (max-width: 768px) {
    .logo-grid {
        justify-content: center;
        gap: 24px;
    }
    .logo-item {
        flex: unset;
    }
}
/* Styling for your opening elevator pitch */
.about-lead {
    font-size: 1rem;
    line-height: 1.6;
    color: #111827; /* Darker tone for immediate emphasis */
    margin-bottom: 16px;
}

/* Styling for secondary body paragraphs */
.about-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #4b5563; /* Slightly softer gray for content hierarchy */
    margin-bottom: 16px;
}


/* Specific logo adjustments if required */
#siemens-custom, #honeywell-custom, #ibm-custom {
    max-height: 155px;
    width: 100%;
    height: auto;
    transform-origin: center center;
}

.project-title {
    font-size: 24px;
    color: #1a1a1a;
    margin-top: 0;
    margin-bottom: 12px;
    font-weight: 700;
}

.section-subtitle {
        font-size: 16px;
        color: #2c3e50;
        margin-top: 20px;
        margin-bottom: 10px;
        font-weight: 600;
    }
 .achievements-list {
        padding-left: 20px;
        margin-bottom: 25px;
    }
    .achievements-list li {
        font-size: 14px;
        color: #444444;
        line-height: 1.6;
        margin-bottom: 10px;
    }
    .achievements-list strong {
        color: #111111;
    }
  .metrics-container {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        margin-bottom: 25px;
    }
    .metric-badge {
        background: #f8f9fa;
        border-left: 4px solid #007bff;
        padding: 8px 14px;
        border-radius: 0 6px 6px 0;
        font-size: 13px;
        color: #333333;
        box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    }
       .metric-badge strong {
        color: #007bff;
        font-size: 14px;
    }
    
 
