/* ============================================
   Dog-themed Animations for Milner Kennels
   ============================================ */

.dog-animated {
    position: relative;
    overflow: hidden;
}

.dog-animated::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(139, 69, 19, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(210, 105, 30, 0.08) 0%, transparent 50%);
    animation: dogScan 12s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes dogScan {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    100% {
        transform: translate(30px, 30px) rotate(180deg);
    }
}

/* Additional dog-themed animations can be added here */

/* ============================================
   Contact Section Styles
   ============================================ */

.contact-section {
    padding: 6rem 0;
    background: var(--bg-darker);
}

.contact-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-card h3 {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.contact-cta {
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.contact-info-card,
.contact-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.contact-method {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-darker);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
}

.contact-method:hover {
    border-color: var(--border-hover);
    transform: translateX(5px);
}

.contact-method-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.contact-method-content {
    flex: 1;
}

.contact-method-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-email {
    color: var(--text-primary);
    text-decoration: none;
    font-family: 'Courier New', monospace;
    display: block;
    margin-bottom: 0.5rem;
}

.copy-contact-btn {
    background: var(--gradient-1);
    color: #000;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    /* Touch improvements */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-height: 36px;
}

.copy-contact-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

.contact-note {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: block;
    margin-top: 0.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.1);
}

.form-note {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 1rem;
    text-align: center;
}

#form-message {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.5;
    animation: fadeIn 0.3s ease-in;
}

#form-message.success {
    background: rgba(16, 185, 129, 0.1) !important;
    border: 1px solid #10b981 !important;
    color: #10b981 !important;
}

#form-message.error {
    background: rgba(239, 68, 68, 0.1) !important;
    border: 1px solid #ef4444 !important;
    color: #ef4444 !important;
}

#submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Tooltip */
[data-tooltip] {
    position: relative;
}

[data-tooltip]:hover::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-darker);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    white-space: nowrap;
    border: 1px solid var(--border-color);
    margin-bottom: 5px;
    z-index: 1000;
}

[data-tooltip]:hover::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--border-color);
    margin-bottom: -1px;
}

/* Video Player Styles */
.product-video-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background: var(--bg-darker);
    box-shadow: var(--shadow-card);
}

.product-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* TOS Page Styles */
.tos-content {
    max-width: 900px;
    margin: 0 auto;
}

.tos-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.tos-section h2 {
    color: var(--primary-color);
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.tos-section h3 {
    color: var(--accent-color);
    font-size: 1.3rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.tos-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.tos-section ul {
    color: var(--text-secondary);
    line-height: 2;
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.tos-section li {
    margin-bottom: 0.5rem;
}

.tos-section strong {
    color: var(--text-primary);
}

.tos-section a {
    color: var(--primary-color);
    text-decoration: none;
}

.tos-section a:hover {
    text-decoration: underline;
}

.tos-acknowledgment {
    background: var(--bg-darker);
    border: 2px solid var(--primary-color);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 3rem;
    text-align: center;
}

.tos-acknowledgment p {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.tos-acknowledgment em {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ============================================
   Animated Feature Cards for Revenant
   ============================================ */

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

.feature-card {
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.75rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(20px);
    animation: featureFadeIn 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:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }
.feature-card:nth-child(7) { animation-delay: 0.7s; }
.feature-card:nth-child(8) { animation-delay: 0.8s; }
.feature-card:nth-child(9) { animation-delay: 0.9s; }
.feature-card:nth-child(10) { animation-delay: 1.0s; }
.feature-card:nth-child(11) { animation-delay: 1.1s; }
.feature-card:nth-child(12) { animation-delay: 1.2s; }
.feature-card:nth-child(13) { animation-delay: 1.3s; }
.feature-card:nth-child(14) { animation-delay: 1.4s; }
.feature-card:nth-child(15) { animation-delay: 1.5s; }
.feature-card:nth-child(16) { animation-delay: 1.6s; }

@keyframes featureFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(194, 14, 14, 0.1), transparent);
    transition: left 0.5s ease;
}

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

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 32px rgba(194, 14, 14, 0.3);
    background: var(--bg-card);
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    font-weight: 400;
    line-height: 1;
}

.feature-icon::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: iconShine 3s ease-in-out infinite;
}

@keyframes iconShine {
    0%, 100% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    50% {
        transform: translate(-50%, -50%) rotate(180deg);
    }
}

.feature-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
    flex: 1;
}

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

