* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



html {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    background-attachment: fixed;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: white;
}

.header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
            position: sticky;
            top: 0;
            z-index: 1000;
    
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
            padding: 0.5rem 2rem;
    gap: 1rem;
    flex-wrap: wrap;
            position: relative;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: white;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.logo:hover {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    transform: scale(1.05);
}

.logo svg {
    transition: all 0.3s ease;
}

.logo:hover svg {
    filter: drop-shadow(0 0 15px rgba(102, 126, 234, 0.6)) drop-shadow(0 0 25px rgba(118, 75, 162, 0.4));
    transform: translateY(-2px);
}

.nav-menu {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    opacity: 0.9;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    padding: 0.5rem 0.8rem;
    border-radius: 20px;
    white-space: nowrap;
    font-size: 0.95rem;
}

.nav-link:hover {
    opacity: 1;
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}
        /* Mobile Menu Toggle */
        .mobile-menu-toggle {
            display: none;
            background: none;
            border: none;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
            padding: 0.5rem;
            transition: all 0.3s ease;
        }

        .mobile-menu-toggle:hover {
            opacity: 0.8;
        }


.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
}

.stopwatch-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 500px;
    width: 100%;
}

.tool-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.tool-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.time-display {
    font-size: 4rem;
    font-weight: 300;
    font-family: 'Courier New', monospace;
    margin: 2rem 0;
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    min-width: 120px;
}

.btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn.start {
    background: linear-gradient(135deg, #00FF88, #45a049);
    border-color: #00FF88;
}

.btn.stop {
    background: linear-gradient(135deg, #f44336, #da190b);
    border-color: #f44336;
}

.btn.reset {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    border-color: #ff9800;
}

.laps-container {
    margin-top: 2rem;
    max-height: 200px;
    overflow-y: auto;
}

.laps-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.lap-item {
    background: rgba(0, 0, 0, 0.2);
    padding: 0.5rem 1rem;
    margin: 0.5rem 0;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    font-family: 'Courier New', monospace;
}

.features {
    margin-top: 2rem;
    text-align: left;
}

.features h3 {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.features ul {
    list-style: none;
    padding-left: 0;
}

.features li {
    margin: 0.5rem 0;
    opacity: 0.8;
}

.features li:before {
    content: "✓ ";
    color: #00FF88;
    font-weight: bold;
}

@media (max-width: 768px) {
    .header {
        
    }

    .nav {
        gap: 0.8rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .logo svg {
        width: 180px !important;
        height: 41px !important;
    }
            .mobile-menu-toggle {
                display: block;
            }
            
            .nav-menu {
                display: none;
                position: absolute;
                top: 100%;
                left: 0;
                right: 0;
                background: rgba(0, 0, 0, 0.95);
                backdrop-filter: blur(15px);
                flex-direction: column;
                padding: 1rem;
                gap: 0;
                flex-wrap: nowrap;
                z-index: 1000;
                box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
                margin-top: 1rem;
                border-radius: 10px;
            }
            
            .nav-menu.active {
                display: flex;
            }
            
            .nav-link {
                padding: 1rem;
                border-bottom: 1px solid rgba(255, 255, 255, 0.1);
                text-align: center;
                font-size: 1rem;
                white-space: normal;
                border-radius: 0;
            }
            
            .nav-link:last-child {
                border-bottom: none;
            }


    .back-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .stopwatch-container {
        padding: 2rem 1rem;
        margin: 1rem;
    }

    .time-display {
        font-size: 2.5rem;
    }

    .tool-title {
        font-size: 2rem;
    }

    .controls {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 200px;
    }
}

/* Footer CSS */
.footer {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 2rem;
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: block;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #fff;
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.social-links { display: flex; gap: 1rem; justify-content: center; }

.social-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Article Section CSS */
.article-section {
    max-width: 1000px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.article-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.article-header {
    text-align: center;
    margin-bottom: 3rem;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.article-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
}

.article-content {
    color: white;
    line-height: 1.8;
}

.article-content h2 {
    font-size: 2rem;
    margin: 2.5rem 0 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

.article-content h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: #fff;
}

.article-content p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.95);
}

.article-content ul, .article-content ol {
    margin: 1.5rem 0 1.5rem 2rem;
}

.article-content li {
    margin-bottom: 1rem;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.95);
}

.article-content strong {
    color: #fff;
    font-weight: 600;
}

.highlight-box {
    background: rgba(255, 255, 255, 0.15);
    border-left: 4px solid #fff;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 10px;
}

.highlight-box h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #fff;
}

.use-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.use-case-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.use-case-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.use-case-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.use-case-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #fff;
}

.use-case-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.faq-section {
    margin-top: 3rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.15);
}

