:root {
    --bg-color: #030014;
    --text-color: #ffffff;
    --primary-color: #7000ff;
    --secondary-color: #00c6ff;
    --accent-color: #ff007a;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-bg: #0f0c29;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
    border: none;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 0 20px rgba(112, 0, 255, 0.5);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(112, 0, 255, 0.8);
}

.section-padding {
    padding: 100px 0;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: background 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

header.scrolled {
    background: rgba(3, 0, 20, 0.8);
    border-bottom: 1px solid var(--glass-border);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: var(--font-heading);
    letter-spacing: -1px;
    text-decoration: none;
    color: white;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(3, 0, 20, 0.7), rgba(3, 0, 20, 0.7)), url('starn.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -2;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-content {
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
}

/* Services Section */
.services {
    text-align: center;
    background: linear-gradient(rgba(3, 0, 20, 0.9), rgba(3, 0, 20, 0.9)), url('infra.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 40px 30px;
    border-radius: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(112, 0, 255, 0.1), rgba(0, 198, 255, 0.1));
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(112, 0, 255, 0.3);
}

.service-card:hover::before {
    opacity: 1;
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.service-card p {
    color: rgba(255, 255, 255, 0.6);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-img {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.about-img img {
    width: 100%;
    display: block;
    border-radius: 20px;
}

/* Contact Section */
.contact {
    background: linear-gradient(180deg, var(--bg-color), #0f0c29);
}

.footer {
    padding: 50px 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
}

/* Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 40px auto 0;
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(112, 0, 255, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Scroll Reveal Animation */
.reveal {
    position: relative;
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.8s ease;
}

.reveal.active {
    transform: translateY(0);
    opacity: 1;
}

/* Enhancing Glass Effect for mobile */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* In a real app we'd add a hamburger menu */
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .section-padding {
        padding: 60px 0;
    }
}

/* Language Widget */
.language-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1001;
    font-family: var(--font-heading);
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
}

.lang-btn {
    width: auto;
    min-width: 60px;
    height: 60px;
    padding: 0 20px;
    border-radius: 30px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
}

.lang-btn i {
    font-size: 1.2rem;
}

.language-widget:hover .lang-btn {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(112, 0, 255, 0.5);
}

.lang-dropdown {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: bottom right;
    min-width: 150px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.language-widget:hover .lang-dropdown {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.lang-option {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 12px 20px;
    text-align: left;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 500;
    transition: all 0.2s;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.lang-option:hover,
.lang-option.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding-left: 25px;
}

.lang-option::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--secondary-color);
    transition: transform 0.2s;
}

.lang-option:hover::before,
.lang-option.active::before {
    transform: translateY(-50%) scale(1);
}

/* Portfolio Section */
.tab-container {
    max-width: 800px;
    margin: 0 auto;
}

.tab-nav {
    display: flex;
    justify-content: center;
    gap: 1px;
    /* divider look */
    background: var(--glass-border);
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    margin-bottom: 0;
}

.tab-btn {
    flex: 1;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    position: relative;
    border-bottom: 3px solid transparent;
}

.tab-btn:first-child {
    border-top-left-radius: 20px;
}

.tab-btn:last-child {
    border-top-right-radius: 20px;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.tab-btn.active {
    background: linear-gradient(to bottom, rgba(112, 0, 255, 0.2), transparent);
    color: white;
    border-bottom: 3px solid var(--secondary-color);
}

.tab-content {
    display: none;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-top: none;
    border-radius: 0 0 20px 20px;
    padding: 40px;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

.project-info h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.project-info p {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.8);
}

.project-tags {
    list-style: none;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.project-tags li {
    background: rgba(112, 0, 255, 0.2);
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.85rem;
    border: 1px solid rgba(112, 0, 255, 0.3);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Tabs */
@media (max-width: 600px) {
    .tab-nav {
        flex-direction: column;
    }

    .tab-btn {
        border-radius: 0 !important;
        border-bottom: 1px solid var(--glass-border);
        border-left: 3px solid transparent;
    }

    .tab-btn.active {
        border-bottom: 1px solid var(--glass-border);
        border-left: 3px solid var(--secondary-color);
    }
}