* {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    text-align: center;
    background: #203A58;
    cursor: url('path/to/ster.svg'), auto;
}

header {
    color: #fff;
    padding: 1rem 0;
    text-align: center;
    position: relative;
}

header h1 {
    margin: 0;
}

p {
    color: #fff;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh; /* Full screen height */
    border: 5px solid #D4AF37; /* Border on all sides */
    box-sizing: border-box; /* Border is part of total size */
}

/* Base styles for the lines */
.text-line1,
.text-line2 {
    margin: 20px 0;
}

/* Animation for text */
.text-line1 span,
.text-line2 span {
    opacity: 0;
    animation: fadeIn 0.1s ease forwards;
}

/* First line animation */
.text-line1 span {
    animation-delay: calc(var(--index) * 0.1s);
}

/* Second line animation - starts after first line completes */
.text-line2 span {
    animation-delay: calc((var(--index) * 0.05s) + 1s);
}

/* Underline effect for second line */
.text-line2 {
    position: relative;
}

.text-line2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: #D4AF37;
    animation: growLine 1s ease forwards;
    animation-delay: 1s;
}

/* Text fade in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Line growing animation */
@keyframes growLine {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.mouse-glow {
    position: fixed;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-40%, -40%);
    mix-blend-mode: screen;
    transition: transform 0.05s linear;
    background: radial-gradient(circle, rgba(255, 255, 0, 0.8) 0%, rgba(255, 255, 0, 0) 70%);
    filter: blur(20px);
}

/* Card styling */
.card {
    width: 320px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    margin-bottom: 30px;
}

.card-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 20px;
}

/* Card hover effect */
.card:hover {
    transform: translateY(-8px) rotateX(5deg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.5s ease;
    opacity: 0.9;
}

/* Image zoom and brighten on hover */
.card:hover .card-image img {
    transform: scale(1.15);
    opacity: 1;
}

.card-content {
    padding: 20px;
}

.card-content h2 {
    font-size: 1.3em;
    color: #333;
    margin-bottom: 10px;
}

.card-content p {
    font-size: 1em;
    color: #666;
    margin-bottom: 15px;
}

/* Button styling */
button {
    background-color: #203A58;
    color: #fff;
    border: none;
    padding: 12px 18px;
    font-size: 1em;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.3s, background 0.3s;
}

/* Button hover effect */
button:hover {
    background-color: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.4);
}

/* Button active effect */
button:active {
    transform: scale(0.95);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

/* Back button styling */
.back-button {
    color: #D4AF37;
    text-decoration: none;
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 16px;
}

/* RESPONSIVE STYLES */

/* Media query for tablets */
@media screen and (max-width: 992px) {
    .card {
        width: 45%;
        min-width: 250px;
    }
    
    header svg {
        width: 150px;
        height: 150px;
    }
    
    button {
        padding: 10px 16px;
        font-size: 0.9em;
    }
}

/* Media query for mobile phones */
@media screen and (max-width: 768px) {
    .card-container {
        flex-direction: column;
        align-items: center;
    }
    
    .card {
        width: 90%;
        min-width: auto;
    }
    
    header svg {
        width: 120px;
        height: 120px;
    }
    
    .text-line1, .text-line2 {
        font-size: 1.5rem;
    }
    
    .back-button {
        font-size: 14px;
        top: 10px;
        left: 10px;
    }
    
    button {
        width: 100%;
        max-width: 200px;
        padding: 10px 14px;
    }
}

/* Very small screens adjustments */
@media screen and (max-width: 480px) {
    .card {
        width: 95%;
    }
    
    .card-content h2 {
        font-size: 1.2rem;
    }
    
    .card-content p {
        font-size: 0.9rem;
    }
    
    header svg {
        width: 100px;
        height: 100px;
    }
    
    html, body {
        border-width: 3px;
    }
}

/* Disable mouse glow on touch devices */
@media (hover: none) {
    .mouse-glow {
        display: none;
    }
}