/* ============================================
   Reset & Base Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s ease;
}

html {
    position: relative;
    min-height: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/images/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: -1;
    opacity: 0.15;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    z-index: -1;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

/* ============================================
   Layout
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.main-content {
    flex: 1;
}

/* ============================================
   Header & Navigation
   ============================================ */
.site-header {
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    padding: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
    flex-shrink: 0;
}

.navbar-brand:hover {
    color: var(--primary-color);
}

.navbar-brand svg {
    color: var(--primary-color);
}

.navbar-logo {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    transition: var(--transition);
    object-fit: contain;
    display: block;
}

.navbar-brand:hover .navbar-logo {
    transform: scale(1.1) rotate(5deg);
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    width: 100%;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.navbar-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition);
    border-radius: 2px;
}

.navbar-toggle:hover span {
    background-color: var(--primary-color);
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
    padding: 2rem 0 3rem;
    color: white;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/images/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: 0;
    opacity: 0.3;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-title {
    text-align: center;
    color: white;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.action-buttons {
    display: flex;
    gap: 0.75rem;
}

.refresh-btn {
    background-color: #10b981;
    color: white;
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.refresh-btn:hover {
    background-color: #059669;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.refresh-btn:active {
    transform: translateY(0);
}

.refresh-btn svg {
    animation: none;
}

.refresh-btn:active svg {
    animation: rotate 0.6s ease-in-out;
}

.refresh-btn.refreshing {
    opacity: 0.7;
    cursor: not-allowed;
}

.refresh-btn.refreshing svg {
    animation: rotate 1s linear infinite;
}

.refresh-btn.success {
    background-color: #34d399;
}

.refresh-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   IP Display Card
   ============================================ */
.ip-display-card {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 1.5rem 1.5rem;
    box-shadow: var(--shadow-xl);
    margin-bottom: 1.5rem;
}

.ip-address-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.ip-address {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    letter-spacing: 0.05em;
}

.ip-address.loading {
    font-size: 1.25rem;
    font-family: 'Inter', sans-serif;
    color: var(--text-secondary);
}

.copy-btn {
    background-color: #8b5cf6;
    color: white;
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.copy-btn:hover {
    background-color: #7c3aed;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.copy-btn:active {
    transform: translateY(0);
}

.copy-btn.copied {
    background-color: #3b82f6;
}

/* ============================================
   Info Grid
   ============================================ */
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-card {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 0.75rem;
    padding: 1rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.info-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.35rem;
}

.info-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    word-break: break-word;
    line-height: 1.4;
}

/* ============================================
   Map Section
   ============================================ */
.map-container {
    margin-top: 1.5rem;
    animation: fadeIn 0.6s ease-out;
}

.map-title {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.map {
    height: 300px;
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

/* Custom marker styles */
.custom-marker {
    background: none;
    border: none;
}

.marker-pin {
    width: 30px;
    height: 42px;
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.marker-pin::after {
    content: '';
    width: 16px;
    height: 16px;
    position: absolute;
    background: white;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.map-popup {
    text-align: center;
    font-family: 'Inter', sans-serif;
}

.map-popup strong {
    color: var(--text-primary);
    font-size: 1rem;
}

.map-popup small {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Override Leaflet default styles */
.leaflet-popup-content-wrapper {
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
}

.leaflet-popup-tip {
    background: white;
}

/* ============================================
   Content Section
   ============================================ */
.content-section {
    position: relative;
    background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 25%, #faf5ff 50%, #fef3f2 75%, #ffffff 100%);
    padding: 3rem 0;
    overflow: hidden;
    animation: gradientShift 15s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 15px,
            rgba(102, 126, 234, 0.05) 15px,
            rgba(102, 126, 234, 0.05) 30px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 15px,
            rgba(118, 75, 162, 0.05) 15px,
            rgba(118, 75, 162, 0.05) 30px
        );
    pointer-events: none;
    z-index: 0;
    opacity: 0.7;
    animation: patternMove 20s linear infinite;
}

@keyframes patternMove {
    0% {
        background-position: 0 0, 0 0, 0 0, 0 0, 0 0;
    }
    100% {
        background-position: 100px 100px, -100px -100px, 50px -50px, 30px 30px, -30px -30px;
    }
}

.content-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 2px 2px, rgba(102, 126, 234, 0.2) 1.5px, transparent 0),
        radial-gradient(circle at 2px 2px, rgba(118, 75, 162, 0.15) 1px, transparent 0),
        radial-gradient(circle at 2px 2px, rgba(139, 92, 246, 0.1) 0.5px, transparent 0);
    background-size: 50px 50px, 70px 70px, 90px 90px;
    background-position: 0 0, 25px 25px, 50px 50px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
    animation: dotsFloat 25s ease-in-out infinite;
}

@keyframes dotsFloat {
    0%, 100% {
        transform: translate(0, 0);
    }
    33% {
        transform: translate(10px, -10px);
    }
    66% {
        transform: translate(-10px, 10px);
    }
}

.content-section .container {
    position: relative;
    z-index: 1;
}

.info-block {
    margin-bottom: 2.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    backdrop-filter: blur(15px);
    padding: 2rem;
    border-radius: 1.25rem;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.1), 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(102, 126, 234, 0.15);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.info-block:nth-child(1) {
    animation-delay: 0.1s;
}

.info-block:nth-child(2) {
    animation-delay: 0.2s;
}

.info-block:nth-child(3) {
    animation-delay: 0.3s;
}

.info-block:nth-child(4) {
    animation-delay: 0.4s;
}

.info-block:nth-child(5) {
    animation-delay: 0.5s;
}

.info-block:nth-child(6) {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-block::before {
    display: none;
}

.info-block::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.info-block:nth-child(1)::after {
    background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, transparent 70%);
}

.info-block:nth-child(2)::after {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
}

.info-block:nth-child(3)::after {
    background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, transparent 70%);
}

.info-block:nth-child(4)::after {
    background: radial-gradient(circle, rgba(239, 68, 68, 0.12) 0%, transparent 70%);
}

.info-block:nth-child(5)::after {
    background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
}

.info-block:nth-child(6)::after {
    background: radial-gradient(circle, rgba(236, 72, 153, 0.12) 0%, transparent 70%);
}

.info-block:hover {
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.2), 0 6px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.info-block:nth-child(1):hover {
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.25), 0 6px 16px rgba(0, 0, 0, 0.1);
    border-color: rgba(37, 99, 235, 0.4);
}

.info-block:nth-child(2):hover {
    box-shadow: 0 12px 40px rgba(16, 185, 129, 0.25), 0 6px 16px rgba(0, 0, 0, 0.1);
    border-color: rgba(16, 185, 129, 0.4);
}

.info-block:nth-child(3):hover {
    box-shadow: 0 12px 40px rgba(245, 158, 11, 0.25), 0 6px 16px rgba(0, 0, 0, 0.1);
    border-color: rgba(245, 158, 11, 0.4);
}

.info-block:nth-child(4):hover {
    box-shadow: 0 12px 40px rgba(239, 68, 68, 0.25), 0 6px 16px rgba(0, 0, 0, 0.1);
    border-color: rgba(239, 68, 68, 0.4);
}

.info-block:nth-child(5):hover {
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.25), 0 6px 16px rgba(0, 0, 0, 0.1);
    border-color: rgba(139, 92, 246, 0.4);
}

.info-block:nth-child(6):hover {
    box-shadow: 0 12px 40px rgba(236, 72, 153, 0.25), 0 6px 16px rgba(0, 0, 0, 0.1);
    border-color: rgba(236, 72, 153, 0.4);
}


.info-block:hover::after {
    opacity: 1;
}

.info-block h2 {
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.info-block h2 svg {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
}

.info-block p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.info-block strong {
    color: var(--text-primary);
    font-weight: 600;
}

.feature-list {
    list-style: none;
    padding-left: 0;
    display: grid;
    gap: 1rem;
}

.feature-list li {
    padding: 1.25rem;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 1.25rem;
    top: 1.25rem;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: bold;
}

.feature-list li {
    padding-left: 3.5rem;
}

.feature-list li:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
    transform: translateX(4px);
}

.feature-list li strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 1.0625rem;
}

/* ============================================
   Footer
   ============================================ */
.stats-section {
    margin: 3rem 0;
    padding: 3rem 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
    backdrop-filter: blur(15px);
    border-radius: 1.25rem;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.1), 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(102, 126, 234, 0.15);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stats-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 6rem;
}

