* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

*:focus {
    outline: none;
}

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    touch-action: manipulation;
}

:root {
    --govt-blue: #1E40AF;
    --govt-blue-dark: #1E3A8A;
    --govt-blue-light: #3B82F6;
    --govt-orange: #FF9933;
    --govt-green: #138808;
    --govt-white: #FFFFFF;
    --text-primary: #1F2937;
    --text-secondary: #4B5563;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F3F4F6;
    --bg-light: #F9FAFB;
    --border-color: #E5E7EB;
}

body {
    font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Mobile-optimized container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

/* Government Header */
.govt-header {
    background: linear-gradient(135deg, var(--govt-blue) 0%, var(--govt-blue-dark) 100%);
    color: white;
    padding: 0.5rem 0;
    font-size: 0.75rem;
}

@media (min-width: 768px) {
    .govt-header {
        padding: 0.75rem 0;
        font-size: 0.875rem;
    }
}

.govt-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .govt-header .container {
        gap: 1rem;
        flex-wrap: nowrap;
    }
}

.govt-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.75rem;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .govt-badge {
        gap: 0.75rem;
        font-size: 1rem;
    }
}

.govt-badge img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

@media (min-width: 768px) {
    .govt-badge img {
        width: 35px;
        height: 35px;
    }
}

.govt-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.7rem;
}

@media (min-width: 768px) {
    .govt-links {
        gap: 0.75rem;
        font-size: 0.875rem;
    }
}

.govt-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.govt-links a:hover {
    color: white;
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-primary);
    border-bottom: 2px solid var(--govt-blue);
    padding: 0.75rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    .navbar {
        padding: 1rem 0;
    }
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .logo {
        gap: 1rem;
    }
}

.logo-icon {
    font-size: 2.5rem;
    animation: pulse 2s infinite;
}

.logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 12px;
    animation: pulse 2s infinite;
}

@media (min-width: 768px) {
    .logo-img {
        width: 60px;
        height: 60px;
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--govt-blue);
    line-height: 1.2;
}

@media (min-width: 768px) {
    .logo-main {
        font-size: 1.75rem;
    }
}

.logo-sub {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--govt-orange);
    letter-spacing: 1px;
}

@media (min-width: 768px) {
    .logo-sub {
        font-size: 0.875rem;
    }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--govt-blue);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--govt-blue);
}

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

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 4rem 0 3rem;
    background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
    overflow: hidden;
}

@media (min-width: 768px) {
    .hero {
        min-height: 90vh;
        padding: 6rem 0 4rem;
    }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
}

.govt-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(30, 64, 175, 0.03) 10px, rgba(30, 64, 175, 0.03) 20px);
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.hero-text {
    animation: fadeInUp 1s ease-out;
    text-align: center;
}

@media (min-width: 968px) {
    .hero-text {
        text-align: left;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.official-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--govt-blue);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .official-badge {
        font-size: 0.875rem;
    }
}

.badge-icon {
    background: white;
    color: var(--govt-blue);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4rem;
    }
}

.title-line {
    display: block;
}

.subtitle {
    color: var(--govt-orange);
    font-size: 1.75rem;
}

@media (min-width: 768px) {
    .subtitle {
        font-size: 2rem;
    }
}

@media (min-width: 1024px) {
    .subtitle {
        font-size: 2.5rem;
    }
}

.hero-tagline {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--govt-blue);
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .hero-tagline {
        font-size: 1.375rem;
    }
}

@media (min-width: 1024px) {
    .hero-tagline {
        font-size: 1.5rem;
    }
}

.hero-description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

@media (min-width: 768px) {
    .hero-description {
        font-size: 1.125rem;
        margin-bottom: 2.5rem;
    }
}

.download-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-bottom: 1rem;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--govt-blue);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
    position: relative;
    overflow: hidden;
    border: 2px solid var(--govt-blue);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.download-btn:hover::before {
    left: 100%;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.4);
    background: var(--govt-blue-dark);
}

.download-btn svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.btn-label {
    font-size: 0.875rem;
    opacity: 0.9;
    font-weight: 400;
}

.btn-name {
    font-size: 1.125rem;
    font-weight: 700;
}

