/* CSS for SeifSecurity Website */
/* Updated: April 14, 2025 */

/* Global Reset & Box Sizing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Offset anchor links for sticky header height */
}

body {
    background: url("cyberpunk-city.jpeg") no-repeat center center fixed;
    background-size: cover;
    color: #0ff;
    font-family: "Orbitron", sans-serif;
    text-align: center;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Header & Sticky Navigation --- */
header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* Ensure it stays on top */
    background-color: rgba(10, 10, 30, 0.95); /* Dark background for header */
    padding-top: 15px; /* Space above title */
    padding-bottom: 5px; /* Space below nav */
    box-shadow: 0 2px 15px rgba(0, 255, 255, 0.2); /* Neon cyan shadow */
    transition: background-color 0.3s ease; /* Smooth transition */
}

h1 { /* Site Title */
    font-size: 2.5em; /* Slightly adjusted size */
    font-weight: bold;
    padding: 10px 15px; /* Reduced padding */
    margin-top: 0; /* Reset margin */
    margin-bottom: 10px;
    border: 2px solid #ff00ff; /* Adjusted border */
    display: inline-block;
    max-width: 90%;
    border-radius: 10px; /* Adjusted radius */
    box-shadow: 0 0 8px #ff00ff, 0 0 15px #ff00ff; /* Adjusted shadow */
    background-color: rgba(10, 10, 30, 0.9); /* Match header bg slightly */
    /* --- Subtle Pulse Animation --- */
    animation: pulseGlow 4s infinite ease-in-out;
}

/* --- Pulse Animation Keyframes --- */
@keyframes pulseGlow {
    0%, 100% { text-shadow: 0 0 5px #ff00ff, 0 0 10px #ff00ff; }
    50% { text-shadow: 0 0 8px #ff00ff, 0 0 18px #ff00ff, 0 0 25px rgba(255, 0, 255, 0.5); }
}

/* Navigation within Header */
nav ul {
    list-style: none;
    margin: 10px auto 0 auto; /* Reduced top margin */
    padding: 5px; /* Reduced padding */
    background-color: transparent; /* Remove separate nav background */
    border-radius: 0; /* Remove radius */
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 100%; /* Allow full width within header */
}

nav ul li {
    margin: 5px 10px; /* Adjusted margin */
}

nav ul li a {
    color: #0ff;
    text-decoration: none;
    font-size: 1.1em; /* Adjusted size */
    text-shadow: 0 0 5px #0ff;
    padding: 8px 12px; /* Adjusted padding */
    border-radius: 3px;
    position: relative; /* Needed for pseudo-element */
    transition: color 0.3s ease;
    overflow: hidden; /* Hide underline initially */
}

/* Underline Hover Effect */
nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%; /* Start from center */
    transform: translateX(-50%); /* Center the pseudo-element */
    width: 0; /* Start with no width */
    height: 2px; /* Underline thickness */
    background-color: #ff00ff; /* Neon pink underline */
    transition: width 0.3s ease-out; /* Animate width */
}

nav ul li a:hover,
nav ul li a:focus {
    color: #fff;
    /* background-color: rgba(255, 0, 255, 0.3); REMOVED */
    text-shadow: 0 0 8px #fff;
    outline: none;
}

nav ul li a:hover::after,
nav ul li a:focus::after {
    width: 80%; /* Expand underline to 80% width on hover */
}


/* General Section Styling */
section {
    background-color: rgba(10, 10, 30, 0.9);
    padding: 40px; /* Increased padding */
    margin: 40px auto;
    width: 90%;
    max-width: 900px;
    border-radius: 10px;
    box-shadow: 0 0 15px #0ff;
    text-align: left;
}

section h2 {
    text-align: center;
    margin-bottom: 30px; /* More space */
    font-size: 2em; /* Larger section titles */
}

/* Utility class for neon cyan text */
.neon-text {
    color: #0ff;
    text-shadow:
        0 0 5px #0ff,
        0 0 10px #0ff;
}

/* About Us List */
#about ul {
    list-style: none;
    padding-left: 0;
    margin-top: 15px;
}
#about li {
    background-color: rgba(0, 255, 255, 0.1);
    margin-bottom: 8px;
    padding: 10px 15px;
    border-left: 3px solid #0ff;
    border-radius: 4px;
    color: #eee;
}


