/* Variables */
:root {
    --primary-blue: #1e40af;
    --primary-blue-dark: #1e3a8a;
    --primary-blue-light: #3b82f6;
    --secondary-blue: #1d4ed8;
    --accent-blue: #2563eb;
    --light-blue: #dbeafe;
    --ultra-light-blue: #eff6ff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --black: #000000;
    --section-padding: 80px 0;
    --transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Service Pages */
.services-main {
    min-height: calc(100vh - 47px);
}

.service-page {
    background-color: #011E41;
    padding: 120px 0;
    margin-top: 0;
    min-height: calc(100vh - 47px);
}

.service-header {
    text-align: center;
    color: white;
    margin-bottom: 50px;
}

.services-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.services-subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
}

.portrait-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.portrait-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.portrait-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.portrait-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.portrait-content h3 {
    font-size: 1.5rem;
    margin: 0 0 10px 0;
    color: #011E41;
    font-weight: 600;
}

.portrait-content p {
    color: #333;
    line-height: 1.6;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .portrait-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    .portrait-container {
        grid-template-columns: 1fr;
    }
    
    .services-title {
        font-size: 2rem;
    }
    
    .portrait-content {
        padding: 8px 20px 20px 20px;
    }
    
    .portrait-content h3 {
        margin: 0 0 8px 0;
    }
}

/* ===== ABOUT PAGE FOOTER ===== */
.about-footer {
    position: relative;
    background: linear-gradient(135deg, #0a0f1a 0%, #0d1421 50%, #0a0f1a 100%);
    color: var(--gray-300);
    padding: 80px 0 0;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Animated Glow Effect */
.about-footer-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.03) 0%, transparent 70%);
    transform: translateX(-50%);
    animation: aboutFooterGlow 8s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes aboutFooterGlow {
    0% {
        transform: translateX(-50%) scale(0.8);
        opacity: 0.3;
    }
    100% {
        transform: translateX(-50%) scale(1.2);
        opacity: 0.6;
    }
}

/* Main Footer Content */
.about-footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: start;
    padding: 0 40px 60px;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Brand Section */
.about-footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.about-brand-logo {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    animation: aboutLogoFloat 6s ease-in-out infinite;
}

@keyframes aboutLogoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.about-brand-tagline {
    font-size: 14px;
    color: var(--gray-400);
    font-weight: 500;
    letter-spacing: 0.5px;
    opacity: 0.8;
    animation: fadeInUp 1s ease-out 0.5s both;
}

/* Navigation Section */
.about-footer-nav {
    display: flex;
    gap: 60px;
    justify-self: center;
    width: 100%;
    justify-content: center;
}

.about-nav-section {
    min-width: 120px;
}

.about-nav-title {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin-bottom: 20px;
    position: relative;
    animation: fadeInUp 1s ease-out 0.7s both;
}

.about-nav-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 24px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue));
    border-radius: 1px;
    animation: aboutExpandLine 1s ease-out 1.2s both;
}

@keyframes aboutExpandLine {
    0% { width: 0; }
    100% { width: 24px; }
}

.about-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.about-nav-link {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 4px 0;
    animation: fadeInUp 1s ease-out calc(0.9s + var(--delay, 0)) both;
}

.about-nav-links li:nth-child(1) .about-nav-link { --delay: 0.1s; }
.about-nav-links li:nth-child(2) .about-nav-link { --delay: 0.2s; }
.about-nav-links li:nth-child(3) .about-nav-link { --delay: 0.3s; }

.about-nav-link::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    width: 0;
    height: 0;
    border-left: 4px solid var(--primary-blue);
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
}

.about-nav-link:hover {
    color: var(--primary-blue);
    transform: translateX(12px);
}

.about-nav-link:hover::before {
    opacity: 1;
}

/* Contact Section */
.about-footer-contact {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-end;
    justify-self: end;
    width: 100%;
}

.about-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--gray-400);
    animation: fadeInLeft 1s ease-out calc(1.1s + var(--delay, 0)) both;
}

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

.about-contact-item i {
    width: 32px;
    height: 32px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 14px;
    transition: all 0.3s ease;
}

.about-contact-item:hover i {
    background: rgba(59, 130, 246, 0.2);
    transform: scale(1.1);
}

.about-contact-item a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.3s ease;
}

.about-contact-item:hover a {
    color: var(--primary-blue);
}

/* Footer Bottom */
.about-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 40px;
    border-top: 1px solid rgba(59, 130, 246, 0.1);
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out 1.5s both;
}

.about-copyright span {
    font-size: 14px;
    color: var(--gray-500);
    font-weight: 500;
}

.about-certifications {
    display: flex;
    gap: 24px;
}

.about-cert-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 20px;
    font-size: 12px;
    color: var(--gray-400);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: aboutCertFloat calc(4s + var(--delay, 0)) ease-in-out infinite alternate;
}

.about-certifications .about-cert-badge:nth-child(1) { --delay: 0s; }
.about-certifications .about-cert-badge:nth-child(2) { --delay: 2s; }

@keyframes aboutCertFloat {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-4px); }
}

.about-cert-badge:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

.about-cert-badge i {
    color: var(--primary-blue);
    font-size: 14px;
}

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

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

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

/* Responsive Footer */
@media (max-width: 768px) {
    .about-footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .about-footer-brand {
        align-items: center;
    }
    
    .about-footer-nav {
        gap: 40px;
        justify-content: center;
        justify-self: center;
    }
    
    .about-nav-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .about-footer-contact {
        align-items: center;
        justify-self: center;
    }
    
    .about-footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}