.mobile-friendly-btn {
    min-width: 100%;
    min-height: 56px;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    justify-content: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

@media (min-width: 768px) {
    .mobile-friendly-btn {
        min-width: 280px;
        min-height: 64px;
        padding: 1.25rem 2rem;
        font-size: 1.1rem;
    }
}

.apk-btn {
    background: var(--govt-green);
    border-color: var(--govt-green);
    box-shadow: 0 4px 12px rgba(19, 136, 8, 0.3);
}

.apk-btn:hover {
    background: #0F7A06;
    box-shadow: 0 6px 20px rgba(19, 136, 8, 0.4);
}

.download-warning {
    font-size: 0.875rem;
    color: #DC2626;
    font-weight: 500;
    margin-top: 1rem;
}

/* Hero Image */
.hero-image {
    position: relative;
    animation: fadeInRight 1s ease-out 0.3s both;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.phone-mockup {
    position: relative;
    width: 220px;
    height: 440px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--govt-blue) 0%, var(--govt-blue-dark) 100%);
    border-radius: 40px;
    padding: 15px;
    box-shadow: 0 20px 60px rgba(30, 64, 175, 0.3);
    animation: floatPhone 6s ease-in-out infinite;
}

@media (min-width: 768px) {
    .phone-mockup {
        width: 280px;
        height: 560px;
    }
}

@media (min-width: 1024px) {
    .phone-mockup {
        width: 300px;
        height: 600px;
    }
}

@keyframes floatPhone {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
}

.screen-content {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.app-screenshot-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(1.1);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* APK Section */
.apk-section {
    padding: 2rem 0 3rem;
    background: var(--bg-light);
    border-top: 3px solid var(--govt-blue);
    border-bottom: 3px solid var(--govt-blue);
}

@media (min-width: 768px) {
    .apk-section {
        padding: 3rem 0 5rem;
    }
}

.apk-info {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.apk-info p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* File List Styles */
.file-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.file-loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.no-files {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    border: 2px dashed var(--border-color);
}

.no-files-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.no-files p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin: 0.5rem 0;
}

.no-files-hint {
    font-size: 0.95rem;
    color: var(--text-secondary);
    opacity: 0.7;
}

.file-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    text-align: center;
}

@media (min-width: 768px) {
    .file-card {
        grid-template-columns: auto 1fr auto;
        gap: 1.5rem;
        padding: 1.5rem;
        text-align: left;
    }
}

.file-card:hover {
    border-color: var(--govt-blue);
    box-shadow: 0 4px 16px rgba(30, 64, 175, 0.15);
    transform: translateY(-2px);
}

.file-card:active {
    transform: translateY(0);
}

.file-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--govt-blue-light), var(--govt-blue));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .file-icon {
        font-size: 3rem;
        width: 70px;
        height: 70px;
        margin: 0;
    }
}

.file-info {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--govt-blue);
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .file-name {
        font-size: 1.375rem;
    }
}

.file-meta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
    justify-content: center;
}

@media (min-width: 768px) {
    .file-meta {
        gap: 1rem;
        justify-content: flex-start;
    }
}

.file-version,
.file-size,
.file-date {
    font-size: 0.875rem;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-weight: 500;
}

.file-version {
    background: var(--govt-orange);
    color: white;
    font-weight: 600;
}

.file-description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

.file-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-direction: column;
    width: 100%;
}

@media (min-width: 768px) {
    .file-actions {
        flex-direction: row;
        width: auto;
    }
}

.download-file-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: var(--govt-green);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(19, 136, 8, 0.3);
    white-space: nowrap;
    width: 100%;
    justify-content: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    min-height: 48px;
}

@media (min-width: 768px) {
    .download-file-btn {
        width: auto;
        padding: 0.75rem 1.5rem;
        min-height: auto;
    }
}

.download-file-btn:hover {
    background: #0F7A06;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(19, 136, 8, 0.4);
}

.download-file-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(19, 136, 8, 0.3);
}

.delete-file-btn {
    background: #DC2626;
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    display: none;
}

.delete-file-btn:hover {
    background: #B91C1C;
    transform: scale(1.1);
}

/* Admin Panel Styles */
.admin-panel {
    background: white;
    border: 3px solid var(--govt-blue);
    border-radius: 12px;
    padding: 2rem;
    margin: 3rem auto;
    max-width: 700px;
    box-shadow: 0 8px 24px rgba(30, 64, 175, 0.15);
}

