/* Reset și Variabile CSS */
:root {
    --primary-color: #2B7A3B;
    --secondary-color: #FFD700;
    --accent-color: #1a5a26;
    --text-dark: #333333;
    --text-light: #666666;
    --text-white: #ffffff;
    --background-light: #f8f9fa;
    --background-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color), #FFC107);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-white);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    min-width: 150px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-white);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    opacity: 0.9;
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-white);
    transform: translateY(-2px);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 1.2rem;
    text-align: center;
    color: var(--text-light);
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Header și Navigation */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.navbar {
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 50px;
    width: auto;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 16px;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Video Background */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(1.2) contrast(1.1);
}

/* Fallback pentru browsere fără video support */
.hero {
    background: url('../assets/hero-background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.hero .container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 700px;
    padding-left: 0;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-family: var(--font-family);
    overflow: hidden;
    border-right: 3px solid var(--text-white);
    white-space: nowrap;
    animation: typing 3s steps(20, end), blink-caret 0.75s step-end infinite, hide-caret 0.1s step-end 3s forwards;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    white-space: nowrap;
    animation: typing-with-cursor 4s steps(40, end) 1s both;
    border-right: 2px solid transparent;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-white);
    margin-bottom: 40px;
    line-height: 1.7;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    animation: fadeInText 1s ease-in-out 4s forwards;
}

/* Typing animation */
@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

/* Typing with cursor control for subtitle */
@keyframes typing-with-cursor {
    0% {
        width: 0;
        border-right: 2px solid var(--text-white);
    }
    1.25% {
        border-right: 2px solid transparent;
    }
    2.5% {
        border-right: 2px solid var(--text-white);
    }
    3.75% {
        border-right: 2px solid transparent;
    }
    5% {
        border-right: 2px solid var(--text-white);
    }
    6.25% {
        border-right: 2px solid transparent;
    }
    7.5% {
        border-right: 2px solid var(--text-white);
    }
    8.75% {
        border-right: 2px solid transparent;
    }
    10% {
        border-right: 2px solid var(--text-white);
    }
    11.25% {
        border-right: 2px solid transparent;
    }
    12.5% {
        border-right: 2px solid var(--text-white);
    }
    13.75% {
        border-right: 2px solid transparent;
    }
    15% {
        border-right: 2px solid var(--text-white);
    }
    16.25% {
        border-right: 2px solid transparent;
    }
    17.5% {
        border-right: 2px solid var(--text-white);
    }
    18.75% {
        border-right: 2px solid transparent;
    }
    20% {
        border-right: 2px solid var(--text-white);
    }
    21.25% {
        border-right: 2px solid transparent;
    }
    22.5% {
        border-right: 2px solid var(--text-white);
    }
    23.75% {
        border-right: 2px solid transparent;
    }
    25% {
        border-right: 2px solid var(--text-white);
    }
    26.25% {
        border-right: 2px solid transparent;
    }
    27.5% {
        border-right: 2px solid var(--text-white);
    }
    28.75% {
        border-right: 2px solid transparent;
    }
    30% {
        border-right: 2px solid var(--text-white);
    }
    31.25% {
        border-right: 2px solid transparent;
    }
    32.5% {
        border-right: 2px solid var(--text-white);
    }
    33.75% {
        border-right: 2px solid transparent;
    }
    35% {
        border-right: 2px solid var(--text-white);
    }
    36.25% {
        border-right: 2px solid transparent;
    }
    37.5% {
        border-right: 2px solid var(--text-white);
    }
    38.75% {
        border-right: 2px solid transparent;
    }
    40% {
        border-right: 2px solid var(--text-white);
    }
    41.25% {
        border-right: 2px solid transparent;
    }
    42.5% {
        border-right: 2px solid var(--text-white);
    }
    43.75% {
        border-right: 2px solid transparent;
    }
    45% {
        border-right: 2px solid var(--text-white);
    }
    46.25% {
        border-right: 2px solid transparent;
    }
    47.5% {
        border-right: 2px solid var(--text-white);
    }
    48.75% {
        border-right: 2px solid transparent;
    }
    50% {
        border-right: 2px solid var(--text-white);
    }
    51.25% {
        border-right: 2px solid transparent;
    }
    52.5% {
        border-right: 2px solid var(--text-white);
    }
    53.75% {
        border-right: 2px solid transparent;
    }
    55% {
        border-right: 2px solid var(--text-white);
    }
    56.25% {
        border-right: 2px solid transparent;
    }
    57.5% {
        border-right: 2px solid var(--text-white);
    }
    58.75% {
        border-right: 2px solid transparent;
    }
    60% {
        border-right: 2px solid var(--text-white);
    }
    61.25% {
        border-right: 2px solid transparent;
    }
    62.5% {
        border-right: 2px solid var(--text-white);
    }
    63.75% {
        border-right: 2px solid transparent;
    }
    65% {
        border-right: 2px solid var(--text-white);
    }
    66.25% {
        border-right: 2px solid transparent;
    }
    67.5% {
        border-right: 2px solid var(--text-white);
    }
    68.75% {
        border-right: 2px solid transparent;
    }
    70% {
        border-right: 2px solid var(--text-white);
    }
    71.25% {
        border-right: 2px solid transparent;
    }
    72.5% {
        border-right: 2px solid var(--text-white);
    }
    73.75% {
        border-right: 2px solid transparent;
    }
    75% {
        border-right: 2px solid var(--text-white);
    }
    76.25% {
        border-right: 2px solid transparent;
    }
    77.5% {
        border-right: 2px solid var(--text-white);
    }
    78.75% {
        border-right: 2px solid transparent;
    }
    80% {
        border-right: 2px solid var(--text-white);
    }
    81.25% {
        border-right: 2px solid transparent;
    }
    82.5% {
        border-right: 2px solid var(--text-white);
    }
    83.75% {
        border-right: 2px solid transparent;
    }
    85% {
        border-right: 2px solid var(--text-white);
    }
    86.25% {
        border-right: 2px solid transparent;
    }
    87.5% {
        border-right: 2px solid var(--text-white);
    }
    88.75% {
        border-right: 2px solid transparent;
    }
    90% {
        border-right: 2px solid var(--text-white);
    }
    91.25% {
        border-right: 2px solid transparent;
    }
    92.5% {
        border-right: 2px solid var(--text-white);
    }
    93.75% {
        border-right: 2px solid transparent;
    }
    95% {
        border-right: 2px solid var(--text-white);
    }
    96.25% {
        border-right: 2px solid transparent;
    }
    97.5% {
        border-right: 2px solid var(--text-white);
    }
    98.75% {
        border-right: 2px solid transparent;
    }
    100% {
        width: 100%;
        border-right: 2px solid transparent;
    }
}

