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

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

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

/* Header/Hero Section */
.hero {
    position: relative;
    padding: 80px 20px 100px; /* Restored original padding */
    text-align: center;
    overflow: hidden;
    background: #000;
}

.hero-half {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background-image: url('../images/hero.png');
    background-size: 200% auto; /* 200% width so each half covers its side of the full image */
    z-index: 1;
}

.hero-left {
    left: 0;
    background-position: left center;
    animation: slideInLeft 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero-right {
    right: 0;
    background-position: right center; /* This picks the right side of the 200% scaled image */
    animation: slideInRight 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.9) 0%, rgba(42, 82, 152, 0.85) 100%);
    z-index: 2;
    opacity: 0;
    animation: fadeInOverlay 1s ease-out 1.2s forwards;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    opacity: 0;
    animation: fadeInContent 1s ease-out 1.5s forwards;
    padding: 0 20px;
}

/* Animations */
@keyframes slideInLeft {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@keyframes fadeInOverlay {
    to { opacity: 1; }
}

@keyframes fadeInContent {
    to { opacity: 1; }
}

.hero::before {
   /* Removed old pattern overlay to simplify the split animation look, 
      or it can be added to .hero-overlay if needed */
    display: none;
}

.hero-visual {
    max-width: 180px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.hero-visual svg {
    width: 100%;
    max-width: 180px;
    max-height: 180px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 10px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero .subtitle {
    font-size: 1.4em;
    margin-bottom: 20px;
    opacity: 0.95;
    font-weight: 300;
}

.hero .tagline {
    font-size: 1.1em;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
    line-height: 1.7;
}

.experience-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
    margin-top: 10px;
}

/* Stats Section */
.stats {
    background: white;
    margin-top: -50px;
    position: relative;
    z-index: 2;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    padding: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5em;
    color: #2a5298;
    margin-bottom: 5px;
}

.stat-item p {
    color: #666;
    font-size: 0.95em;
}

/* Section Styles */
section {
    padding: 80px 20px;
}

section h2 {
    font-size: 2.5em;
    margin-bottom: 15px;
    color: #1e3c72;
    text-align: center;
}

section .section-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1em;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Expertise Cards */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.expertise-card {
    background: white;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid #2a5298;
}

.expertise-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.expertise-card h3 {
    color: #1e3c72;
    font-size: 1.5em;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.expertise-card .icon {
    font-size: 1.8em;
}

.expertise-card ul {
    list-style: none;
    margin-top: 15px;
}

.expertise-card li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #555;
}

.expertise-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #2a5298;
    font-weight: bold;
}

/* Skills Section */
.skills-section {
    background: white;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

@media (min-width: 769px) and (max-width: 1100px) {
    .skills-container {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .skill-category:nth-last-child(1) {
        grid-column: 2 / 3;
    }
}

@media (min-width: 1101px) {
    .skills-container {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .skill-category:nth-child(5) {
        grid-column: 1 / 2;
    }
    
    .skill-category:nth-child(6) {
        grid-column: 2 / 3;
    }
    
    .skill-category:nth-child(7) {
        grid-column: 3 / 4;
    }
}

.skill-category h3 {
    color: #1e3c72;
    font-size: 1.3em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #2a5298;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background: #e8f0fe;
    color: #1e3c72;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
    border: 1px solid #d0e1fd;
    transition: all 0.3s ease;
    cursor: default;
}

.skill-tag:hover {
    transform: translateY(-3px);
    background: #2a5298;
    color: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Value Props */
.value-props {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8eef5 100%);
}

.props-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.prop-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    border-left: 5px solid #2a5298;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
}

.prop-card h4 {
    color: #1e3c72;
    font-size: 1.2em;
    margin-bottom: 12px;
}

.prop-card p {
    color: #666;
    line-height: 1.7;
}

/* Contact Section */
.contact-section {
    background: white;
}

.contact-container {
    max-width: 700px;
    margin: 0 auto;
}

.contact-form {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #1e3c72;
    font-weight: 600;
    font-size: 0.95em;
}

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

.form-group input:focus,
    .form-group textarea:focus,
    .form-group select:focus {
    outline: none;
    border-color: #2a5298;
}

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

.submit-btn {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 6px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(42, 82, 152, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Footer */
footer {
    background: #1e3c72;
    color: white;
    text-align: center;
    padding: 30px 20px;
}

footer p {
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2em;
    }

    .hero .subtitle {
        font-size: 1.2em;
    }

    .hero-visual {
        max-width: 140px;
        margin-bottom: 20px;
    }

    section h2 {
        font-size: 2em;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-form {
        padding: 25px;
    }
}

/* Success Message */
.success-message {
    display: none;
    background: #d4edda;
    color: #155724;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #c3e6cb;
    margin-bottom: 20px;
    text-align: center;
}

.success-message.show {
    display: block;
}
