/* Reset */
* { margin:0; padding:0; box-sizing: border-box; }
body, html { height:100%; font-family: 'Arial', sans-serif; background: #f0f4f8; color: #333; }

/* Fullpage container */
.fullpage-container { display: flex; flex-direction: column; height: 100vh; }

/* Header */
header {
    padding: 10px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.9);
    z-index: 10;
}

header nav {
    display: flex;
    align-items: center;
}

header nav a {
    margin-left: 20px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

header nav .btn {
    background: #FF6347;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    transition: 0.3s;
}

header nav .btn:hover {
    background: #FF4500;
}

/* Logo */
header .logo img {
    height: 120px;
    width: auto;
}
@media (max-width: 768px){
    header .logo img { height: 80px; }
}

/* Hero Section */
.hero-flying {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #1E90FF, #32CD32);
    overflow: hidden;
}

.hero-text {
    position: relative;
    z-index: 5;
    text-align: center;
    max-width: 900px;
    color: #fff;
}

.hero-text h1 { font-size: 36px; margin-bottom: 10px; text-shadow:2px 2px 10px rgba(0,0,0,0.3);}
.hero-text p { font-size: 16px; margin-bottom: 20px; }
.hero-text .btn-primary {
    background: #FFD700;
    color:#333;
    padding: 10px 25px;
    border-radius:5px;
    font-weight:bold;
    text-decoration:none;
}
.hero-text .btn-primary:hover { background:#FFC300; }

/* ===== Flying Letters (UPDATED) ===== */
.letters-container {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

.letters-container .letter {
    position: absolute;
    font-weight: bold;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    animation: fly 12s linear infinite;
    white-space: nowrap;
}

/* Main Logo Letters */
.letters-container .u { 
    font-size: 100px;
    color: #FFD700; 
    animation-duration: 10s;
}
.letters-container .two { 
    font-size: 100px;
    color: #FF6347; 
    animation-duration: 12s;
}
.letters-container .x { 
    font-size: 100px;
    color: #1E90FF; 
    animation-duration: 14s;
}
.letters-container .us { 
    font-size: 80px;
    color: #32CD32; 
    animation-duration: 16s;
}

/* New Flying Words */
.word1, .word2, .word3, .word4, .word5, .word6 {
    font-size: 28px;
    opacity: 0.9;
}

/* Position + Delay */
.word1 { top: 10%; left: 5%;  animation-delay: 0s; }
.word2 { top: 20%; left: 70%; animation-delay: 2s; }
.word3 { top: 60%; left: 10%; animation-delay: 4s; }
.word4 { top: 30%; left: 80%; animation-delay: 6s; }
.word5 { top: 75%; left: 30%; animation-delay: 8s; }
.word6 { top: 50%; left: 60%; animation-delay: 10s; }

/* Animation */
@keyframes fly {
    0%   { transform: translate(0, 0) rotate(0deg); }
    25%  { transform: translate(150px, -120px) rotate(15deg); }
    50%  { transform: translate(300px, 100px) rotate(-15deg); }
    75%  { transform: translate(500px, -80px) rotate(10deg); }
    100% { transform: translate(800px, 0) rotate(0deg); }
}

/* Header container */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

/* Navigation */
.header-nav.top-right-nav {
    display: flex;
    gap: 15px;
}

.header-nav a.btn {
    padding: 6px 12px;
    background-color: #ff6347;
    color: white;
    border-radius: 4px;
    text-decoration: none;
}

.header-nav a:hover {
    opacity: 0.8;
}

/* Features */
.features {
    display:flex;
    justify-content:center;
    align-items:center;
    padding:10px;
    flex-wrap:wrap;
    z-index:5;
    background:transparent;
}
.feature-grid {
    display:flex;
    gap:15px;
    flex-wrap:wrap;
    justify-content:center;
}
.feature {
    background:#fff;
    padding:15px;
    border-radius:10px;
    width:200px;
    box-shadow:0 5px 15px rgba(0,0,0,0.1);
    transition:0.3s;
    text-align:center;
}
.feature:hover { transform: translateY(-5px); }
.feature h3{ font-size:16px; margin-bottom:5px; }
.feature p{ font-size:14px; color:#555; }

/* Footer */
footer {
    text-align:center;
    padding:10px;
    background:#333;
    color:white;
    font-size:12px;
}

/* Responsive */
@media (max-width:768px){
    .hero-text h1{ font-size:28px; }
    .hero-text p{ font-size:14px; }
    .feature{ width:80%; }
    header{ padding:10px 20px; }
}

/* Forms */
.form-container {
    width: 400px;
    margin: 50px auto;
    background: #fff;
    padding: 30px;
    border-radius:10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    text-align:center;
}
.form-container input {
    width: 90%;
    padding:10px;
    margin:10px 0;
    border-radius:5px;
    border:1px solid #ccc;
}
.form-container button {
    padding:10px 20px;
    border:none;
    border-radius:5px;
    cursor:pointer;
}
.form-container .btn-primary {
    background:#FF6347;
    color:#fff;
}
.form-container .btn-primary:hover { background:#FF4500; }
.message { color:red; margin-bottom:10px; }

/* Dashboard */
.dashboard-container {
    width: 90%;
    max-width: 1000px;
    margin: 20px auto;
}
.dashboard-container h2 { margin-bottom:10px; }
.dashboard-container .btn {
    background:#FF6347;
    color:white;
    padding:5px 10px;
    text-decoration:none;
    border-radius:5px;
}
.dashboard-container table {
    width:100%;
    border-collapse: collapse;
    margin-top:15px;
}
.dashboard-container table, th, td {
    border:1px solid #ccc;
}
.dashboard-container th, td {
    padding:8px;
    text-align:center;
}

/* Make reCAPTCHA responsive */
.form-container .g-recaptcha {
    transform: scale(0.85); /* Adjust scale to match input width */
    transform-origin: 0 0;  /* Align top-left */
    display: block;
    margin: 10px auto;       /* Center horizontally */
}