/* Custom styles for Rebellion Software */

/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Rock+Salt&display=swap');

:root {
    --rebellion-red: #c9243f;
    --dark-bg: #0a0a0a;
    --darker-bg: #050505;
    --text-color: #f5f5f5;
    --accent-gray: #333333;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23222222' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
}

/* Brutalist headings */
h1, h3, .brand-text {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
}

h2 {
    /* font-family: 'Rock Salt', cursive; */
    letter-spacing: 1px;
    font-size: 2.5rem;
    margin: 2.5rem 0;
    text-shadow: 3px 3px 0px rgba(0, 0, 0, 0.3);
    position: relative;
}

h2 span.text-rebellion-red {
    position: relative;
    display: inline-block;
    transform: rotate(2deg);
}

h1 {
    font-size: 4.5rem;
    line-height: 1;
    text-shadow: 3px 3px 0px var(--rebellion-red);
}

/* Distressed borders */
.brutal-border {
    border: 2px solid var(--rebellion-red);
    position: relative;
}

.brutal-border::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: -5px;
    bottom: -5px;
    border: 1px solid rgba(201, 36, 63, 0.5);
    z-index: -1;
    pointer-events: none;
}

/* Glitch effect for hero text */
.glitch-text {
    position: relative;
    animation: glitch 5s infinite;
}

@keyframes glitch {
    0% { transform: skewX(0deg); }
    2% { transform: skewX(10deg); filter: drop-shadow(2px 0 var(--rebellion-red)); }
    4% { transform: skewX(0deg); filter: none; }
    20% { transform: skewX(0deg); }
    22% { transform: skewX(-5deg); filter: drop-shadow(-2px 0 var(--rebellion-red)); }
    24% { transform: skewX(0deg); filter: none; }
    100% { transform: skewX(0deg); }
}

/* Smooth transitions */
a, button {
    transition: all 0.3s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--darker-bg);
}

::-webkit-scrollbar-thumb {
    background-color: var(--rebellion-red);
    border-radius: 0;
    border: 2px solid var(--darker-bg);
}

/* Form elements */
input, textarea, button, .button {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
    /* border-radius: 0 !important; */
}

input, textarea {
    background-color: rgba(0, 0, 0, 0.5) !important;
    border: 1px solid #333 !important;
}

input:focus, textarea:focus {
    border: 1px solid var(--rebellion-red) !important;
    box-shadow: 0 0 0 2px rgba(201, 36, 63, 0.25) !important;
}

button, .button {
    position: relative;
    overflow: hidden;
    background: var(--rebellion-red) !important;
    color: white !important;
    font-weight: bold !important;
    text-transform: uppercase;
    transition: all 0.3s ease !important;
}

button:hover, .button:hover {
    background: #b01c33 !important;
    transform: translateY(-2px);
}

button:active, .button:active {
    transform: translateY(1px);
}

/* Angled containers */
.angled-bg {
    clip-path: polygon(0 0, 100% 5%, 100% 95%, 0 100%);
    padding: 6rem 2rem !important;
}

.angled-bg-reverse {
    clip-path: polygon(0 5%, 100% 0, 100% 100%, 0 95%);
    padding: 6rem 2rem !important;
}

/* Animation for hero section */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-animation {
    animation: fadeIn 1s ease-out;
}

/* Custom link styles */
.nav-link {
    position: relative;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-color);
    padding-bottom: 3px;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--rebellion-red);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--rebellion-red) !important;
}

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

/* Card styles */
.brutal-card {
    background-color: rgba(10, 10, 10, 0.8) !important;
    border-left: 4px solid var(--rebellion-red) !important;
    transition: transform 0.3s ease;
}

.brutal-card:hover {
    transform: translateX(5px);
}

/* Team member cards */
.team-card {
    position: relative;
    overflow: hidden;
}

.team-card img {
    filter: grayscale(100%) contrast(120%);
    transition: all 0.5s ease;
}

.team-card:hover img {
    filter: grayscale(0%);
}

/* Services icon */
.service-icon {
    display: inline-block;
    color: var(--rebellion-red);
    font-size: 2.5rem;
}

/* Brutalist grid lines */
.grid-lines {
    position: relative;
}

.grid-lines::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to right, rgba(51, 51, 51, 0.1) 1px, transparent 1px),
                       linear-gradient(to bottom, rgba(51, 51, 51, 0.1) 1px, transparent 1px);
    background-size: 25px 25px;
    pointer-events: none;
}

/* Noise overlay */
.noise-overlay {
    position: relative;
}

.noise-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.3;
    z-index: -1;
}

/* Section title line decoration */
.section-title-container {
    position: relative;
    display: inline-block;
}

.section-title-container::before,
.section-title-container::after {
    content: '';
    position: absolute;
    height: 3px;
    background-color: var(--rebellion-red);
    width: 60px;
    top: 50%;
}

.section-title-container::before {
    right: 100%;
    margin-right: 20px;
}

.section-title-container::after {
    left: 100%;
    margin-left: 20px;
}
