/* Basic Reset */
* {
    margin: 0; padding: 0; box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: #fff;
    background: black;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    animation: scaleBg 20s infinite alternate ease-in-out;
    z-index: -2;
}

.video-bg {
  position: fixed;
  top: 50%; left: 50%;
  min-width: 100%; min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  opacity: 0.4;
  z-index: -2;
}

@keyframes scaleBg {
    from {transform: scale(1);}
    to {transform: scale(1.2);}
}

.overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: -1;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 100px 20px;
    animation: fadeIn 3s ease-out;
}

.hero h1 {
    font-size: 3em;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero p {
    font-weight: 300;
    font-size: 1.1em;
    opacity: 0.8;
}

.social {
    margin-top: 20px;
}

.social a {
    color: #fff;
    margin: 0 10px;
    font-size: 1.6em;
    transition: 0.3s ease;
}

.social a:hover {
    color: #1DA1F2;
    transform: translateY(-5px);
}

/* Cards Section */
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

.card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    padding: 25px;
    max-width: 450px;
    transition: transform 0.3s, box-shadow 0.3s, border 0.3s;
    border: 1px solid transparent; /* add transparent border initially */
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 25px rgba(29,161,242,0.6);
    border: 1px solid rgba(29,161,242,0.3);
    text-shadow: 0 0 8px #1DA1F2;
}

.card h2 {
    border-bottom: 2px solid #1DA1F2;
    padding-bottom: 8px;
    margin-bottom: 15px;
    font-weight: 500;
}

.card h2 i {
    margin-right: 10px;
    color: #1DA1F2;
}

.card p {
    font-weight: 300;
    opacity: 0.9;
}

.card.latest a {
    display: inline-block;
    margin-top: 15px;
    color: #1DA1F2;
    text-decoration: none;
    transition: transform 0.3s;
}

.card.latest a:hover {
    transform: translateX(5px);
}


/* Footer */
footer {
    text-align: center;
    padding: 30px 20px;
    font-weight: 300;
    opacity: 0.6;
}

/* Animation */
@keyframes fadeIn {
    from {opacity: 0; transform: translateY(-20px);}
    to {opacity: 1; transform: translateY(0);}
}

/* Responsive */
@media(max-width:600px){
    .hero {padding: 70px 10px;}
    .hero h1 {font-size: 2.5em;}
    main {flex-direction: column; align-items: center;}
    .card {width: 90%;}
}
