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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #fafafa;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Headings use Roboto with different weights */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 700;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
    /* Prevent layout shift during font loading */
    font-display: swap;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    /* Prevent layout shift by ensuring consistent sizing */
    min-height: 70px;
}

.nav-logo a {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    text-decoration: none;
    letter-spacing: -0.5px;
    /* Prevent layout shift by ensuring consistent sizing */
    line-height: 1.2;
    display: inline-block;
    min-width: 120px; /* Reserve space for the logo */
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
    /* Prevent layout shift by ensuring consistent flex behavior */
    flex-shrink: 0;
}

.nav-menu a {
    color: #666;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
    text-transform: lowercase;
    /* Prevent layout shift by ensuring consistent line height */
    line-height: 1.4;
    display: inline-block;
}

.nav-menu a:hover {
    color: #333;
}

/* Language Switcher */
.lang-switcher {
    margin-left: auto;
    min-width: 140px; /* Fixed width to prevent layout shifts */
    display: flex;
    justify-content: flex-end;
}

.lang-link {
    background: linear-gradient(135deg, #00A5DD 0%, #0088BB 100%);
    color: white !important;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-transform: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0, 165, 221, 0.3);
    min-width: 120px; /* Fixed width to prevent layout shifts */
    justify-content: center; /* Center the content within the fixed width */
}

.lang-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 165, 221, 0.4);
}

/* Hero Section */
.hero {
    padding: 140px 0 100px;
    text-align: center;
    background: linear-gradient(135deg, #00A5DD 0%, #0088BB 100%);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #f8f9fa;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    transform: scaleX(1.2);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(48px, 8vw, 80px);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: -2px;
    line-height: 1.1;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    /* Hide initially to prevent flash before typing animation */
    opacity: 0;
    /* Fallback: show titles if JavaScript doesn't run (after 3 seconds) */
    animation: showTitleFallback 0.1s ease 3s forwards;
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 20px;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.hero-description {
    font-size: 20px;
    color: #ffffff;
    margin-bottom: 40px;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 16px 32px;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: #ffffff;
    color: #00A5DD;
    border-color: #ffffff;
}

.btn-primary:hover {
    background-color: #f8f9fa;
    border-color: #f8f9fa;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.8);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Table of Contents */
.toc {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.toc h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    text-transform: lowercase;
}

.toc-list {
    list-style: none;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.toc-list a {
    color: #666;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
}

.toc-list a:hover {
    color: #333;
}

/* Sections */
section {
    padding: 80px 0;
}

section h2 {
    font-size: 36px;
    color: #1a1a1a;
    margin-bottom: 30px;
    font-weight: 700;
    text-transform: lowercase;
    position: relative;
    padding-bottom: 16px;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #00A5DD 0%, #0088BB 100%);
    border-radius: 2px;
}

section p {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.7;
}

/* About Section */
.about {
    background-color: #f8f9fa;
}

.about p:first-of-type {
    font-size: 20px;
    color: #333;
    font-weight: 500;
}

/* Services Section */
.services {
    background-color: #f8f9fa;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

/* Projects list (single column readable cards) */
.projects-list {
    display: grid;
    gap: 30px;
    margin-top: 30px;
}

.project-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    background-color: white;
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.project-card .project-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    transition: all 0.3s ease;
}

.project-thumbnail {
    cursor: pointer;
}

.project-thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.project-excerpt {
    margin-bottom: 15px;
    color: #666;
    line-height: 1.6;
}

.project-description {
    margin-bottom: 15px;
    color: #555;
    line-height: 1.7;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.project-description h1, .project-description h2, .project-description h3, 
.project-description h4, .project-description h5, .project-description h6 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #333;
}

.project-description p {
    margin-bottom: 12px;
}

.project-description ul, .project-description ol {
    margin: 10px 0;
    padding-left: 25px;
}

.project-description li {
    margin-bottom: 5px;
}

.project-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.project-toggle {
    background: #00A5DD;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.project-toggle:hover {
    background: #0088BB;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 165, 221, 0.3);
}

.project-card .project-content h3 {
    margin-bottom: 8px;
}

.project-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 10px;
}

.project-actions .btn-secondary {
    background-color: #00A5DD;
    color: white;
    border-color: #00A5DD;
    font-size: 14px;
    padding: 10px 20px;
}

.project-actions .btn-secondary:hover {
    background-color: #0088BB;
    border-color: #0088BB;
    color: white;
}

/* Project Show More/Less Functionality */
.project-hidden {
    display: none !important;
}

.projects-show-more {
    text-align: center;
    margin-top: 40px;
    padding: 20px 0;
}

#show-more-projects {
    background: linear-gradient(135deg, #00A5DD 0%, #0088BB 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 165, 221, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

#show-more-projects:hover {
    background: linear-gradient(135deg, #0088BB 0%, #006699 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 165, 221, 0.4);
}

#show-more-projects:active {
    transform: translateY(0);
}

.projects-count {
    font-size: 14px;
    opacity: 0.8;
    font-weight: 400;
}

/* Smooth transition for showing/hiding projects */
.projects-list {
    transition: all 0.3s ease;
}

/* Recent Blog Posts Preview Section */
#recent-blogs {
    background-color: #f8f9fa;
}

.blog-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.blog-preview-card {
    background: white;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.blog-preview-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 165, 221, 0.1);
}

.blog-preview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #00A5DD 0%, #0088BB 100%);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.3s ease;
}

