:root {
    --primary-color: #0D0D2B; /* Deep Blue/Almost Black */
    --secondary-color: #1A1A3D; /* Darker Blue */
    --accent-color: #00E0FF; /* Electric Blue/Cyan */
    --accent-hover-color: #00B8D4;
    --text-color: #E0E0E0;
    --heading-color: #FFFFFF;
    --light-shade: #1E1E48; /* Lighter shade for backgrounds */
    --gradient-start: #00C9FF;
    --gradient-end: #92FE9D;

    --font-primary: 'Poppins', sans-serif;
    --font-code: 'Roboto Mono', monospace;

    --container-width: 1140px;
    --header-height: 80px;
    --border-radius: 8px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--primary-color);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    position: relative;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    color: var(--heading-color);
    line-height: 1.3;
    margin-bottom: 0.75em;
    font-weight: 700;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 900; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

p {
    margin-bottom: 1em;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover, a:focus {
    color: var(--accent-hover-color);
    text-decoration: underline;
}

.text-accent {
    color: var(--accent-color);
}

.text-gradient {
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.text-bold {
    font-weight: 700;
}

.text-center {
    text-align: center;
}

/* Header */
.site-header {
    background-color: rgba(13, 13, 43, 0.85); /* Primary color with transparency */
    backdrop-filter: blur(10px);
    padding: 0.5rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s ease-in-out, background-color 0.3s ease;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--heading-color);
    text-decoration: none;
}
.logo:hover, .logo:focus { text-decoration: none; }

.logo-accent {
    color: var(--accent-color);
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav li {
    margin-left: 2rem;
}

.main-nav a {
    color: var(--text-color);
    font-weight: 600;
    text-decoration: none;
    padding: 0.5em 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}
.main-nav a.active {
    color: var(--accent-color);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}
.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--heading-color);
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

/* Hero Section */
.hero {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-height);
    position: relative;
    overflow: hidden;
    background-image: url('../imgs/hero-bg.jpg'); /* Add your hero background image */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
}

.hero::before { /* Overlay for better text readability */
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(13, 13, 43, 0.7); /* Dark overlay */
}


.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    margin-bottom: 0.5em;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: 2em;
    font-weight: 300;
}

/* Page Hero (for subpages) */
.page-hero {
    padding: calc(var(--header-height) + 4rem) 0 4rem;
    text-align: center;
    background: var(--secondary-color);
    border-bottom: 2px solid var(--accent-color);
}
.page-title { margin-bottom: 0.2em; }
.page-subtitle { font-size: 1.1rem; color: var(--text-color); }


/* Animated background shapes for hero */
.hero-background-shapes {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    overflow: hidden;
    z-index: 1;
}
.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    background: var(--accent-color);
    animation: float 20s infinite ease-in-out;
}
.shape-1 { width: 300px; height: 300px; top: 10%; left: 5%; animation-duration: 22s; }
.shape-2 { width: 200px; height: 200px; bottom: 15%; right: 10%; animation-duration: 18s; animation-delay: -5s;}
.shape-3 { width: 100px; height: 100px; top: 50%; left: 50%; transform: translate(-50%, -50%); animation-duration: 25s; animation-delay: -10s;}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) translateX(20px) rotate(180deg); }
    100% { transform: translateY(0px) rotate(360deg); }
}


/* Buttons */
.cta-button {
    display: inline-block;
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 0.8em 2em;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--accent-color);
    box-shadow: 0 4px 15px rgba(0, 224, 255, 0.3);
}

.cta-button:hover, .cta-button:focus {
    background: var(--accent-hover-color);
    border-color: var(--accent-hover-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 184, 212, 0.4);
    text-decoration: none;
}
.cta-button.large {
    padding: 1em 2.5em;
    font-size: 1.1rem;
}
.learn-more {
    font-weight: 600;
    color: var(--accent-color);
    text-decoration: none;
    display: inline-block;
    margin-top: 0.5em;
}
.learn-more:hover {
    text-decoration: underline;
    color: var(--accent-hover-color);
}

/* Sections */
.section-padding {
    padding: 5rem 0;
}
.bg-light-shade {
    background-color: var(--light-shade);
}
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}
.section-title.small {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    text-align: left;
    margin-bottom: 1.5rem;
}

/* About Me Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.about-image-placeholder {
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    font-family: var(--font-code);
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    box-shadow: 0 0 20px rgba(0, 224, 255, 0.1);
}
.code-art { font-size: 0.9rem; line-height: 1.8; }
.contact-info-inline { margin-top: 1.5rem; }
.contact-info-inline a { display: block; margin-bottom: 0.5rem; }

/* Services Overview / Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.service-card {
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border-color: var(--accent-color);
}
.service-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}
.service-icon img {
    width: 50px;
    height: 50px;
    filter: invert(78%) sepia(85%) saturate(1312%) hue-rotate(134deg) brightness(103%) contrast(101%); /* Makes SVGs accent color */
}
.service-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

