/* Frutiger Aero Aesthetic CSS - Enhanced Version */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0099cc 0%, #00cc99 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Animated background elements */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 40% 40%, rgba(0, 204, 153, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

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

/* Header Styles */
.header {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 25px;
    padding: 20px 30px;
    margin-bottom: 20px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    position: relative;
    display: flex;
    align-items: center;
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 300;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(0, 204, 153, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.9; transform: translate(-50%, -50%) scale(1.1); }
}

/* Navigation Styles */
.navigation {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.nav-button {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    padding: 12px 24px;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-block;
}

.nav-button:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(0, 0, 0, 0.1); /* Adjusted inset shadow for hover */
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Footer */
.footer {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 25px;
    padding: 20px;
    margin-top: 20px;
    text-align: center;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(0, 0, 0, 0.1);
}

.footer p {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 300;
}

/* Category Page Styles */
.category-page {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 25px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(0, 0, 0, 0.1);
}

.category-title {
    font-size: 2.5rem;
    font-weight: 300;
    color: #ffffff;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Modified for two columns */
    gap: 20px;
    margin-bottom: 30px;
}

.link-card {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    padding: 25px;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(0, 0, 0, 0.1);
}

.link-card:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(0, 0, 0, 0.1); /* Adjusted inset shadow for hover */
}

.link-card h3 {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 10px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.link-card p {
    color: #ffffff;
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.link-card a {
    display: inline-block;
    background: linear-gradient(145deg, #0099cc, #0077aa);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 153, 204, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
}

.link-card a:hover {
    background: linear-gradient(145deg, #0077aa, #0099cc);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 153, 204, 0.4);
}

.back-button {
    display: inline-block;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    padding: 12px 24px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.back-button:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(0, 0, 0, 0.1); /* Adjusted inset shadow for hover */
}

/* About Section on Homepage */
.about-section {
    text-align: center; /* From inline style */
}

.about-section .category-title { /* Targeting specifically the title within about-section */
    margin-bottom: 20px; /* From inline style */
}

.about-section p {
    color: #ffffff;       /* From inline style */
    font-size: 1.1rem;    /* From inline style */
    line-height: 1.6;     /* From inline style */
    max-width: 900px;     /* Constrain line length for readability */
    margin-left: auto;    /* Center the paragraph block if max-width is applied */
    margin-right: auto;   /* Center the paragraph block if max-width is applied */
    padding: 0 15px;      /* Add some padding so text doesn't touch edges of its container on smaller screens */
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
    }
    
    .navigation {
        justify-content: center;
    }
    
    .url-bar {
        width: 100%;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
    }
    
    .category-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .nav-button {
        padding: 10px 18px;
        font-size: 0.8rem;
    }
    
    .category-title {
        font-size: 1.8rem;
    }
}

/* Fun Page Specific Styles */
/* Ensure fun.html has <body class="fun-page"> */
.fun-page .link-card {
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%); /* Example: Rosy gradient */
    border-color: rgba(255, 154, 158, 0.5);
}

.fun-page .link-card h3 {
    color: #333; /* Darker text for better contrast on lighter background */
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
}

.fun-page .link-card p {
    color: #555; /* Darker paragraph text */
}

.fun-page .link-card a {
    background: linear-gradient(145deg, #ff758c, #ff7eb3); /* Vivid pink/red gradient for links */
    box-shadow: 0 3px 10px rgba(255, 117, 140, 0.4);
}

.fun-page .link-card a:hover {
    background: linear-gradient(145deg, #ff7eb3, #ff758c);
    box-shadow: 0 5px 15px rgba(255, 126, 179, 0.5);
}
