:root {
    --primary-color: #c43587;
    --primary-dark: #b23281;
    --primary-light: #d95a9e;
    --secondary-color: #78276e;
    --secondary-dark: #461d5d;
    --accent-color: #c43587;
    --text-main: #111111;
    --text-muted: #555555;
    --bg-main: #fcfcfc;
    --bg-card: #ffffff;
    --dark-bg: #1a0b23;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    --btn-shadow: rgba(196, 53, 135, 0.3);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    background-image: url('images/honeycomb.svg');
    background-repeat: repeat;
    background-attachment: fixed;
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

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

.text-center {
    text-align: center;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 800;
    line-height: 1.2;
}

h1 {
    font-size: 4rem;
    margin-bottom: 20px;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

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

p {
    margin-bottom: 15px;
    font-weight: 400;
}

.highlight {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
    background: transparent;
}

.navbar.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

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

.nav-links li a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
}

.navbar:not(.scrolled) .nav-links li a {
    color: #ffffff;
}

.navbar:not(.scrolled) .logo img {
    filter: brightness(0) invert(1);
}

.navbar.scrolled .nav-links li a {
    color: var(--text-main);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 35px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 10px 20px var(--btn-shadow);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-dark));
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(196, 53, 135, 0.4);
}

.btn:hover::before {
    opacity: 1;
}

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

.btn.btn-outline::before {
    display: none;
}

.btn.btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Sections */
.section {
    padding: 100px 0;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
    background-color: var(--dark-bg);
}

.hero-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.2;
    background-image: url('images/hex-dark.svg');
    background-size: 800px 1385px;
    background-position: center;
    z-index: 1;
    animation: floating 80s linear infinite;
}

@keyframes floating {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 1600px 1385px;
    }
}


@keyframes upanddown_bottom {
    0% {
        bottom: 12px;
    }

    100% {
        bottom: 5px;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.9) 0%, rgba(10, 10, 10, 0.6) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    text-align: left;
}

.hero-main-logo {
    max-width: 250px;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease both;
    display: block;
}

.hero-content h1 {
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    margin-bottom: 25px;
    animation: fadeInUp 1s ease both;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: #cfcfcf;
    animation: fadeInUp 1.2s ease both;
}

.hero-content .btn {
    animation: fadeInUp 1.4s ease both;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.services {
    background-color: var(--bg-main);
}

/* About Section */
.about {
    background-color: var(--bg-main);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px 60px;
    align-items: center;
}

.about-highlight {
    grid-column: 1 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.about-highlight img {
    height: 60px;
    user-select: none;
    pointer-events: none;
}

.about-highlight p {
    color: var(--text-main);
    font-size: 1.1rem;
    text-align: justify;
    margin: 0;
}

.about-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.glass-card.alt {
    padding: 20px;
    margin-top: 10px;
}

.glass-card.alt::before {
    background-color: var(--secondary-color);
}

.glass-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background-color: var(--primary-color);
}

.glass-card ul {
    list-style: none;
    margin-top: 20px;
}

.glass-card ul li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    font-size: 1.1rem;
}

.glass-card ul li::before {
    content: '⬢';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 0.1rem;
    font-size: 0.9rem;
}

/* Technologies Section */
.dark-section {
    background-color: var(--dark-bg);
    background-image: url('images/simplehex-dark.svg');
    background-size: 60px;
    background-repeat: repeat;
    background-attachment: fixed;
    color: #fff;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.tech-card {
    background: #151515;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #222;
}

.tech-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.tech-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 1px solid #222;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.tech-card:hover img {
    opacity: 1;
}

.tech-card-content {
    padding: 30px;
}

.tech-card-content p {
    color: #aaaaaa;
    font-size: 0.95rem;
}

.tech-card-text {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1a0000 0%, #151515 100%);
    border-color: var(--primary-dark);
}

/* Contact Section */
.contact {
    background-color: var(--bg-card);
}

.contact-header h2 {
    color: var(--text-main);
}

.contact-header p {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 40px auto;
}

.contact-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-form .form-group {
    margin-bottom: 25px;
    text-align: left;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--text-main);
    background-color: #fcfcfc;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--btn-shadow);
    background-color: #fff;
}

.contact-form button[type="submit"] {
    width: 100%;
    font-size: 1.1rem;
    padding: 15px;
    cursor: pointer;
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    background-image: url('images/simplehex-dark.svg');
    background-size: 60px;
    background-repeat: repeat;
    background-attachment: fixed;
    padding: 60px 0 20px 0;
    color: #fff;
    border-top: 1px solid #222;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer-desc {
    margin-top: 15px;
    color: #888;
    font-size: 0.95rem;
}

.footer-logo img {
    height: 80px;
    filter: brightness(0) invert(1);
}

.footer-list {
    list-style: none;
    padding: 0;
}

.footer-list li {
    margin-bottom: 12px;
    color: #888;
    font-size: 0.95rem;
}

.footer-list li a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-list li a:hover {
    color: var(--primary-color);
}

.footer-list li strong {
    color: #ccc;
    font-weight: 600;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #222;
}

.footer-bottom p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
}

.hero::after {
    background: url("images/chevron-down-solid-full.svg");
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    bottom: 5px;
    left: calc(50% - 25px);
    opacity: 0.5;
    animation: upanddown_bottom 2s ease-out infinite alternate;
}

/* Responsive */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-highlight {
        grid-column: 1 / 2;
    }

    /* .nav-links {
        display: none;
    } */

    h1 {
        font-size: 2.5rem;
    }

    .hero-main-logo {
        max-width: 175px;
        margin-bottom: 15px;
        animation: fadeInUp 0.8s ease both;
        display: block;
    }

    .container.hero-content {
        padding: 0 20px;
        /* height: 100vh; */
    }

    .navbar:not(.scrolled) .logo img {
        visibility: hidden;
    }

    #mobile-nav-toggler {
        width: 50px;
        height: 50px;
        cursor: pointer;
        background: url("images/bars-solid-full.svg");
    }

    .navbar.scrolled #mobile-nav-toggler {
        background: url("images/bars-solid-full-dark.svg");
    }

    .navbar:not(.scrolled) #main-nav {
        background: var(--secondary-dark);
        top: 98px;
    }

    #main-nav {
        padding: 20px 40px 20px 20px;
        background: var(--glass-bg);
        /* border-radius: 10px; */
        position: absolute;
        top: 78px;
        right: 0px;
    }

    #main-nav.mobile-hidden {
        display: none;
    }

    .nav-links {
        flex-direction: column;
    }
}


/* Responsive */
@media (max-height: 800px) and (min-width: 901px) {
    h1 {
        font-size: 3rem;
    }

    .hero-main-logo {
        max-width: 200px;
        margin-bottom: 15px;
        animation: fadeInUp 0.8s ease both;
        display: block;
    }

    .container.hero-content {
        padding: 0 20px;
        /* height: 100vh; */
    }
}

#contact-status {
    margin: -10px auto 20px auto;
    background: #ffffff;
    padding: 5px 10px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    scroll-margin-top: 100px;
}
#contact-status.alert-success {
    background: #d1e7de;
}
#contact-status.alert-error {
    background: #f8d7da;
}

.hidden {
    display: none;
}
