/* Main CSS - Global Styles Only */
:root {
    --primary-color: #333;
    --secondary-color: #777;
    --accent-color: #55c2da;
    --background-color: #fff;
    --section-spacing: 4rem;
    --card-bg-color: rgba(245, 245, 245, 0.5);
    --border-radius: 20px;
    --section-title-width: 180px;
    --section-gap: 4rem;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--primary-color);
    background-color: var(--background-color);
    font-size: 16px;
    line-height: 1.6;
}

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

/* Section Container Styles - Used across multiple sections */
.section-container {
    display: flex;
    margin-bottom: var(--section-spacing);
    gap: var(--section-gap);
}

.section-title {
    width: var(--section-title-width);
    font-size: 1.8rem;
    margin: 0;
    flex-shrink: 0;
}

.section-content {
    flex-grow: 1;
    width: calc(100% - var(--section-title-width) - var(--section-gap));
}

/* ===========================
   SECURITY STYLES - Add to bottom of main.css
   =========================== */

/* Security alert styling - isolated and non-conflicting */
.security-alert {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    background: #f39c12 !important;
    color: white !important;
    padding: 12px 16px !important;
    border-radius: 6px !important;
    z-index: 10000 !important;
    font-size: 0.9rem !important;
    max-width: 300px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    line-height: 1.4 !important;
    pointer-events: auto !important;
}

/* Animation for security alerts */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Very subtle input validation - won't interfere with existing styles */
input[style*="border-color: rgb(231, 76, 60)"],
textarea[style*="border-color: rgb(231, 76, 60)"] {
    animation: subtleShake 0.3s ease-in-out;
}

@keyframes subtleShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

/* Security status indicator (small green dot) */
.security-status {
    position: fixed;
    bottom: 10px;
    left: 10px;
    width: 8px;
    height: 8px;
    background: #27ae60;
    border-radius: 50%;
    z-index: 9999;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.security-status:hover {
    opacity: 1;
}

.security-status::after {
    content: "Security Active";
    position: absolute;
    bottom: 12px;
    left: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    transform: translateY(5px);
}

.security-status:hover::after {
    opacity: 1;
    transform: translateY(0);
}

/* Ensure no conflicts with existing portfolio styles */
.security-alert * {
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Security active body class (just for reference, no visual changes) */
body.security-active {
    /* Security is active - no visual changes needed */
}

/* Global Responsive Styles */
@media (max-width: 1024px) {
    .container {
        padding: 1.5rem;
    }

    .section-container {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .section-container {
        flex-direction: column;
        gap: 1rem;
    }

    .section-title {
        width: 100%;
        margin-bottom: 1rem;
    }

    .section-content {
        width: 100%;
    }
}