.feature-badge {
    display: inline-block;
    background: rgba(194, 14, 14, 0.15);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.75rem;
    border: 1px solid var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   Mobile Responsive Styles
   ============================================ */

@media (max-width: 768px) {
    /* Contact Grid */
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
    }

    .contact-info-card,
    .contact-form-card {
        padding: 2rem 1.5rem;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .contact-method {
        flex-direction: column;
        gap: 1rem;
        padding: 1.25rem;
        margin-bottom: 1.5rem;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .contact-method-icon {
        font-size: 1.5rem;
    }

    .contact-method-content {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .contact-method-content h3 {
        font-size: 1rem;
    }

    .contact-email {
        font-size: 0.85rem;
        word-break: break-all;
        width: 100% !important;
        display: block !important;
        overflow-wrap: break-word !important;
    }

    .copy-contact-btn {
        width: 100% !important;
        margin-top: 0.5rem;
        box-sizing: border-box !important;
    }

    /* Forms */
    .contact-form {
        gap: 1.25rem;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .form-group {
        gap: 0.5rem;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.875rem;
        font-size: 1rem;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .form-note {
        font-size: 0.8rem;
        padding: 0 0.5rem;
    }

    #form-message {
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 1rem !important;
        margin: 0 0 1rem 0 !important;
    }

    /* Feature Grid */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin: 1.5rem 0;
    }

    .feature-card {
        padding: 1.5rem 1.25rem;
    }

    .feature-header {
        gap: 0.75rem;
        margin-bottom: 0.875rem;
    }

    .feature-icon {
        font-size: 1.75rem;
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.5rem;
    }

    .feature-title {
        font-size: 1rem;
    }

    .feature-description {
        font-size: 0.875rem;
        line-height: 1.6;
    }

    .feature-badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.75rem;
    }

    /* Product Video */
    .product-video-container {
        padding: 2rem 0;
    }

    .product-video-container h2 {
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
    }

    .video-wrapper {
        padding: 0 1rem;
        border-radius: 12px;
        margin: 0 auto;
    }

    .product-video {
        width: 100%;
        height: auto;
        min-height: 250px;
        max-height: 50vh;
        border-radius: 12px;
    }

    /* TOS Section */
    .tos-section {
        padding: 1.5rem;
    }

    .tos-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .tos-section h3 {
        font-size: 1.25rem;
        margin-top: 2rem;
        margin-bottom: 1rem;
    }

    .tos-section p,
    .tos-section li {
        font-size: 0.9rem;
        line-height: 1.7;
    }

    /* Download Section */
    .download-area {
        padding: 6rem 0 3rem;
    }

    .token-required {
        padding: 2rem 1.5rem;
    }

    .token-required h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .token-input {
        font-size: 0.95rem;
        padding: 0.875rem;
    }

    .download-section {
        padding: 0;
    }

    .download-item {
        padding: 1.5rem;
        margin-bottom: 1.25rem;
    }

    .download-item h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .download-item p {
        font-size: 0.875rem;
        margin-bottom: 1rem;
    }

    .download-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        text-align: center;
    }

    .hwid-instructions {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }

    .hwid-instructions h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .hwid-instructions ol {
        font-size: 0.875rem;
        margin-left: 1.5rem;
        line-height: 1.8;
    }

    .hwid-instructions code {
        font-size: 0.8rem;
        padding: 0.75rem;
        display: block;
        overflow-x: auto;
    }

    /* Product Information */
    .product-information {
        padding: 2rem 0;
    }

    .product-information h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .product-information p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    /* Token Generator */
    .generator-container {
        margin: 6rem auto 3rem;
        padding: 1.5rem;
    }

    .generator-card {
        padding: 2rem 1.5rem;
    }

    .generator-card h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .token-form {
        gap: 1.25rem;
    }

    .form-group input,
    .form-group select {
        padding: 0.875rem;
        font-size: 1rem;
    }

    .token-output {
        padding: 1.5rem;
    }

    .token-display {
        font-size: 0.85rem;
        padding: 0.875rem;
        word-break: break-all;
    }

    .code-block {
        padding: 1rem;
        font-size: 0.8rem;
    }

    .code-block pre {
        font-size: 0.75rem;
        overflow-x: auto;
    }

    /* Admin Auth */
    .auth-container {
        padding: 1rem;
    }

    .auth-card {
        padding: 2rem 1.5rem;
    }

    .auth-card h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .auth-form input {
        padding: 0.875rem;
        font-size: 1rem;
    }

    .auth-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    /* Contact */
    .contact-grid {
        gap: 1.5rem !important;
    }

    .contact-info-card,
    .contact-form-card {
        padding: 1.5rem 1rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .contact-method {
        padding: 1rem !important;
        margin-bottom: 1.25rem !important;
    }

    .contact-method-content h3 {
        font-size: 0.95rem;
    }

    .contact-email {
        font-size: 0.8rem;
    }

    .contact-note {
        font-size: 0.85rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.75rem !important;
        font-size: 16px !important; /* Prevents zoom on iOS */
    }

    .form-note {
        font-size: 0.75rem;
        padding: 0;
    }

    /* Features */
    .features-grid {
        gap: 1rem;
    }

    .feature-card {
        padding: 1.25rem 1rem;
    }

    .feature-icon {
        font-size: 1.5rem;
        width: 2.25rem;
        height: 2.25rem;
    }

    .feature-title {
        font-size: 0.95rem;
    }

    .feature-description {
        font-size: 0.8rem;
    }

    /* Video */
    .product-video-container {
        padding: 1.5rem 0;
    }

    .product-video-container h2 {
        font-size: 1.25rem;
    }

    .video-wrapper {
        padding: 0;
        border-radius: 8px;
    }

    .product-video {
        min-height: 200px;
        max-height: 40vh;
        border-radius: 8px;
    }

    /* Download */
    .token-required {
        padding: 1.5rem 1rem;
    }

    .download-item {
        padding: 1.25rem 1rem;
    }

    .hwid-instructions {
        padding: 1.25rem 1rem;
    }

    .hwid-instructions ol {
        margin-left: 1.25rem;
        font-size: 0.8rem;
    }

    /* Token Generator */
    .generator-container {
        margin: 5rem auto 2rem;
        padding: 1rem;
    }

    .generator-card {
        padding: 1.5rem 1rem;
    }

    .generator-card h2 {
        font-size: 1.25rem;
    }

    .token-display {
        font-size: 0.75rem;
        padding: 0.75rem;
    }

    .code-block {
        padding: 0.875rem;
        font-size: 0.75rem;
    }

    .code-block pre {
        font-size: 0.7rem;
    }

    /* Admin Auth */
    .auth-card {
        padding: 1.5rem 1rem;
    }

    .auth-card h2 {
        font-size: 1.25rem;
    }
}

