@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #00d4ff;
    --primary-dark: #0099cc;
    --secondary: #7c3aed;
    --dark: #0a0e27;
    --dark-light: #141937;
    --dark-card: #1a1f3d;
    --body: #a0aec0;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
    --gradient-dark: linear-gradient(180deg, #0a0e27 0%, #141937 100%);
    --box-shadow: 0 10px 40px rgba(0, 212, 255, 0.15);
    --box-shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
    --glow: 0 0 20px rgba(0, 212, 255, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: var(--body);
    background: var(--dark);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
.display-4 {
    color: var(--white);
    font-weight: 700;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--white);
}

img {
    width: 100%;
}

section {
    padding: 80px 0;
    position: relative;
}

/* Animated Background */
.cyber-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--gradient-dark);
    overflow: hidden;
}

.cyber-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(124, 58, 237, 0.1) 0%, transparent 50%);
}

/* Grid Pattern Overlay */
.grid-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(50px); }
}

/* Navbar */
.navbar {
    background: rgba(10, 14, 39, 0.9) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 14, 39, 0.98) !important;
    box-shadow: var(--box-shadow);
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.logo {
    max-height: 50px;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.3));
}

.nav-link {
    color: var(--body) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 10px 20px !important;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 20px;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: calc(100% - 40px);
}

.navbar-toggler {
    border: 1px solid var(--primary);
    padding: 8px 12px;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 212, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--gradient-dark);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 70%, rgba(0, 212, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 70% 30%, rgba(124, 58, 237, 0.15) 0%, transparent 40%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    animation: fadeInUp 1s ease;
}

.hero p,
.hero article {
    font-size: 1.1rem;
    color: var(--body);
    max-width: 600px;
    margin: 0 auto 2rem;
    animation: fadeInUp 1s ease 0.2s both;
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    overflow: hidden;
}

.floating-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(0, 212, 255, 0.2);
    animation: float 6s ease-in-out infinite;
}

.floating-circle:nth-child(1) {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-circle:nth-child(2) {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.floating-circle:nth-child(3) {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons */
.btn-cyber {
    background: var(--gradient-primary);
    color: var(--dark);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.4s both;
}

.btn-cyber:hover {
    transform: translateY(-3px);
    box-shadow: var(--glow);
    color: var(--dark);
}

.btn-cyber-outline {
    background: transparent;
    color: var(--primary);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    border: 2px solid var(--primary);
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.5s both;
}

.btn-cyber-outline:hover {
    background: var(--primary);
    color: var(--dark);
    transform: translateY(-3px);
    box-shadow: var(--glow);
}

/* Section Title */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-title p {
    color: var(--body);
    font-size: 1.1rem;
}

/* Blog Cards */
#blog {
    background: transparent;
}

.card-cyber {
    background: var(--dark-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0, 212, 255, 0.1);
    transition: all 0.4s ease;
    height: 100%;
}

.card-cyber:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--box-shadow);
}

.card-cyber .card-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.card-cyber .card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card-cyber:hover .card-img-wrapper img {
    transform: scale(1.1);
}

.card-cyber .category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--gradient-primary);
    color: var(--dark);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.card-cyber .card-body {
    padding: 25px;
}

.card-cyber .card-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.card-cyber .card-title a {
    color: var(--white);
    transition: color 0.3s ease;
}

.card-cyber .card-title a:hover {
    color: var(--primary);
}

.card-cyber .card-meta {
    font-size: 0.85rem;
    color: var(--body);
    margin-bottom: 15px;
}

.card-cyber .card-meta a {
    color: var(--primary);
}

.card-cyber .card-text {
    color: var(--body);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.card-cyber .btn-read-more {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.card-cyber .btn-read-more:hover {
    background: var(--primary);
    color: var(--dark);
}

/* Legacy card-effect support */
.card-effect {
    background: var(--dark-card);
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(0, 212, 255, 0.1);
    transition: all 0.4s ease;
    box-shadow: none;
}

.card-effect:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--box-shadow);
}

.card-effect img {
    height: 200px;
    object-fit: cover;
}

.card-effect .card-body {
    padding: 25px;
}

.card-effect .card-title a {
    color: var(--white);
}

.card-effect .card-title a:hover {
    color: var(--primary);
}

.card-effect .btn-danger {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 25px;
}

.card-effect .btn-danger:hover {
    background: var(--primary);
    color: var(--dark);
    border-color: var(--primary);
}

/* Footer */
.sticky-footer {
    position: relative;
    background: var(--dark-light);
    border-top: 1px solid rgba(0, 212, 255, 0.1);
}

.footer-top {
    padding: 60px 0 40px;
    background: transparent;
}

.footer-top h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer-top h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gradient-primary);
}

.footer-top a {
    color: var(--body);
    display: block;
    padding: 5px 0;
    transition: all 0.3s ease;
}

