/* Unique Visual Effects and Design Elements */

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #2563eb 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Angled Borders */
.angled-border {
    position: relative;
    padding-bottom: 20px;
}

.angled-border::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(135deg, transparent 50%, rgba(37, 99, 235, 0.1) 50%);
    clip-path: polygon(0 0, 100% 0, 100% 50%, 0 100%);
}

/* Overlay Effects */
.overlay-effect {
    position: relative;
    overflow: hidden;
}

.overlay-effect::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(37, 99, 235, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.overlay-effect:hover::before {
    opacity: 1;
}

/* Diagonal Stripes */
.diagonal-stripes {
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(37, 99, 235, 0.03) 10px,
        rgba(37, 99, 235, 0.03) 20px
    );
}

/* Gradient Border Cards */
.gradient-border {
    position: relative;
    background: white;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gradient-border:hover::before {
    opacity: 1;
}

/* Floating Animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.float {
    animation: float 3s ease-in-out infinite;
}

/* Pulse Animation */
@keyframes subtlePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7); }
    50% { box-shadow: 0 0 0 10px rgba(37, 99, 235, 0); }
}

.pulse {
    animation: subtlePulse 2s infinite;
}

/* Shine Effect */
@keyframes shine {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.shine {
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    background-size: 200% 100%;
    animation: shine 3s infinite;
}

/* Tilt Effect on Hover */
.tilt-on-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tilt-on-hover:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(5deg);
}

/* Border Animation */
@keyframes borderAnimation {
    0% { border-color: var(--primary-color); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(37, 99, 235, 0); }
    100% { border-color: var(--secondary-color); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

.border-animate {
    animation: borderAnimation 2s infinite;
}

/* Geometric Shapes Background */
.geometric-bg {
    position: relative;
    overflow: hidden;
}

.geometric-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(45deg, transparent 48%, var(--primary-color) 48%, var(--primary-color) 52%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, var(--secondary-color) 48%, var(--secondary-color) 52%, transparent 52%);
    background-size: 30px 30px;
    background-position: 0 0, 15px 15px;
    opacity: 0.03;
    z-index: 0;
}

/* Text Shadow Effects */
.text-shadow-glow {
    text-shadow: 
        0 0 10px rgba(37, 99, 235, 0.3),
        0 0 20px rgba(37, 99, 235, 0.2);
}

/* Gradient Animation */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.gradient-animate {
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

/* Blob Shape */
.blob-shape {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(245, 158, 11, 0.1));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: blobAnimation 8s ease-in-out infinite;
}

@keyframes blobAnimation {
    0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
}

/* Dot Pattern */
.dot-pattern {
    background-image: radial-gradient(circle, rgba(37, 99, 235, 0.08) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Skewed Elements */
.skew-frame {
    transform: perspective(1000px) rotateY(-2deg);
    transition: transform 0.3s ease;
}

.skew-frame:hover {
    transform: perspective(1000px) rotateY(2deg);
}

/* Neon Border */
.neon-border {
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.5), inset 0 0 10px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
}

.neon-border:hover {
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.8), inset 0 0 15px rgba(37, 99, 235, 0.5);
}

/* Asymmetric Design */
.asymmetric {
    position: relative;
    overflow: hidden;
}

.asymmetric::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 25%, transparent 25%, transparent 75%, rgba(37, 99, 235, 0.05) 75%, rgba(37, 99, 235, 0.05)),
                linear-gradient(135deg, rgba(37, 99, 235, 0.05) 25%, transparent 25%, transparent 75%, rgba(37, 99, 235, 0.05) 75%, rgba(37, 99, 235, 0.05));
    background-size: 50px 50px;
    background-position: 0 0, 25px 25px;
    animation: moveAsymmetric 20s linear infinite;
}

@keyframes moveAsymmetric {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Hexagon Shapes */
.hexagon-pattern {
    background: 
        linear-gradient(130deg, transparent 24%, rgba(37, 99, 235, 0.03) 25%, rgba(37, 99, 235, 0.03) 26%, transparent 27%, transparent 74%, rgba(37, 99, 235, 0.03) 75%, rgba(37, 99, 235, 0.03) 76%, transparent 77%, transparent),
        linear-gradient(56deg, transparent 24%, rgba(37, 99, 235, 0.03) 25%, rgba(37, 99, 235, 0.03) 26%, transparent 27%, transparent 74%, rgba(37, 99, 235, 0.03) 75%, rgba(37, 99, 235, 0.03) 76%, transparent 77%, transparent);
    background-size: 50px 90px;
    background-position: 0 0, 25px 45px;
}

/* Corner Accents */
.corner-accent {
    position: relative;
}

.corner-accent::before,
.corner-accent::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
}

.corner-accent::before {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.corner-accent::after {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

/* Subtle Glow Effect */
.glow {
    position: relative;
}

.glow::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: radial-gradient(circle at center, rgba(37, 99, 235, 0.2), transparent 70%);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.glow:hover::before {
    opacity: 1;
}

/* Line Separator with Gradient */
.line-separator {
    position: relative;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-color) 50%, transparent 100%);
    margin: 40px 0;
}

/* Wavy Underline */
.wavy-underline {
    position: relative;
    padding-bottom: 10px;
    text-decoration: none;
}

.wavy-underline::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><path d="M0,10 Q25,0 50,10 T100,10" stroke="%232563eb" stroke-width="2" fill="none"/></svg>');
    background-repeat: repeat-x;
    background-size: 100px 20px;
}

/* 3D Transform Effect */
.card-3d {
    transition: transform 0.3s ease;
    transform-style: preserve-3d;
}

.card-3d:hover {
    transform: translateZ(20px) rotateX(5deg);
}

/* Staggered Animation */
@keyframes stagger {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.stagger-1 { animation: stagger 0.5s ease 0.1s both; }
.stagger-2 { animation: stagger 0.5s ease 0.2s both; }
.stagger-3 { animation: stagger 0.5s ease 0.3s both; }
.stagger-4 { animation: stagger 0.5s ease 0.4s both; }
.stagger-5 { animation: stagger 0.5s ease 0.5s both; }

/* Responsive Design */
@media (max-width: 768px) {
    .geometric-bg::before {
        opacity: 0.015;
    }
    
    .hexagon-pattern {
        background-size: 40px 70px;
        background-position: 0 0, 20px 35px;
    }
    
    .asymmetric::before {
        animation: moveAsymmetric 15s linear infinite;
    }
}
