/* ==========================================================================
   HERSHI-D.COM - HIGH-TECH LANDING PAGE STYLES
   ========================================================================== */

/* CSS Custom Properties for Theming */
:root {
    /* Color Palette - High-Tech Theme */
    --primary-color: #00d4ff;
    --secondary-color: #0066ff;
    --accent-color: #ff6b35;
    --dark-bg: #0a0a0a;
    --darker-bg: #000000;
    --light-text: #ffffff;
    --gray-text: #a0a0a0;
    --success-color: #00ff88;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Spacing */
    --section-padding: 6rem 0;
    --container-max-width: 1200px;
    
    /* Animations */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    background: var(--darker-bg);
    color: var(--light-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==========================================================================
   ANIMATED BACKGROUND
   ========================================================================== */

.tech-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
}

.tech-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 102, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 107, 53, 0.05) 0%, transparent 50%);
    animation: backgroundPulse 8s ease-in-out infinite alternate;
}

@keyframes backgroundPulse {
    0% { opacity: 0.3; }
    100% { opacity: 0.8; }
}

/* Floating particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    opacity: 0.6;
    box-shadow: 0 0 10px var(--primary-color);
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Advanced Tech Grid Overlay */
.tech-grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 100px 100px;
    animation: gridShift 15s linear infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes gridShift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 100px); }
}

/* Scanning laser effect */
.laser-scan {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--primary-color) 50%, 
        transparent 100%);
    animation: laserSweep 8s ease-in-out infinite;
    z-index: 5;
    pointer-events: none;
    box-shadow: 0 0 20px var(--primary-color);
}

@keyframes laserSweep {
    0%, 100% { 
        transform: translateY(-100vh);
        opacity: 0;
    }
    10%, 90% {
        opacity: 1;
    }
    50% {
        transform: translateY(100vh);
        opacity: 0.8;
    }
}

/* ==========================================================================
   HEADER STYLES
   ========================================================================== */

.global-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    transition: var(--transition-smooth);
}

.header-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5));
    transition: var(--transition-smooth);
}

.logo:hover {
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.8));
    transform: scale(1.05);
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 10;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 3s ease-in-out infinite alternate, titleFloat 6s ease-in-out infinite;
    line-height: 1.1;
    position: relative;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
}

.hero-title::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    filter: blur(20px);
    opacity: 0.3;
    z-index: -1;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes titleGlow {
    0% { filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.5)); }
    100% { filter: drop-shadow(0 0 40px rgba(0, 212, 255, 0.9)); }
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    margin-bottom: 2rem;
    color: var(--gray-text);
    font-weight: 300;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.tech-tagline {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--success-color);
    margin-bottom: 3rem;
    animation: typewriter 2s steps(40) 1s both;
    border-right: 2px solid var(--success-color);
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--darker-bg);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease-out 1.5s both;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.3);
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */

.services-section {
    padding: var(--section-padding);
    position: relative;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(45deg, var(--primary-color), var(--light-text));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--light-text);
}

.service-description {
    color: var(--gray-text);
    line-height: 1.6;
}

/* ==========================================================================
   PORTFOLIO SECTION
   ========================================================================== */

.portfolio-section {
    padding: var(--section-padding);
    background: rgba(0, 0, 0, 0.3);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.portfolio-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 212, 255, 0.1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.portfolio-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 212, 255, 0.1), rgba(0, 102, 255, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-card:hover::after {
    opacity: 1;
}

.portfolio-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 25px 50px rgba(0, 212, 255, 0.3);
}

.client-logo {
    height: 80px;
    width: auto;
    margin-bottom: 1.5rem;
    filter: brightness(0.8);
    transition: var(--transition-smooth);
}

.portfolio-card:hover .client-logo {
    filter: brightness(1.2) drop-shadow(0 0 20px rgba(0, 212, 255, 0.5));
    transform: scale(1.1);
}

.portfolio-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--light-text);
}

.portfolio-url {
    color: var(--primary-color);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.portfolio-url:hover {
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-color);
}

.portfolio-description {
    color: var(--gray-text);
    margin-top: 1rem;
    font-size: 0.95rem;
}

/* ==========================================================================
   TECH ANIMATIONS & EFFECTS
   ========================================================================== */

/* Glitch effect for special elements */
.glitch {
    position: relative;
    animation: glitch 2s linear infinite;
}

@keyframes glitch {
    2%, 64% {
        transform: translate(2px, 0) skew(0deg);
    }
    4%, 60% {
        transform: translate(-2px, 0) skew(0deg);
    }
    62% {
        transform: translate(0, 0) skew(5deg);
    }
}

/* Neon glow effect */
.neon-glow {
    text-shadow: 
        0 0 5px var(--primary-color),
        0 0 10px var(--primary-color),
        0 0 15px var(--primary-color),
        0 0 20px var(--primary-color);
}

/* Holographic effect */
.holographic {
    background: linear-gradient(45deg, 
        var(--primary-color), 
        var(--secondary-color), 
        var(--accent-color), 
        var(--primary-color)
    );
    background-size: 400% 400%;
    animation: holographicShift 4s ease-in-out infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes holographicShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Matrix-style code rain */
.code-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    opacity: 0.1;
}

.code-line {
    position: absolute;
    top: -100%;
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--success-color);
    animation: rain 10s linear infinite;
    white-space: nowrap;
}

@keyframes rain {
    to {
        transform: translateY(calc(100vh + 100px));
    }
}

/* ==========================================================================
   SCROLL ANIMATIONS
   ========================================================================== */

.fade-in-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ==========================================================================
   FOOTER STYLES
   ========================================================================== */

.global-footer {
    background: var(--darker-bg);
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    padding: 3rem 0 1rem;
    text-align: center;
}

.footer-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-text {
    color: var(--gray-text);
    margin-bottom: 1rem;
}

.footer-signature {
    color: var(--primary-color);
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 768px) {
    .header-content {
        padding: 1rem;
    }
    
    .hero-section {
        padding: 1rem;
        min-height: 100vh;
    }
    
    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card,
    .portfolio-card {
        padding: 1.5rem;
    }
    
    .container {
        padding: 0 1rem;
    }
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.text-center { text-align: center; }
.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.text-accent { color: var(--accent-color); }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
