/* ===== HEADER STYLES ===== */
.site-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 120px;
    gap: 40px;
    padding: 0 20px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-container {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
    animation: none !important;
}

.logo-text-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
}

.logo-tagline {
    font-size: 0.8rem;
    color: #666;
}

/* Animated Logo Styles */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-animated {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-image {
    width: 100%;
    height: 100%;
    animation: rotateLogo 20s linear infinite;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

.logo-animated-mobile {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-animated-mobile .logo-image {
    width: 100%;
    height: 100%;
    animation: rotateLogo 20s linear infinite;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* Logo Animation Keyframes */
@keyframes rotateLogo {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    align-items: center;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.nav-link i {
    font-size: 1rem;
    color: #2c5f8a;
}

.nav-link:hover,
.nav-link.active {
    color: #2c5f8a;
}

.cta-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #2c5f8a, #2d7a73);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 32px;
    font-size: 0.95rem;
    font-weight: 600;
    min-width: 140px;
    transition: all 0.3s ease;
    text-align: center;
    justify-content: center;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(44, 95, 138, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(44, 95, 138, 0.4);
    box-shadow: 0 5px 15px rgba(44, 95, 138, 0.4);
}

.cta-button i {
    font-size: 1rem;
}

/* Offer Banner */
.offer-banner {
    background: linear-gradient(135deg, #2c5f8a 0%, #2d7a73 100%);
    color: white;
    padding: 0.8rem 0;
    position: relative;
    z-index: 999;
}

.offer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.offer-text {
    flex: 1;
    margin: 0;
    font-size: 0.95rem;
}

.offer-text .highlight {
    font-weight: 700;
    color: #fbbf24;
}

.offer-link {
    color: white;
    font-weight: 600;
    text-decoration: underline;
    margin-left: 0.5rem;
}

.offer-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.offer-close:hover {
    opacity: 1;
}

/* ===== FOOTER STYLES ===== */
.site-footer {
    background: #1a1f2e;
    color: #fff;
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer-widget .widget-title {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget .widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #2c5f8a, #2d7a73);
}

.widget-text {
    color: #b0b0b0;
    line-height: 1.6;
    margin-bottom: 20px;
}

.offer-tag {
    background: rgba(44, 95, 138, 0.1);
    border-left: 3px solid #2c5f8a;
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: 0 5px 5px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.offer-tag i {
    color: #2c5f8a;
    font-size: 1.2rem;
}

.offer-tag span {
    color: white;
    font-weight: 500;
}

.social-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    transform: translateY(-2px);
}

/* Coming Soon Social Links */
.social-link.coming-soon {
    opacity: 0.6;
    background: rgba(255,255,255,0.05);
    cursor: not-allowed;
}

.social-link.coming-soon:hover {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    transform: none;
    cursor: pointer;
}

.social-link:hover {
    background: linear-gradient(135deg, #2c5f8a, #2d7a73);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #b0b0b0;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.footer-links a i {
    font-size: 0.8rem;
    color: #2c5f8a;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.free-link {
    color: #fbbf24 !important;
    font-weight: 600;
}

.contact-info {
    list-style: none;
    padding: 0;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    color: #b0b0b0;
}

.contact-info li i {
    color: #2c5f8a;
    margin-top: 4px;
}

.contact-info a {
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: white;
}

/* Newsletter Widget */
.newsletter-widget {
    margin-top: 20px;
}

.newsletter-widget h4 {
    color: white;
    margin-bottom: 10px;
}

.newsletter-widget p {
    color: #b0b0b0;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.newsletter-widget .form-group {
    display: flex;
    margin-bottom: 5px;
}

.newsletter-widget .form-control {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 5px 0 0 5px;
    outline: none;
}

.btn-subscribe {
    background: linear-gradient(135deg, #003d99, #0099ff);
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-subscribe:hover {
    background: linear-gradient(135deg, #0099ff, #003d99);
}

.form-text {
    color: #888;
    font-size: 0.8rem;
}

/* Copyright Bar */
.copyright-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #888;
    font-size: 0.9rem;
}

.copyright-bar a {
    color: #0099ff;
    text-decoration: none;
}

.copyright-bar a:hover {
    text-decoration: underline;
}

.credit i {
    animation: heartbeat 1.5s ease infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #003d99, #0099ff);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/**
 * MOBILE RESPONSIVE STYLES (768px and below)
 * Transforms navigation into slide-out menu
 */
@media (max-width: 768px) {
    /* Show hamburger menu */
    .hamburger-menu {
        display: flex !important; /* Force display */
    }
    
    /* Hide desktop CTA */
    .desktop-only {
        display: none !important;
    }
    
    /* Show mobile CTA in menu */
    .mobile-only {
        display: block !important;
    }
    
    /**
     * MAIN NAVIGATION - MOBILE VERSION
     * Becomes a slide-out panel from the right
     */
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%; /* Hidden off-screen by default */
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: white;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
        padding: 100px 30px 30px;
        transition: right 0.3s ease; /* Smooth slide animation */
        z-index: 1050;
        overflow-y: auto; /* Allow scrolling if menu is long */
    }
    
    /* Active state - slide in */
    .main-nav.active {
        right: 0;
    }
    
    /* Stack navigation vertically */
    .nav-list {
        flex-direction: column;
        gap: 0;
    }
    
    /* Full width navigation items */
    .nav-item {
        width: 100%;
        border-bottom: 1px solid #eee;
    }
    
    .nav-item:last-child {
        border-bottom: none;
    }
    
    /* Larger touch targets for mobile */
    .nav-link {
        padding: 15px 0;
        justify-content: flex-start;
        font-size: 1.1rem;
    }
    
    .nav-link i {
        width: 30px;
        font-size: 1.2rem;
    }
    
    /**
     * MOBILE CTA BUTTON
     * Special styled button that appears only in mobile menu
     */
    .cta-mobile {
        background: linear-gradient(135deg, #003d99, #0099ff);
        color: white !important;
        padding: 15px 20px !important;
        border-radius: 10px;
        margin-top: 20px;
        justify-content: center;
    }
    
    .cta-mobile i {
        color: white !important;
    }
    
    /* Footer adjustments for mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .copyright-bar {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    /* Offer banner adjustments */
    .offer-content {
        flex-wrap: wrap;
        text-align: center;
        justify-content: center;
        padding-right: 30px; /* Space for close button */
    }
    
    .offer-close {
        position: absolute;
        top: 5px;
        right: 10px;
    }
}

/**
 * SMALL MOBILE (480px and below)
 * Further adjustments for very small screens
 */
@media (max-width: 480px) {
    .main-nav {
        width: 90%; /* Take more width on very small screens */
        padding: 80px 20px 20px;
    }
}

/* ===== DESKTOP MAIN NAVIGATION ===== */
@media (min-width: 769px) {
    .main-nav {
        display: flex;
        align-items: center;
    }
}

/* ===== PHASE 6: COMPONENT POLISH & MICRO-INTERACTIONS ===== */

/* Header Polish */
.site-header {
    will-change: box-shadow;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

/* Navigation Link Polish */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

/* CTA Button Polish */
.cta-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(44, 95, 138, 0.4);
}

.cta-button:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(44, 95, 138, 0.3);
}

/* Footer Link Polish */
.footer-links a,
.contact-info a {
    position: relative;
    transition: all 0.3s ease;
}

.footer-links a::after,
.contact-info a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: white;
    transition: width 0.3s ease;
}

.footer-links a:hover::after,
.contact-info a:hover::after {
    width: 100%;
}

/* Hero Section Polish */
.hero-section {
    position: relative;
    animation: pageEnter 0.6s ease-out;
}

.hero-section::before {
    animation: rotate 120s linear infinite;
}

.hero-title {
    animation: fadeInUp 0.8s ease-out 0.1s backwards;
}

.hero-subtitle {
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-cta {
    animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

/* Card Hover Polish */
.service-card, .project-card, .testimonial-card, .pricing-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.service-card:hover, 
.project-card:hover, 
.testimonial-card:hover, 
.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Image Zoom Polish */
.service-card img, 
.project-card img {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover img, 
.project-card:hover img {
    transform: scale(1.05);
}

/* Badge Animation */
.badge, .featured-badge, .popular-badge {
    animation: slideDown 0.6s ease-out;
}

/* Divider Animation */
.divider {
    animation: slideRight 0.8s ease-out 0.2s backwards;
}

/* Smooth Gradient Animations */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.gradient-animated {
    background-size: 200% 200%;
    animation: gradientShift 6s ease infinite;
}

/* List Item Entrance */
.list-item {
    animation: fadeInUp 0.6s ease-out backwards;
}

.list-item:nth-child(1) { animation-delay: 0.05s; }
.list-item:nth-child(2) { animation-delay: 0.1s; }
.list-item:nth-child(3) { animation-delay: 0.15s; }
.list-item:nth-child(4) { animation-delay: 0.2s; }
.list-item:nth-child(5) { animation-delay: 0.25s; }

/* Icon Polish */
.icon-animated {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.icon-animated:hover {
    transform: rotate(10deg) scale(1.1);
}

/* Text Selection Polish */
.site-header, .site-footer {
    user-select: none;
}

/* Smooth Page Transitions */
main {
    animation: pageEnter 0.5s ease-out;
}

section {
    animation: fadeInUp 0.6s ease-out backwards;
}

section:nth-of-type(1) { animation-delay: 0s; }
section:nth-of-type(2) { animation-delay: 0.1s; }
section:nth-of-type(3) { animation-delay: 0.2s; }

/* Accessible Focus Styles */
button:focus-visible, 
a:focus-visible, 
input:focus-visible {
    outline: 2px solid #2c5f8a;
    outline-offset: 2px;
}

/* Smooth Transitions for Theme Change */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Hover State Polish */
a:not(.btn):not(.logo) {
    position: relative;
    color: #2c5f8a;
    transition: color 0.3s ease;
}

a:not(.btn):not(.logo):hover {
    color: #2d7a73;
}

/* Button Text Animation */
.btn span {
    position: relative;
    display: inline-block;
    transition: transform 0.3s ease;
}

.btn:hover span {
    transform: translateX(2px);
}

/* Loading Animation */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #2c5f8a, #fbbf24, #2d7a73);
    animation: progressFill 1s ease;
    z-index: 9999;
}

@keyframes progressFill {
    from {
        width: 0;
    }
}

/* Smooth Color Transition for Links */
.link-primary {
    color: #2c5f8a;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.link-primary:hover {
    color: #2d7a73;
    text-decoration: underline;
}

/* Scroll Reveal Animations */
.fade-in, .slide-in, .stagger-item, .card, .service-item, .project-item {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.reveal, .fade-in.reveal-visible,
.slide-in.reveal, .slide-in.reveal-visible,
.stagger-item.reveal, .stagger-item.reveal-visible,
.card.reveal, .card.reveal-visible,
.service-item.reveal, .service-item.reveal-visible,
.project-item.reveal, .project-item.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Form Input Animations */
input, textarea, select {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

input:focus, textarea:focus, select:focus {
    background-color: rgba(44, 95, 138, 0.02);
}

input.focused::placeholder, textarea.focused::placeholder {
    opacity: 0;
}

.form-label {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-label.focus {
    color: #2c5f8a;
    font-size: 0.875rem;
    transform: translateY(-1.5rem);
}

/* Link Hover Animations */
a.hovered {
    text-decoration: underline;
    color: #2d7a73;
}

/* Active Navigation State */
.nav-link.active {
    color: #fbbf24;
    font-weight: 600;
    position: relative;
}

/* Accordion Animations */
.accordion-item {
    border: 1px solid rgba(44, 95, 138, 0.1);
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-item.open {
    background: rgba(44, 95, 138, 0.02);
    border-color: #2c5f8a;
}

.accordion-header {
    padding: 16px;
    cursor: pointer;
    font-weight: 500;
    color: #2c5f8a;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.accordion-header:hover {
    background: rgba(44, 95, 138, 0.04);
}

.accordion-header::after {
    content: '▾';
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #fbbf24;
    font-weight: 700;
}

.accordion-item.open .accordion-header::after {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-item.open .accordion-content {
    padding: 16px;
}

/* Page Load Animation */
body {
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

body.page-loaded {
    opacity: 1;
}

/* Loading Skeleton States */
.skeleton {
    background: linear-gradient(90deg, #f0f4f8 25%, #e2e8f0 50%, #f0f4f8 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-text {
    height: 12px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
    
    .accordion-content {
        max-height: auto !important;
    }
}