/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: #555;
}

.lead {
    font-size: 1.125rem;
    font-weight: 500;
    color: #333;
}

/* Header and Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand .logo {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #0066cc;
}

.nav-link:hover::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: #0066cc;
    border-radius: 1px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    background-image: url('../images/hero-background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #0066cc; /* Fallback color */
    padding: 120px 0 60px 0; /* Increased top padding for fixed header */
}

.hero-profile {
    position: absolute;
    left: 5%;
    bottom: 0;
    z-index: 1;
    width: 400px;
    height: auto;
}

.hero-profile-img {
    width: 100%;
    height: auto;
    max-width: 400px;
    display: block;
    /* Optimize for retina displays */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    /* Professional drop shadow */
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3)) 
            drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
    transition: filter 0.3s ease, transform 0.3s ease;
}

.hero-profile-img:hover {
    filter: drop-shadow(0 15px 40px rgba(0, 0, 0, 0.35)) 
            drop-shadow(0 8px 20px rgba(0, 0, 0, 0.25));
    transform: translateY(-5px);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    color: white;
    padding: 3rem;
    width: 45%;
    max-width: 600px;
    margin-left: 50%;
    margin-right: 5%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
    /* Responsive typography scaling */
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    line-height: 1.1;
}

.hero-subtitle {
    /* Responsive subtitle scaling */
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin-bottom: 2rem;
    color: white;
    opacity: 0.95;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    line-height: 1.4;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
    /* Enhanced button spacing for touch targets */
    min-height: 44px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #0066cc;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.btn-primary:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #0066cc;
    transform: translateY(-2px);
}

/* Sections */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #0066cc;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    padding: 6rem 0;
    background: #f8f9fa;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

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

.highlight-card {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-5px);
}

.highlight-card h3 {
    font-size: 2rem;
    color: #0066cc;
    margin-bottom: 0.5rem;
}

.highlight-card p {
    color: #666;
    margin: 0;
}

/* Experience Section */
.experience {
    padding: 6rem 0;
    background: white;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e9ecef;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 80px;
}

.timeline-marker {
    position: absolute;
    left: 21px;
    top: 0;
    width: 18px;
    height: 18px;
    background: #0066cc;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.timeline-marker.current {
    background: #28a745;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(40, 167, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}

.timeline-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.timeline-header {
    margin-bottom: 1rem;
}

.timeline-header h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.company {
    font-weight: 600;
    color: #0066cc;
    margin-right: 1rem;
}

.period {
    color: #666;
    font-style: italic;
}

.role-description {
    font-style: italic;
    color: #666;
    margin-bottom: 1rem;
}

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

.timeline-content li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: #555;
}

.timeline-content li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #0066cc;
    font-weight: bold;
}

.company-link {
    display: inline-block;
    margin-top: 1rem;
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.company-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Consulting Projects Styles */
.consulting-projects {
    margin: 1.5rem 0;
}

.project {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #0066cc;
}

.project h4 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.project-client {
    color: #0066cc;
    font-weight: 600;
    font-style: italic;
    display: block;
    margin-bottom: 1rem;
}

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

.project li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: #555;
    font-size: 0.95rem;
}

.project li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #0066cc;
    font-weight: bold;
}

.linkedin-link {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.linkedin-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: #f8f9fa;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h3 {
    color: #333;
    margin-bottom: 1rem;
}

.contact-info p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item h4 {
    color: #0066cc;
    margin-bottom: 0.5rem;
}

.contact-item p {
    margin: 0;
    color: #555;
}

.contact-form-container {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0066cc;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-brand .footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    color: #ccc;
    line-height: 1.6;
}

.footer-links h4,
.footer-contact h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-contact p {
    color: #ccc;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 1rem;
    text-align: center;
    color: #999;
}

/* Responsive Design */

/* Ultra-Wide Screens (1400px+) */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
        padding: 0 40px;
    }
    
    .nav {
        padding: 1rem 3rem;
    }
    
    .hero {
        min-height: 700px;
    }
    
    .hero-content {
        width: 40%;
        max-width: 700px;
        padding: 4rem;
        margin-left: 55%;
        margin-right: 5%;
    }
    
    .hero-title {
        font-size: 3.5rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .section-header {
        margin-bottom: 5rem;
    }
    
    .about-content {
        gap: 5rem;
    }
    
    .timeline {
        max-width: 1200px;
        margin: 0 auto;
    }
}

