:root {
    --primary-color: #00d2ff;
    --secondary-color: #3a7bd5;
    --bg-color: #0f0c29;
    --card-bg: rgba(255, 255, 255, 0.05);
    --text-color: #f0f0f0;
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(to right, #0f0c29, #302b63, #24243e);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

span {
    color: var(--primary-color);
}

header {
    background: rgba(15, 12, 41, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 10%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo img {
    height: 45px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin: 0 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 400;
    transition: 0.3s;
}

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

.menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-content {
    flex: 1;
    animation: slideInLeft 1s ease-out;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.hero-btns .btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    margin-right: 1rem;
    transition: 0.3s;
    display: inline-block;
}

.btn.primary {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
}

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

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 210, 255, 0.3);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    animation: slideInRight 1s ease-out;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    box-shadow: 0 0 50px rgba(0, 210, 255, 0.4);
    animation: blobify 8s infinite alternate ease-in-out;
}

/* Common Sections */
section {
    padding: 6rem 10%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--card-bg);
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--glass-border);
    transition: 0.3s;
    backdrop-filter: blur(10px);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
}

/* Projects */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    border-radius: 15px;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    transition: 0.3s;
}

.project-img img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.project-info {
    padding: 1.5rem;
}

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

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1.5rem;
}

.socials {
    margin-top: 2rem;
}

.socials a {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-right: 1.5rem;
    transition: 0.3s;
}

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

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

.contact-form input, .contact-form textarea {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 10px;
    border: none;
    background: var(--card-bg);
    color: white;
    border: 1px solid var(--glass-border);
}

.contact-form textarea {
    height: 150px;
}

footer {
    padding: 2rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
}

/* Animations */
@keyframes slideInLeft {
    from { transform: translateX(-100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes blobify {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: 1s all ease;
}

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

/* Responsive */
@media (max-width: 991px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 10rem;
    }
    .hero-content h1 { font-size: 3rem; }
    .hero-image { margin-top: 3rem; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .menu-btn { display: block; }
}