.stats-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2.5rem;
    position: relative;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin: 0 auto;
}

.stat-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    border: 2px solid rgba(102, 126, 234, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.stat-card:nth-child(1) {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(59, 130, 246, 0.08) 100%);
    border-color: rgba(37, 99, 235, 0.2);
}

.stat-card:nth-child(2) {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(52, 211, 153, 0.08) 100%);
    border-color: rgba(16, 185, 129, 0.2);
}

.stat-card:nth-child(3) {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(251, 191, 36, 0.08) 100%);
    border-color: rgba(245, 158, 11, 0.2);
}

.stat-card:nth-child(4) {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(167, 139, 250, 0.08) 100%);
    border-color: rgba(139, 92, 246, 0.2);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.03);
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.2);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card:nth-child(1):hover {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(59, 130, 246, 0.15) 100%);
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.25);
}

.stat-card:nth-child(2):hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(52, 211, 153, 0.15) 100%);
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.25);
}

.stat-card:nth-child(3):hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(251, 191, 36, 0.15) 100%);
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.25);
}

.stat-card:nth-child(4):hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(167, 139, 250, 0.15) 100%);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 12px 30px rgba(139, 92, 246, 0.25);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    transition: transform 0.4s ease;
    position: relative;
    z-index: 1;
}

.stat-card:hover .stat-icon {
    transform: scale(1.2) rotate(5deg);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.stat-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .stats-container {
        padding: 0 3rem;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stats-container {
        padding: 0 1.5rem;
    }
    
    .stats-section {
        padding: 2rem 0;
    }
    
    .stats-title {
        font-size: 1.5rem;
    }
    
    .stat-card {
        padding: 1.5rem 1rem;
    }
    
    .stat-icon {
        font-size: 2.5rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
}

.site-footer {
    background-color: var(--text-primary);
    color: #9ca3af;
    padding: 2rem 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-content p {
    margin: 0;
    color: #9ca3af;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #9ca3af;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 992px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .ip-address {
        font-size: 1.75rem;
    }

    .info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .map {
        height: 250px;
    }
}

@media (max-width: 992px) {
    .navbar-menu {
        gap: 1.5rem;
    }

    .nav-link {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    body::before {
        background-attachment: scroll;
    }

    .hero-section::before {
        background-attachment: scroll;
    }

    .hero-section {
        padding: 1.5rem 0 2rem;
    }

    .navbar-toggle {
        display: flex;
    }

    .navbar-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        box-shadow: -4px 0 12px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        gap: 0;
    }

    .navbar-menu.active {
        right: 0;
    }

    .nav-link {
        width: 100%;
        padding: 1rem 0;
        border-bottom: 1px solid var(--border-color);
        font-size: 1rem;
    }

    .nav-link::after {
        display: none;
    }

    .navbar-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .navbar-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .navbar-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero-title {
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
    }

    .ip-display-card {
        padding: 1.25rem 1rem;
    }

    .ip-address {
        font-size: 1.5rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .map {
        height: 250px;
    }

    .map-title {
        font-size: 1.125rem;
    }

    .content-section {
        padding: 2rem 0;
    }

    .info-block {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .info-block h2 {
        font-size: 1.25rem;
    }

    .info-block h2 svg {
        width: 28px;
        height: 28px;
    }

    .feature-list li {
        padding: 1rem 1rem 1rem 3rem;
    }

    .feature-list li::before {
        width: 20px;
        height: 20px;
        font-size: 0.75rem;
        left: 1rem;
        top: 1rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 1.35rem;
    }

    .ip-address {
        font-size: 1.25rem;
    }

    .ip-display-card {
        padding: 1rem 0.75rem;
    }

    .ip-address-container {
        flex-direction: column;
        gap: 0.5rem;
    }

    .action-buttons {
        width: 100%;
        gap: 0.5rem;
    }

    .copy-btn,
    .refresh-btn {
        flex: 1;
        justify-content: center;
        padding: 0.65rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .info-card {
        padding: 0.75rem;
        min-height: 70px;
    }

    .info-label {
        font-size: 0.7rem;
    }

    .info-value {
        font-size: 1rem;
    }

    .map {
        height: 200px;
    }

    .map-title {
        font-size: 1rem;
    }

    .info-block {
        padding: 1.25rem;
        margin-bottom: 1.25rem;
    }

    .info-block h2 {
        font-size: 1.125rem;
        flex-wrap: wrap;
    }

    .info-block h2 svg {
        width: 24px;
        height: 24px;
    }

    .info-block p {
        font-size: 0.9375rem;
    }

    .feature-list li {
        padding: 0.875rem 0.875rem 0.875rem 2.75rem;
    }

    .feature-list li::before {
        width: 18px;
        height: 18px;
        font-size: 0.7rem;
        left: 0.875rem;
        top: 0.875rem;
    }

    .feature-list li strong {
        font-size: 1rem;
    }
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ip-display-card,
.info-card,
.info-block {
    animation: fadeIn 0.6s ease-out;
}

.info-card:nth-child(2) {
    animation-delay: 0.1s;
}

.info-card:nth-child(3) {
    animation-delay: 0.2s;
}

.info-card:nth-child(4) {
    animation-delay: 0.3s;
}

.info-card:nth-child(5) {
    animation-delay: 0.4s;
}

.info-card:nth-child(6) {
    animation-delay: 0.5s;
}

/* ============================================
   Accessibility
   ============================================ */
.copy-btn:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

a:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 2px;
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .site-header,
    .site-footer,
    .copy-btn {
        display: none;
    }

    .hero-section {
        background: white;
        color: black;
    }

    .hero-title {
        color: black;
        text-shadow: none;
    }

    .ip-address {
        color: black;
    }
}

/* ============================================
   SEO Content Sections
   ============================================ */
.intro-text {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.lead-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-primary);
    max-width: 900px;
    margin: 0 auto;
    font-weight: 400;
}

.info-block h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ============================================
   FAQ Section
   ============================================ */
.faq-section {
    margin-top: 2rem;
}

.faq-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.faq-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.faq-item h3::before {
    content: "Q:";
    color: var(--primary-color);
    font-weight: 700;
    flex-shrink: 0;
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.faq-item ul {
    margin-top: 0.5rem;
}

/* ============================================
   Responsive Typography for SEO Content
   ============================================ */
@media (max-width: 768px) {
    .lead-text {
        font-size: 1rem;
        line-height: 1.7;
    }

    .info-block h3 {
        font-size: 1.15rem;
    }

    .faq-item h3 {
        font-size: 1.1rem;
    }

    .intro-text {
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .lead-text {
        font-size: 0.95rem;
    }

    .info-block h3 {
        font-size: 1.05rem;
    }

    .faq-item h3 {
        font-size: 1rem;
    }
}

/* ============================================
   Contact Page Styles
   ============================================ */
.contact-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-form-wrapper {
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-label svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

.required {
    color: #ef4444;
}

.form-control {
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-control::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.btn-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    margin-top: 0.5rem;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit svg {
    flex-shrink: 0;
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.alert-success svg {
    color: #059669;
    flex-shrink: 0;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.alert-error svg {
    color: #dc2626;
    flex-shrink: 0;
}

.validation-summary {
    background-color: #fee2e2;
    color: #991b1b;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #fca5a5;
}

.validation-summary:empty {
    display: none;
}

.validation-summary ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.validation-summary li {
    margin-bottom: 0.5rem;
}

.text-danger {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info .info-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-align: center;
}

.contact-info .info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.contact-info .info-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-info .info-icon svg {
    color: var(--primary-color);
}

.contact-info .info-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.contact-info .info-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .contact-info .info-card {
        padding: 1.5rem;
    }
}