/* Forms (Contact & Review) */
form {
    padding: 20px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
    width: 90%;
    max-width: 550px;
    margin: 20px auto;
    text-align: center;
}

input[type="text"],
input[type="email"],
textarea {
    display: block;
    width: 100%;
    margin: 15px auto;
    background: rgba(0, 0, 20, 0.5);
    border: 1px solid #0ff;
    color: #0ff;
    padding: 12px 10px;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1em;
    transition: background-color 0.3s, box-shadow 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    background-color: rgba(0, 0, 40, 0.7);
    outline: none;
    box-shadow: 0 0 8px #0ff;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

/* Buttons */
.glow-button {
    background-color: #ff00ff;
    color: #fff;
    border: none;
    padding: 12px 25px;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 0 8px #ff00ff, 0 0 15px #ff00ff;
    border-radius: 5px;
    transition: background-color 0.3s, box-shadow 0.3s, transform 0.2s;
    display: inline-block;
    text-align: center;
}

.glow-button:hover,
.glow-button:focus {
    background-color: #bf00bf;
    box-shadow: 0 0 12px #ff00ff, 0 0 25px #ff00ff;
    transform: translateY(-2px) scale(1.02); /* Added scale */
    outline: none;
}

/* News Feed Section Specifics */
#news-feed .news-item {
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
    padding-bottom: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#news-feed h3 {
  margin-bottom: 8px;
  font-size: 1.3em;
}
#news-feed p {
    margin-bottom: 15px;
    color: #ccc;
    font-size: 0.95em;
}

#news-feed .news-item a.glow-button {
    padding: 8px 18px;
    font-size: 0.9em;
    margin-top: 10px;
    align-self: flex-start;
}

/* RSS Feed List Styling */
#news-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    text-align: left;
}
#news-list li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed rgba(0, 255, 255, 0.2);
}
#news-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
#news-list a {
    color: #0ff;
    text-decoration: none;
    font-size: 1.1em;
    text-shadow: 0 0 3px #0ff;
    transition: color 0.3s;
}
#news-list a:hover {
    text-decoration: underline;
    color: #fff;
}


/* Reviews Section Styles */
#reviews h3 {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 15px;
    color: #0ff;
    text-shadow: 0 0 5px #0ff, 0 0 10px #0ff;
    font-size: 1.4em;
}

.review-item {
    border: 1px solid rgba(0, 255, 255, 0.5);
    background-color: rgba(0, 0, 50, 0.5);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    color: #eee;
    text-shadow: none;
    box-shadow: inset 0 0 10px rgba(0, 255, 255, 0.1);
}

.review-item p:first-of-type {
  font-style: italic;
  margin-bottom: 15px;
  font-size: 1.05em;
  line-height: 1.7;
}

.review-item .reviewer {
    font-weight: bold;
    color: #0ff;
    text-align: right;
    font-style: normal;
    margin-top: 10px;
    font-size: 0.9em;
    text-transform: uppercase;
}

/* Error Messages for Forms */
.error-message {
  background-color: rgba(255, 0, 0, 0.2);
  border: 1px solid #ff4d4d;
  color: #ffcccc;
  padding: 10px;
  margin-top: 15px;
  border-radius: 4px;
  text-align: left;
  font-weight: normal;
  font-size: 0.9em;
  display: none;
}
.error-message br {
  margin-bottom: 5px;
}

/* --- Pricing Section Styles --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.pricing-item {
    background-color: rgba(0, 0, 50, 0.6);
    padding: 25px;
    border: 1px solid rgba(0, 255, 255, 0.4);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 8px rgba(0, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-item:hover {
    transform: translateY(-7px); /* Increased lift */
    box-shadow: 0 10px 20px rgba(0, 255, 255, 0.25); /* Enhanced shadow */
}

.pricing-item h3 {
    color: #0ff;
    text-shadow: 0 0 5px #0ff;
    margin-bottom: 15px;
    font-size: 1.3em;
    text-align: center;
}