/* Detailed Services (Servicii page) */
.service-detail-item {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 4rem;
    padding: 2rem;
    background: var(--secondary-color);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent-color);
}
.service-detail-item.alt-layout {
    flex-direction: row-reverse;
    border-left: none;
    border-right: 4px solid var(--accent-color);
}
.service-detail-icon {
    font-size: 3rem;
    color: var(--accent-color);
    flex-shrink: 0;
    margin-top: 0.2em;
}
.service-detail-icon img {
     width: 50px;
    height: 50px;
    filter: invert(78%) sepia(85%) saturate(1312%) hue-rotate(134deg) brightness(103%) contrast(101%);
}
.service-detail-content ul {
    list-style: none;
    padding-left: 0;
}
.service-detail-content ul li {
    padding-left: 1.5em;
    position: relative;
    margin-bottom: 0.5em;
}
.service-detail-content ul li::before {
    content: '✓';
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Content Blocks (Fonduri, Magazin Online) */
.content-block {
    margin-bottom: 3rem;
}
.content-block:last-child {
    margin-bottom: 0;
}
.styled-list {
    list-style: none;
    padding-left: 0;
}
.styled-list li {
    padding-left: 1.8em;
    position: relative;
    margin-bottom: 0.7em;
}
.styled-list li::before {
    content: '❖'; /* Or any other modern bullet */
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-size: 1.2em;
    line-height: 1;
}

/* Features Grid (Fonduri, Magazin Online) */
.features-grid {
    display: grid;
    gap: 2rem;
}
.features-grid.two-cols { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.features-grid.three-cols { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.feature-item {
    background: var(--secondary-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 3px solid var(--accent-color);
}
.feature-icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 0.8rem;
}
.feature-icon img {
    width: 35px; height: 35px;
    filter: invert(78%) sepia(85%) saturate(1312%) hue-rotate(134deg) brightness(103%) contrast(101%);
}
.feature-item h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    overflow: hidden;
    border: 1px solid var(--light-shade);
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--heading-color);
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}
.faq-question:hover {
    background-color: var(--light-shade);
}
.faq-question::after {
    content: '+';
    font-size: 2rem;
    color: var(--accent-color);
    transition: transform 0.3s ease;
}
.faq-item.active .faq-question::after {
    content: '−';
    transform: rotate(180deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, padding 0.5s ease;
}
.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    margin: 0;
    color: var(--text-color);
}
.faq-item.active .faq-answer {
    max-height: 500px; /* Adjust as needed */
}


/* CTA Section */
.cta-section h2 {
    margin-bottom: 1rem;
}
.cta-section p {
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
}

/* Footer */
.site-footer-bottom {
    background: var(--secondary-color);
    padding: 2rem 0;
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid var(--light-shade);
}
.site-footer-bottom p {
    margin-bottom: 0.3em;
    color: var(--text-color);
}

/* Contact Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 13, 43, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.modal-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}
.modal-container {
    background: var(--secondary-color);
    padding: 2rem 2.5rem;
    border-radius: var(--border-radius);
    position: relative;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 224, 255, 0.15);
    border: 1px solid var(--accent-color);
    text-align: center;
    transform: translateY(-30px) scale(0.95);
    transition: transform 0.4s ease;
}
.modal-overlay.is-visible .modal-container {
    transform: translateY(0) scale(1);
}
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2.5rem;
    line-height: 1;
    color: var(--text-color);
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
}
.modal-close:hover {
    color: var(--accent-color);
    transform: rotate(90deg);
}
.modal-container h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--heading-color);
}
.modal-container p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}
.modal-container p:last-of-type {
    margin-bottom: 0;
}
.modal-container a {
    font-weight: 600;
    word-break: break-all;
}


/* Animations on Scroll */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.animate-on-scroll.fade-in { transform: translateY(30px); }
.animate-on-scroll.fade-in-up { transform: translateY(50px); }
.animate-on-scroll.slide-in-left { transform: translateX(-50px); }
.animate-on-scroll.slide-in-right { transform: translateX(50px); }

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

.animate-on-scroll.delay-1 { transition-delay: 0.2s; }
.animate-on-scroll.delay-2 { transition-delay: 0.4s; }
.animate-on-scroll.delay-3 { transition-delay: 0.6s; }


/* Responsive Design */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    .about-image-placeholder {
        margin-top: 2rem;
    }
    .service-detail-item, .service-detail-item.alt-layout {
        flex-direction: column;
        align-items: center;
        text-align: center;
        border-right: none;
        border-left: 4px solid var(--accent-color);
    }
    .service-detail-item .section-title.small { text-align: center; }
    .service-detail-icon { margin-bottom: 1rem; }
}

@media (max-width: 768px) {
    html { font-size: 15px; }
    .main-nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: var(--secondary-color);
        padding: 1rem 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    }
    .main-nav.nav-open ul {
        display: flex;
    }
    .main-nav li {
        margin: 0;
        text-align: center;
    }
    .main-nav a {
        display: block;
        padding: 1em;
    }
    .main-nav a::after { display: none; } /* No underline for mobile dropdown items */

    .nav-toggle {
        display: block;
    }
    .nav-toggle.open span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .nav-toggle.open span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.open span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero { min-height: 454px;
    padding: 79px 10px 0;
  } 
    .section-padding { padding: 3rem 0; }
}

@media (max-width: 480px) {
    html { font-size: 14px; }
    .logo { font-size: 1.5rem; }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    .section-title { font-size: 1.8rem; }
    .section-title.small { font-size: 1.6rem; }
}