.faq-question {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.faq-answer {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.7;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.tip-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tip-number {
    display: inline-block;
    background: rgba(255, 255, 255, 0.3);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    text-align: center;
    line-height: 35px;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}

.tip-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #fff;
}

.tip-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.example-box {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-left: 4px solid #00FF88;
}

.example-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #00FF88;
}

@media (max-width: 768px) {
    .article-container {
        padding: 2rem 1.5rem;
    }

    .article-title {
        font-size: 2rem;
    }

    .article-content h2 {
        font-size: 1.6rem;
    }

    .use-case-grid,
    .tips-grid {
        grid-template-columns: 1fr;
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    z-index: 9999;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.scroll-to-top.show {
    display: flex;
}

/* Tool Navigation Buttons */
.tool-nav-btn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem;
    border-radius: 15px;
    text-decoration: none;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    z-index: 999;
    max-width: 120px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.tool-nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.tool-nav-btn.prev {
    left: 20px;
}

.tool-nav-btn.next {
    right: 20px;
}

.tool-nav-btn i {
    font-size: 1.5rem;
}

.tool-nav-label {
    font-size: 0.75rem;
    opacity: 0.9;
    font-weight: 500;
}

.tool-nav-name {
    font-size: 0.7rem;
    opacity: 0.7;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .tool-nav-btn {
        padding: 0.6rem;
        max-width: 80px;
        font-size: 0.85rem;
        top: auto;
        bottom: 80px;
        transform: none;
    }

    .tool-nav-btn:hover {
        transform: scale(1.05);
    }

    .tool-nav-btn.prev {
        left: 10px;
    }

    .tool-nav-btn.next {
        right: 10px;
    }

    .tool-nav-btn i {
        font-size: 1.2rem;
    }

    .tool-nav-label {
        font-size: 0.65rem;
    }

    .tool-nav-name {
        font-size: 0.6rem;
        display: none;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .logo svg {
        width: 160px !important;
        height: 37px !important;
    }
}

        /* Enhanced Footer Hover Animations */
        .footer-section ul li a {
            transition: all 0.3s ease;
            display: inline-block;
            position: relative;
        }

        .footer-section ul li a:hover {
            color: white;
            transform: translateX(5px);
            text-shadow: 0 0 10px rgba(102, 126, 234, 0.6);
        }

        .footer-section ul li a::before {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 0;
            height: 2px;
            background: linear-gradient(90deg, #667eea, #764ba2);
            transition: width 0.3s ease;
        }

        .footer-section ul li a:hover::before {
            width: 100%;
        }

        .social-links a {
            font-size: 1.5rem;
            transition: all 0.3s ease;
        }

        .social-links a:hover {
            color: white;
            transform: translateY(-3px) scale(1.15);
            filter: drop-shadow(0 5px 10px rgba(102, 126, 234, 0.6));
        }

        .footer-bottom a {
            color: rgba(255, 255, 255, 0.9);
            text-decoration: none;
            transition: all 0.3s ease;
            position: relative;
            padding-bottom: 2px;
        }

        .footer-bottom a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background: linear-gradient(90deg, #667eea, #764ba2);
            transition: width 0.3s ease;
        }

        .footer-bottom a:hover {
            color: white;
            text-shadow: 0 0 10px rgba(102, 126, 234, 0.8);
            transform: translateY(-2px);
        }

        .footer-bottom a:hover::after {
            width: 100%;
        }
