:root {
    --navy: #092365;
    --dark-red: #8B0000;
    --white: #ccc;
    --light-gray: #FFFF;
    --dark-gray: #333333;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

body {
    background-color: var(--white);
    color: var(--dark-gray);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    padding: 15px 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    width: 50px;
    height: 50px;
    background-color: var(--navy);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: bold;
    font-size: 20px;
}

.logo-text {
    padding-left: 50px;
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

nav a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--dark-red);
    transition: var(--transition);
}

nav a:hover {
    color: var(--dark-red);
}

nav a:hover:after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 100px 20px 60px;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--white) 0%, var(--light-gray) 100%);
    z-index: -2;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.3;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background-color: var(--navy);
    top: -150px;
    right: -150px;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background-color: var(--dark-red);
    bottom: -100px;
    left: 10%;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background-color: var(--navy);
    top: 30%;
    left: -75px;
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--navy);
    line-height: 1.2;
}

.hero p {
    font-size: 1.5rem;
    max-width: 700px;
    margin: 0 auto 40px;
    color: var(--dark-gray);
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--dark-red);
    color: var(--white);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    transition: var(--transition);
    transform: translateY(0);
    box-shadow: 0 10px 30px rgba(139, 0, 0, 0.3);
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(139, 0, 0, 0.4);
}

/* Tiles Section */
.tiles-section {
    padding: 100px 40px;
    background-color: var(--light-gray);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.8rem;
    color: var(--navy);
    margin-bottom: 15px;
}

.section-title p {
    font-size: 1.2rem;
    color: var(--dark-gray);
    max-width: 600px;
    margin: 0 auto;
}

.tiles-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.tile {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    transform: translateY(0);
}

.tile:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.tile-content {
    padding: 30px;
}

.tile-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--dark-red) 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--white);
    font-size: 28px;
}

.tile h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--navy);
}

.tile p {
    color: var(--dark-gray);
    margin-bottom: 25px;
}

.tile-link {
    display: inline-flex;
    align-items: center;
    color: var(--dark-red);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.tile-link i {
    margin-left: 8px;
    transition: var(--transition);
}

.tile-link:hover {
    color: var(--navy);
}

.tile-link:hover i {
    transform: translateX(5px);
}

/* Features Section */
.features-section {
    padding: 100px 40px;
    background-color: var(--white);
}

.features-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature {
    text-align: center;
    padding: 30px;
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--dark-red) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 40px;
}

.feature h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--navy);
}

.feature p {
    color: var(--dark-gray);
}

/* Footer */
footer {
    background-color: var(--navy);
    color: var(--white);
    padding: 60px 40px 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 50px;
}

.footer-column h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--dark-red);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column a {
    color: var(--light-gray);
    text-decoration: none;
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--white);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.4;
    }
}

.shape {
    animation: float 10s ease-in-out infinite, pulse 8s ease-in-out infinite;
}

.shape-1 {
    animation-delay: 0s, 0s;
}

.shape-2 {
    animation-delay: 2s, 1s;
}

.shape-3 {
    animation-delay: 4s, 2s;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3.5rem;
    }

    nav ul {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 15px 20px;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    nav ul {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
        font-size: 24px;
        background: none;
        border: none;
        color: var(--navy);
        cursor: pointer;
    }

    .tiles-container,
    .features-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 15px 40px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .tiles-section,
    .features-section {
        padding: 60px 15px;
    }

    .section-title h2 {
        font-size: 2rem;
    }
}

/* Popup overlay */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

/* Popup box */
.popup-content {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    position: relative;
    animation: fadeIn 0.3s ease-in-out;
}

/* Close button */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 22px;
    cursor: pointer;
    color: #333;
}

/* Form inputs */
.popup-content form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.popup-content input,
.popup-content button {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.popup-content button {
    background: #6a1b9a;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.popup-content button:hover {
    background: #4a148c;
}

@keyframes fadeIn {
    from {opacity: 0; transform: scale(0.9);}
    to {opacity: 1; transform: scale(1);}
}
