/* Import Google Fonts for better typography */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,600;1,700&family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=Raleway:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap');

/* RELYZ Color Variables */
:root {
  --color-primary: #01754f;
  --color-secondary: #035f40;
  --color-tertiary: #8ecd67;
  --color-quaternary: #365a6f;
  --color-octonary: #fbd451;
  --color-denary: #012a1c;
  --color-black-1: #222222;
  --color-black-2: #333333;
  --color-black-3: #444444;
  --color-white-1: #F5F5F5;
  --color-white-2: #F2F2F2;
  --color-white-3: #E0E0E0;
  
  --font-default: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --font-primary: "Montserrat", sans-serif;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-default);
    line-height: 1.6;
    color: var(--color-black-3);
    scroll-behavior: smooth;
}

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

/* Header and Navigation */
.navbar {
    background: var(--color-primary);
    padding: 1.2rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

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

.nav-logo {
    color: white;
    font-size: 1.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo .logo-icon {
    width: 46px;
    max-height: 40px;
}

.nav-logo h1 {
    margin: 0;
    font-family: var(--font-primary);
    font-size: 1.8em;
    font-weight: 500;
    letter-spacing: 0.8px;
}

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

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.nav-link:hover {
    opacity: 0.8;
}

/* Hero Section */
.hero {
    background: var(--color-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
    padding-top: 90px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    font-family: var(--font-primary);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* About Section */
.about {
    padding: 100px 0;
    background: #f8f9fa;
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--color-primary);
    font-family: var(--font-primary);
}

.about p {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #666;
}

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

@media (min-width: 768px) {
    .features {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

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

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.feature-card p {
    color: #666;
    margin: 0;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: white;
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--color-primary);
    font-family: var(--font-primary);
}

.contact p {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: #666;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.contact-item {
    text-align: center;
    font-size: 1.1rem;
    color: #333;
}

/* ========================================
   CONTACT FORM STYLES
   ======================================== */

.contact-form-section {
    background: var(--color-white-1);
    border-radius: 15px;
    padding: 3rem;
    margin: 3rem 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contact-form-container h3 {
    text-align: center;
    color: var(--color-primary);
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-black-2);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--color-white-3);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
}

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

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select {
    cursor: pointer;
}

/* Checkbox styling */
.checkbox-group {
    margin: 2rem 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--color-black-3);
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    position: relative;
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-white-3);
    border-radius: 4px;
    background: white;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.checkbox-label input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-label a {
    color: var(--color-primary);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Submit button */
.form-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.form-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(1, 117, 79, 0.3);
}

.form-submit-btn:active {
    transform: translateY(0);
}

.form-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Form Messages */
.form-messages {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
}

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

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

.form-messages h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
}

.form-messages p {
    margin: 0;
    font-size: 1rem;
}

.message-icon {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

/* Contact Info Section */
.contact-info-section {
    margin-top: 3rem;
}

.contact-info-section h3 {
    text-align: center;
    color: var(--color-black-2);
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

/* Responsive Design for Forms */
@media (max-width: 768px) {
    .contact-form-section {
        padding: 2rem 1.5rem;
        margin: 2rem 0;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-form-container h3 {
        font-size: 1.5rem;
    }
    
    .checkbox-label {
        font-size: 0.85rem;
    }
}

/* Email Protection */
.email-reveal {
    cursor: pointer;
    display: inline-block;
    padding: 6px 14px;
    background: transparent;
    color: var(--color-primary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1.5px solid var(--color-primary);
    user-select: none;
}

.email-reveal:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(1, 117, 79, 0.25);
}

.email-placeholder {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.email-placeholder:before {
    content: "🔒";
    font-size: 0.8em;
}

.email-actual {
    transition: all 0.2s ease;
}

.email-actual a {
    color: inherit;
    text-decoration: none;
    font-weight: inherit;
}

.email-actual a:hover {
    text-decoration: underline;
}

/* Footer Email Protection - Special styling for dark background */
.footer .email-reveal {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

.footer .email-reveal:hover {
    background: white;
    color: var(--color-primary);
    border-color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.footer .email-reveal .email-placeholder:before {
    content: "🔒";
    filter: brightness(1.2);
}

/* Footer */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .about h2,
    .contact h2 {
        font-size: 2rem;
    }
}

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

.hero-content,
.feature-card {
    animation: fadeInUp 0.8s ease-out;
}

/* Enhanced RELYZ Styles */

/* Hero section enhancements */
.hero-title .highlight {
    color: var(--color-octonary);
    font-weight: 800;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.cta-button.primary {
    background: var(--color-octonary);
    color: var(--color-black-2);
    border: none;
}

.cta-button.primary:hover {
    background: #e6c149;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(251, 212, 81, 0.3);
}

.cta-button.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-button.secondary:hover {
    background: white;
    color: var(--color-primary);
    transform: translateY(-2px);
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.feature-highlight {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.feature-highlight .feature-icon {
    font-size: 2rem;
}

.feature-highlight .feature-text strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.feature-highlight .feature-text p {
    margin: 0;
    opacity: 0.8;
    font-size: 0.9rem;
}

/* About section enhancements */
.company-tagline {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    color: var(--color-primary);
    margin-bottom: 2rem;
    font-family: var(--font-primary);
}

.company-overview {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

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

.info-section {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.info-section h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-family: var(--font-primary);
}

.skills-overview {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    margin-top: 2rem;
}

.skills-overview h3 {
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    font-family: var(--font-primary);
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.skill-tag {
    background: var(--color-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Contact section enhancements */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.contact-item {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.contact-item a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Footer enhancements */
.footer {
    background-color: var(--color-primary);
    padding: 50px 0 20px 0;
    color: white;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
    align-items: start;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    line-height: 0;
}

.footer-logo .logo-icon {
    max-height: 40px;
    width: auto;
}

.footer-logo span {
    font-size: 1.8em;
    font-weight: 500;
    letter-spacing: 0.8px;
    color: #fff;
    font-family: var(--font-primary);
}

.footer-tagline {
    font-size: 0.9em;
    font-family: var(--font-primary);
    margin-bottom: 20px;
    opacity: 0.9;
}

.footer .social-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.footer .social-links .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: 0.3s;
}

.footer .social-links .social-link:hover {
    color: #fff;
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.footer-contact h4 {
    font-size: 1.2em;
    font-weight: 500;
    margin-bottom: 15px;
    color: white;
    font-family: var(--font-primary);
}

.footer-contact p {
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.95em;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.footer-contact a:hover {
    color: #fff;
    text-decoration: underline;
}

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

.copyright {
    font-size: 14px;
    opacity: 0.8;
}

/* Enhanced responsive design */
@media (max-width: 768px) {
    .hero-features {
        grid-template-columns: 1fr;
    }
    
    .feature-highlight {
        flex-direction: column;
        text-align: center;
    }
    
    .company-info {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    /* Footer responsive */
    .footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-info {
        max-width: 100%;
        text-align: center;
    }
    
    .footer .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .skills-grid {
        justify-content: center;
    }
    
    .footer-main {
        gap: 1.5rem;
    }
    
    .footer {
        padding: 30px 0 15px 0;
    }
}

/* ========================================
   ANALYTICS DASHBOARD STYLES
   ======================================== */

.analytics-dashboard {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    z-index: 10000;
    overflow: hidden;
    font-family: 'Segoe UI', sans-serif;
}

.analytics-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.analytics-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.close-btn:hover {
    background: rgba(255,255,255,0.2);
}

.analytics-content {
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

.analytics-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--color-white-1);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    border: 2px solid var(--color-white-3);
}

.stat-card h4 {
    margin: 0 0 0.5rem 0;
    color: var(--color-black-2);
    font-size: 0.9rem;
}

.stat-card span {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-primary);
}

.analytics-details {
    margin-bottom: 2rem;
}

.analytics-details h4 {
    margin-bottom: 1rem;
    color: var(--color-black-2);
}

#recent-activity {
    background: var(--color-white-1);
    border-radius: 8px;
    padding: 1rem;
    max-height: 200px;
    overflow-y: auto;
    font-size: 0.85rem;
    line-height: 1.4;
}

.activity-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-white-3);
}

.activity-item:last-child {
    border-bottom: none;
}

.analytics-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.analytics-actions button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.refresh-btn {
    background: var(--color-primary);
    color: white;
}

.export-btn {
    background: var(--color-tertiary);
    color: white;
}

.clear-btn {
    background: #dc3545;
    color: white;
}

.analytics-actions button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .analytics-dashboard {
        width: 95%;
        max-height: 90vh;
    }
    
    .analytics-stats {
        grid-template-columns: 1fr;
    }
    
    .analytics-actions {
        flex-direction: column;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}