/* ==== GLOBAL STYLES ==== */
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Regular.ttf') format('truetype');
    font-weight: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-SemiBold.ttf') format('truetype');
    font-weight: 600;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Ensure it's behind other content */
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    width: 100vw;
    min-height: 100vh;
    background-color: #1C2127;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1; 
}

.logo {
    text-align: center;
    margin-bottom: 80px;
    width: 100%;
}

.logo img {
    max-width: 300px;
    height: auto;
}

/* Add animation to logo */
.logo {
    text-align: center;
    margin-bottom: 80px;
    width: 100%;
    animation: slideInFromTop 0.7s ease-out forwards;
}

.content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
    margin-bottom: auto; 
}

.services {
    flex: 1;
    max-width: 500px;
    animation: slideInFromLeft 0.7s ease-out forwards; /* MODIFIED: Removed 0.2s delay */
}

.services-subtitle {
    font-size: 16px;
    font-weight: normal; /* Poppins-Regular */
    color: #E0E0E0; /* Slightly dimmer white */
    margin-bottom: 0px; /* Space between subtitle and title */
    margin-left: 80px; /* Align with h2 and service item text */
    line-height: 1.2;
}

.services h2 {
    font-size: 30px;
    font-weight: 600;
    color: white;
    margin-bottom: 50px;
    margin-left: 80px;
    animation: colorWave 8s ease-in-out infinite;
}

.service-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 50px; 
    gap: 20px;
}

.service-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0; 
}

.service-text h3 {
    color: #7AACB3;
    font-size: 18px;
    margin-bottom: 10px;
}

.service-text p {
    color: #ffffff;
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.8;
}

.image-showcase {
    flex: 1;
    max-width: 500px;
    animation: slideInFromRight 0.7s ease-out forwards; /* MODIFIED: Removed 0.2s delay */
}

.image-showcase img {
    transition: transform 0.1s ease-out; /* Add this for smooth rotation */
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: rgbSplit 5s infinite;
}

.footer {
    position: fixed; 
    bottom: 0;
    left: 0; 
    right: 0; 
    width: 100%;
    padding: 20px 0;
    background-color: #13171B; /* Solid dark color from image */
    animation: slideInFromBottom 0.7s ease-out forwards; /* Added animation */
}

.contact-info {
    width: 1100px; 
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #7AACB3; /* This color will be inherited by child links */
    font-size: 14px;
}

.contact-info a { /* General style for links in contact-info */
    text-decoration: none;
    color: inherit; /* Inherits color from .contact-info */
}

.contact-info .phone a { /* Specific styles for the phone link container */
    display: flex;
    align-items: center;
}

.phone-icon {
    width: 16px; /* Adjust size as needed */
    height: auto;
    margin-right: 8px; /* Space between icon and number */
}

/* ==== MOBILE STYLES ==== */
@media (max-width: 768px) {
    body {
        overflow-y: auto;
        position: relative; /* Add relative positioning */
        left: 0px;       /* Shift 10px to the left */
    }

    .container {
        padding: 40px 20px; /* MODIFIED: Was 40px 15px. Now 25px L/R padding */
        width: 100%;
    }

    .logo {
        margin-bottom: 40px; 
    }

    .logo img {
        max-width: 200px;
    }

    .content {
        flex-direction: column-reverse;
        align-items: center;
        gap: 40px;
        padding: 0; /* MODIFIED: Was 0 20px. Rely on .container for L/R padding */
        margin-bottom: 40px; 
    }

    .services {
        width: 100%;
        max-width: 100%;
        padding: 0; 
    }

    .services-subtitle {
        /* Styles from desktop will largely apply, ensure alignment if needed */
        margin-left: 80px; /* Consistent alignment on mobile */
        text-align: left;
        /* font-size can be adjusted for mobile if needed, e.g., 14px */
    }

    .services h2 {
        margin-left: 80px; 
        text-align: left;
        margin-bottom: 30px;
        font-size: 26px; /* Slightly smaller for mobile if 30px is too large */
    }

    .service-item {
        margin-bottom: 30px;
    }

    .image-showcase {
        width: 100%;
        max-width: 100%;
    }

    .footer {
        display: block; /* Ensure footer is visible */
        position: static; 
        background-color: #13171B; /* Solid dark color for mobile too */
        padding: 25px 0; 
        margin-top: 0; 
    }

    .contact-info {
        width: 100%; 
        max-width: none;
        flex-direction: row; 
        justify-content: space-between;
        font-size: 13px; 
        padding: 0 25px; /* This already has 25px L/R padding */
        color: #7AACB3; 
    }

    .contact-info a { /* Ensure mobile links also inherit color and have no underline */
        text-decoration: none;
        color: inherit;
    }

    .contact-info .phone a { /* Ensure mobile phone link maintains flex for icon */
        display: flex;
        align-items: center;
    }

    .phone-icon {
        width: 14px; /* Slightly smaller for mobile if needed */
        margin-right: 6px;
    }
}

/* ==== ANIMATION KEYFRAMES ==== */
@keyframes slideInFromTop {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

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

@keyframes slideInFromBottom { /* New keyframes for footer */
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Add these new keyframes for the glitch effect */
@keyframes rgbSplit {
    0%, 100% {
        filter: none;
    }
    92% {
        filter: none;
    }
    92.5% {
        filter: drop-shadow(-2px 0 red) drop-shadow(2px 0 blue);
    }
    93% {
        filter: drop-shadow(2px 0 red) drop-shadow(-2px 0 blue);
    }
    93.5% {
        filter: drop-shadow(-1px 0 red) drop-shadow(1px 0 blue);
    }
    94% {
        filter: none;
    }
    98% {
        filter: none;
    }
    98.2% {
        filter: drop-shadow(1px 0 red) drop-shadow(-1px 0 blue);
    }
    98.4% {
        filter: drop-shadow(-1px 0 red) drop-shadow(1px 0 blue);
    }
    98.6% {
        filter: none;
    }
}

/* Add this new animation for the services title */
@keyframes colorWave {
    0%, 100% {
        color: white;
        text-shadow: 0 0 10px rgba(122, 172, 179, 0);
    }
    25% {
        color: #7AACB3;
        text-shadow: 0 0 15px rgba(122, 172, 179, 0.5);
    }
    50% {
        color: white;
        text-shadow: 0 0 20px rgba(122, 172, 179, 0.3);
    }
    75% {
        color: #7AACB3;
        text-shadow: 0 0 15px rgba(122, 172, 179, 0.5);
    }
}