/* Base styles and variables */
:root {
    --primary-color: #C72375;
    --primary-dark: #a01c60;
    --primary-light: #e63f8e;
    --dark-text: #333333;
    --light-text: #ffffff;
    --gray-text: #cccccc;
    --background: rgb(43, 24, 33);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Background with subtle image */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('./assets/bg.jpeg') no-repeat center center;
    background-size: cover;
    z-index: -1;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(43, 24, 33);
    opacity: 0.92; /* Strong overlay */
    z-index: -1;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Logo styles */
.logo-container {
    display: flex;
    /*justify-content: center;*/
    margin-bottom: 2rem;
}

.logo-img-main {
    height: 200px;
    z-index: 10;
}

/* Main content styles */
main {
    display: flex;
    flex: 1;
    margin-top: 4rem;
    min-height: 90vh;
    overflow: visible; /* Allow overflow to show full blur */
    position: relative;
}

.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 2rem;
    animation: slideIn 1s ease-out;
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.heading-primary {
    color: var(--light-text);
    font-weight: 500;
}

.heading-secondary {
    color: var(--primary-color);
    font-weight: 700;
}

.content p {
    font-size: 1.2rem;
    color: var(--gray-text);
    margin-bottom: 2.5rem;
    max-width: 90%;
    line-height: 1.6;
}

.buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn.primary {
    background-color: #1a1f36;
    color: white;
}

.btn.primary:hover {
    background-color: #121728;
}

.btn.secondary {
    background-color: white;
    color: var(--dark-text);
    border: 1px solid #e0e0e0;
}

.btn.secondary:hover {
    background-color: #f5f5f5;
}

.users {
    display: flex;
    align-items: center;
}

.user-avatars {
    display: flex;
    margin-right: 1rem;
}

.user-avatars img {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 2px solid white;
    margin-right: -0.8rem;
}

.users p {
    margin-bottom: 0;
    font-size: 1rem;
}

.users span {
    font-weight: 700;
}

/* Image container */
.image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: visible;
}

/* Separate blur element to ensure it's not constrained */
.image-container::before {
    content: '';
    position: absolute; /* Change back to absolute positioning */
    width: 700px;
    height: 700px;
    background-image: url('./assets/blure.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    top: 50%;
    right: -10%;
    transform: translateY(-50%);
    opacity: 0.77;
}


.phone-mockup {
    position: relative;
    animation: flyIn 1.2s ease-out;
    z-index: 1; /* Ensure phone appears above the blur */
}

.image-container img:first-child {
    position: absolute;
    max-height: 75vh;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1; /* Lower z-index to ensure app is behind frame */
    border-radius: 4rem;
    object-fit: cover;
    object-position: center;
}

.image-container img:last-child {
    max-width: 100%;
    max-height: 75vh;
    position: relative;
    z-index: 2; /* Higher z-index to ensure frame is on top */
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.15));
}

@keyframes flyIn {
    0% {
        transform: translateY(100vh);
        opacity: 0;
    }
    60% {
        transform: translateY(-5%);
    }
    80% {
        transform: translateY(2%);
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Footer styles */
footer {
    margin-top: 5rem;
    padding: 2rem 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: var(--background);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10; /* Footer above everything */
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.company-info {
    text-align: center;
    width: 100%;
}

.company-info p {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    color: var(--gray-text);
    line-height: 1.6;
}

.company-info p:last-child {
    margin-bottom: 0;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.contact-info p {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    color: var(--gray-text);
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    text-decoration: underline;
    color: var(--primary-dark);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--gray-text);
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* Media queries */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    
    .container {
        min-height: auto;
    }
    
    main {
        flex-direction: column;
        min-height: auto;
    }
    
    .content {
        padding-right: 0;
        text-align: center;
        margin-bottom: 3rem;
        position: relative;
        z-index: 5; /* Ensure content is above the blur */
    }
    
    .content p {
        max-width: 100%;
    }
    
    .logo-container {
        margin-bottom: 1.5rem;
        justify-content: center;
    }
    
    .logo-img-main {
        height: 160px;
    }

    .heading-primary {
        color: var(--light-text);
        font-size: 2rem;
    }
    
    .buttons {
        justify-content: center;
    }
    
    .users {
        justify-content: center;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    /* Adjust blur size and position for mobile */
    .image-container::before {
        width: 100%;
        height: 100%;
        top: 0;
        right: 0;
        transform: none;
        background-size: 90% auto;
        z-index: 0;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .contact-info {
        align-items: center;
    }
}