* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --text-dark: #1a1a2e;
    --text-light: #e0e0e0;
    --bg-light: #f8f9ff;
    --bg-dark: #0f0f1e;
    --card-light: #ffffff;
    --card-dark: #252545;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.3);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    transition: background 0.4s ease;
    overflow-x: hidden;
    padding-top: 70px;
}

body.dark-mode {
    background: linear-gradient(135deg, #0f0f1e 0%, #1a1a2e 100%);
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1000;
}

.theme-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.theme-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.12) rotate(20deg);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

body.dark-mode .theme-btn {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Container */
.container {
    width: 100%;
    max-width: 480px;
    padding: 20px;
    margin: 0 auto;
}

/* Stopwatch Card */
.stopwatch-card {
    background: var(--card-light);
    backdrop-filter: blur(20px);
    border-radius: 28px;
    box-shadow: var(--shadow-lg);
    padding: 48px 32px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .stopwatch-card {
    background: var(--card-dark);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stopwatch-header {
    margin-bottom: 32px;
}

.stopwatch-header h1 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-dark);
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

body.dark-mode .stopwatch-header h1 {
    color: var(--text-light);
}

.subtitle {
    font-size: 14px;
    color: #999;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

body.dark-mode .subtitle {
    color: #666;
}

/* Display Wrapper and Display */
.display-wrapper {
    margin: 40px 0;
    padding: 0;
}

.display {
    background: linear-gradient(135deg, #f5f7ff 0%, #f0f0f8 100%);
    border-radius: 20px;
    padding: 48px 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: 2px solid rgba(102, 126, 234, 0.1);
    box-shadow: inset 0 8px 20px rgba(102, 126, 234, 0.08);
    min-height: 140px;
}

body.dark-mode .display {
    background: linear-gradient(135deg, #1a1a2e 0%, #151528 100%);
    border-color: rgba(102, 126, 234, 0.15);
    box-shadow: inset 0 8px 20px rgba(102, 126, 234, 0.05);
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.time-value {
    font-size: 56px;
    font-weight: 700;
    line-height: 1;
    color: var(--primary-color);
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
    transition: color 0.3s ease, transform 0.2s ease;
}

.time-value:hover {
    transform: scale(1.05);
}

.time-label {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

body.dark-mode .time-label {
    color: #777;
}

.time-separator {
    font-size: 42px;
    font-weight: 300;
    color: var(--primary-color);
    margin: 0 4px;
    opacity: 0.8;
    animation: pulse-separator 2s ease-in-out infinite;
}

@keyframes pulse-separator {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 0.3;
    }
}

/* Button Group */
.button-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-transform: none;
    letter-spacing: 0.3px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.4s ease;
    z-index: -1;
}

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

.btn-icon {
    font-size: 18px;
    display: inline-flex;
}

.btn-text {
    display: inline;
}

/* Primary Button */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #5568d3 100%);
    color: white;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.35);
    flex: 1;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(102, 126, 234, 0.45);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(-1px);
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.5;
    box-shadow: none;
}

/* Secondary Button */
.btn-secondary {
    background: linear-gradient(135deg, var(--accent-color) 0%, #e060d3 100%);
    color: white;
    box-shadow: 0 8px 24px rgba(240, 147, 251, 0.35);
    flex: 1;
}

.btn-secondary:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(240, 147, 251, 0.45);
}

.btn-secondary:active:not(:disabled) {
    transform: translateY(-1px);
}

.btn-secondary:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.5;
    box-shadow: none;
}

/* Tertiary Button */
.btn-tertiary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #654890 100%);
    color: white;
    box-shadow: 0 8px 24px rgba(118, 75, 162, 0.35);
    flex: 1;
}

.btn-tertiary:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(118, 75, 162, 0.45);
}

.btn-tertiary:active:not(:disabled) {
    transform: translateY(-1px);
}

.btn-tertiary:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.5;
    box-shadow: none;
}

/* Lap Button */
.btn-lap {
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    color: white;
    box-shadow: 0 8px 24px rgba(0, 180, 216, 0.35);
    flex: 1;
}

