:root {
    --bg-color: #ffffff;
    --text-color: #1e293b;
    --text-muted: #64748b;
    --primary-color: #bd1a27;
    --primary-glow: rgba(189, 26, 39, 0.3);
    --secondary-color: #7f121a;
    --accent-color: #0095DA;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 0, 0, 0.08);
    --gold: #fbbf24;
    --silver: #94a3b8;
    --bronze: #b45309;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo {
    font-family: 'Playfair Display', serif;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Glassmorphism */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.05);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
    position: relative;
    z-index: 10;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-shadow: 0 0 20px var(--primary-glow);
}

.section-header p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    color: #94a3b8;
}

/* Navbar */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s ease;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 5%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.logo-link {
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 1.1rem;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
    color: var(--text-color);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
    position: relative;
    z-index: 1001;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 0 20px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    animation: slowZoom 20s infinite alternate;
}

.hero-bg .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 1));
}

@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: 5rem;
    margin-bottom: 10px;
    color: var(--text-color);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s forwards ease-out;
	 text-shadow: 0px 0px 4px #fff, 0px 0px 10px #fff, 0px 0px 20px #fff, 0px 0px 30px rgba(255, 255, 255, 0.9);
}

.hero h2 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s 0.2s forwards ease-out;
	 text-shadow: 0px 0px 4px #fff, 0px 0px 10px #fff, 0px 0px 20px #fff, 0px 0px 30px rgba(255, 255, 255, 0.9);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s 0.4s forwards ease-out;
	font-weight: 600;
	 text-shadow: 0px 0px 4px #fff, 0px 0px 10px #fff, 0px 0px 20px #fff, 0px 0px 30px rgba(255, 255, 255, 0.9);
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color);
    color: #fff !important;
    font-size: 1.2rem;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(189, 26, 39, 0.3);
    transition: all 0.3s;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s 0.6s forwards ease-out;
}

.btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 30px rgba(189, 26, 39, 0.5);
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Categories Section */
.glass-section {
    position: relative;
    overflow: hidden;
}

.glass-section::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(189, 26, 39, 0.1) 0%, rgba(255,255,255,0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.categories-grid {
    grid-template-columns: repeat(2, 1fr) !important;
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: 1fr !important;
    }
}

.card-full {
    grid-column: 1 / -1;
    text-align: center;
}

.card {
    padding: 40px 30px;
    transition: transform 0.4s, box-shadow 0.4s;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(189, 26, 39, 0.05), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: rgba(0, 0, 0, 0.15);
}

.card:hover::before {
    transform: translateX(100%);
}

.card-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.card-full .card-icon {
    color: var(--accent-color);
}

.card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.card p, .category-details p {
    color: var(--text-color);
    margin-bottom: 12px;
    font-size: 0.95rem;
    text-align: left;
    line-height: 1.6;
}

.category-details p strong {
    color: var(--primary-color);
    font-weight: 600;
}

.card-meta {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed rgba(0, 0, 0, 0.15);
    text-align: center;
}

.apply-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #ffffff !important;
    font-size: 0.9rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 30px;
    border: 1px solid transparent;
    box-shadow: 0 4px 10px rgba(189, 26, 39, 0.3);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.apply-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transition: all 0.4s ease;
    z-index: -1;
}

.apply-btn:hover::before {
    left: 0;
}

.apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(189, 26, 39, 0.4);
    border-color: rgba(255, 255, 255, 0.4);
}

.apply-btn i {
    font-size: 0.95rem;
    transition: transform 0.3s ease;
}

.apply-btn:hover i {
    transform: scale(1.1) translateX(-2px);
}

/* Magazine Section */
.magazine-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.magazine-content {
    flex: 1;
}

.magazine-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.magazine-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.magazine-image {
    flex: 1;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    color: var(--primary-color);
    position: relative;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}

/* Awards Section */
.glow-bg {
    background: linear-gradient(to bottom, #ffffff, #f8fafc, #ffffff);
}

.total-prize {
    font-size: 1.5rem !important;
    margin: 20px auto !important;
    color: var(--text-color) !important;
}

.total-prize span {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: bold;
    text-shadow: 0 0 15px var(--primary-glow);
}

.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.award-box {
    padding: 30px;
    text-align: center;
}

.award-box h4 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 5px;
}

.award-cat {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.award-box ul {
    text-align: left;
    display: inline-block;
}

.award-box li {
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.gold { color: var(--gold); font-size: 1.5rem; }
.silver { color: var(--silver); font-size: 1.5rem; }
.bronze { color: var(--bronze); font-size: 1.5rem; }

.award-bonus {
    padding: 30px;
    margin-top: 30px;
}

.award-bonus h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.text-center {
    text-align: center;
}

/* Footer */
footer {
    background: #f8fafc;
    padding: 60px 0 20px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 40px;
}

.footer-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 20px;
}

.footer-logo {
    height: 70px;
    width: auto;
    object-fit: contain;
}

.ensar-logo {
    height: 90px; /* SVG might need adjusting to look balanced */
}

.footer-content p {
    color: #64748b;
    margin-top: 10px;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.05);
    color: #475569;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 { font-size: 4rem; }
    .hero h2 { font-size: 2.5rem; }
    .magazine-container {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hamburger { display: block; }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
    height: 100vh;
    background: #ffffff;
        flex-direction: column;
        padding-top: 100px;
        align-items: center;
        transition: 0.4s;
        border-left: 1px solid var(--glass-border);
    }
    .nav-links.active { right: 0; }
    .hero h1 { font-size: 3rem; }
    .hero h2 { font-size: 2rem; }
    .hero p { font-size: 1.2rem; }
}
