/* CDI Ltd Website Styles */

/* CSS Custom Properties */
:root {
    --header-height: 160px; /* Optimized height for logo, nav, and title */
    --footer-height: 40px;
}

/* Base styles */

/* Base styles */
body {
    font-family: Arial, sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    line-height: 1.6;
}

/* Core Values Section */
.core-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
    padding-bottom: 50px;
}

.value-item {
    padding: 1.5rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.value-item h4 {
    color: #eecd09;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.value-item p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* First word styling */
/*p::first-letter {
    font-size: 1.3em;
    font-weight: bold;
    color: #007cba;
}*/

/* Alternative: Style first word with a class */
.first-word {
    font-weight: bold;
    color: #5B7A8A;
}

/* Featured Projects Logos Section */
.featured-projects-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin: 1rem 0 0 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.project-logo-item {
    flex: 0 1 auto;
}

.project-logo-item a {
    display: inline-block;
    text-decoration: none;
}

.project-logo-item img {
    height: 60px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.project-logo-item img:hover {
    transform: scale(1.1);
    filter: brightness(1.1);
}

@media (max-width: 768px) {
    .featured-projects-logos {
        flex-direction: column;
        gap: 2rem;
        padding: 1.5rem;
    }
    
    .project-logo-item img {
        height: 50px;
    }
}

/* Modern Minimalist Side Decorations */
.page-decorations {
    position: fixed;
    top: var(--header-height);
    bottom: var(--footer-height);
    width: 100px;
    z-index: 15;
    pointer-events: none;
    opacity: 0;
    animation: fadeInDecorations 2s ease-out 1s forwards;
}

/* Left Side - Tech Geometric Pattern */
.page-decorations.left {
    left: 0;
    background: linear-gradient(180deg, 
        rgba(91, 122, 138, 0.05) 0%, 
        rgba(91, 122, 138, 0.1) 50%, 
        rgba(91, 122, 138, 0.05) 100%);
}

.page-decorations.left::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 20px;
    width: 60px;
    height: 60px;
    border: 2px solid rgba(91, 122, 138, 0.2);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.page-decorations.left::after {
    content: '';
    position: absolute;
    top: 60%;
    left: 30px;
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 35px solid rgba(91, 122, 138, 0.15);
    animation: float 8s ease-in-out infinite reverse;
}

/* Right Side - Modern Flowing Shapes */
.page-decorations.right {
    right: 0;
    background: linear-gradient(180deg, 
        rgba(0, 212, 170, 0.03) 0%, 
        rgba(108, 92, 231, 0.05) 50%, 
        rgba(253, 121, 168, 0.03) 100%);
    animation: fadeInDecorationsRight 2s ease-out 1.5s forwards;
}

.page-decorations.right::before {
    content: '';
    position: absolute;
    top: 30%;
    right: 25px;
    width: 50px;
    height: 80px;
    background: linear-gradient(45deg, 
        rgba(0, 212, 170, 0.1), 
        rgba(108, 92, 231, 0.1));
    border-radius: 50px;
    animation: pulse 4s ease-in-out infinite;
}

.page-decorations.right::after {
    content: '';
    position: absolute;
    top: 70%;
    right: 15px;
    width: 30px;
    height: 30px;
    background: rgba(253, 121, 168, 0.15);
    transform: rotate(45deg);
    animation: rotate 10s linear infinite;
}

/* Floating Animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; }
}

/* Rotate Animation */
@keyframes rotate {
    from { transform: rotate(45deg); }
    to { transform: rotate(405deg); }
}

/* Fade In Animation for Decorations */
@keyframes fadeInDecorations {
    0% { 
        opacity: 0;
        transform: translateX(-20px);
    }
    100% { 
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInDecorationsRight {
    0% { 
        opacity: 0;
        transform: translateX(20px);
    }
    100% { 
        opacity: 1;
        transform: translateX(0);
    }
}

/* Additional Decorative Elements */
.page-decorations .dot-pattern {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: rgba(91, 122, 138, 0.3);
    border-radius: 50%;
    box-shadow: 
        0 30px rgba(91, 122, 138, 0.2),
        0 60px rgba(91, 122, 138, 0.15),
        0 90px rgba(91, 122, 138, 0.1);
}

/* Responsive - Hide on smaller screens */
@media (max-width: 1200px) {
    .page-decorations {
        width: 60px;
    }
    
    .page-decorations.left::before,
    .page-decorations.left::after,
    .page-decorations.right::before,
    .page-decorations.right::after {
        transform: scale(0.7);
    }
}

@media (max-width: 768px) {
    .page-decorations {
        display: none;
    }
}

/* Logo initial styles (JavaScript handles all animation) */
.logo {
    width: 280px;
    height: auto;
    opacity: 0;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
}

/* Header logo styles */
.header-logo {
    width: 80px; /* Reduced size to fit better in header */
    height: auto;
    display: inline-block;
    vertical-align: middle;
    margin-right: 20px;
}

/* Header container - fixed at top */
.header-container-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    padding: 10px 0;
    height: var(--header-height); /* Use CSS variable for consistent height */
}

.header-container-wrapper {
    display: flex;
    justify-content: center;
}

.header-container-wrapper > .header-inner {
    max-width: 800px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%; /* Use full height of parent container */
    padding: 15px 20px; /* Add padding for better spacing */
}

.header-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.content-container-wrapper {
    position: fixed;
    top: var(--header-height); /* Use CSS variable */
    bottom: var(--footer-height); /* Use CSS variable */
    left: 0;
    right: 0;
    overflow-y: auto; /* Keep scrollable functionality */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
    background: white;
    display: flex;
    justify-content: center;
}

.content-container-wrapper > .content-inner {
    max-width: 800px;
    width: 100%;
    padding: 20px 20px 200px 20px;
}

/* Hide scrollbar for WebKit browsers (Chrome, Safari, Edge) */
.content-container-wrapper::-webkit-scrollbar {
    display: none;
}

.footer-container-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    z-index: 100;
    height: auto;
}

.footer-container-wrapper > * {
    max-width: 800px;
    margin: 0 auto;
}

/* Main content animation */

/* Navigation container positioned to the right of logo */
.nav-container {
    display: inline-block;
    vertical-align: middle;
    margin: 0;
}



/* Page transition splash screen */
.page-splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.page-splash.active {
    opacity: 1;
    visibility: visible;
}

.page-splash .splash-logo {
    width: 180px;
    height: auto;
    animation: splashBreathe 2s ease-in-out infinite;
}

@keyframes splashBreathe {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

/* Main content animation */
.page-content {
    opacity: 0; /* Start invisible for all pages to enable fade-in */
    position: fixed; /* Fixed positioning to contain the three containers */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10; /* Above decorations but below splash */
    transition: opacity 0.8s ease-in-out; /* Smooth fade-in transition */
}

.page-content.loaded {
    opacity: 1 !important; /* Visible after loading - override home page rule */
}

/* Home page specific - starts invisible for splash animation */
.home-page .page-content {
    opacity: 0;
    transition: opacity 1s ease-in-out; /* Slightly longer for home page */
}

/* Ensure home page content shows when loaded */
.home-page .page-content.loaded {
    opacity: 1 !important;
}

/* Header container */
.header-container {
    margin-top: 0; /* Remove margin to keep content within bounds */
    margin-bottom: 0; /* Remove margin to keep content within bounds */
}

/* Ensure h1 in header container has proper spacing */
.header-container h1 {
    margin: 10px 0 10px 0; /* Balanced margins to keep text within header bounds */
    font-size: 1.8em; /* Ensure reasonable size */
    visibility: hidden; /* Initially hidden for typing effect */
}

/* Keep home page header hidden until typing animation starts */
.home-page .header-container h1 {
    visibility: hidden; /* Home page also starts hidden for typing effect */
}

/* Responsive logo sizing */
@media (max-width: 768px) {
    .logo {
        width: 200px;
    }
    
    .page-content {
        margin-top: 45px; /* Adjust for smaller mobile logo */
    }
}

/* Navigation styles */
nav {
    padding: 10px;
    margin-bottom: 20px;
    text-align: right;
    position: relative;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    margin-left: auto;
    width: 30px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
    display: block;
}

.nav-links {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: #333;
    margin-right: 15px;
    padding: 5px 10px;
    font-family: "Comfortaa", "Quicksand", "Eras Medium ITC", "Eras", "Trebuchet MS", "Arial", sans-serif;
    font-weight: 500;
    font-size: 14px;
    border-radius: 15px;
    transition: background-color 0.3s ease;
}

nav a:hover {
    background: #ddd;
    border-radius: 15px;
}

/* Mobile responsive navigation */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        background: white;
        flex-direction: column;
        width: 200px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        border-radius: 5px;
        padding: 10px 0;
        z-index: 1000;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links a {
        margin: 0;
        padding: 10px 20px 10px 30px;
        text-align: left;
        width: 100%;
    }
    
    .nav-links a:hover {
        background: #f5f5f5;
    }
    
    /* Hamburger menu animation */
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

.current {
    background: #5B7A8A;
    color: white !important;
    border-radius: 15px;
}

/* Contact page specific styles */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.contact-department {
    background: #f9f9f9;
    padding: 20px;
    border-left: 4px solid #5B7A8A;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.contact-department h3 {
    color: #5B7A8A;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

.contact-department p {
    margin: 8px 0;
    line-height: 1.4;
}

.company-address {
    background: #f0f8ff;
    padding: 15px;
    border-left: 4px solid #5B7A8A;
    margin: 20px 0;
    border-radius: 5px;
}

.company-address h2 {
    color: #5B7A8A;
    margin-top: 0;
}

/* Responsive design for contact grid */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, auto);
        gap: 15px;
    }
    
    .contact-department {
        padding: 15px;
    }
}

/* Legacy contact info styling (kept for compatibility) */
.contact-info {
    background: #f9f9f9;
    padding: 15px;
    border-left: 4px solid #5B7A8A;
    margin: 20px 0;
}

/* Services page specific styles */
.service {
    background: #f9f9f9;
    padding: 15px;
    margin: 15px 0;
    border-radius: 5px;
}

/* Typography improvements */
h1 {
    color: #5B7A8A;
    border-bottom: 2px solid #5B7A8A;
    padding-bottom: 10px;
}

h2 {
    color: #555;
    margin-top: 25px;
}

h3 {
    color: #666;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.2em;
}

h4 {
    color: #777;
    margin-top: 15px;
    margin-bottom: 8px;
    font-size: 1em;
    font-family: "Comfortaa", "Quicksand", "Eras Medium ITC", "Eras", "Trebuchet MS", "Arial", sans-serif;
    font-style: italic;
    font-weight: 500;
}

h5 {
    color: #777;
    margin-top: 15px;
    margin-bottom: 8px;
    font-size: 1.1em;
    font-family: Arial, Helvetica, sans-serif;
    font-style: normal;
    font-weight: 700;
}

/* Highlight section icon styling */
.highlight h5 i {
    color: #5B7A8A;
    margin-right: 12px;
    font-size: 1.2em;
}

/* Contact icon styling */
.contact-department p i {
    color: #5B7A8A;
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

/* Header icon styling */
h2 i {
    color: #5B7A8A;
    margin-right: 10px;
}

/* WhatsApp icon styling */
.fa-whatsapp {
    color: #25D366 !important;
    margin-left: 10px;
    margin-right: 5px;
}

/* Footer styling */
footer {
    margin-top: 2px; /* 2px space above the border */
    padding: 2px 0 2px 0;
    border-top: 1px solid #5B7A8A; /* Thin line on top */
    background: none;
}

.footer-content {
    text-align: center;
}

.footer-content p {
    margin: 0;
    color: #666;
    font-size: 12px;
}

.company-name {
    font-weight: bold;
    color: #333;
}

/* Mobile responsive styles */

/* Code styling */
code {
    background: #f4f4f4;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: #d63384;
}

/* List styling */
ul {
    padding-left: 20px;
}

li {
    margin-bottom: 5px;
}

/* Link styling */
a {
    color: #5B7A8A;
}

a:hover {
    color: #005a8b;
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    nav {
        text-align: center;
    }
    
    nav a {
        display: inline-block;
        margin: 5px;
    }
    
    h1 {
        font-size: 24px;
    }
}

/* Typing effect cursor animation */
.typing-cursor {
    animation: blink 1s infinite;
    font-weight: normal;
    color: #5B7A8A;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Scroll indicator arrow */
.scroll-indicator {
    position: fixed;
    bottom: 60px; /* Moved up by 30px from 30px to 60px */
    left: 50%;
    transform: translateX(-50%);
    z-index: 500;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    animation: scrollBounce 2s infinite;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 3px solid #5B7A8A; /* Made bolder from 2px to 3px */
    border-bottom: 3px solid #5B7A8A; /* Made bolder from 2px to 3px */
    transform: rotate(45deg);
    position: relative;
}

@keyframes scrollBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(8px);
    }
    60% {
        transform: translateX(-50%) translateY(4px);
    }
}

/* Pre-hide content elements that will get scroll reveal */
.content-inner p,
.content-inner h2,
.content-inner h3,
.content-inner ul,
.content-inner li,
.service,
.contact-department {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Scroll reveal fade-in effects */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Override for elements that should be visible immediately */
.content-inner p.revealed,
.content-inner h2.revealed,
.content-inner h3.revealed,
.content-inner ul.revealed,
.content-inner li.revealed,
.service.revealed,
.contact-department.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation for multiple items */
.scroll-reveal:nth-child(1) { transition-delay: 0.1s; }
.scroll-reveal:nth-child(2) { transition-delay: 0.2s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.3s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.4s; }
.scroll-reveal:nth-child(5) { transition-delay: 0.5s; }
.scroll-reveal:nth-child(6) { transition-delay: 0.6s; }

/* Homepage sections styling */
.highlights-section {
    margin: 20px 0 60px 0;
    padding: 40px 0;
}

.highlights-section h2 {
    text-align: center;
    color: #2C3E50;
    font-size: 2.2em;
    margin-bottom: 40px;
    font-weight: 600;
}

.highlights-section h3 {
    text-align: center;
    color: #2C3E50;
    font-size: 1.4em;
    margin-bottom: 40px;
    font-weight: 600;
}

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

.highlight {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.highlight h3 {
    color: #2C3E50;
    margin-bottom: 15px;
    font-size: 1.3em;
    font-weight: 600;
}

.highlight p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.preview-section {
    margin: 60px 0;
    padding: 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    border-left: 5px solid #5B7A8A;
}

.preview-section h2 {
    color: #2C3E50;
    font-size: 2.2em;
    margin-bottom: 20px;
    font-weight: 600;
}

.preview-section p {
    color: #555;
    font-size: 1.1em;
    line-height: 1.7;
    margin: 0;
}

.cta-section {
    margin: 60px 0;
    padding: 50px;
    background: linear-gradient(135deg, #5B7A8A 0%, #4a6b7a 100%);
    border-radius: 15px;
    text-align: center;
    color: white;
}

.cta-section h2 {
    color: white;
    font-size: 2.2em;
    margin-bottom: 20px;
    font-weight: 600;
}

.cta-section p {
    color: #e8f4f8;
    font-size: 1.1em;
    margin-bottom: 30px;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    background: white;
    color: #5B7A8A;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s ease;
    border: 3px solid white;
}

.cta-button:hover {
    background: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255,255,255,0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .highlights-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .highlight {
        padding: 25px;
    }
    
    .preview-section {
        padding: 30px 25px;
    }
    
    .cta-section {
        padding: 40px 25px;
    }
    
    .highlights-section h2,
    .preview-section h2,
    .cta-section h2 {
        font-size: 1.8em;
    }
}
.scroll-reveal:nth-child(3) { transition-delay: 0.3s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.4s; }

/* Projects Page Styles */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(91, 122, 138, 0.2);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Quick tooltip for PageOne card */
.pageone-card {
    position: relative;
}

.pageone-card .quick-tooltip {
    position: fixed;
    background: #5B7A8A;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.1s ease;
    box-shadow: 0 4px 12px rgba(91, 122, 138, 0.4);
    z-index: 1000;
    pointer-events: none;
    left: 0;
    top: 0;
}

.pageone-card:hover .quick-tooltip {
    opacity: 1;
    visibility: visible;
}

.project-logo {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
}

.project-logo img {
    max-width: 120px;
    height: auto;
    display: inline-block;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-header h3 {
    color: #5B7A8A;
    font-size: 1.4rem;
    margin: 0;
    flex: 1;
}

.acadeia-card .project-header h3 {
    font-size: 1.2rem;
}

.cdi-card .project-header h3 {
    font-size: 1.2rem;
}

.pageone-card .project-header h3 {
    font-size: 1.2rem;
}

.refera-card .project-logo img {
    max-width: 220px;
}

.refera-card .project-header h3 {
    font-size: 1.2rem;
}

.project-header h3 i {
    margin-right: 0.5rem;
    color: #eecd09;
}

.project-tagline {
    font-size: 0.9rem;
    color: #333333;
    background: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-style: italic;
    margin: 0.5rem 0 1rem 0;
    padding: 0.5rem;
    text-align: center;
    border-radius: 6px;
}

.project-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.project-status.completed {
    background: rgba(46, 213, 115, 0.2);
    color: #2ed573;
    border: 1px solid #2ed573;
}

.project-status.in-development {
    background: rgba(238, 205, 9, 0.2);
    color: #eecd09;
    border: 1px solid #eecd09;
}

.project-description {
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    margin: 1rem 0;
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 8px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.tech-badge {
    background: rgba(91, 122, 138, 0.3);
    color: #5B7A8A;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

.project-highlights {
    margin-top: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 8px;
}

.project-highlights h4 {
    color: #eecd09;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

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

.project-highlights ul li {
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
}

.project-highlights ul li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #eecd09;
    font-weight: bold;
}

.projects-cta {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #5B7A8A 0%, #4a6b7a 100%);
    border-radius: 12px;
    border: 1px solid rgba(91, 122, 138, 0.3);
}

.projects-cta h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.projects-cta p {
    color: #e8f4f8;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card {
        padding: 1.5rem;
    }
    
    .project-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .projects-cta {
        padding: 2rem 1rem;
    }
    
    .projects-cta h2 {
        font-size: 1.5rem;
    }
}

/* Services to Projects Link Section */
.services-projects-link {
    margin-top: 3rem;
    padding: 2.5rem;
    text-align: center;
    background: linear-gradient(135deg, #5B7A8A 0%, #4a6b7a 100%);
    border-radius: 12px;
    border: 1px solid rgba(91, 122, 138, 0.3);
}

.services-projects-link h2 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.services-projects-link p {
    color: #e8f4f8;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.services-projects-link .cta-button i {
    margin-right: 0.5rem;
}
.scroll-reveal:nth-child(5) { transition-delay: 0.5s; }