:root {
    --warm-orange: #FF7A00;
    --warm-background: #FFF4E6;
    --text-gray: #4A5568;
    --orange-light: #FFE5CC;
}

/* Hero Section */
.hero-section {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #fff9f0 50%, #ffffff 100%);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 122, 0, 0.05) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

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

.hero-section .container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-section h1 {
    text-align: center;
    max-width: 100%;
    white-space: nowrap;
    background: linear-gradient(135deg, #1a1a1a 0%, var(--warm-orange) 50%, #1a1a1a 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 8s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.animate-float {
    margin-bottom: 10rem;
    animation: floatSoft 6s ease-in-out infinite;
}

@keyframes floatSoft {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

/* Service Cards - Modern Glassmorphism */
.service-wrapper {
    display: block;
    width: 100%;
    height: 100%;
    padding: 20px 10px;
    perspective: 1000px;
}

.service-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 2.5rem;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    border: 2px solid rgba(255, 122, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    transform-style: preserve-3d;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 122, 0, 0.05) 0%, 
        transparent 50%, 
        rgba(255, 122, 0, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.service-wrapper:hover .service-card {
    transform: translateY(-12px) rotateX(2deg);
    border-color: var(--warm-orange);
    box-shadow: 
        0 25px 50px rgba(255, 122, 0, 0.15),
        0 0 0 1px rgba(255, 122, 0, 0.1) inset,
        0 0 30px rgba(255, 122, 0, 0.1);
}

.service-wrapper:hover .service-card::before {
    opacity: 1;
}

/* Service Icon - Animated */
.service-card-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--warm-background) 0%, var(--orange-light) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    position: relative;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(255, 122, 0, 0.2);
}

.service-card-icon::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 16px;
    background: linear-gradient(45deg, var(--warm-orange), #ff9a3c, var(--warm-orange));
    background-size: 200% 200%;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    animation: gradient-rotate 3s ease infinite;
}

@keyframes gradient-rotate {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.service-wrapper:hover .service-card-icon {
    transform: translateY(-5px) scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(255, 122, 0, 0.4);
}

.service-wrapper:hover .service-card-icon::after {
    opacity: 0.3;
}

.service-card-icon svg {
    width: 38px;
    height: 38px;
    color: var(--warm-orange);
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(255, 122, 0, 0.3));
}

.service-wrapper:hover .service-card-icon svg {
    transform: scale(1.15);
    filter: drop-shadow(0 4px 8px rgba(255, 122, 0, 0.5));
}

/* Typography */
.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
    transition: color 0.3s ease;
    letter-spacing: -0.02em;
}

.service-wrapper:hover .service-card h3 {
    color: var(--warm-orange);
}

.service-card p {
    color: var(--text-gray);
    line-height: 1.7;
    font-size: 1rem;
}

/* CTA Button */
.cta-button {
    background: linear-gradient(135deg, var(--warm-orange) 0%, #ff9a3c 100%);
    color: white;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(255, 122, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 122, 0, 0.4);
}

/* Project Cards */
.project-card {
    opacity: 0;
    transform: translateY(30px);
}

.project-card.visible {
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hover-lift {
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.hover-lift:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.25);
}

.gradient-border {
    position: relative;
    background: linear-gradient(white, white) padding-box,
        linear-gradient(135deg, #f59e0b, #ef4444, #8b5cf6) border-box;
    border: 3px solid transparent;
    transition: all 0.4s ease;
}

.gradient-border:hover {
    border-width: 4px;
}

.tag-hover {
    transition: all 0.3s ease;
    position: relative;
}

.tag-hover::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--warm-orange), #ff9a3c);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.tag-hover:hover {
    transform: translateY(-3px);
    color: white !important;
    border-color: transparent !important;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.tag-hover:hover::after {
    opacity: 1;
}

.icon-float {
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-8px) rotate(2deg);
    }
    50% {
        transform: translateY(-12px) rotate(0deg);
    }
    75% {
        transform: translateY(-8px) rotate(-2deg);
    }
}

.bg-gradient-warm {
    background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 50%, #fef3c7 100%);
    background-size: 200% 200%;
    animation: gradient-shift 10s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        white-space: normal;
        text-align: center;
    }

    .service-card {
        padding: 2rem;
    }

    .service-card h3 {
        font-size: 1.25rem;
    }
    
    .service-wrapper {
        padding: 15px 5px;
    }
}

/* Smooth scrolling improvements */
* {
    scroll-behavior: smooth;
}

/* Add subtle grid pattern background to services section */
.py-32.bg-white {
    background-image: 
        linear-gradient(rgba(255, 122, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 122, 0, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}
 /* Prevent iframe interaction unless hovered */
 iframe {
     pointer-events: none;
 }

 .group:hover iframe {
     pointer-events: auto;
 }

 /* Custom Bezier for the Splitting Effect */
 .portal-window div {
     transition-timing-function: cubic-bezier(0.87, 0, 0.13, 1);
 }