:root {
    /* Corporate IT Theme Colors (Based on screenshot) */
    --bg-color: #ffffff;
    --text-main: #121639; /* Deep corporate navy */
    --text-muted: #5e6a82;
    
    /* The vibrant cyan/teal from the buttons in the screenshot */
    --primary-color: #00A8E8; 
    --primary-hover: #008ECA;
    
    /* The dark navy background used in the screenshot sections */
    --dark-section-bg: #121639;
    
    --secondary-bg: #f1f5f9;
    --secondary-hover: #e2e8f0;
    --hero-bg: #f8fafc;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --badge-bg: #e0f7fa; /* Light cyan badge */
    --badge-text: #008ECA;
    
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    --radius-pill: 9999px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

button, input {
    font-family: inherit;
    border: none;
    outline: none;
}

button {
    cursor: pointer;
}

/* Layout */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navbar */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    background-color: var(--bg-color);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.logo-section {
    display: flex;
    flex-direction: column;
}

.header-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.logo-title {
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

.logo-title strong {
    font-weight: 800;
    color: var(--primary-color);
}

.logo-subtitle {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 2px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    transition: var(--transition);
    position: relative;
    outline: none;
}

.nav-links a:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
    border-radius: 4px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--primary-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.search-box input {
    background-color: var(--secondary-bg);
    padding: 10px 16px 10px 40px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    width: 220px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.search-box input:focus {
    background-color: #fff;
    border-color: rgba(0, 168, 232, 0.3);
    box-shadow: 0 0 0 4px rgba(0, 168, 232, 0.1);
}

.btn {
    padding: 12px 28px;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(0, 168, 232, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 168, 232, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f6 100%);
    border-radius: var(--radius-xl);
    padding: 60px 40px;
    text-align: center;
    margin: 24px 0 48px;
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.8s ease-out forwards;
}

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

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    color: var(--text-main);
    animation: slideUp 0.6s ease-out 0.1s forwards;
    opacity: 0;
}

.hero h1 span {
    color: var(--primary-color);
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
    animation: slideUp 0.6s ease-out 0.2s forwards;
    opacity: 0;
}

.hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    animation: slideUp 0.6s ease-out 0.3s forwards;
    opacity: 0;
}

/* Filter Section */
.filter-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.filter-pills {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-pill {
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    background-color: var(--secondary-bg);
    color: var(--text-muted);
    transition: var(--transition);
}

.filter-pill:hover {
    background-color: var(--secondary-hover);
    color: var(--text-main);
}

.filter-pill.active {
    background-color: var(--dark-section-bg);
    color: white;
}

.sort-dropdown {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
    font-weight: 600;
}

.sort-dropdown span {
    color: var(--primary-color);
}

/* Project Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 64px;
}

.project-card {
    background-color: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    opacity: 0;
    animation: fadeInCard 0.8s ease-out forwards;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(0, 168, 232, 0.2);
}

.card-image-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .card-image-wrapper img {
    transform: scale(1.05);
}

/* Mobile Screens Layout */
.mobile-screens-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 20px 0;
    background: linear-gradient(135deg, #eef2f6, #dce6f1);
}

.card-image-wrapper .mobile-screens-container img {
    width: 28%;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: white;
}

/* Base Overlap State */
.card-image-wrapper .mobile-screens-container img:nth-child(1) {
    transform: translateX(40%) scale(0.85);
    z-index: 1;
    opacity: 0.8;
}

.card-image-wrapper .mobile-screens-container img:nth-child(2) {
    transform: scale(1.05);
    z-index: 3;
    box-shadow: 0 15px 35px rgba(0,0,0,0.18);
}

.card-image-wrapper .mobile-screens-container img:nth-child(3) {
    transform: translateX(-40%) scale(0.85);
    z-index: 1;
    opacity: 0.8;
}

/* Interactive Hover Effects */
.project-card:hover .mobile-screens-container img:nth-child(1) {
    transform: translateX(0) scale(0.9) rotate(-6deg);
    opacity: 1;
}

.project-card:hover .mobile-screens-container img:nth-child(2) {
    transform: scale(1.15) translateY(-8px);
}

.project-card:hover .mobile-screens-container img:nth-child(3) {
    transform: translateX(0) scale(0.9) rotate(6deg);
    opacity: 1;
}

.card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: var(--badge-bg);
    color: var(--badge-text);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.card-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background-color: var(--badge-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-main);
}

.card-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    font-size: 0.8rem;
}

.card-meta {
    color: var(--text-muted);
    font-weight: 600;
}

.card-link {
    color: var(--primary-color);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.card-link:hover {
    color: var(--primary-hover);
    gap: 8px;
}

/* Load More */
.load-more {
    text-align: center;
    margin-bottom: 80px;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-color);
}

.footer-logo {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-logo strong {
    font-size: 1.1rem;
    color: var(--text-main);
}

.footer-logo span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition);
}

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

.footer-socials {
    display: flex;
    gap: 16px;
    color: var(--text-muted);
    font-size: 1.2rem;
}

.footer-socials a {
    transition: var(--transition);
}

.footer-socials a:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

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

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

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

/* Animation Delays */
.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5) { animation-delay: 0.5s; }
.project-card:nth-child(6) { animation-delay: 0.6s; }

/* Responsive */
@media (max-width: 1024px) {
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
        gap: 16px;
    }
    .nav-links, .search-box {
        display: none;
    }
    .project-grid {
        grid-template-columns: 1fr;
    }
    .hero {
        padding: 40px 20px;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .filter-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .footer {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
    .footer-logo {
        align-items: center;
    }
}