.pricing-item p {
    color: #ccc;
    font-size: 0.95em;
    flex-grow: 1;
    margin-bottom: 20px;
}

.pricing-item .price {
    font-size: 1.5em;
    font-weight: bold;
    color: #ff00ff;
    text-shadow: 0 0 8px #ff00ff;
    text-align: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px dashed rgba(0, 255, 255, 0.2);
}


/* --- Scroll Animation Styles --- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px); /* Start slightly lower */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform; /* Hint browser for performance */
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}
/* --- End Scroll Animation Styles --- */


/* Footer */
footer {
    background-color: rgba(10, 10, 30, 0.9);
    color: #0ff;
    text-align: center;
    padding: 25px;
    margin-top: 40px;
    font-size: 0.95em;
    text-shadow: 0 0 5px #0ff, 0 0 10px #0ff;
    box-shadow: 0 -5px 15px rgba(0, 255, 255, 0.2);
    border-top: 1px solid rgba(0, 255, 255, 0.3);
}

/* ============================== */
/* Responsive Design Adjustments  */
/* ============================== */

/* Medium screens and tablets (<= 768px) */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 80px; /* Adjust for potentially taller mobile header */
    }
    body {
        font-size: 14px;
        background-attachment: scroll;
    }
    header {
        padding-top: 10px; /* Adjust sticky header padding */
    }
    h1 {
      font-size: 1.8em; /* Further reduce size */
      padding: 8px 12px;
      border-width: 2px;
      margin-bottom: 8px;
      animation: none; /* Disable pulse on mobile if desired */
    }
    nav ul {
        /* Stacking is handled by flex-wrap inherently */
        padding: 5px 0;
    }
     nav ul li {
        margin: 5px; /* Adjust margin */
        width: auto; /* Allow items to wrap naturally */
     }
     nav ul li a {
       /* display: block; Remove block */
       padding: 8px 10px; /* Adjust padding */
       /* background-color: transparent; Remove background */
     }
     /* Keep mobile hover simple */
     nav ul li a:hover,
     nav ul li a:focus {
        background-color: rgba(255, 0, 255, 0.3);
     }
     nav ul li a::after {
        display: none; /* Hide underline effect on mobile */
     }

    section {
        margin: 25px auto;
        padding: 20px;
        width: 95%;
    }
    section h2 {
        font-size: 1.6em;
    }
    #news-feed .news-item a.glow-button {
        display: block;
        align-self: center;
        margin-top: 15px;
        width: auto;
        max-width: 250px;
    }
    form {
       width: 95%;
       padding: 15px;
    }
    input[type="text"],
    input[type="email"],
    textarea {
       width: 100%;
       padding: 10px;
    }
    .glow-button {
        padding: 12px 20px;
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
        display: block;
    }
    #contact-form .glow-button,
    #review-form .glow-button {
        max-width: none;
    }
    #news-list a {
        font-size: 1em;
    }
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .pricing-item {
        padding: 20px;
    }
    .pricing-item:hover { /* Reduce hover effect on mobile */
        transform: translateY(-3px);
        box-shadow: 0 6px 12px rgba(0, 255, 255, 0.2);
    }
    /* Adjust scroll animation trigger point if needed */
    .reveal-on-scroll {
        transform: translateY(20px);
    }
}

/* Smaller phone screens (<= 480px) */
@media (max-width: 480px) {
    h1 {
        font-size: 1.6em; /* Even smaller */
        padding: 6px 10px;
    }
    section {
        padding: 15px;
    }
     section h2 {
        font-size: 1.4em;
    }
    nav ul li a {
        font-size: 1em; /* Smaller nav links */
        padding: 6px 8px;
    }
    .review-item {
        padding: 15px;
    }
    footer {
        font-size: 0.9em;
        padding: 15px;
    }
    #news-feed h3 {
        font-size: 1.1em;
    }
    #news-feed p {
        font-size: 0.9em;
    }
    .pricing-item h3 {
        font-size: 1.2em;
    }
    .pricing-item p {
        font-size: 0.9em;
    }
    .pricing-item .price {
        font-size: 1.3em;
    }
}