.btn-lap:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(0, 180, 216, 0.45);
}

.btn-lap:active:not(:disabled) {
    transform: translateY(-1px);
}

.btn-lap:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.5;
    box-shadow: none;
}

/* Dark Mode Button Adjustments */
body.dark-mode .btn-primary:disabled,
body.dark-mode .btn-secondary:disabled,
body.dark-mode .btn-lap:disabled,
body.dark-mode .btn-tertiary:disabled {
    background: #555;
    box-shadow: none;
}

/* Lap Section */
.lap-section {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 2px solid rgba(102, 126, 234, 0.1);
    max-height: 400px;
    overflow-y: auto;
}

body.dark-mode .lap-section {
    border-top-color: rgba(102, 126, 234, 0.15);
}

.lap-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.lap-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

body.dark-mode .lap-header h3 {
    color: var(--text-light);
}

.clear-laps-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(102, 126, 234, 0.2);
    color: var(--text-dark);
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s ease;
}

body.dark-mode .clear-laps-btn {
    background: rgba(102, 126, 234, 0.15);
    color: var(--text-light);
}

.clear-laps-btn:hover {
    background: rgba(102, 126, 234, 0.3);
    transform: scale(1.1);
}

.laps-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lap-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f5f7ff;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.2s ease;
    animation: slideIn 0.3s ease;
}

body.dark-mode .lap-item {
    background: #1a1a2e;
    border-left-color: var(--primary-color);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.lap-item:hover {
    background: #eef0ff;
    transform: translateX(4px);
}

body.dark-mode .lap-item:hover {
    background: #252545;
}

.lap-number {
    font-size: 13px;
    font-weight: 600;
    color: #999;
    min-width: 45px;
}

.lap-times {
    display: flex;
    gap: 16px;
    flex: 1;
    justify-content: center;
    align-items: center;
}

.lap-time {
    text-align: center;
}

.lap-time-label {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 2px;
}

.lap-time-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
}

.lap-delete {
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(255, 80, 80, 0.2);
    color: #ff5050;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
}

