:root {
    --primary: #4361ee;
    --primary-light: #4895ef;
    --secondary: #7209b7;
    --accent: #4cc9f0;
    --bg: #f8fbff;
    --card-bg: rgba(255, 255, 255, 0.8);
    --text-main: #2b2d42;
    --text-light: #5d607e;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(67, 97, 238, 0.1);
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    height: 80px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.star-icon {
    width: 30px;
    height: 30px;
    background: var(--gradient);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    color: var(--text-light);
}

.nav-links a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 10;
    max-width: 800px;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 40px;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn.primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(67, 97, 238, 0.3);
}

.btn.secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(67, 97, 238, 0.4);
}

/* Background Blobs with more complex movement */
.hero-visual {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
}

.blob-1, .blob-2 {
    position: absolute;
    filter: blur(80px);
    border-radius: 50%;
    z-index: 1;
    opacity: 0.5;
    animation: floating-blob 25s infinite alternate ease-in-out;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(var(--primary), var(--accent));
    top: -100px;
    right: -100px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: linear-gradient(var(--secondary), var(--primary-light));
    bottom: -150px;
    left: -100px;
    animation-delay: -7s;
}

@keyframes floating-blob {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    33% { transform: translate(100px, 50px) scale(1.1) rotate(120deg); }
    66% { transform: translate(-50px, 150px) scale(0.9) rotate(240deg); }
    100% { transform: translate(0, 0) scale(1) rotate(360deg); }
}

/* Floating Animation for Hero Content */
.hero-content {
    animation: hero-float 6s infinite ease-in-out;
}

@keyframes hero-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Glassmorphism for cards */
.service-card, .contact-wrapper {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Button Pulse Animation */
.btn.primary {
    position: relative;
    overflow: hidden;
}

.btn.primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

/* Services */
.services {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    font-weight: 800;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--card-bg);
    padding: 50px 40px;
    border-radius: 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow);
    transition: 0.4s;
}

.service-card:hover {
    transform: translateY(-10px);
    background: var(--white);
}

.service-card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* Projects */
.projects {
    padding: 100px 0;
    background: #eef5ff;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
    cursor: pointer;
}

.project-card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: 0.6s;
}

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(transparent, rgba(67, 97, 238, 0.9));
    color: var(--white);
    transform: translateY(20px);
    opacity: 0;
    transition: 0.4s;
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-card:hover .project-info {
    transform: translateY(0);
    opacity: 1;
}

/* Contact */
.contact {
    padding: 100px 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    background: var(--white);
    padding: 60px;
    border-radius: 40px;
    box-shadow: var(--shadow);
}

.contact-info h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 800;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.info-item .icon {
    width: 50px;
    height: 50px;
    background: #f0f3ff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    font-size: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input, .contact-form textarea {
    padding: 15px 20px;
    border-radius: 15px;
    border: 2px solid #eef2ff;
    background: #fcfdff;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

.contact-form input:focus, .contact-form textarea:focus {
    border-color: var(--primary);
}

/* Footer */
footer {
    padding: 40px 0;
    text-align: center;
    color: var(--text-light);
    border-top: 1px solid #eef2ff;
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 3rem; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .nav-links { display: none; }
}