.blog-preview-card:hover::before {
    transform: scaleY(1);
}

.blog-preview-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.blog-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.blog-preview-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-preview-content h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.blog-preview-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 15px;
}

.blog-preview-meta {
    margin-bottom: 20px;
}

.blog-preview-meta time {
    color: #999;
    font-size: 14px;
    font-weight: 500;
}

.blog-preview-link {
    background: linear-gradient(135deg, #00A5DD 0%, #0088BB 100%);
    color: white !important;
    border: none;
    font-weight: 600;
    font-size: 14px;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 165, 221, 0.3);
    margin-top: auto;
}

.blog-preview-link:hover {
    background: linear-gradient(135deg, #0088BB 0%, #006699 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 165, 221, 0.4);
    color: white !important;
    text-decoration: none;
}

.blog-preview-more {
    text-align: center;
    margin-top: 40px;
    padding: 20px 0;
}

.blog-preview-more .btn-primary {
    background: linear-gradient(135deg, #00A5DD 0%, #0088BB 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 165, 221, 0.3);
    text-decoration: none;
    display: inline-block;
}

.blog-preview-more .btn-primary:hover {
    background: linear-gradient(135deg, #0088BB 0%, #006699 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 165, 221, 0.4);
    color: white;
    text-decoration: none;
}

/* Blog meta tags styling */
.blog-meta-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.blog-meta-tags .tech-tag {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.blog-meta-tags .category-tag {
    background: linear-gradient(135deg, #00A5DD 0%, #0088BB 100%);
    color: white;
}

.blog-meta-tags .date-tag,
.blog-meta-tags .views-tag {
    background: #f1f3f4;
    color: #666;
    border: 1px solid #e0e0e0;
}

.blog-preview-content h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-preview-content h3 a:hover {
    color: #00A5DD;
}

/* Responsive adjustments for blog preview */
@media (max-width: 768px) {
    .blog-preview-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 30px 0;
    }
    
    .blog-preview-image {
        height: 160px;
    }
    
    .blog-preview-content {
        padding: 20px;
    }
    
    .blog-preview-content h3 {
        font-size: 18px;
    }
}

/* Blog Read More Button */
.blog-card .btn-secondary {
    background: linear-gradient(135deg, #00A5DD 0%, #0088BB 100%);
    color: white !important;
    border: none;
    font-weight: 600;
    font-size: 14px;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 165, 221, 0.3);
    margin-top: 15px;
}

.blog-card .btn-secondary:hover {
    background: linear-gradient(135deg, #0088BB 0%, #00A5DD 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 165, 221, 0.4);
    color: white !important;
    text-decoration: none;
}

.project-excerpt {
    color: #666;
}

@media (max-width: 768px) {
    .project-card {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background-color: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #00A5DD 0%, #0088BB 100%);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover::before {
    transform: scaleY(1);
    transform-origin: top;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 165, 221, 0.15);
    border-color: rgba(0, 165, 221, 0.1);
}

.service-card h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.service-card p {
    margin-bottom: 20px;
}

/* Project description rich HTML */
.project-description h3,
.project-description h4 {
    margin: 12px 0 6px;
}

.project-description ul,
.project-description ol {
    padding-left: 20px;
    margin: 8px 0 12px;
}

.project-description li {
    margin: 4px 0;
}

.project-description code,
.project-description pre {
    background: #f6f8fa;
    border-radius: 6px;
    padding: 2px 6px;
}

.project-description a {
    color: #2b3a8a;
    text-decoration: underline;
}

.service-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 2px solid #333;
    transition: border-color 0.3s ease;
}

.service-link:hover {
    border-bottom-color: #666;
}

/* Experience Section */
.experience {
    background-color: white;
}

.experience-item {
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e5e5e5;
}

.experience-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.experience-period {
    font-size: 16px;
    color: #666;
    font-weight: 500;
    margin-bottom: 10px;
}

.experience-item h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    list-style: none;
}

.tech-list li {
    background-color: #f8f9fa;
    color: #333;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #e5e5e5;
}

.cv-download {
    display: inline-block;
    margin-top: 40px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 2px solid #333;
    transition: border-color 0.3s ease;
}

.cv-download:hover {
    border-bottom-color: #666;
}

/* Footer */
.footer {
    background-color: #333;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-menu ul {
    list-style: none;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

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

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

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.footer-link:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-link {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: white;
}

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

.footer-bottom p {
    color: #999;
    font-size: 14px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    padding: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        gap: 0;
        padding: 20px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
        padding: 10px 0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu a {
        font-size: 16px;
        display: block;
        padding: 10px;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .toc-list {
        flex-direction: column;
        gap: 15px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 30px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-menu ul {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    section {
        padding: 60px 0;
    }
    
    section h2 {
        font-size: 28px;
    }
    
    .hero-title {
        font-size: 48px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .hero-container {
        padding: 0 15px;
    }
    
    .nav-menu {
        gap: 15px;
    }
    
    .nav-menu a {
        font-size: 13px;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-description {
        font-size: 18px;
    }
    
    section h2 {
        font-size: 24px;
    }
    
    section p {
        font-size: 16px;
    }
    
    .service-card {
        padding: 25px;
    }
    
    .tech-list {
        gap: 10px;
    }
    
    .tech-list li {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* Smooth scrolling offset for fixed navbar */
section {
    scroll-margin-top: 80px;
}

/* Page-specific styles */
.page-hero {
    padding: 140px 0 100px;
    text-align: center;
    background: linear-gradient(135deg, #00A5DD 0%, #0088BB 100%);
    position: relative;
    overflow: hidden;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #f8f9fa;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    transform: scaleX(1.2);
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: -1px;
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.page-hero .hero-subtitle {
    color: rgba(255, 255, 255, 0.95);
}

/* Hide page hero titles initially to prevent flash before typing animation */
.page-hero h1 {
    opacity: 0;
}

/* Fallback: show titles if JavaScript doesn't run (after 3 seconds) */
.page-hero h1 {
    animation: showTitleFallback 0.1s ease 3s forwards;
}

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

/* Development Services */
.development-services {
    padding: 80px 0;
    background-color: white;
}

.development-services h2 {
    text-align: center;
    margin-bottom: 50px;
}

.service-icon {
    font-size: 48px;
    margin-bottom: 20px;
    text-align: center;
}

.service-features {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.service-features li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding-left: 20px;
}

.service-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

.service-features li:last-child {
    border-bottom: none;
}

/* Technology Stack */
.technology-stack {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.technology-stack h2 {
    text-align: center;
    margin-bottom: 20px;
}

.technology-stack p {
    text-align: center;
    margin-bottom: 50px;
    color: #666;
}

.tech-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.tech-category {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.tech-category h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.tech-tag {
    background-color: #3498db;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* Development Process */
.development-process {
    padding: 80px 0;
    background-color: white;
}

.development-process h2 {
    text-align: center;
    margin-bottom: 20px;
}

.development-process p {
    text-align: center;
    margin-bottom: 50px;
    color: #666;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.process-step {
    text-align: center;
    padding: 30px 20px;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: #3498db;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.process-step h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.process-step p {
    color: #666;
    line-height: 1.6;
}

/* Portfolio Preview */
.portfolio-preview {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.portfolio-preview h2 {
    text-align: center;
    margin-bottom: 20px;
}

.portfolio-preview p {
    text-align: center;
    margin-bottom: 50px;
    color: #666;
}

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

.portfolio-item {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.portfolio-image {
    height: 200px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-image {
    font-size: 48px;
    color: #bdc3c7;
}

.portfolio-content {
    padding: 25px;
}

.portfolio-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.portfolio-content p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.portfolio-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background-color: #2c3e50;
    color: white;
    text-align: center;
}

.cta-section h2 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Freelance specific styles */
.why-freelance {
    padding: 80px 0;
    background-color: white;
}

.why-freelance h2 {
    text-align: center;
    margin-bottom: 20px;
}

.why-freelance p {
    text-align: center;
    margin-bottom: 50px;
    color: #666;
}

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

.benefit-card {
    text-align: center;
    padding: 30px 20px;
}

.benefit-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.benefit-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.benefit-card p {
    color: #666;
    line-height: 1.6;
}

/* Freelance Services */
.freelance-services {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.freelance-services h2 {
    text-align: center;
    margin-bottom: 50px;
}

.services-list {
    display: grid;
    gap: 30px;
}

.service-item {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.service-item h3 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.service-item p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-item ul {
    list-style: none;
    padding: 0;
}

.service-item li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding-left: 20px;
}

.service-item li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #3498db;
    font-weight: bold;
}

.service-item li:last-child {
    border-bottom: none;
}

/* Experience & Skills */
.experience-skills {
    padding: 80px 0;
    background-color: white;
}

.experience-skills h2 {
    text-align: center;
    margin-bottom: 50px;
}

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

.timeline-item {
    display: flex;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #eee;
}

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

.timeline-period {
    min-width: 120px;
    font-weight: 600;
    color: #3498db;
    margin-right: 30px;
}

.timeline-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.timeline-content p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.timeline-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    background-color: #ecf0f1;
    color: #2c3e50;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* Working Process */
.working-process {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.working-process h2 {
    text-align: center;
    margin-bottom: 20px;
}

.working-process p {
    text-align: center;
    margin-bottom: 50px;
    color: #666;
}

/* Availability & Rates */
.availability-rates {
    padding: 80px 0;
    background-color: white;
}

.availability-rates h2 {
    text-align: center;
    margin-bottom: 50px;
}

.availability-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.availability-card,
.rates-card {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
}

.availability-card h3,
.rates-card h3 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.availability-card p,
.rates-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.availability-card ul {
    list-style: none;
    padding: 0;
}

.availability-card li {
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
    padding-left: 20px;
}

.availability-card li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

.availability-card li:last-child {
    border-bottom: none;
}

.rate-options {
    display: grid;
    gap: 20px;
}

.rate-option {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid #e0e0e0;
    transition: border-color 0.3s ease;
}

.rate-option:hover {
    border-color: #3498db;
}

.rate-option h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.rate-option p {
    color: #666;
    margin-bottom: 10px;
}

.rate {
    font-size: 24px;
    font-weight: 700;
    color: #3498db;
}

/* Testimonials */
.testimonials {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 50px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
}

.testimonial:before {
    content: """;
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 60px;
    color: #3498db;
    opacity: 0.3;
}

.testimonial p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author strong {
    color: #333;
    font-weight: 600;
}

.testimonial-author span {
    color: #666;
    display: block;
    font-size: 14px;
}

/* Contact specific styles */
.contact-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-form-container h2 {
    margin-bottom: 20px;
}

.contact-form-container p {
    color: #666;
    margin-bottom: 30px;
}

.contact-form {
    display: grid;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

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

.message {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Contact Information */
.contact-info h2 {
    margin-bottom: 20px;
}

.contact-info p {
    color: #666;
    margin-bottom: 40px;
}

.contact-methods {
    display: grid;
    gap: 30px;
    margin-bottom: 40px;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-icon {
    font-size: 24px;
    min-width: 40px;
}

.contact-details h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.contact-details p {
    color: #333;
    font-weight: 500;
    margin-bottom: 5px;
}

.contact-details small {
    color: #666;
    font-size: 14px;
}

.response-time {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
}

.response-time h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.response-time p {
    color: #666;
    line-height: 1.6;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 50px;
}

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

.faq-item {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.faq-item h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.faq-item p {
    color: #666;
    line-height: 1.6;
}

/* Project Types */
.project-types {
    padding: 80px 0;
    background-color: white;
}

.project-types h2 {
    text-align: center;
    margin-bottom: 20px;
}

.project-types p {
    text-align: center;
    margin-bottom: 50px;
    color: #666;
}

.project-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.project-type {
    text-align: center;
    padding: 30px 20px;
    background-color: #f8f9fa;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.project-type:hover {
    transform: translateY(-5px);
}

.project-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.project-type h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.project-type p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

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

.project-type li {
    padding: 5px 0;
    color: #666;
    font-size: 14px;
}

/* Active navigation state */
.nav-menu a.active {
    color: #333;
    font-weight: 500;
    /* Ensure no layout changes on active state */
    text-decoration: none;
    font-size: 16px;
}

/* Story Button */
.btn-story {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #00A5DD 0%, #0088BB 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 165, 221, 0.3);
}

.btn-story:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 165, 221, 0.4);
}

.btn-story span {
    font-size: 18px;
}

/* Story Modal */
.story-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.story-modal-content {
    background: white;
    padding: 40px;
    border-radius: 16px;
    max-width: 700px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.story-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.story-modal-close:hover {
    color: #333;
}

/* ===============================
   AI Assistant Widget Styles
   =============================== */

.ai-assistant-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #00A5DD 0%, #0088BB 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 165, 221, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
}

.ai-assistant-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 165, 221, 0.6);
}

.ai-assistant-btn .ai-icon {
    font-size: 24px;
}

.ai-assistant-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 380px;
    height: 550px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUpWidget 0.3s ease;
}

@keyframes slideUpWidget {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ai-widget-header {
    background: linear-gradient(135deg, #00A5DD 0%, #0088BB 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-header-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
}

.ai-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.ai-close-btn:hover {
    opacity: 0.8;
}

.ai-widget-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8f9fa;
}

.ai-welcome {
    background: white;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.ai-welcome p {
    margin: 0;
    color: #333;
    line-height: 1.6;
}

.ai-welcome p:first-child {
    margin-bottom: 8px;
}

.ai-chat-messages {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ai-message {
    display: flex;
    animation: fadeInMessage 0.3s ease;
}

@keyframes fadeInMessage {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ai-message-user {
    justify-content: flex-end;
}

.ai-message-content {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 16px;
    line-height: 1.5;
    word-wrap: break-word;
}

.ai-message-user .ai-message-content {
    background: linear-gradient(135deg, #00A5DD 0%, #0088BB 100%);
    color: white;
    border-bottom-right-radius: 4px;
}

.ai-message-assistant .ai-message-content {
    background: white;
    color: #333;
    border: 1px solid #e5e5e5;
    border-bottom-left-radius: 4px;
}

.ai-message-error .ai-message-content {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
    border-radius: 8px;
}

.ai-loading {
    display: flex;
    align-items: center;
    gap: 8px;
}

.loading-dots {
    display: inline-flex;
    gap: 2px;
}

.loading-dots span {
    animation: dotBlink 1.4s infinite;
    opacity: 0;
}

.loading-dots span:nth-child(1) {
    animation-delay: 0s;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotBlink {
    0%, 60%, 100% { opacity: 0; }
    30% { opacity: 1; }
}

.ai-widget-footer {
    padding: 15px 20px;
    background: white;
    border-top: 1px solid #e5e5e5;
    display: flex;
    gap: 10px;
}

.ai-question-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 24px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s ease;
}

.ai-question-input:focus {
    border-color: #00A5DD;
}

.ai-send-btn {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #00A5DD 0%, #0088BB 100%);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.ai-send-btn:hover:not(:disabled) {
    transform: scale(1.1);
}

.ai-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ai-widget-info {
    padding: 8px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e5e5e5;
    text-align: center;
}

.ai-widget-info small {
    color: #666;
    font-size: 12px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .ai-assistant-widget {
        width: calc(100vw - 20px);
        max-width: 100%;
        height: 70vh;
        bottom: 10px;
        right: 10px;
        left: 10px;
        margin: 0 auto;
        border-radius: 12px;
    }
    
    .ai-assistant-btn {
        bottom: 20px;
        right: 20px;
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .ai-assistant-btn .ai-text {
        display: none;
    }
    
    .ai-widget-header {
        padding: 15px;
    }
    
    .ai-header-title {
        font-size: 16px;
    }
    
    .ai-widget-body {
        padding: 15px;
    }
    
    .ai-welcome {
        padding: 12px;
        font-size: 14px;
    }
    
    .ai-message-content {
        max-width: 85%;
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .ai-widget-footer {
        padding: 12px 15px;
    }
    
    .ai-question-input {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .ai-send-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

.story-modal-content h3 {
    font-size: 28px;
    color: #1a1a1a;
    margin-bottom: 20px;
    padding-right: 40px;
}

.story-modal-content #story-text {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

@media (max-width: 768px) {
    .story-modal-content {
        padding: 30px 20px;
        max-height: 90vh;
    }
    
    .story-modal-content h3 {
        font-size: 24px;
    }
}

/* Business Card Styles */
.business-card-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e5e5e5;
}

.business-card-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: linear-gradient(135deg, #00A5DD 0%, #0088BB 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 165, 221, 0.3);
    width: 100%;
    justify-content: center;
}

.business-card-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 165, 221, 0.4);
}

.business-card-btn span {
    font-size: 20px;
}

/* Business Card Modal */
.business-card-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.business-card-modal-content {
    background: white;
    border-radius: 20px;
    max-width: 450px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.business-card-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
    z-index: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
}

.business-card-close:hover {
    color: #333;
    background: rgba(255, 255, 255, 1);
}

.business-card {
    padding: 40px 30px 30px;
}

.business-card-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.business-card-avatar {
    flex-shrink: 0;
}

.business-card-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #f0f0f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.business-card-info h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 5px;
    font-weight: 700;
}

.business-card-title {
    font-size: 16px;
    color: #00A5DD;
    font-weight: 600;
    margin-bottom: 3px;
}

.business-card-company {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.business-card-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.business-card-detail {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
}

.detail-icon {
    font-size: 20px;
    width: 30px;
    text-align: center;
    flex-shrink: 0;
}

.detail-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.detail-label {
    font-size: 12px;
    color: #999;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.business-card-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.save-contact-btn,
.copy-contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    width: 100%;
}

.save-contact-btn {
    background: linear-gradient(135deg, #00A5DD 0%, #0088BB 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 165, 221, 0.3);
}

.save-contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 165, 221, 0.4);
}

.copy-contact-btn {
    background: #f8f9fa;
    color: #333;
    border: 2px solid #e5e5e5;
}

.copy-contact-btn:hover {
    background: #e9ecef;
    border-color: #00A5DD;
    transform: translateY(-1px);
}

.save-contact-btn span,
.copy-contact-btn span {
    font-size: 18px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .business-card-modal-content {
        max-width: 90vw;
        margin: 10px;
        border-radius: 16px;
    }
    
    .business-card {
        padding: 30px 20px 20px;
    }
    
    .business-card-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .business-card-avatar img {
        width: 70px;
        height: 70px;
    }
    
    .business-card-info h2 {
        font-size: 22px;
    }
    
    .business-card-detail {
        gap: 12px;
    }
    
    .detail-icon {
        font-size: 18px;
        width: 25px;
    }
    
    .detail-value {
        font-size: 13px;
    }
    
    .business-card-actions {
        gap: 10px;
    }
    
    .save-contact-btn,
    .copy-contact-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .business-card-modal {
        padding: 10px;
    }
    
    .business-card-modal-content {
        max-width: 95vw;
    }
    
    .business-card {
        padding: 25px 15px 15px;
    }
    
    .business-card-close {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 28px;
    }
}

/* Responsive adjustments for new pages */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .availability-info {
        grid-template-columns: 1fr;
    }
    
    .timeline-item {
        flex-direction: column;
    }
    
    .timeline-period {
        margin-bottom: 15px;
        margin-right: 0;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}
