@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* --- DESIGN SYSTEM & TOKENS --- */
:root {
    --bg-dark: #070a13;
    --bg-card: #0f1626;
    --bg-card-hover: #141d32;
    --primary: #3fd9ac;
    --primary-rgb: 63, 217, 172;
    --primary-dark: #2ec296;
    --text-primary: #f3f4f6;
    --text-muted: #9ca3af;
    --border-color: rgba(255, 255, 255, 0.07);
    --border-hover: rgba(63, 217, 172, 0.3);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.8);
    --shadow-glow: 0 0 20px rgba(63, 217, 172, 0.15);
    --shadow-glow-hover: 0 0 35px rgba(63, 217, 172, 0.3);
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- RESET & BASE STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: #1b263b;
    border: 2px solid var(--bg-dark);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
    line-height: 1.2;
}

p {
    color: var(--text-muted);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

/* --- LAYOUT UTILITIES --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
    position: relative;
}

.text-gradient {
    background: linear-gradient(135deg, #ffffff 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- DECORATIVE SHAPES (BG GLOWS) --- */
.ambient-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.08) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-normal);
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--bg-dark);
    border: 1px solid var(--primary);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary);
    box-shadow: 0 0 30px rgba(var(--primary-rgb), 0.4);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

/* --- HEADER & NAVIGATION --- */
.navbar-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    background: rgba(7, 10, 19, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: var(--transition-normal);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
}

.logo span {
    color: var(--primary);
}

.logo-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary);
    border-radius: 8px;
    color: var(--primary);
    font-weight: 800;
    box-shadow: var(--shadow-glow);
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    padding: 8px 0;
}

.nav-links a:hover,
.nav-links li.active a {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition-normal);
}

.nav-links a:hover::after,
.nav-links li.active a::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 26px;
    height: 2px;
    background-color: #ffffff;
    transition: var(--transition-normal);
}

