/*
Theme Name: msp_theme
Description: TwentyTwentyFive theme child
Author:Mihovil Jostiak
Template: twentytwentyfive
Version: 1.0.0
Text Domain: twentytwentyfive
*/
/* CSS sticky header  */

header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

header nav .wp-block-navigation-item {
    margin-right: 15px;
}

h1 {
    line-height: 1.3;
}

a:focus,
a:focus-visible,
button:focus,
button:focus-visible {
    outline: none;
}

@keyframes headerScrollEffect {
    from {
        background: rgba(10, 74, 125, 0.95);
        box-shadow: none;
    }
    to {
        background: rgba(10, 74, 125, 0.98);
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    }
}

.cta-primary {
    background: rgba(249, 167, 25, 1);
    color: black;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cta-primary:hover {
    transform: translateY(-3px) scale(1.05);
    background: rgba(249, 167, 25, 0.9);}

/* Style the site title */
.main-header .wp-block-site-title a {
    font-weight: 800;
    font-size: 1.8rem;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

/* Apply gradient effect with proper fallback */
@supports (-webkit-background-clip: text) {
    .main-header .wp-block-site-title a {
        background: black;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
}

/* Navigation links styling */
.main-header .wp-block-navigation a {
    color: rgba(10, 74, 125, 1);
    font-weight: 500;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

.main-header .wp-block-navigation a:hover {
    color: rgba(10, 74, 125, 0.8);
    text-shadow: 0 2px 4px rgba(10, 74, 125, 0.3);
}

.main-header .wp-block-navigation a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: rgba(10, 74, 125, 1);
    transition: width 0.3s ease;
}

.main-header .wp-block-navigation a:hover::after {
    width: 100%;
}

.main-header .cta-link::after {
    display: none;
}

/* Mobile responsiveness */
/*@media (max-width: 768px) {*/
/*    .main-header .wp-block-site-title a {*/
/*        font-size: 1.4rem;*/
/*    }*/

/*    body {*/
/*        padding-top: 80px;*/
/*    }*/
/*}*/

/*homepage*/

/* Hero Section */
.hero {
    height: 100vh;
    background: rgba(10, 74, 125, 1);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(rgba(10, 74, 125, 0.8), rgba(10, 74, 125, 0.9)), url('assets/images/homepage-main.jpg') no-repeat center center/cover;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(10,74,125,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(10,74,125,0.1)"/><circle cx="50" cy="50" r="0.5" fill="rgba(10,74,125,0.05)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>') repeat;
    opacity: 0.3;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #1a1a1a 0%, rgba(10, 74, 125, 1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-cta {
    position: relative;
    overflow: hidden;
}

.hero-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.hero-cta:hover::before {
    left: 100%;
}

.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    animation: float 6s ease-in-out infinite;
    max-width: 400px;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

.card-icon {
    width: 93px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.card-icon svg {
    color: white;
}

.card-icon img {
    height: 60px;
    width: 93px;
}

/* Services Section */
.services {
    padding: 6rem 5%;
    background: linear-gradient(135deg, #f8f9ff 0%, #fff 100%);
    position: relative;
}

.services-container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #1a1a1a 0%, rgba(10, 74, 125, 1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(10, 74, 125, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(10, 74, 125, 0.05);
    transition: left 0.5s ease;
}

.service-card:hover {
    border-color: rgba(10, 74, 125, 0.3);
}

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    border: 1px solid rgba(10, 74, 125, 0.1);
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    border-color: black;
}

.service-icon svg {
    width: 35px;
    height: 35px;
    fill: white;
}

.service-icon img {
    height: 60px;
    fill: white;
}

.service-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1a1a1a;
    position: relative;
    z-index: 2;
}

.service-card p {
    color: #666;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* CTA Section */
.cta-section {
    padding: 6rem 5%;
    background: rgba(10, 74, 125, 1);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.cta-main {
    padding: 20px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .services {
        padding: 4rem 5%;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .cta-section {
        padding: 4rem 5%;
    }
}

/* Smooth animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation delays */
.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }



/* Footer */

footer {
    background: #1a1a1a !important;
    color: white !important;
    padding: 3rem 5% 1rem !important;
    margin-block-start: 0 !important;
}

.footer-content {
    max-width: 1400px !important;
    margin: 0 auto !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    gap: 2rem !important;
    margin-bottom: 2rem !important;
    align-items: baseline;
}

.footer-section h3 {
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
    background: #3089cf !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.footer-section p,
.footer-section li {
    color: #ccc !important;
    line-height: 1.6 !important;
}

.footer-section ul {
    list-style: none !important;
}

.footer-section a {
    color: #ccc !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

.footer-section a:hover {
    color: #667eea !important;
}

.footer-bottom {
    border-top: 1px solid #333 !important;
    padding-top: 2rem !important;
    text-align: center !important;
    color: #999 !important;
}

.footer-section ul.wp-block-list {
    padding-left: 0;
}

@media (min-width: 768px) {
    footer .wp-block-columns {
        gap: 0;
    }
}

@media (min-width: 1024px) {
    footer .wp-block-column:last-of-type {
        align-self: revert;
    }

    footer .wp-block-site-logo,
    footer .wp-block-site-logo > a {
        height:100%;
    }

    footer .wp-block-site-logo > a > img.custom-logo {
        height: inherit;
        width: auto;
    }
}