.footer-top a:hover {
    color: var(--primary);
    padding-left: 10px;
}

.footer-top ul {
    list-style: none;
    padding: 0;
}

.footer-top ul li {
    padding: 5px 0;
    color: var(--body);
}

.map iframe {
    height: 200px;
    width: 100%;
    border-radius: 15px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.footer-bottom {
    background: var(--dark);
    padding: 20px 0;
    border-top: 1px solid rgba(0, 212, 255, 0.1);
}

.footer-bottom small {
    color: var(--body);
}

/* Page Header for non-hero pages */
.page-header {
    padding: 150px 0 80px;
    background: var(--gradient-dark);
    text-align: center;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 50% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%);
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

/* Content Sections */
.content-section {
    background: var(--dark-card);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(0, 212, 255, 0.1);
    margin-bottom: 30px;
}

.content-section h2,
.content-section h3,
.content-section h4 {
    color: var(--white);
}

.content-section p {
    color: var(--body);
}

/* Tables */
.table {
    color: var(--body);
}

.table thead th {
    background: var(--dark);
    color: var(--white);
    border-color: rgba(0, 212, 255, 0.1);
}

.table td {
    border-color: rgba(0, 212, 255, 0.1);
}

/* Forms */
.form-control {
    background: var(--dark-card);
    border: 1px solid rgba(0, 212, 255, 0.2);
    color: var(--white);
    border-radius: 10px;
    padding: 12px 20px;
}

.form-control:focus {
    background: var(--dark-card);
    border-color: var(--primary);
    color: var(--white);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-control::placeholder {
    color: var(--body);
}

/* Login Form */
.form-signin {
    max-width: 400px;
    margin: 0 auto;
    padding: 40px;
    background: var(--dark-card);
    border-radius: 20px;
    border: 1px solid rgba(0, 212, 255, 0.1);
}

.form-signin .form-floating:focus-within {
    z-index: 2;
}

.form-signin input[type="email"],
.form-signin input[type="text"] {
    margin-bottom: -1px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.form-signin input[type="password"] {
    margin-bottom: 10px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.form-registration input {
    border-radius: 0;
    margin-bottom: -1px;
}

/* Alerts */
.alert {
    border-radius: 15px;
    border: none;
}

.alert-success {
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary);
    border: 1px solid var(--primary);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid #ef4444;
}

/* Pagination */
.pagination .page-link {
    background: var(--dark-card);
    border-color: rgba(0, 212, 255, 0.2);
    color: var(--body);
}

.pagination .page-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--dark);
}

.pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--dark);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .navbar-collapse {
        background: var(--dark-card);
        padding: 20px;
        border-radius: 15px;
        margin-top: 15px;
        border: 1px solid rgba(0, 212, 255, 0.1);
    }
    
    .content-section {
        padding: 25px;
    }
}

/* Service Cards */
.service-card {
    background: var(--dark-card);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(0, 212, 255, 0.1);
    transition: all 0.4s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--box-shadow);
}

.service-card .icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--dark);
}

.service-card h4 {
    color: var(--white);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--body);
}

/* Guidance/Document List */
.document-item {
    background: var(--dark-card);
    border-radius: 15px;
    padding: 20px 25px;
    margin-bottom: 15px;
    border: 1px solid rgba(0, 212, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.document-item:hover {
    border-color: var(--primary);
    transform: translateX(10px);
}

.document-item .doc-info h5 {
    color: var(--white);
    margin-bottom: 5px;
}

.document-item .doc-info p {
    color: var(--body);
    margin: 0;
    font-size: 0.9rem;
}

.document-item .btn-download {
    background: var(--gradient-primary);
    color: var(--dark);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.document-item .btn-download:hover {
    transform: scale(1.05);
    box-shadow: var(--glow);
}

/* Contact Info */
.contact-info {
    background: var(--dark-card);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(0, 212, 255, 0.1);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-item .icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.contact-item .icon i {
    color: var(--dark);
    font-size: 1.2rem;
}

.contact-item .info h5 {
    color: var(--white);
    margin-bottom: 5px;
}

.contact-item .info p {
    color: var(--body);
    margin: 0;
}

/* PDF Viewer */
.pdfobject-container {
    height: 100vh;
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 15px;
    overflow: hidden;
}

/* Utility Classes */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-cyber {
    background: var(--dark-card);
}

.border-cyber {
    border: 1px solid rgba(0, 212, 255, 0.1);
}

/* Animation Classes */
.fade-in {
    animation: fadeInUp 0.6s ease both;
}

.fade-in-delay-1 {
    animation: fadeInUp 0.6s ease 0.1s both;
}

.fade-in-delay-2 {
    animation: fadeInUp 0.6s ease 0.2s both;
}

.fade-in-delay-3 {
    animation: fadeInUp 0.6s ease 0.3s both;
}
