/* ===================================
   Time IT Solutions - Custom CSS
   Brand Color: #ff3d00 (Orange)
   Fonts: Raleway, Open Sans
   =================================== */

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #ff3d00;
    --primary-dark: #e63600;
    --secondary: #1a1a1a;
    --text: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --light-bg: #f7f7f7;
    --gray-bg: #efefef;
    --font-primary: 'Raleway', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--white);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: var(--transition);
    -webkit-appearance: none;
    appearance: none;
}

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

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

.btn-outline-primary {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

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

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

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

.btn-block {
    display: block;
    width: 100%;
}

/* ===================================
   Header
   =================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.header-container {
    width: 100%;
    margin: 0;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    flex-shrink: 0;
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
}

.main-nav {
    margin-left: auto;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
    flex-wrap: nowrap;
}

.main-nav li {
    display: flex;
    align-items: center;
}

.main-nav li::after {
    content: '|';
    color: #ccc;
    margin-left: 15px;
    font-weight: 300;
}

.main-nav li:last-child::after {
    content: '';
    margin-left: 0;
}

.main-nav a {
    display: block;
    padding: 10px 12px;
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 13px;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--secondary);
    transition: var(--transition);
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ===================================
   Hero Slider
   =================================== */
.hero-slider {
    position: relative;
    height: 100vh;
    height: 100dvh;
    min-height: 600px;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    width: 80%;
    max-width: 800px;
}

.slide-content .subtitle {
    display: block;
    font-family: Georgia, serif;
    font-style: italic;
    font-size: 22px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-content h1 {
    font-family: var(--font-primary);
    font-size: clamp(36px, 6vw, 78px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slider-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--white);
    background-color: transparent;
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background-color: var(--primary);
    border-color: var(--primary);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition);
    z-index: 10;
}

.slider-arrow:hover {
    opacity: 1;
    color: var(--primary);
}

.slider-prev {
    left: 20px;
}

.slider-next {
    right: 20px;
}

/* ===================================
   Features Section
   =================================== */
.features-section {
    padding: 100px 0 60px;
    background-color: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.feature-item {
    display: flex;
    gap: 20px;
}

.feature-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--primary);
}

.feature-content h3 {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 10px;
    color: var(--secondary);
}

.feature-content p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
}

/* ===================================
   About Section
   =================================== */
.about-section {
    padding: 80px 0;
    background-color: var(--secondary);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
}

.about-section h2 {
    font-family: var(--font-primary);
    font-size: 36px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 20px;
}

.about-subtitle {
    font-family: var(--font-secondary);
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 40px;
    opacity: 0.9;
}

.about-content p {
    margin-bottom: 20px;
    line-height: 1.8;
    opacity: 0.9;
}

/* ===================================
   Content Sections (IT Support, Cyber Security, etc.)
   =================================== */
.content-section {
    position: relative;
    padding: 100px 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--white);
}

section[id] {
    scroll-margin-top: 70px;
}

/* background-attachment: fixed is unreliable/janky on touch devices (iOS Safari, Android) */
@media (max-width: 992px), (hover: none) and (pointer: coarse) {
    .content-section {
        background-attachment: scroll;
    }
}

.section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.light-overlay .section-overlay {
    background-color: rgba(255, 255, 255, 0.5);
}

.light-overlay .section-content {
    color: var(--secondary);
}

.light-overlay .section-content h2 {
    color: var(--secondary);
}

.light-overlay .section-content h3 {
    color: var(--text-light);
}

.light-overlay .section-content p {
    color: var(--text);
    text-align: center;
}

.section-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
}

.section-content h2 {
    font-family: var(--font-primary);
    font-size: 36px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 15px;
}

.section-content h3 {
    font-family: var(--font-secondary);
    font-size: 20px;
    font-weight: 700;
    font-style: italic;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 25px;
    opacity: 0.9;
}

.section-content p {
    margin-bottom: 20px;
    line-height: 1.8;
    opacity: 0.95;
}

/* White Sections (IT Support, Custom Software) */
.white-section {
    padding: 80px 0;
    background-color: var(--white);
    color: var(--text);
}

.white-section .section-content {
    max-width: 900px;
}

.white-section h2 {
    font-family: var(--font-primary);
    font-size: 36px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 15px;
    color: var(--secondary);
}

.white-section h3 {
    font-family: var(--font-secondary);
    font-size: 20px;
    font-weight: 400;
    font-style: italic;
    margin-bottom: 25px;
    color: var(--text-light);
}

.white-section p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--text);
}

/* ===================================
   Remote Support Section
   =================================== */
.remote-section {
    padding: 80px 0;
    background-color: var(--white);
}

.remote-section h2 {
    font-family: var(--font-primary);
    font-size: 36px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 15px;
}

.remote-subtitle {
    font-family: var(--font-secondary);
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 30px;
    color: var(--text-light);
}

.remote-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.remote-content p {
    margin-bottom: 20px;
    font-size: 16px;
    
}