.lap-delete:hover {
    background: rgba(255, 80, 80, 0.3);
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

    body.dark-mode .nav-menu {
        background: rgba(37, 37, 69, 0.98);
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .section-title {
        font-size: 28px;
    }

    .features-grid,
    .howto-steps,
    .usecases-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .stopwatch-card {
        padding: 36px 24px;
        border-radius: 24px;
    }

    .stopwatch-header h1 {
        font-size: 28px;
    }

    .display {
        padding: 36px 24px;
        min-height: 120px;
    }

    .time-value {
        font-size: 44px;
    }

    .time-separator {
        font-size: 32px;
    }

    .time-unit {
        min-width: 70px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 14px;
        min-width: 80px;
    }

    .display-wrapper {
        margin: 32px 0;
    }

    .button-group {
        gap: 10px;
        margin-top: 32px;
    }

    .lap-section {
        margin-top: 24px;
        padding-top: 24px;
    }

    .lap-item {
        flex-wrap: wrap;
        gap: 12px;
    }

    .lap-number {
        width: 100%;
    }

    .lap-times {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .theme-btn {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .container {
        padding: 16px;
    }

    .stopwatch-card {
        padding: 28px 20px;
        border-radius: 20px;
    }

    .stopwatch-header h1 {
        font-size: 26px;
    }

    .subtitle {
        font-size: 13px;
    }

    .display {
        padding: 28px 16px;
        min-height: 110px;
        gap: 4px;
        border-radius: 16px;
    }

    .time-value {
        font-size: 38px;
    }

    .time-separator {
        font-size: 28px;
    }

    .time-unit {
        min-width: 60px;
    }

    .time-label {
        font-size: 11px;
        margin-top: 6px;
    }

    .btn {
        padding: 11px 14px;
        font-size: 12px;
        min-width: 70px;
        gap: 4px;
    }

    .btn-text {
        display: none;
    }

    .btn-icon {
        font-size: 16px;
    }

    .button-group {
        gap: 8px;
        margin-top: 28px;
    }

    .display-wrapper {
        margin: 28px 0;
    }

    .stopwatch-header {
        margin-bottom: 24px;
    }

    .lap-section {
        margin-top: 20px;
        padding-top: 20px;
        max-height: 300px;
    }

    .lap-header h3 {
        font-size: 16px;
    }

    .lap-item {
        padding: 10px 12px;
        flex-wrap: wrap;
    }

    .lap-number {
        font-size: 12px;
        min-width: 35px;
    }

    .lap-times {
        width: 100%;
        gap: 10px;
    }

    .lap-time {
        flex: 1;
        min-width: 60px;
    }

    .lap-time-label {
        font-size: 10px;
    }

    .lap-time-value {
        font-size: 14px;
    }

    .lap-delete {
        width: 24px;
        height: 24px;
        font-size: 14px;
    }
}

/* Header Navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: background 0.3s ease;
}

body.dark-mode .site-header {
    background: rgba(37, 37, 69, 0.95);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo a {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

body.dark-mode .logo a {
    color: var(--text-light);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

body.dark-mode .nav-menu li a {
    color: var(--text-light);
}

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

.nav-menu li a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-dark);
}

body.dark-mode .mobile-menu-toggle {
    color: var(--text-light);
}

/* Hero Section */
.hero-section {
    background: transparent;
    padding: 60px 20px 40px;
    text-align: center;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
}

.hero-features {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.feature-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    color: white;
    font-size: 14px;
    font-weight: 500;
}

/* Content Sections */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    color: white;
    margin-bottom: 48px;
}

.features-section,
.howto-section,
.usecases-section,
.faq-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

body.dark-mode .section-title {
    color: var(--text-light);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.feature-card {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.dark-mode .feature-card {
    background: var(--card-dark);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

body.dark-mode .feature-card h3 {
    color: var(--text-light);
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

body.dark-mode .feature-card p {
    color: #999;
}

/* How to Use Steps */
.howto-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.step-card {
    background: white;
    padding: 28px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

body.dark-mode .step-card {
    background: var(--card-dark);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 16px;
}

.step-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

body.dark-mode .step-card h3 {
    color: var(--text-light);
}

.step-card p {
    color: #666;
    line-height: 1.6;
}

body.dark-mode .step-card p {
    color: #999;
}

/* Use Cases Grid */
.usecases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.usecase-card {
    background: white;
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

body.dark-mode .usecase-card {
    background: var(--card-dark);
}

.usecase-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

body.dark-mode .usecase-card h3 {
    color: var(--text-light);
}

.usecase-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.usecase-card ul li {
    color: #666;
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

body.dark-mode .usecase-card ul li {
    color: #999;
}

.usecase-card ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

/* FAQ Section */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body.dark-mode .faq-item {
    background: var(--card-dark);
}

.faq-item h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

body.dark-mode .faq-item h3 {
    color: var(--text-light);
}

.faq-item p {
    color: #666;
    line-height: 1.6;
}

body.dark-mode .faq-item p {
    color: #999;
}

/* Footer */
.site-footer {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    padding: 48px 20px 24px;
}

body.dark-mode .site-footer {
    background: rgba(0, 0, 0, 0.4);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.footer-section h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 12px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

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

.footer-links li a:hover {
    color: white;
}

.footer-contact-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer-contact-btn:hover {
    background: #5568d3;
    transform: translateY(-2px);
}

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin: 8px 0;
}

/* AdSense Ad Spaces */
.ad-space {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100px;
    margin: 20px 0;
    background: transparent;
}

.ad-space-top {
    margin-top: 0;
    margin-bottom: 30px;
    min-height: 90px;
}

.ad-space-middle {
    margin: 24px 0;
    min-height: 250px;
}

.ad-space-bottom {
    margin-top: 30px;
    margin-bottom: 0;
    min-height: 90px;
}

.adsbygoogle {
    display: block;
    min-height: 100%;
}

/* Page Content Styles */
.page-content {
    min-height: calc(100vh - 200px);
    padding: 40px 20px;
}

.content-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 48px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

body.dark-mode .content-container {
    background: var(--card-dark);
}

.page-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 32px;
    text-align: center;
}

body.dark-mode .page-title {
    color: var(--text-light);
}

.content-section {
    margin-bottom: 40px;
}

.content-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
}

body.dark-mode .content-section h2 {
    color: var(--text-light);
}

.content-section p {
    color: #444;
    line-height: 1.8;
    margin-bottom: 16px;
    font-size: 16px;
}

body.dark-mode .content-section p {
    color: #ccc;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    color: #444;
    padding: 12px 0;
    padding-left: 28px;
    position: relative;
    line-height: 1.7;
    font-size: 16px;
}

body.dark-mode .feature-list li {
    color: #ccc;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 18px;
}

.feature-list li strong {
    color: var(--text-dark);
}

body.dark-mode .feature-list li strong {
    color: var(--text-light);
}

/* High Resolution Display */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .btn {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    }
}

/* Contact Button */
.contact-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.4);
    z-index: 900;
}

.contact-btn:hover {
    transform: scale(1.15) rotate(-20deg);
    box-shadow: 0 12px 48px rgba(102, 126, 234, 0.5);
}

.contact-btn:active {
    transform: scale(1.08);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(4px);
}

.modal.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

.modal-content {
    animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Contact Card */
.contact-card {
    background: var(--card-light);
    border-radius: 28px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .contact-card {
    background: var(--card-dark);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(0, 0, 0, 0.1);
    color: #333;
    font-size: 28px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

body.dark-mode .modal-close {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

body.dark-mode .modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.contact-header {
    margin-bottom: 28px;
    text-align: center;
}

.contact-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

body.dark-mode .contact-header h2 {
    color: var(--text-light);
}

.contact-subtitle {
    font-size: 14px;
    color: #999;
    font-weight: 500;
    transition: color 0.3s ease;
}

body.dark-mode .contact-subtitle {
    color: #666;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
}

body.dark-mode .form-group label {
    color: var(--text-light);
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #f9f9f9;
    color: var(--text-dark);
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
    background: #1a1a2e;
    border-color: #444;
    color: var(--text-light);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: #fff;
}

body.dark-mode .form-group input:focus,
body.dark-mode .form-group textarea:focus {
    background: #252545;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #bbb;
}

body.dark-mode .form-group input::placeholder,
body.dark-mode .form-group textarea::placeholder {
    color: #666;
}

.form-group textarea {
    resize: vertical;
    font-size: 13px;
    line-height: 1.5;
}

/* Form Message */
.form-message {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    text-align: center;
    margin-top: 8px;
    display: none;
    animation: slideUp 0.3s ease;
}

.form-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

body.dark-mode .form-message.success {
    background: #1e4620;
    color: #90ee90;
    border-color: #2d5a2d;
}

body.dark-mode .form-message.error {
    background: #4a2d2d;
    color: #ff8080;
    border-color: #662d2d;
}

/* Responsive */
@media (max-width: 640px) {
    .contact-btn {
        width: 48px;
        height: 48px;
        font-size: 20px;
        bottom: 20px;
        right: 20px;
    }

    .contact-card {
        padding: 32px 24px;
        max-width: 95vw;
    }

    .contact-header h2 {
        font-size: 24px;
    }

    .modal-close {
        width: 32px;
        height: 32px;
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .contact-btn {
        width: 48px;
        height: 48px;
        bottom: 16px;
        right: 16px;
    }

    .contact-card {
        padding: 28px 20px;
        border-radius: 20px;
        max-height: 85vh;
    }

    .contact-header {
        margin-bottom: 24px;
    }

    .contact-header h2 {
        font-size: 22px;
    }

    .contact-form {
        gap: 16px;
    }

    .form-group input,
    .form-group textarea {
        padding: 11px 14px;
        font-size: 13px;
    }

    .form-group label {
        font-size: 13px;
    }
}