/* Large Desktop (1200-1400px) */
@media (min-width: 1200px) and (max-width: 1399px) {
    .container {
        max-width: 1200px;
        padding: 0 30px;
    }
    
    .hero {
        min-height: 650px;
    }
    
    .hero-content {
        width: 45%;
        max-width: 650px;
        margin-left: 50%;
        margin-right: 5%;
        padding: 3.5rem;
    }
    
    .hero-title {
        font-size: 3.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
}

/* Standard Desktop/Tablet Landscape (1024px-1199px) */
@media (max-width: 1199px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-highlights {
        flex-direction: row;
        justify-content: space-around;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

/* Tablet Portrait/Small Desktop (769px-1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .hero {
        min-height: 500px;
        justify-content: center;
    }
    
    .hero-profile {
        display: none; /* Hide profile image on tablets */
    }
    
    .hero-content {
        width: 80%;
        max-width: 600px;
        margin: 0 auto;
        padding: 2.5rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .timeline-item {
        padding-left: 70px;
    }
}

/* Small Tablet (600px-768px) */
@media (max-width: 768px) and (min-width: 601px) {
    .container {
        padding: 0 25px;
    }
    
    .hero {
        justify-content: center;
        min-height: 450px;
    }
    
    .hero-profile {
        display: none; /* Hide profile image on small tablets */
    }
    
    .hero-content {
        text-align: center;
        margin: 0 auto;
        width: 85%;
        max-width: 500px;
        padding: 2.5rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.05rem;
    }
    
    .hero-cta {
        justify-content: center;
        flex-direction: row;
        gap: 1rem;
    }
    
    .btn {
        min-width: 140px;
        padding: 12px 24px;
    }
    
    .about-highlights {
        flex-direction: row;
        gap: 1rem;
    }
    
    .highlight-card {
        flex: 1;
        min-width: 150px;
    }
}

/* Mobile Landscape/Large Mobile (481px-600px) */
@media (max-width: 600px) and (min-width: 481px) {
    .nav {
        padding: 0.8rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 65px;
        left: -100%;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 1.5rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        gap: 1rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero {
        justify-content: center;
        min-height: 400px;
    }
    
    .hero-profile {
        display: none; /* Hide profile image on mobile landscape */
    }
    
    .hero-content {
        text-align: center;
        margin: 0 auto;
        width: 90%;
        max-width: 400px;
        padding: 2rem;
    }
    
    .hero-title {
        font-size: 1.9rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-cta {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0.8rem;
    }
    
    .btn {
        padding: 14px 24px;
        font-size: 1rem;
        min-width: 200px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .timeline {
        margin-left: 0.8rem;
    }
    
    .timeline-item {
        padding-left: 55px;
    }
    
    .about-highlights {
        flex-direction: column;
        gap: 1.2rem;
    }
    
    .highlight-card {
        padding: 1.5rem;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
}

/* Mobile Portrait (max-width: 480px) */
@media (max-width: 480px) {
    .hero-profile {
        display: none; /* Hide profile image on mobile */
    }
    
    .nav {
        padding: 0.8rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 1.5rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        gap: 1rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero {
        justify-content: center;
        min-height: 400px;
    }
    
    .hero-content {
        text-align: center;
        margin: 0 auto;
        width: 95%;
        max-width: 360px;
        padding: 1.5rem;
    }
    
    .hero-title {
        font-size: 1.6rem;
        line-height: 1.3;
        margin-bottom: 1rem;
        /* Better mobile readability */
        word-break: break-word;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        line-height: 1.4;
    }
    
    .hero-cta {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0.8rem;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        min-width: 180px;
        /* Enhanced touch targets */
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .timeline {
        margin-left: 0.5rem;
    }
    
    .timeline::before {
        left: 15px;
    }
    
    .timeline-marker {
        left: 6px;
        width: 18px;
        height: 18px;
    }
    
    .timeline-item {
        padding-left: 45px;
        margin-bottom: 2rem;
    }
    
    .timeline-header h3 {
        font-size: 1.2rem;
    }
    
    .about-highlights {
        flex-direction: column;
        gap: 1rem;
    }
    
    .highlight-card {
        padding: 1.2rem;
        text-align: center;
    }
    
    .highlight-card h3 {
        font-size: 1.3rem;
    }
    
    .contact-form-container {
        padding: 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1.2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
}

/* Extra Small Mobile (max-width: 320px) */
@media (max-width: 320px) {
    .hero-profile {
        display: none; /* Hide profile image on extra small mobile */
    }
    
    .container {
        padding: 0 10px;
    }
    
    .nav {
        padding: 0.5rem;
    }
    
    .nav-brand .logo {
        height: 35px;
    }
    
    .hero {
        min-height: 350px;
    }
    
    .hero-content {
        padding: 1rem;
        width: 98%;
        max-width: 300px;
        margin: 0 auto;
        border-radius: 8px;
    }
    
    .hero-title {
        font-size: 1.4rem;
        line-height: 1.4;
        margin-bottom: 0.8rem;
        /* Improved small screen readability */
        word-break: break-word;
        hyphens: auto;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
        line-height: 1.5;
    }
    
    .hero-cta {
        gap: 0.6rem;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 0.85rem;
        min-width: 160px;
        min-height: 44px;
        /* Optimal touch targets for small screens */
        border-radius: 8px;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .timeline-item {
        padding-left: 35px;
    }
    
    .timeline-marker {
        width: 14px;
        height: 14px;
        left: 3px;
    }
    
    .timeline::before {
        left: 10px;
    }
    
    .highlight-card {
        padding: 1rem;
    }
    
    .highlight-card h3 {
        font-size: 1.1rem;
    }
    
    .contact-form-container {
        padding: 1rem;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 0.9rem;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Scroll Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}