.admin-panel h3 {
    color: var(--govt-blue);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.admin-controls,
.upload-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.upload-section {
    border-bottom: none;
    margin-bottom: 0;
}

.admin-input,
.admin-textarea,
.file-input {
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
}

@media (min-width: 768px) {
    .admin-input,
    .admin-textarea,
    .file-input {
        padding: 0.75rem 1rem;
    }
}

.admin-input:focus,
.admin-textarea:focus {
    outline: none;
    border-color: var(--govt-blue);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.admin-textarea {
    min-height: 100px;
    resize: vertical;
}

.file-input {
    padding: 0.5rem;
}

.admin-btn {
    padding: 1rem 1.5rem;
    background: var(--govt-blue);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.3);
    width: 100%;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    min-height: 48px;
}

@media (min-width: 768px) {
    .admin-btn {
        padding: 0.875rem 1.5rem;
        width: auto;
        min-height: auto;
    }
}

.admin-btn:hover {
    background: var(--govt-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.4);
}

.upload-btn {
    background: var(--govt-green);
    font-size: 1.05rem;
    padding: 1rem 1.5rem;
}

.upload-btn:hover {
    background: #0F7A06;
}

.upload-status {
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    margin-top: 1rem;
    display: none;
}

.upload-status.success {
    background: #D1FAE5;
    color: #065F46;
    border: 2px solid #10B981;
}

.upload-status.error {
    background: #FEE2E2;
    color: #991B1B;
    border: 2px solid #DC2626;
}

.upload-status.loading {
    background: #DBEAFE;
    color: #1E40AF;
    border: 2px solid #3B82F6;
}

.admin-access {
    text-align: center;
    margin-top: 2rem;
}

.admin-toggle-btn {
    padding: 0.875rem 2rem;
    background: var(--text-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.admin-toggle-btn:hover {
    background: var(--govt-blue);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

/* Features Section */
.features {
    padding: 3rem 0;
    background: var(--bg-primary);
}

@media (min-width: 768px) {
    .features {
        padding: 4rem 0;
    }
}

@media (min-width: 1024px) {
    .features {
        padding: 6rem 0;
    }
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--govt-blue);
    position: relative;
    padding-bottom: 1rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .section-title {
        font-size: 2.5rem;
        margin-bottom: 3rem;
    }
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--govt-orange), var(--govt-green));
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(30, 64, 175, 0.15);
    border-color: var(--govt-blue);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--govt-blue);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
}

/* Screenshots Section */
.screenshots {
    padding: 3rem 0;
    background: var(--bg-secondary);
    position: relative;
}

.screenshots::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--govt-blue), transparent);
}

@media (min-width: 768px) {
    .screenshots {
        padding: 4rem 0;
    }
}

@media (min-width: 1024px) {
    .screenshots {
        padding: 6rem 0;
    }
}

.screenshots-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 0.5rem;
}

@media (min-width: 640px) {
    .screenshots-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        padding: 0;
    }
}

@media (min-width: 968px) {
    .screenshots-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .screenshots-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.screenshot-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: scale(0.95) translateY(20px);
    animation: fadeInScale 0.6s ease-out forwards;
    background: var(--bg-primary);
    position: relative;
    cursor: pointer;
    height: auto;
    aspect-ratio: 9 / 16;
    border: 2px solid transparent;
}

.screenshot-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
    z-index: 1;
    pointer-events: none;
}

.screenshot-card:hover::before {
    left: 100%;
}

@media (min-width: 640px) {
    .screenshot-card {
        height: 450px;
        aspect-ratio: auto;
        border-radius: 20px;
    }
}

@media (min-width: 968px) {
    .screenshot-card {
        height: 500px;
    }
}

.screenshot-card:nth-child(1) { animation-delay: 0.1s; }
.screenshot-card:nth-child(2) { animation-delay: 0.2s; }
.screenshot-card:nth-child(3) { animation-delay: 0.3s; }
.screenshot-card:nth-child(4) { animation-delay: 0.4s; }
.screenshot-card:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    60% {
        opacity: 1;
        transform: scale(1.02) translateY(-5px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.screenshot-card:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 20px 40px rgba(30, 64, 175, 0.2), 0 0 0 3px rgba(30, 64, 175, 0.1);
    z-index: 10;
    border-color: var(--govt-blue);
}

.screenshot-card:active {
    transform: scale(1.02) translateY(-5px);
}

.screenshot-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.95);
}

