/* Mobile-First Styles for Xspace Group */

/* Base Styles */
:root {
    --primary-color: #0e1316;
    --accent-color: #2a5b8c;
    --accent-hover: #1e4a75;
    --white: #ffffff;
    --gray-light: #f5f5f5;
    --gray-medium: #e5e7eb;
    --text-color: #333;
    --text-light: #4b5563;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 8px;
}

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

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

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ======================
   Header & Navigation
   ====================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 15px 0;
}

.main-header.scrolled {
    padding: 8px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 0 15px;
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    z-index: 1002;
}

.nav-logo img {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.nav-logo:hover img {
    transform: scale(1.05);
}

/* Body state when menu is open */
body.menu-open {
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    transition: all 0.4s ease;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-item {
    margin: 0 12px;
    position: relative;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
    color: var(--accent-color);
}

.nav-link:hover::after,
.nav-link:focus::after,
.nav-link.active::after {
    width: 70%;
}

/* Navigation CTA Button */
.nav-cta {
    margin-left: 20px;
}

.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    border: none;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 4px 15px rgba(42, 91, 140, 0.2);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 91, 140, 0.3);
}

/* Mobile Menu Toggle */
.hamburger {
    display: none;
    width: 30px;
    height: 24px;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
}

.hamburger:focus {
    outline: none;
}

.hamburger-box {
    width: 100%;
    height: 100%;
    display: inline-block;
    position: relative;
}

.hamburger-inner {
    display: block;
    top: 50%;
    margin-top: -2px;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 30px;
    height: 2px;
    background-color: var(--text-color);
    border-radius: 2px;
    position: absolute;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: '';
    display: block;
}

.hamburger-inner::before {
    top: -8px;
    transition: top 0.3s ease 0.3s, transform 0.3s ease 0.1s;
}

.hamburger-inner::after {
    bottom: -8px;
    transition: bottom 0.3s ease 0.3s, transform 0.3s ease 0.1s;
}

/* Active state */
.hamburger.active .hamburger-inner {
    background-color: transparent;
}

.hamburger.active .hamburger-inner::before {
    top: 0;
    transform: rotate(45deg);
    transition: top 0.3s ease, transform 0.3s ease 0.3s;
}

.hamburger.active .hamburger-inner::after {
    bottom: 0;
    transform: rotate(-45deg);
    transition: bottom 0.3s ease, transform 0.3s ease 0.3s;
}

/* Nav Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Navigation */
@media (max-width: 992px) {
    /* Main header adjustments */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: #ffffff;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        transform: translateY(-100%);
        transition: transform 0.4s ease-in-out;
        z-index: 1001;
        opacity: 0;
        visibility: hidden;
        height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    /* Navbar layout */
    .navbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
        padding: 5px 15px;
        max-width: 1200px;
        margin: 0 auto;
    }
    
    /* Logo styling */
    .nav-logo {
        order: 1;
        margin: 0;
        padding: 5px 0;
        width: auto;
        border: none;
        z-index: 1002;
    }
    
    .nav-logo img {
        height: 35px;
        width: auto;
        transition: transform 0.3s ease;
    }
    
    .nav-logo:hover img {
        transform: scale(1.05);
    }
    
    /* Hamburger menu */
    .hamburger {
        display: block;
        z-index: 1002; /* Highest z-index to ensure it's always clickable */
        position: relative;
        height: 24px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
    }
    
    /* Mobile menu */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100vh;
        background: white;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        justify-content: flex-start;
        padding: 80px 20px 40px;
        transition: right 0.4s ease;
        align-items: flex-start;
        z-index: 1001; /* Above overlay (999) but below hamburger (1002) */
        overflow-y: auto;
        margin: 0;
        pointer-events: none; /* Disable pointer events when inactive */
    }
    
    .nav-menu.active {
        right: 0;
        pointer-events: auto; /* Enable pointer events when active */
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        width: 100%;
        padding: 0;
        margin: 0;
        list-style: none;
    }
    
    .nav-item {
        margin: 0;
        width: 100%;
    }
    
    .nav-link {
        display: block;
        padding: 12px 20px;
        font-size: 16px;
        color: #333;
        text-decoration: none;
        transition: background-color 0.3s ease;
    }
    
    .nav-link:hover,
    .nav-link.active {
        background-color: #f5f5f5;
        color: var(--accent-color);
    }
    
    .nav-cta {
        padding: 15px 20px;
    }
    
    .nav-cta .btn {
        width: 100%;
        text-align: center;
    }
    
    .nav-item {
        width: 100%;
        text-align: center;
        margin: 0;
    }
    
    .nav-link {
        display: block;
        padding: 12px 20px;
        font-size: 18px;
    }
    
    .nav-item {
        margin: 5px 0;
        width: 100%;
    }
    
    .nav-cta {
        margin: 15px 0 0;
        width: 100%;
    }
    
    .nav-cta .btn {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        width: 100%;
        margin-bottom: 30px;
    }
    
    .nav-item {
        width: 100%;
        margin: 8px 0;
        opacity: 0;
        transform: translateX(20px);
        transition: all 0.4s ease;
    }
    
    .nav-menu.active .nav-item {
        opacity: 1;
        transform: translateX(0);
    }
    
    .nav-item:nth-child(1) { transition-delay: 0.1s; }
    .nav-item:nth-child(2) { transition-delay: 0.15s; }
    .nav-item:nth-child(3) { transition-delay: 0.2s; }
    .nav-item:nth-child(4) { transition-delay: 0.25s; }
    
    .nav-link {
        display: block;
        padding: 12px 20px;
        font-size: 1.1rem;
        text-align: center;
        width: 100%;
    }
    
    .nav-cta {
        margin-left: 0;
        width: 100%;
        max-width: 200px;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s ease 0.3s;
    }
    
    .nav-menu.active .nav-cta {
        opacity: 1;
        transform: translateY(0);
    }
    
    .btn {
        width: 100%;
        padding: 12px 20px;
    }
}

