/* 
* JPM Security & Services - Style 5
* A creative and modern design with animations
*/

:root {
    --primary-dark: #1a1f2c;
    --primary-light: #ffffff;
    --accent-color: #3498db;
    --accent-hover: #2980b9;
    --text-dark: #2c3e50;
    --text-light: #f8f9fa;
    --gradient-start: #2c3e50;
    --gradient-end: #3498db;
    --border-color: #e9e9e9;
    --bg-light: #f8f9fa;
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: var(--primary-light);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

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

ul {
    list-style: none;
}

section {
    padding: 100px 0;
    position: relative;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    cursor: none;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: var(--primary-light);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.btn-light:hover {
    background: var(--primary-dark);
    color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Custom Cursor */
.cursor {
    position: fixed;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
}

.cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: all 0.2s ease-out;
}

.cursor.active {
    width: 20px;
    height: 20px;
    background: var(--accent-color);
}

.cursor-follower.active {
    width: 50px;
    height: 50px;
    border-width: 2px;
    border-color: var(--accent-hover);
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader {
    position: relative;
}

.logo-text {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: 8px;
    color: var(--primary-light);
    animation: pulse 1.5s infinite;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 0;
    z-index: 100;
    transition: var(--transition);
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 15px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--primary-light);
    line-height: 1;
    transition: var(--transition);
}

.logo-tagline {
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--accent-color);
    margin-left: 15px;
    transition: var(--transition);
}

.header.scrolled .logo-text {
    color: var(--primary-dark);
    font-size: 2rem;
}

.header.scrolled .logo-tagline {
    color: var(--accent-color);
}

/* Menu Toggle */
.menu-toggle {
    display: flex;
    align-items: center;
    cursor: none;
}

.menu-toggle span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-light);
    margin-right: 15px;
    transition: var(--transition);
}

.hamburger {
    width: 30px;
    height: 20px;
    position: relative;
    cursor: none;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--primary-light);
    position: absolute;
    left: 0;
    transition: var(--transition);
}

.hamburger span:first-child {
    top: 0;
}

.hamburger span:last-child {
    bottom: 0;
}

.header.scrolled .menu-toggle span,
.header.scrolled .hamburger span {
    color: var(--primary-dark);
    background-color: var(--primary-dark);
}

/* Fullscreen Menu */
.fullscreen-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.fullscreen-menu.active {
    opacity: 1;
    visibility: visible;
}

.menu-close {
    position: absolute;
    top: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    cursor: none;
}

.menu-close span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-light);
    margin-right: 15px;
}

.close-btn {
    width: 30px;
    height: 20px;
    position: relative;
}

.close-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--primary-light);
    position: absolute;
    left: 0;
    transition: var(--transition);
}

.close-btn span:first-child {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.close-btn span:last-child {
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
}

.menu-content {
    padding: 100px 0;
}

.menu-links ul li {
    margin-bottom: 30px;
}

.menu-link {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-light);
    position: relative;
    display: inline-block;
    transition: var(--transition);
}

.menu-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-light);
    transition: var(--transition);
}

.menu-link:hover {
    transform: translateX(20px);
}

.menu-link:hover::after {
    width: 100%;
}

.menu-info {
    margin-top: 50px;
}

.menu-info h3 {
    font-size: 1.5rem;
    color: var(--primary-light);
    margin-bottom: 20px;
}

.menu-info p {
    color: var(--primary-light);
    opacity: 0.8;
    margin-bottom: 10px;
}

.menu-info p i {
    margin-right: 10px;
}

.menu-social {
    margin-top: 30px;
}

.menu-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--primary-light);
    border-radius: 50%;
    color: var(--primary-light);
    margin-right: 10px;
    transition: var(--transition);
}

.menu-social a:hover {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-color: var(--primary-dark);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 0 50px;
}

.hero-title {
    font-size: 5rem;
    font-weight: 800;
    color: var(--primary-light);
    line-height: 1;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.2s forwards;
}

.hero-text {
    font-size: 1.2rem;
    color: var(--primary-light);
    opacity: 0.8;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.4s forwards;
}

.hero-btns .btn {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.6s forwards;
}

.hero-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    z-index: 0;
}

.hero-img-inner {
    width: 100%;
    height: 100%;
    background-image: url('cytonn-photography-n95VMLxqM2I-unsplash.jpg');
    background-size: cover;
    background-position: center;
    transition: var(--transition);
    transform: scale(1.1);
}

.hero-section:hover .hero-img-inner {
    transform: scale(1);
}

/* Scroll Down */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary-light);
    border-radius: 15px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--primary-light);
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

.arrow {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.arrow span {
    display: block;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid var(--primary-light);
    border-right: 2px solid var(--primary-light);
    transform: rotate(45deg);
    margin: -5px;
    animation: arrow 1.5s infinite;
}

.arrow span:nth-child(2) {
    animation-delay: 0.2s;
}

.arrow span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes arrow {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* Services Section */
.services-section {
    background-color: var(--bg-light);
    padding: 100px 0;
}

.service-card {
    background: var(--primary-light);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.service-card:hover::before {
    opacity: 0.05;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.service-icon i {
    font-size: 30px;
    color: var(--primary-light);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.service-card p {
    color: var(--text-dark);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.service-link {
    color: var(--accent-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.service-link span {
    margin-right: 5px;
}

.service-link i {
    transition: transform 0.3s ease;
}

.service-card:hover .service-link {
    color: var(--accent-hover);
}

.service-link:hover i {
    transform: translateX(5px);
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 1199.98px) {
    .hero-title {
        font-size: 4rem;
    }
    
    .menu-link {
        font-size: 2.5rem;
    }
}

@media (max-width: 991.98px) {
    section {
        padding: 80px 0;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .hero-content {
        padding: 0 30px;
    }
    
    .about-content {
        margin-top: 50px;
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-info {
        margin-bottom: 50px;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        height: auto;
        padding: 150px 0 100px;
    }
    
    .hero-content {
        text-align: center;
        margin-bottom: 50px;
    }
    
    .hero-image {
        position: relative;
        width: 100%;
        height: 300px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .menu-close {
        top: 20px;
        right: 20px;
    }
    
    .menu-link {
        font-size: 2rem;
    }
    
    .cta-inner {
        padding: 50px 30px;
    }
    
    .contact-form-box {
        padding: 30px;
    }
    
    .footer h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .menu-link {
        font-size: 1.8rem;
    }
    
    .about-pattern {
        display: none;
    }
    
    .cursor, .cursor-follower {
        display: none;
    }
    
    body {
        cursor: auto;
    }
    
    a, .btn {
        cursor: pointer;
    }
}