/* Active Hamburguer */
.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}
.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* --- FOOTER --- */
.footer {
    border-top: 1px solid var(--border-color);
    background-color: rgba(7, 10, 19, 0.9);
    padding: 80px 0 30px 0;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-about p {
    margin-top: 15px;
    margin-bottom: 20px;
    max-width: 320px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    color: var(--text-muted);
}

.social-icon:hover {
    border-color: var(--primary);
    color: var(--primary);
    background-color: rgba(63, 217, 172, 0.05);
    transform: translateY(-3px);
}

.footer-links-col h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links-col ul {
    list-style: none;
}

.footer-links-col li {
    margin-bottom: 12px;
}

.footer-links-col a {
    color: var(--text-muted);
}

.footer-links-col a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-contact-info svg {
    color: var(--primary);
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    text-align: center;
    color: var(--text-muted);
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    padding-top: 180px;
    padding-bottom: 120px;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-content p {
    font-size: 1.15rem;
    margin-bottom: 36px;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.hero-graphic {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-glow-sphere {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(63, 217, 172, 0.15) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    animation: pulse 8s infinite alternate;
}

.hero-card-stack {
    position: relative;
    width: 100%;
    max-width: 380px;
    height: 380px;
}

.hero-card {
    position: absolute;
    background: rgba(21, 30, 46, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-lg);
}

.hero-card-1 {
    top: 10%;
    left: 5%;
    width: 90%;
    z-index: 3;
    border-left: 3px solid var(--primary);
    transform: rotate(-2deg);
}

.hero-card-2 {
    bottom: 15%;
    right: 5%;
    width: 85%;
    z-index: 2;
    transform: rotate(3deg);
    border-left: 3px solid #6366f1; /* Purple accent */
}

/* --- SERVICES MODULE (GRID & DETAILS) --- */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px auto;
    position: relative;
    z-index: 2;
}

.section-tag {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 12px;
    display: inline-block;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

/* Filter buttons */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
    list-style: none;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.filter-btn {
    background-color: #121824;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 10px 22px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition-normal);
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background-color: var(--primary);
    color: var(--bg-dark);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

/* Grid layout */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 2;
}

.service-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 36px;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* Dynamic Interactive Glow effect using JS coords or static CSS hover */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--x, 0px) var(--y, 0px), rgba(var(--primary-rgb), 0.06), transparent 40%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.service-card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: rgba(63, 217, 172, 0.08);
    border: 1px solid rgba(63, 217, 172, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 24px;
    font-size: 1.5rem;
}

.service-card h3 {
    font-size: 1.35rem;
    margin-bottom: 16px;
}

.service-card p {
    font-size: 0.95rem;
    margin-bottom: 24px;
    flex-grow: 1;
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.tech-badge {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.service-card:hover .tech-badge {
    border-color: rgba(63, 217, 172, 0.15);
    color: #ffffff;
}

.service-features {
    list-style: none;
    margin-bottom: 24px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.service-features svg {
    color: var(--primary);
    flex-shrink: 0;
}

.service-card .btn {
    width: 100%;
    margin-top: auto;
}

/* --- ABOUT MODULE (INFO & TIMELINE) --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.about-content h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.about-content p {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
}

.stat-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: var(--transition-normal);
}

.stat-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 5px;
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.about-visual {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 450px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, rgba(21, 30, 46, 0.7) 0%, rgba(7, 10, 19, 0.7) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-visual::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.15) 0%, transparent 60%);
}

.tech-orbits {
    position: relative;
    width: 260px;
    height: 260px;
}

.orbit-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow-hover);
    z-index: 5;
}

.orbit-circle-1 {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: spin 20s linear infinite;
}

.orbit-node {
    position: absolute;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.orbit-node-1 { top: -22px; left: calc(50% - 22px); }
.orbit-node-2 { bottom: -22px; left: calc(50% - 22px); }
.orbit-node-3 { left: -22px; top: calc(50% - 22px); }
.orbit-node-4 { right: -22px; top: calc(50% - 22px); }

/* Timeline style */
.timeline-section {
    margin-top: 100px;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 40px auto 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--border-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    right: -8px;
    background-color: var(--bg-dark);
    border: 3px solid var(--primary);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    box-shadow: var(--shadow-glow);
}

.left-item {
    left: 0;
    text-align: right;
}

.right-item {
    left: 50%;
}

.right-item::after {
    left: -8px;
}

.timeline-content {
    padding: 24px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    position: relative;
    border-radius: 12px;
    transition: var(--transition-normal);
}

.timeline-content:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.timeline-year {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.timeline-content h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.timeline-content p {
    font-size: 0.9rem;
}

/* --- CONTACT MODULE (FORM & FLOATING LABELS) --- */
.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 60px;
    position: relative;
    z-index: 2;
}

.contact-info-col {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-card-info {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 24px;
}

.contact-info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 30px;
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-info-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background-color: rgba(63, 217, 172, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.contact-info-text h4 {
    font-size: 1.05rem;
    margin-bottom: 5px;
}

.contact-info-text p {
    font-size: 0.95rem;
}

/* Floating labels Form */
.contact-form-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
}

.form-group {
    position: relative;
    margin-bottom: 28px;
}

.form-control {
    width: 100%;
    background-color: rgba(7, 10, 19, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px 20px;
    outline: none;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.1);
}

textarea.form-control {
    min-height: 140px;
    resize: vertical;
}

.form-label {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    transition: var(--transition-fast);
    font-size: 0.95rem;
}

textarea.form-control ~ .form-label {
    top: 25px;
}

/* Floating behavior */
.form-control:focus ~ .form-label,
.form-control:not(:placeholder-shown) ~ .form-label {
    top: -10px;
    left: 12px;
    font-size: 0.75rem;
    background-color: var(--bg-card);
    padding: 0 8px;
    color: var(--primary);
}

.select-wrapper {
    position: relative;
}

.select-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.select-wrapper::after {
    content: '▼';
    font-size: 0.7rem;
    color: var(--text-muted);
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.form-control:focus ~ .select-wrapper::after {
    color: var(--primary);
}

/* --- ADMIN MODULE --- */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.table-wrapper {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow-x: auto;
    box-shadow: var(--shadow-lg);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 800px;
}

.admin-table th, 
.admin-table td {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    font-family: var(--font-heading);
    font-weight: 600;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.02);
    font-size: 0.95rem;
}

.admin-table tbody tr {
    transition: var(--transition-fast);
}

.admin-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.01);
}

.admin-table td {
    font-size: 0.9rem;
    vertical-align: middle;
}

.badge-service {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    background-color: rgba(63, 217, 172, 0.1);
    color: var(--primary);
    border: 1px solid rgba(63, 217, 172, 0.2);
}

.btn-delete {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.btn-delete:hover {
    background-color: rgba(239, 68, 68, 0.1);
    color: #f87171;
}

.no-records {
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
}

/* --- SYSTEM TOAST NOTIFICATIONS --- */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background-color: #0f1c18;
    border-left: 4px solid var(--primary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #e6fcf5;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 450px;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
    transform: translateX(0);
}

.toast-error {
    background-color: #270f0f;
    border-left-color: #ef4444;
    color: #fcebeb;
}

/* --- KEYFRAMES --- */
@keyframes pulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.1); opacity: 0.8; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
    .navbar {
        height: 70px;
    }
    .mobile-menu-btn {
        display: flex;
    }
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--bg-dark);
        border-top: 1px solid var(--border-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        transform: translateX(100%);
        transition: var(--transition-normal);
        z-index: 999;
    }
    .nav-links.active {
        transform: translateX(0);
    }
    .nav-links a {
        font-size: 1.25rem;
    }
    .hero {
        padding-top: 120px;
        padding-bottom: 60px;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-card-stack {
        margin: 40px auto 0 auto;
        height: 320px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .timeline::after {
        left: 31px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    .timeline-item::after {
        left: 23px;
    }
    .left-item {
        text-align: left;
    }
    .left-item::after {
        left: 23px;
    }
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