/* Navigation Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999; /* Below the menu (1001) and hamburger (1002) */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none; /* Disable pointer events when inactive */
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto; /* Enable pointer events when active */
}

/* Adjust hero section for fixed header */
.hero {
    padding-top: 150px;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-color);
    color: white;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-md);
    z-index: 998;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.scroll-to-top:hover,
.scroll-to-top:focus {
    opacity: 1;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(42, 91, 140, 0.3);
    outline: none;
}

.scroll-to-top:active {
    transform: translateY(0);
}

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

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.slide-up {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.slide-right {
    opacity: 0;
    animation: slideInRight 0.6s ease forwards;
}

.slide-left {
    opacity: 0;
    animation: slideInLeft 0.6s ease forwards;
}

.visible {
    opacity: 1;
    animation: none;
}

/* Responsive Adjustments */
@media (max-width: 480px) {
    .nav-links {
        width: 85%;
    }
    
    .nav-links a {
        font-size: 1.1rem;
        padding: 10px 20px;
    }
    
    .scroll-to-top {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    margin-top: 60px;
    background: linear-gradient(135deg, #f8fafc 0%, #f0f7ff 50%, #e6f0ff 100%);
    background-size: 200% 200%;
    animation: gradient 15s ease infinite;
    position: relative;
    overflow: open;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSg0NSkiPjxyZWN0IHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0icmdiYSgwLDAsMCwwLjAxKSIvPjwvcGF0dGVybj48L2RlZnM+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0idXJsKCNwYXR0ZXJuKSIvPjwvc3ZnPg==');
    opacity: 0.3;
    z-index: 0;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 15px;
}

.hero-text {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: fadeIn 2s ease;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.hero-title span {
    color: var(--accent-color);
}

.hero-description {
    font-size: 1.1rem;
    color: #4b5563;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.cta-button {
    position: relative;
    overflow: open;
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 12px 28px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    z-index: -1;
}

.cta-button:hover::before {
    width: 100%;
}

.cta-button.primary {
    background-color: var(--accent-color);
    color: white;
    border: 2px solid var(--accent-color);
}

.cta-button.primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(42, 91, 140, 0.3);
}

.cta-button.secondary {
    background-color: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.cta-button.secondary:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(42, 91, 140, 0.2);
}

.cta-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Projects Section */
.projects {
    padding: 100px 0;
    background-color: #f9fafb;
    position: relative;
    overflow: open;
    background: linear-gradient(135deg, #f9fafb 0%, #f0f4f8 100%);
}

.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSg0NSkiPjxyZWN0IHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0icmdiYSgwLDAsMCwwLjAxKSIvPjwvcGF0dGVybj48L2RlZnM+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0idXJsKCNwYXR0ZXJuKSIvPjwvc3ZnPg==');
    opacity: 0.2;
    z-index: 0;
}

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

.projects-header {
    text-align: center;
    margin-bottom: 50px;
}

.projects-header h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.projects-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent-color);
}

.projects-header p {
    color: #666;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.projects-showcase {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin: 0 auto;
    max-width: 1200px;
}

.project-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-bottom: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.project-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.project-preview {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.project-preview img {
    max-width: 75%;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
    display: block;
    margin: 0 auto;
    opacity: 0.9;
    transform-origin: center center;
    will-change: transform;
}

.project-item:hover .project-preview img {
    transform: scale(1.05);
    opacity: 1;
    transition-duration: 0.3s;
}

/* Ensure consistent logo display across different project items */
.project-item:nth-child(1) .project-preview img {
    max-height: 100px; /* Slightly smaller for better proportion */
}

.project-item:nth-child(2) .project-preview img {
    max-height: 110px;
}

.project-item:nth-child(3) .project-preview img {
    max-height: 100px;
}

/* Adjust badge positioning */
.project-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.project-item:hover .project-badge {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* New Project Item Styling */
.new-project-item {
    order: 99; /* Ensure it appears last */
    opacity: 0.9;
    transition: all 0.3s ease;
}

.new-project-item .project-preview {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
}

.new-project-item:hover {
    opacity: 1;
    transform: none !important;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08) !important;
}

/* For the coming soon placeholder */
.project-item.coming-soon .project-preview {
    background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
}

.coming-soon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(42, 91, 140, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-item.coming-soon:hover .coming-soon-overlay {
    opacity: 1;
}

.project-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    padding: 20px;
    text-align: center;
}

.project-placeholder i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    opacity: 0.7;
}

.project-placeholder p {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
    color: var(--accent-color);
}

.coming-soon-text {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #718096;
    font-style: italic;
    background: #f8f9fa;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 500;
}

/* Projects CTA */
.projects-cta {
    text-align: center;
    margin-top: 60px;
    padding: 0 15px;
}

.projects-cta p {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Responsive Adjustments */
@media (min-width: 576px) {
    .projects-showcase {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .project-item:last-child {
        grid-column: 1 / -1;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (min-width: 992px) {
    .projects-showcase {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .project-item:last-child {
        grid-column: auto;
        max-width: 100%;
    }
    
    .projects-header h2 {
        font-size: 2.5rem;
    }
    
    .projects-cta p {
        font-size: 1.4rem;
    }
}

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

.project-item {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.project-item:nth-child(1) { animation-delay: 0.1s; }
.project-item:nth-child(2) { animation-delay: 0.2s; }
.project-item:nth-child(3) { animation-delay: 0.3s; }

.project-item {
    margin-bottom: 15px;
    flex-grow: 1;
}

.coming-soon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(42, 91, 140, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 500;
    z-index: 1;
}

.project-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f5f7fa;
    color: var(--accent-color);
}

.project-placeholder i {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.coming-soon-text {
    color: var(--accent-color);
    font-weight: 500;
    margin-top: 10px;
    font-style: italic;
}

.projects-header {
    text-align: center;
    margin-bottom: 40px;
}

.projects-header h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
}

.projects-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

.projects-showcase {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 15px;
}

.project-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.project-preview img {
    width: 100%;
    height: auto;
    display: block;
}

.project-details {
    padding: 20px;
}

.project-details h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.project-features {
    margin: 15px 0;
    padding-left: 20px;
}

.project-features li {
    margin-bottom: 8px;
    color: #4b5563;
}

.project-cta {
    display: inline-block;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    margin-top: 15px;
    transition: var(--transition);
}

.project-cta:hover {
    color: var(--primary-color);
}

/* About Section */
.about {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8faff 0%, #f0f7ff 100%);
    position: relative;
    overflow: hidden;
}

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

.section-subtitle {
    display: inline-block;
    color: var(--accent-color);
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin: 0 auto;
    border-radius: 3px;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.about-image {
    flex: 1 1 45%;
    position: relative;
    min-width: 300px;
}

.image-container {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.03);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: 30px;
    background: var(--accent-color);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(42, 91, 140, 0.2);
}

.experience-badge .years {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.9rem;
    opacity: 0.9;
}

.about-text {
    flex: 1 1 50%;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.about-text p {
    margin-bottom: 25px;
    color: var(--text-light);
    line-height: 1.7;
}

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

.feature-item {
    background: white;
    padding: 25px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(42, 91, 140, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: var(--accent-color);
    font-size: 1.5rem;
}

.feature-item h4 {
    margin: 15px 0 10px;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.feature-item p {
    font-size: 0.95rem;
    margin: 0;
    color: var(--text-light);
}

.stats-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin: 40px 0 30px;
    padding: 20px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.stat-item {
    text-align: center;
    padding: 0 15px;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

.cta-button {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid var(--accent-color);
}

.cta-button:hover {
    background: transparent;
    color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(42, 91, 140, 0.2);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .about-image, .about-text {
        flex: 1 1 100%;
        width: 100%;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stats-container {
        justify-content: center;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .about {
        padding: 80px 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-item {
        flex: 1 1 100%;
        margin-bottom: 15px;
    }
    
    .cta-button {
        width: 100%;
        text-align: center;
    }
}

/* Animation for counter */
@keyframes countUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-number.animated {
    animation: countUp 0.5s ease-out forwards;
}

/* Coming Soon Project */
.project-item.coming-soon .project-preview {
    background: linear-gradient(135deg, #f6f9fc 0%, #eef2f7 100%);
}

.coming-soon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(42, 91, 140, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 500;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-item.coming-soon:hover .coming-soon-overlay {
    opacity: 1;
}

.project-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    padding: 20px;
    text-align: center;
}

.project-placeholder i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    opacity: 0.7;
}

.project-placeholder p {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
    color: var(--accent-color);
}

.coming-soon-text {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #718096;
    font-style: italic;
    background: #f8f9fa;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 500;
}

/* Projects CTA */
.projects-cta {
    text-align: center;
    margin-top: 60px;
    padding: 0 15px;
}

.projects-cta p {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Responsive Adjustments */
@media (min-width: 576px) {
    .projects-showcase {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .project-item:last-child {
        grid-column: 1 / -1;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (min-width: 992px) {
    .projects-showcase {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .project-item:last-child {
        grid-column: auto;
        max-width: 100%;
    }
    
    .projects-header h2 {
        font-size: 2.5rem;
    }
    
    .projects-cta p {
        font-size: 1.4rem;
    }
}

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

.project-item {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.project-item:nth-child(1) { animation-delay: 0.1s; }
.project-item:nth-child(2) { animation-delay: 0.2s; }
.project-item:nth-child(3) { animation-delay: 0.3s; }

.project-item {
    margin-bottom: 15px;
    flex-grow: 1;
}

.coming-soon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(42, 91, 140, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 500;
    z-index: 1;
}

.project-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f5f7fa;
    color: var(--accent-color);
}

.project-placeholder i {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.coming-soon-text {
    color: var(--accent-color);
    font-weight: 500;
    margin-top: 10px;
    font-style: italic;
}

.projects-header {
    text-align: center;
    margin-bottom: 40px;
}

.projects-header h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
}

.projects-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

.projects-showcase {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 15px;
}

.project-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.project-preview img {
    width: 100%;
    height: auto;
    display: block;
}

.project-details {
    padding: 20px;
}

.project-details h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.project-features {
    margin: 15px 0;
    padding-left: 20px;
}

.project-features li {
    margin-bottom: 8px;
    color: #4b5563;
}

.project-cta {
    display: inline-block;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    margin-top: 15px;
    transition: var(--transition);
}

.project-cta:hover {
    color: var(--primary-color);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSg0NSkiPjxyZWN0IHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0icmdiYSgwLDAsMCwwLjAxKSIvPjwvcGF0dGVybj48L2RlZnM+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0idXJsKCNwYXR0ZXJuKSIvPjwvc3ZnPg==');
    opacity: 0.1;
    z-index: 0;
    pointer-events: none; /* This prevents the overlay from blocking clicks */
}

.contact h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 1rem;
}

.contact h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

.contact-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.contact-form .form-group {
    width: 100%;
}

.contact-form {
    position: relative;
    z-index: 1;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form button[type="submit"] {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.contact-form button[type="submit"]:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

.contact-info {
    width: 100%;
}

.contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info i {
    color: var(--accent-color);
    width: 24px;
    text-align: center;
}

.social-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f0f2f5;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.social-btn:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-3px);
}

/* Footer */
.site-footer {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0 20px;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSg0NSkiPjxyZWN0IHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjAzKSIvPjwvcGF0dGVybj48L2RlZnM+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0idXJsKCNwYXR0ZXJuKSIvPjwvc3ZnPg==');
    opacity: 0.3;
    z-index: 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.footer-logo img {
    height: 40px;
    width: auto;
    margin-bottom: 15px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-social {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

.footer-social a {
    color: white;
    font-size: 1.2rem;
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

.copyright {
    margin-top: 20px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Tablet Styles */
@media (min-width: 768px) {
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-cta {
        flex-direction: row;
        justify-content: center;
    }
    
    .projects-showcase {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-container {
        flex-direction: row;
    }
    
    .contact-form,
    .contact-info {
        width: 50%;
    }
}

/* Desktop Styles */
@media (min-width: 992px) {
    .nav-links {
        position: static;
        height: auto;
        width: auto;
        background: transparent;
        flex-direction: row;
        box-shadow: none;
        padding: 0;
    }
    
    .nav-links li {
        margin: 0 15px;
    }
    
    .hamburger {
        display: none;
    }
    
    .hero-content {
        flex-direction: row;
        text-align: left;
        align-items: center;
        gap: 60px;
    }
    
    .hero-text {
        flex: 1;
    }
    
    .hero-image {
        flex: 1;
    }
    
    .projects-showcase {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Large Desktop Styles */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
}

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

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

/* Utility Classes */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