.screenshot-card:hover .screenshot-img {
    transform: scale(1.08);
    filter: brightness(1);
}

.screenshot-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(30, 64, 175, 0.95), rgba(30, 64, 175, 0.7), transparent);
    color: white;
    padding: 2rem 1rem 1rem;
    font-weight: 600;
    font-size: 0.95rem;
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
}

@media (min-width: 640px) {
    .screenshot-label {
        font-size: 1rem;
        padding: 2.5rem 1rem 1.25rem;
    }
}

.screenshot-card:hover .screenshot-label {
    background: linear-gradient(to top, rgba(30, 64, 175, 1), rgba(30, 64, 175, 0.85), transparent);
    padding-bottom: 1.5rem;
}

/* Download CTA Section */
.download-cta {
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--govt-blue) 0%, var(--govt-blue-dark) 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .download-cta {
        padding: 4rem 0;
    }
}

@media (min-width: 1024px) {
    .download-cta {
        padding: 6rem 0;
    }
}

.download-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.official-seal {
    margin: 0 auto 2rem;
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.cta-content h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .cta-content h2 {
        font-size: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .cta-content h2 {
        font-size: 3rem;
    }
}

.cta-content > p {
    font-size: 1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

@media (min-width: 768px) {
    .cta-content > p {
        font-size: 1.125rem;
        margin-bottom: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .cta-content > p {
        font-size: 1.25rem;
    }
}

.download-cta .download-buttons {
    justify-content: center;
}

.download-cta .apk-btn {
    background: var(--govt-green);
    border-color: var(--govt-green);
    box-shadow: 0 4px 20px rgba(19, 136, 8, 0.4);
}

.download-cta .apk-btn:hover {
    background: #0F7A06;
    box-shadow: 0 6px 25px rgba(19, 136, 8, 0.5);
}

.security-notice {
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border-left: 4px solid var(--govt-orange);
    font-size: 0.95rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.security-notice strong {
    color: var(--govt-orange);
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 3rem 0 1.5rem;
}

@media (min-width: 768px) {
    .footer {
        padding: 4rem 0 2rem;
    }
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 968px) {
    .footer-content {
        grid-template-columns: 1fr 2fr;
        gap: 4rem;
        margin-bottom: 3rem;
    }
}

.footer-info {
    max-width: 400px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-logo .logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 10px;
}

.footer-logo .logo-main {
    color: white;
}

.footer-logo .logo-sub {
    color: var(--govt-orange);
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 640px) {
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-section h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--govt-orange);
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    display: inline-block;
    touch-action: manipulation;
}

.footer-section a:hover,
.footer-section a:active {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    text-align: center;
}

.govt-credits {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.govt-credits p {
    margin: 0.5rem 0;
}

.govt-credits strong {
    color: var(--govt-orange);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-image {
        order: -1;
    }
}

@media (max-width: 640px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    body {
        font-size: 16px; /* Prevents zoom on input focus on iOS */
    }
    
    input,
    textarea,
    select,
    button {
        font-size: 16px; /* Prevents zoom on input focus on iOS */
    }
}

/* Download Notification */
.download-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 1.25rem 1.5rem;
    z-index: 9999;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid var(--govt-green);
    max-width: 320px;
}

.download-notification.error {
    border-left-color: #DC2626;
}

.download-notification.loading {
    border-left-color: var(--govt-blue);
}

.download-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.notification-content svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.notification-content strong {
    display: block;
    color: var(--govt-green);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.download-notification.error .notification-content strong {
    color: #DC2626;
}

.download-notification.loading .notification-content strong {
    color: var(--govt-blue);
}

.notification-content p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
}

@media (max-width: 640px) {
    .download-notification {
        top: 80px;
        right: 10px;
        left: 10px;
        max-width: none;
        padding: 1rem;
    }
    
    .notification-content {
        gap: 0.75rem;
    }
    
    .notification-content strong {
        font-size: 0.95rem;
    }
    
    .notification-content p {
        font-size: 0.8rem;
    }
}