/* Cursor blinking */
@keyframes blink-caret {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: var(--text-white);
    }
}

/* Hide cursor after typing */
@keyframes hide-caret {
    to {
        border-right: 3px solid transparent;
    }
}

/* Hide cursor for subtitle */
@keyframes hide-caret-subtitle {
    to {
        border-right: 2px solid transparent;
    }
}

/* Stop blinking and hide cursor */
@keyframes stop-blink {
    to {
        border-right: 2px solid transparent;
        animation: none;
    }
}

/* Fade in for description */
@keyframes fadeInText {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes handwrite {
    0% {
        opacity: 0;
        transform: rotate(-1deg) translateY(10px);
    }
    100% {
        opacity: 1;
        transform: rotate(-1deg) translateY(0);
    }
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInButtons 1s ease-in-out 5s forwards;
}

/* Animation for buttons */
@keyframes fadeInButtons {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile animations */
@keyframes typing-mobile {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes typing-with-cursor-mobile {
    0% {
        width: 0;
        border-right: 2px solid var(--text-white);
    }
    5% {
        border-right: 2px solid var(--text-white);
    }
    7.5% {
        border-right: 2px solid transparent;
    }
    10% {
        border-right: 2px solid var(--text-white);
    }
    12.5% {
        border-right: 2px solid transparent;
    }
    15% {
        border-right: 2px solid var(--text-white);
    }
    17.5% {
        border-right: 2px solid transparent;
    }
    20% {
        border-right: 2px solid var(--text-white);
    }
    22.5% {
        border-right: 2px solid transparent;
    }
    25% {
        border-right: 2px solid var(--text-white);
    }
    27.5% {
        border-right: 2px solid transparent;
    }
    30% {
        border-right: 2px solid var(--text-white);
    }
    32.5% {
        border-right: 2px solid transparent;
    }
    35% {
        border-right: 2px solid var(--text-white);
    }
    37.5% {
        border-right: 2px solid transparent;
    }
    40% {
        border-right: 2px solid var(--text-white);
    }
    42.5% {
        border-right: 2px solid transparent;
    }
    45% {
        border-right: 2px solid var(--text-white);
    }
    47.5% {
        border-right: 2px solid transparent;
    }
    50% {
        border-right: 2px solid var(--text-white);
        width: 100%;
    }
    52.5% {
        border-right: 2px solid transparent;
        width: 100%;
    }
    55% {
        border-right: 2px solid var(--text-white);
        width: 100%;
    }
    57.5% {
        border-right: 2px solid transparent;
        width: 100%;
    }
    60% {
        border-right: 2px solid var(--text-white);
        width: 100%;
    }
    100% {
        width: 100%;
        border-right: 2px solid transparent;
    }
}

.hero-image {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    padding-right: 50px;
}

.hero-visual {
    position: relative;
    width: 100%;
    max-width: 300px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.hero-icons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 80px;
    position: relative;
    z-index: 2;
    margin-left: auto;
}

.hero-icons i {
    font-size: 2.5rem;
    color: var(--primary-color);
    background: var(--background-white);
    padding: 20px;
    border-radius: 50%;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(46, 125, 50, 0.1);
    cursor: pointer;
    width: 70px;
    height: 70px;
}

.hero-icons i:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: var(--shadow-hover);
    color: var(--accent-color);
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.hero-icons i:nth-child(1) {
    animation: float 3s ease-in-out infinite;
}

.hero-icons i:nth-child(2) {
    animation: float 3s ease-in-out infinite 0.5s;
}

.hero-icons i:nth-child(3) {
    animation: float 3s ease-in-out infinite 1s;
}

.hero-icons i:nth-child(4) {
    animation: float 3s ease-in-out infinite 1.5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Services Section */
.services {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.1) 0%, rgba(76, 175, 80, 0.05) 100%),
                url('https://images.unsplash.com/photo-1416879595882-3373a0480b5b?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(248, 249, 250, 0.2);
    z-index: 1;
}

.services .container {
    position: relative;
    z-index: 2;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--background-white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.service-icon {
    background: var(--gradient-primary);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: var(--transition);
}

.service-icon i {
    font-size: 2rem;
    color: var(--text-white);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-card ul {
    list-style: none;
    text-align: left;
}

.service-card li {
    padding: 5px 0;
    color: var(--text-light);
    position: relative;
    padding-left: 25px;
}

.service-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* About Section */
.about {
    padding: 80px 0;
    background: url('../assets/hero-background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(248, 249, 250, 0.9);
    z-index: 1;
}

.about .container {
    position: relative;
    z-index: 2;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text {
    max-width: 600px;
}

.about-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.7;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.feature i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 5px;
    min-width: 24px;
}

.feature h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.feature p {
    color: var(--text-light);
    line-height: 1.6;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.stat {
    background: var(--background-white);
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.stat h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat p {
    color: var(--text-light);
    font-weight: 500;
}

/* Projects Section */
.projects {
    padding: 80px 0;
    background: url('../assets/hero-background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    z-index: 1;
}

.projects .container {
    position: relative;
    z-index: 2;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--background-white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.project-image {
    background: var(--gradient-primary);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.project-card:hover .project-image::before {
    left: 100%;
}

/* Culori variate pentru proiecte */
.project-image.green {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
}

.project-image.blue {
    background: linear-gradient(135deg, #2196F3, #1565C0);
}

.project-image.orange {
    background: linear-gradient(135deg, #FF9800, #E65100);
}

.project-image.purple {
    background: linear-gradient(135deg, #9C27B0, #6A1B9A);
}

.project-image.teal {
    background: linear-gradient(135deg, #009688, #00695C);
}

.project-image.red {
    background: linear-gradient(135deg, #F44336, #C62828);
}

.project-image i {
    font-size: 3rem;
    color: var(--text-white);
    transition: var(--transition);
    transform: scale(1);
}

.project-card:hover .project-image i {
    transform: scale(1.2) rotate(10deg);
}

.project-content {
    padding: 30px;
}

.project-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.project-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.project-tags span {
    background: var(--background-light);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: url('../assets/hero-background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(248, 249, 250, 0.9);
    z-index: 1;
}

.contact .container {
    position: relative;
    z-index: 2;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: var(--background-white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 5px;
    min-width: 24px;
}

.contact-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.contact-item p {
    color: var(--text-light);
    line-height: 1.5;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--accent-color);
}

.contact-form {
    background: var(--background-white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 16px;
    transition: var(--transition);
    background: var(--background-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(43, 122, 59, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--text-white);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.footer-section p {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #cccccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid #444444;
    padding-top: 20px;
    text-align: center;
    color: #cccccc;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.website-credits {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #999999;
}

.studio-software-link {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    transition: var(--transition);
}

.studio-software-link:hover {
    color: #66BB6A;
    background: rgba(102, 187, 106, 0.1);
    transform: translateY(-1px);
}

.studio-software-link i {
    font-size: 0.8rem;
}

/* Mobile responsive pentru footer credits */
@media (max-width: 768px) {
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .website-credits {
        justify-content: center;
    }
    
    /* Mobile Navigation */
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--background-white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 50px;
        transition: var(--transition);
        box-shadow: var(--shadow);
        z-index: 1000;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 15px 0;
    }
    
    .nav-link {
        font-size: 1.2rem;
        padding: 10px 20px;
    }
    
    /* Hero Section Mobile */
    .hero {
        min-height: 100vh;
        padding-top: 80px;
        padding-bottom: 40px;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
        padding: 20px 15px;
        max-width: 100%;
    }
    
    .hero-content {
        order: 1;
        width: 100%;
        padding: 0;
    }
    
    .hero-image {
        order: 2;
        margin-top: 15px;
        padding: 0;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.1;
        margin-bottom: 12px;
        word-wrap: break-word;
        white-space: normal;
        animation: none; /* Dezactivez animația pentru mobil */
        border-right: none;
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
        padding: 0 10px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.3;
        margin-bottom: 12px;
        word-wrap: break-word;
        white-space: normal;
        animation: none; /* Dezactivez animația pentru mobil */
        border-right: none;
        text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.8);
        padding: 0 10px;
    }
    
    .hero-description {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 25px;
        text-align: center;
        padding: 15px 20px;
        background: rgba(0, 0, 0, 0.4);
        border-radius: 12px;
        backdrop-filter: blur(8px);
        margin: 0 15px 25px 15px;
        word-wrap: break-word;
        text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
    }
    
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        gap: 15px;
        padding: 0 20px;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        padding: 15px 25px;
        font-size: 1rem;
    }
    
    /* Hero Icons Mobile */
    .hero-visual {
        height: 300px;
        margin: 0 auto;
        max-width: 280px;
    }
    
    .hero-icons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        justify-items: center;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 200px;
        max-width: none;
    }
    
    .hero-icons i {
        font-size: 1.8rem;
        width: 55px;
        height: 55px;
        padding: 15px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        border-width: 2px;
    }
    
    .hero-icons i:hover {
        transform: translateY(-5px) scale(1.02);
    }
    
    /* Other responsive adjustments */
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .section-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .section-subtitle {
        font-size: 1rem;
        text-align: center;
        padding: 0 20px;
    }
    
    .service-card {
        padding: 25px;
    }
    
    .service-icon i {
        font-size: 2rem;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
    }
    
    /* Îmbunătățiri pentru text readability */
    .hero-title, .hero-subtitle {
        text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
    }
    
    .hero-description {
        background: rgba(0, 0, 0, 0.3);
        padding: 15px;
        border-radius: 8px;
        backdrop-filter: blur(5px);
    }
    
    /* Touch targets pentru mobile */
    .hero-icons i {
        min-width: 55px;
        min-height: 55px;
        touch-action: manipulation;
    }
    
    .btn {
        min-height: 48px; /* Minim pentru touch targets */
        touch-action: manipulation;
    }
    
    /* Îmbunătățiri pentru nav mobile */
    .hamburger {
        width: 28px;
        height: 28px;
        z-index: 1001;
    }
    
    .hamburger span {
        width: 25px;
        height: 3px;
        margin: 3px 0;
    }
    
    /* Focus states pentru accesibilitate */
    .nav-link:focus,
    .btn:focus,
    .hero-icons i:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
    
    /* Mobile responsiveness for modals */
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .modal-hero {
        height: 250px;
    }
    
    .modal-hero-content h2 {
        font-size: 2rem;
    }
    
    .modal-body {
        padding: 25px;
    }
    
    .modal-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .modal-feature {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        min-height: 90vh;
        padding-top: 100px;
    }
    
    .hero-title {
        font-size: 1.9rem;
        line-height: 1.3;
        margin-bottom: 12px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .hero-description {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 25px;
        padding: 0 5px;
    }
    
    .hero-visual {
        height: 250px;
        max-width: 240px;
    }
    
    .hero-icons {
        width: 160px;
        gap: 12px;
    }
    
    .hero-icons i {
        font-size: 1.5rem;
        width: 45px;
        height: 45px;
        padding: 12px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    
    .hero-buttons {
        gap: 12px;
        padding: 0 10px;
    }
    
    .section-title {
        font-size: 1.7rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    .service-card {
        padding: 20px;
    }
    
    .service-card h3 {
        font-size: 1.2rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .stat h3 {
        font-size: 2rem;
    }
    
    .nav-brand .logo {
        height: 35px;
    }
    
    .brand-text {
        font-size: 1.1rem;
    }
    
    .navbar {
        height: 70px;
        padding: 0 15px;
    }
    
    .nav-menu {
        top: 70px;
        height: calc(100vh - 70px);
    }
    
    .modal-content {
        margin: 10px;
        width: calc(100% - 20px);
        max-height: calc(100vh - 20px);
    }
    
    .modal-hero {
        height: 200px;
    }
    
    .modal-hero h2 {
        font-size: 1.5rem;
    }
    
    .contact-item {
        text-align: center;
        padding: 15px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .footer-section {
        text-align: center;
        margin-bottom: 25px;
    }
}
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
        min-width: 120px;
    }
    
    .service-card,
    .contact-form {
        padding: 25px 20px;
    }
    
    .hero-icons i {
        font-size: 3rem;
        padding: 20px;
    }
}

@media (max-width: 360px) {
    /* Extra small devices - Adaptare specială pentru text lung */
    .container {
        padding: 0 8px;
    }
    
    .hero {
        min-height: 100vh;
        padding-top: 60px;
    }
    
    .hero-title {
        font-size: 1.5rem;
        line-height: 1.2;
        margin-bottom: 8px;
        padding: 0 5px;
        word-break: break-word;
        hyphens: auto;
    }
    
    .hero-subtitle {
        font-size: 0.8rem;
        line-height: 1.3;
        margin-bottom: 8px;
        padding: 0 5px;
        word-break: break-word;
        hyphens: auto;
    }
    
    .hero-description {
        font-size: 0.75rem;
        line-height: 1.4;
        margin-bottom: 15px;
        padding: 10px 12px;
        margin: 0 8px 15px 8px;
        word-break: break-word;
        hyphens: auto;
    }
    
    .hero-visual {
        height: 150px;
        max-width: 150px;
    }
    
    .hero-icons {
        width: 100px;
        gap: 6px;
    }
    
    .hero-icons i {
        font-size: 1rem;
        width: 30px;
        height: 30px;
        padding: 6px;
    }
    
    .btn {
        font-size: 0.85rem;
        padding: 10px 12px;
        min-height: 40px;
    }
    
    .hero-buttons {
        gap: 8px;
        padding: 0 5px;
    }
    
    .section-title {
        font-size: 1.3rem;
        padding: 0 8px;
        word-break: break-word;
    }
    
    .section-subtitle {
        font-size: 0.8rem;
        padding: 0 12px;
    }
    
    .navbar {
        height: 60px;
        padding: 0 8px;
    }
    
    .nav-brand .logo {
        height: 28px;
    }
    
    .brand-text {
        font-size: 0.9rem;
    }
    
    .nav-menu {
        top: 60px;
        height: calc(100vh - 60px);
    }
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* Loading animation for form submission */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: var(--text-white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--background-white);
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
    overflow: hidden;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes modalSlideOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
}

.close {
    color: var(--text-white);
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.close:hover,
.close:focus {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.modal-hero {
    height: 300px;
    background-size: cover !important;
    background-position: center !important;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.modal-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.modal-hero-content {
    text-align: center;
    color: var(--text-white);
    position: relative;
    z-index: 2;
}

.modal-hero-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.modal-hero-content h2 i {
    margin-right: 15px;
    color: var(--secondary-color);
}

.modal-hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.modal-body {
    padding: 40px;
}

.modal-body h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
    text-align: center;
}

.modal-body > p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 30px;
}

.modal-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.modal-feature {
    text-align: center;
    padding: 25px 20px;
    background: var(--background-light);
    border-radius: 12px;
    transition: var(--transition);
}

.modal-feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.modal-feature i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.modal-feature h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.modal-feature p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
}