.remote-content .btn {
    margin-top: 10px;
}

/* ===================================
   Blog Section
   =================================== */
.blog-section {
    padding: 80px 0;
    background-color: var(--gray-bg);
}

.blog-section h2 {
    font-family: var(--font-primary);
    font-size: 36px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 40px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    background-color: var(--white);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 25px;
}

.blog-date {
    display: block;
    font-size: 13px;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 600;
}

.blog-content h3 {
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--secondary);
}

.read-more {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.read-more i {
    margin-left: 5px;
    transition: var(--transition);
}

.read-more:hover i {
    margin-left: 10px;
}

/* ===================================
   Contact Section
   =================================== */
.contact-section {
    position: relative;
    padding: 100px 0;
    background-size: cover;
    background-position: center;
    color: var(--white);
}

.contact-section h2 {
    font-family: var(--font-primary);
    font-size: 36px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    position: relative;
    z-index: 1;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.contact-item i {
    font-size: 24px;
    color: var(--primary);
    margin-top: 5px;
}

.contact-item strong {
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
}

.contact-item p {
    font-size: 14px;
    opacity: 0.9;
}

.contact-item a {
    color: var(--white);
}

.contact-item a:hover {
    color: var(--primary);
}

.map-container {
    border-radius: 5px;
    overflow: hidden;
    margin-top: 10px;
}

.contact-form-container {
    background-color: var(--white);
    border-radius: 5px;
    padding: 30px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

/* Honeypot spam trap: kept in the layout and focusable order for bots,
   but positioned off-screen so real visitors never see or fill it in. */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-form label {
    display: block;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 14px;
    color: var(--secondary);
    margin-bottom: 8px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-family: var(--font-secondary);
    font-size: 14px;
    transition: var(--transition);
    -webkit-appearance: none;
    appearance: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

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

.form-status {
    margin-top: 15px;
    padding: 10px;
    border-radius: 3px;
    text-align: center;
    display: none;
}

.form-status.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
}

.form-status.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
}

/* ===================================
   Footer
   =================================== */
.site-footer {
    background-color: var(--secondary);
    color: var(--white);
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo img {
    height: 40px;
}

.footer-info {
    text-align: right;
}

.footer-info p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 5px;
}

.footer-info a {
    color: var(--white);
}

.footer-info a:hover {
    color: var(--primary);
}

/* ===================================
   Back to Top
   =================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-3px);
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-content {
        max-width: 100%;
        padding: 0 20px;
    }
}

/* The nav has 9 items plus the logo, which needs ~1400px of horizontal
   space to lay out on one line without wrapping/overflowing. Below that,
   every laptop, tablet, and phone gets the hamburger menu instead. */
@media (max-width: 1400px) {
    .main-nav {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background-color: var(--white);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 999;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 20px;
        gap: 0;
    }

    .main-nav li::after {
        content: '';
        margin-left: 0;
    }

    .main-nav a {
        padding: 15px;
        border-bottom: 1px solid #eee;
    }

    .mobile-toggle {
        display: flex;
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-item {
        flex-direction: column;
        text-align: center;
    }

    .feature-icon {
        margin: 0 auto;
        font-size: 24px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer-info {
        text-align: center;
    }

    .slide-content h1 {
        font-size: 36px;
    }

    .slide-content .subtitle {
        font-size: 16px;
    }

    .section-content h2,
    .about-section h2,
    .remote-section h2,
    .blog-section h2,
    .contact-section h2 {
        font-size: 28px;
    }

    .about-subtitle {
        font-size: 16px;
    }

    .hero-slider {
        min-height: 500px;
    }

    .slider-arrow {
        display: none;
    }

    .remote-content {
        padding: 0 20px;
    }

    .remote-content .btn {
        width: 100%;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-form-container {
        padding: 20px;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 16px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .map-container {
        margin-top: 10px;
    }

    .map-container iframe {
        height: 200px;
    }

    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 16px;
        bottom: 20px;
        right: 20px;
    }

    .slider-dot {
        width: 14px;
        height: 14px;
    }

    .slider-nav {
        bottom: 20px;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 10px 15px;
    }

    .logo img {
        height: 40px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 13px;
    }

    .features-section,
    .about-section,
    .content-section,
    .remote-section,
    .blog-section,
    .contact-section {
        padding: 60px 0;
    }

    .slide-content h1 {
        font-size: 28px;
    }

    .slide-content .subtitle {
        font-size: 14px;
    }

    .section-content h2,
    .about-section h2,
    .remote-section h2,
    .blog-section h2,
    .contact-section h2 {
        font-size: 24px;
    }

    .light-overlay .section-content p {
        color: var(--text);
        text-align: center;
    }

    .section-content p,
    .about-content p,
    .remote-content p {
        font-size: 14px;
        text-align: center;
    }

    .blog-hero h1 {
        font-size: 24px;
    }

    .blog-content h2 {
        font-size: 20px;
    }

    .blog-content h3 {
        font-size: 16px;
    }
}
