* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
}

/* Static Background Image */
.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/base2.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: -1;
    opacity: 0.8;
    transform: translateY(50px);
}

/* Remove old canvas styling */
/* .mystical-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.9;
} */

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 15, 25, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 50px;
    z-index: 1000;
    border-bottom: 1px solid rgba(138, 43, 226, 0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #9370db;
    text-decoration: none;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(147, 112, 219, 0.5);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: #9370db;
    text-shadow: 0 0 8px rgba(147, 112, 219, 0.6);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(90deg, #9370db, #8a2be2);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 3;
    position: relative;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 24px;
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 700;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(107, 70, 193, 0.3);
    letter-spacing: 1px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: #f8fafc;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 400;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    text-decoration: none;
    letter-spacing: 0.5px;
    line-height: 1.4;
    opacity: 0.95;
}

.cta-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 16px 28px;
    background: linear-gradient(135deg, #6b46c1, #8b5cf6);
    color: #ffffff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    text-transform: none;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 20px rgba(107, 70, 193, 0.25);
    z-index: 1001;
    cursor: pointer;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    line-height: 1.2;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(107, 70, 193, 0.35);
}

.cta-button:active {
    transform: translateY(0px);
    box-shadow: 0 2px 15px rgba(107, 70, 193, 0.3);
}

/* Services Section */
.services-section {
    padding: 10px 50px;
    background: rgba(10, 5, 15, 0.9);
    position: relative;
    z-index: 2;
    perspective: 1200px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 10px;
    color: #9370db;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.services-grid {
    position: relative;
    width: 800px;
    height: 600px;
    margin: 10px auto;
    animation: rotate360 30s linear infinite;
    transform-style: preserve-3d;
}

.service-card {
    position: absolute;
    width: 300px;
    background: rgba(25, 15, 35, 0.8);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(147, 112, 219, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    transform-style: preserve-3d;
}

@keyframes rotate360 {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}

.service-card:nth-child(1) {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateZ(250px);
    --card-rotation: 0deg;
}

.service-card:nth-child(2) {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateY(90deg) translateZ(250px);
    --card-rotation: 90deg;
}

.service-card:nth-child(3) {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateY(180deg) translateZ(250px);
    --card-rotation: 180deg;
}

.service-card:nth-child(4) {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateY(270deg) translateZ(250px);
    --card-rotation: 270deg;
}

.services-grid:hover {
    animation-play-state: paused;
}

.service-card:hover {
    border-color: rgba(147, 112, 219, 0.5);
    box-shadow: 0 10px 30px rgba(147, 112, 219, 0.2);
    transform: translate(-50%, -50%) rotateY(var(--card-rotation, 0deg)) translateZ(280px) translateY(-10px);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #9370db;
    text-shadow: 0 0 8px rgba(147, 112, 219, 0.5);
}

.service-card ul {
    list-style: none;
    color: #cccccc;
}

.service-card li {
    margin: 10px 0;
    padding-left: 20px;
    position: relative;
}

.service-card li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: #9370db;
    font-weight: bold;
}

/* Gallery Section */
.gallery-section {
    padding: 30px 50px;
    background: rgba(15, 10, 20, 0.9);
    position: relative;
    z-index: 2;
}

.gallery-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.gallery-item {
    position: relative;
    background: rgba(25, 15, 35, 0.8);
    border-radius: 15px;
    border: 1px solid rgba(147, 112, 219, 0.2);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 250px;
}

.gallery-item:hover {
    transform: translateY(-5px);
    border-color: rgba(147, 112, 219, 0.5);
    box-shadow: 0 10px 30px rgba(147, 112, 219, 0.2);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    color: #9370db;
    margin: 0 0 5px 0;
    font-size: 1.2rem;
}

.gallery-overlay p {
    margin: 0;
    color: #cccccc;
    font-size: 0.9rem;
}

/* About Section */
.about-section {
    padding: 100px 50px;
    background: rgba(15, 10, 20, 0.9);
    position: relative;
    z-index: 2;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #cccccc;
}

/* Contact Section */
.contact-section {
    padding: 100px 50px;
    background: rgba(10, 5, 15, 0.9);
    position: relative;
    z-index: 2;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #9370db;
    text-shadow: 0 0 8px rgba(147, 112, 219, 0.5);
}

.contact-info p {
    margin: 15px 0;
    font-size: 1.1rem;
    color: #cccccc;
}

/* Footer */
.footer {
    padding: 50px;
    background: rgba(5, 0, 10, 0.95);
    text-align: center;
    border-top: 1px solid rgba(147, 112, 219, 0.3);
}

.footer p {
    color: #cccccc;
    margin: 10px 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }
    
    .nav-menu {
        gap: 20px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .services-section,
    .gallery-section,
    .about-section,
    .contact-section {
        padding: 50px 20px;
    }
    
    .section-title {
        font-size: 2rem;
    }
}