:root {
    --primary-color: #00bcd4;
    
    --background-dark: #0f172a;
    --background-medium: #1e293b;
    --background-light: #334155;
    
    --text-light: #e2e8f0;
    --text-dark: #94a3b8;
    
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    --glass-bg: rgba(30, 41, 59, 0.6); 
    --glass-border: rgba(51, 65, 85, 0.7); 
}

body {
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    background-color: var(--background-dark);
    color: var(--text-light);
    line-height: 1.7;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

.container {
    width: 92%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 30px 0;
}

h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

h3 {
    font-size: 2.2em;
    padding-bottom: 10px;
    position: relative;
    display: inline-block;
}
    h3::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%; 
        height: 3px;
        background-color: var(--primary-color);
        box-shadow: 0 0 8px rgba(0, 188, 212, 0.5); 
    }

section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
    overflow: hidden;
    border-bottom: 1px solid var(--background-light);
}
section:last-of-type { border-bottom: none; }

/* Kiemelések */
.highlight-hero, .highlight-pricing {
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: underline wavy 2px;
    text-underline-offset: 4px;
    text-shadow: 0 0 8px rgba(0, 188, 212, 0.3);
}

.highlight-tech {
    font-family: monospace;
    font-weight: 700;
    color: var(--background-dark);
    background-color: var(--primary-color);
    padding: 2px 6px;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 188, 212, 0.5);
    display: inline-block;
}

.highlight-list { font-weight: 800; color: var(--text-light); }
.tech-group li .highlight-list {
    color: var(--primary-color);
    text-shadow: 0 0 5px rgba(0, 188, 212, 0.3);
}


/* Gombok - szét vannak másolva, ahogy kell */

.cta-button-header {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-align: center;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: var(--primary-color); 
    color: white !important; 
    box-shadow: 0 0 15px 0 rgba(0, 188, 212, 0.5);
}

.cta-button-large {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-align: center;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: var(--primary-color); 
    color: white !important; 
    box-shadow: 0 0 15px 0 rgba(0, 188, 212, 0.5);
    font-size: 1.3em;
}

.discord-button {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-align: center;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: var(--primary-color); 
    color: white !important; 
    box-shadow: 0 0 15px 0 rgba(0, 188, 212, 0.5);
}

#contact button[type="submit"] {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-align: center;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: #00bcd4; /* miért nem a változót használja?? */
    color: white !important; 
    box-shadow: 0 0 15px 0 rgba(0, 188, 212, 0.5);
}


.cta-button-header:hover, 
.cta-button-large:hover, 
.discord-button:hover, 
#contact button[type="submit"]:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3); 
    filter: brightness(1.2); 
}


/* Header */
header {
    background-color: var(--background-dark);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--background-light); 
}

header .container {
    display: flex; 
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2.2em;
    font-weight: 900;
    color: var(--text-light); 
    animation: fadeInDown 1.2s ease-out;
    text-shadow: 0 0 10px rgba(0, 188, 212, 0.4); 
    line-height: 0; 
}

.developer-logo-img {
    height: 24px;
    width: auto;
    vertical-align: middle;
    margin: 0 8px;
    filter: invert(1) drop-shadow(0 0 5px rgba(0, 188, 212, 0.7)); 
}

.header .logo .new-oz-logo {
    height: 80px;
    vertical-align: middle;
    filter: drop-shadow(0 0 15px rgba(0, 188, 212, 0.3)); 
}

nav {
    display: flex; 
    align-items: center;
}

nav a {
    color:var(--text-dark); 
    margin-left: 40px;
    padding: 8px 0;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease; 
}

nav a:hover { color: var(--text-light); }

nav a::after { 
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(0, 188, 212, 0.7); 
    transition: width 0.3s ease-out;
}

nav a:hover::after {
    width: 100%;
}


/* Language Dropdown */
.language-dropdown {
    position: relative;
    display: inline-block;
    margin-left: 40px;
}

.dropdown-toggle {
    background-color: transparent;
    border: 1px solid var(--background-light); 
    border-radius: 5px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-body);
    color: var(--text-dark);
    font-weight: 700;
    font-size: 0.9em;
    transition: all 0.3s;
}

.dropdown-toggle:hover,
.language-dropdown:hover .dropdown-toggle {
    background-color: var(--background-medium);
    border-color: var(--primary-color); 
    color: var(--text-light);
}

.dropdown-toggle .arrow {
    margin-left: 8px;
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.language-dropdown:hover .arrow {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none; 
    position: absolute;
    top: 100%; 
    left: 0;
    background-color: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-top: none;
    border-radius: 0 0 5px 5px;
    min-width: 100%;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    z-index: 1001; 
    overflow: hidden; 
}

.language-dropdown:hover .dropdown-content {
    display: block;
}

.lang-option {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    text-decoration: none;
    color: var(--text-light) !important; 
    font-weight: 600;
    font-size: 0.9em;
    margin-left: 0 !important; 
    transition: background-color 0.3s, color 0.3s;
}

.lang-option::after { display: none !important; }

.lang-option:hover {
    background-color: var(--primary-color);
    color: white !important; 
}

.flag-icon {
    width: 24px; 
    height: 18px; 
    margin-right: 10px;
    background-size: cover;
    background-position: center;
    border-radius: 2px;
    box-shadow: 0 0 3px rgba(0,0,0,0.4);
}

.flag-icon-en { background-image: url('https://flagcdn.com/w40/gb.png'); }
.flag-icon-hu { background-image: url('https://flagcdn.com/w40/hu.png'); }


/* Hero */
#hero {
    background: linear-gradient(135deg, var(--background-dark) 0%, #1e293b 100%);
    color: white;
    padding: 160px 0 140px 0;
    text-align: center;
    border-bottom: 5px solid var(--primary-color); 
    box-shadow: 0 5px 20px rgba(0, 188, 212, 0.2); 
    position: relative;
    overflow: hidden;
}

#hero::before { 
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(51, 65, 85, 0.3) 1px, transparent 1px), 
        linear-gradient(90deg, rgba(51, 65, 85, 0.3) 1px, transparent 1px);
    background-size: 40px 40px; 
    opacity: 0.5;
    animation: backgroundMove 60s linear infinite; 
    z-index: -1;
}

#hero h2 {
    font-size: 4.5em;
    margin-bottom: 25px;
    color: var(--primary-color);
    animation: fadeInDown 1.5s ease-out;
    text-shadow: 0 0 15px rgba(0, 188, 212, 0.5); 
}

.subtitle {
    font-size: 2em;
    color: var(--text-dark); 
    margin-bottom: 60px;
    font-weight: 400;
    animation: fadeInUp 1.8s ease-out;
}


/* Services */
#services {
    background-color: transparent; 
    text-align: center;
}

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

.service-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    border-radius: 12px;
    transition: all 0.4s ease-in-out;
    padding: 45px;
    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(0, 188, 212, 0.1) 0%, rgba(0, 0, 0, 0) 50%); 
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.service-card:hover::before { opacity: 1; }

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 0 40px rgba(0, 188, 212, 0.3); 
    border-color: var(--primary-color);
}

.service-card h4 {
    position: relative;
    padding-left: 50px; 
    margin-top: 0;
    padding-bottom: 15px;
    color: var(--text-light); 
    font-size: 1.5em;
    text-shadow: none; 
}

.service-card h4::before {
    font-family: var(--font-heading);
    font-size: 2em;
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    line-height: 1;
    font-weight: 700;
    content: '💻'; 
    transition: transform 0.3s ease;
    text-shadow: 0 0 8px rgba(0, 188, 212, 0.5); 
}

.service-card:nth-child(1) h4::before { content: '⚙️'; }
.service-card:nth-child(2) h4::before { content: '🤖'; }
.service-card:nth-child(3) h4::before { content: '🌐'; }

.service-card:hover h4::before {
    transform: translateY(-50%) rotate(5deg) scale(1.1);
}

.pricing-info {
    background-color: var(--background-medium); 
    border-left: 6px solid var(--primary-color); 
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    margin-top: 70px;
    text-align: left;
}
.pricing-info h4 {
    color: var(--text-light);
    text-shadow: none; 
}
.pricing-info h4::before {
    content: '💰'; 
    color: var(--primary-color); 
    font-size: 1.5em;
    margin-right: 15px;
    text-shadow: 0 0 8px rgba(0, 188, 212, 0.5); 
}
.pricing-info p {
    font-weight: 600; 
    color: var(--text-dark); 
}


/* Tech */
#technologies {
    background-color: transparent; 
    color: var(--text-light);
}

#technologies h3 { margin-bottom: 60px; }

.tech-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap; 
}

.tech-group {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    padding: 40px;
    border-radius: 12px;
    text-align: left;
    flex: 1;
    min-width: 300px;
    max-width: 45%;
    transition: all 0.4s ease;
}

.tech-group:hover {
    transform: scale(1.03);
    box-shadow: 0 0 40px rgba(0, 188, 212, 0.5); 
    border-color: var(--primary-color);
}

.tech-group h4 {
    color: var(--primary-color); 
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 15px;
    margin-top: 0;
    font-size: 1.6em;
    text-shadow: none; 
}

.tech-group ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.tech-group li {
    padding: 12px 0;
    position: relative;
    padding-left: 0;
    border-bottom: 1px dotted var(--background-light); 
    font-size: 1.05em;
    display: flex; 
    align-items: center;
}

.tech-icon {
    width: 25px; 
    height: 25px;
    margin-right: 15px;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3)); 
}

.tech-group li:last-child {
    border-bottom: none;
}


/* Discord */
#discord-contact {
    background-color: transparent;
    text-align: center;
}

#discord-contact h3 {
    color: var(--primary-color); 
    margin-bottom: 15px;
}
#discord-contact h3::after {
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color); 
    box-shadow: 0 0 8px rgba(0, 188, 212, 0.5); 
}

.subtitle-contact {
    color: var(--text-dark);
    font-size: 1.2em;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.discord-cards-container {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap; 
}

.discord-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    color: var(--text-light);
    padding: 40px;
    border-radius: 12px;
    width: 320px;
    text-align: center;
    border: 1px solid var(--glass-border);
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.4, 1);
    position: relative;
    overflow: hidden;
}

.discord-card::after { 
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: var(--primary-color); 
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease-out;
}

.discord-card:hover::after {
    transform: scaleX(1);
}

.discord-card:hover {
    transform: translateY(-15px) rotateZ(-0.7deg);
    box-shadow: 0 20px 50px rgba(0, 188, 212, 0.4); 
    border-color: var(--primary-color); 
}

.discord-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid var(--primary-color); 
    animation: pulse 1.8s infinite alternate ease-in-out;
    box-shadow: 0 0 15px rgba(0, 188, 212, 0.5); 
}

.discord-card h4 {
    position: relative;
    color: var(--text-light);
    text-shadow: none; 
}
.discord-card h4::after {
    content: '⭐'; 
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8em;
    opacity: 0.8;
}

.discord-card:nth-child(2) h4::after { content: '⚙️'; }

.discord-tag {
    color: var(--text-dark); 
    font-size: 1.1em;
    margin: 10px 0 25px 0;
    font-weight: 600;
}

/* Contact */
#contact {
    background-color: transparent;
    border-top: 1px solid var(--background-light);
}

#contact h3 {
    text-align: center;
    margin-bottom: 50px;
}

#contact form {
    max-width: 800px;
    margin: 0 auto;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    padding: 60px;
    border-radius: 15px;
    border-top: 5px solid var(--primary-color); 
}

#contact label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-light);
}

#contact input[type="text"],
#contact input[type="email"],
#contact textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 30px;
    border: 1px solid var(--background-light);
    background-color: var(--background-medium); 
    color: var(--text-light); 
    border-radius: 8px;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-family: var(--font-body);
    font-size: 1em;
}

#contact input::placeholder, 
#contact textarea::placeholder {
    color: var(--text-dark); 
}

#contact input:focus, #contact textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 188, 212, 0.4); 
    outline: none;
    background-color: var(--background-dark); 
}

/* Footer */
footer {
    background-color: var(--background-dark); 
    color: var(--text-dark); 
    text-align: center;
    padding: 50px 0;
    font-size: 0.9em;
    border-top: 1px solid var(--background-light); 
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}
footer a:hover {
    color: var(--text-light);
    text-decoration: underline;
}


/* Animációk */

@keyframes pulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.03); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translate3d(0, 80px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translate3d(0, -40px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes backgroundMove {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}


/* Reszponzív - TODO: a tablet nav még gáz */

@media (max-width: 1024px) {
    #hero h2 {
        font-size: 3.5em;
    }
    .subtitle {
        font-size: 1.6em;
    }
    .tech-group {
        max-width: 48%;
    }
    header .container {
        flex-wrap: wrap; 
    }
}

@media (max-width: 768px) {
    h3 { font-size: 1.8em; }
    h4 { font-size: 1.3em; }
    
    #hero h2 { font-size: 2.8em; }
    .subtitle { font-size: 1.4em; }
    
    /* Header optimalizálás */
    header .container {
        flex-direction: column;
        padding: 15px 0;
    }
    .header .logo .new-oz-logo { height: 70px; }
    nav {
        margin-top: 20px;
        flex-wrap: wrap; 
        justify-content: center; 
    }
    nav a {
        margin: 5px 12px;
        display: inline-block;
        font-size: 0.9em;
    }
    .language-dropdown { margin-left: 12px; }
    .logo { font-size: 1.8em; }
    
    .services-grid { grid-template-columns: 1fr; }
    .tech-container {
        flex-direction: column;
        gap: 30px;
    }
    .tech-group {
        max-width: 100%;
        min-width: unset;
    }
    .discord-cards-container {
        flex-direction: column;
        gap: 30px;
    }
    .discord-card {
        width: 100%;
        max-width: none;
        box-sizing: border-box; 
    }
    
    .service-card, .tech-group, .discord-card {
        padding: 30px;
    }
    
    section { padding: 70px 0; }
    #contact form { padding: 40px; }

    .cta-button-large {
        font-size: 1.1em;
        padding: 12px 25px;
    }
}

@media (max-width: 480px) {
    h3 { font-size: 1.6em; }
    h4 { font-size: 1.2em; }

    #hero h2 { font-size: 2.2em; }
    .subtitle { font-size: 1.2em; }
    
    .header .logo .new-oz-logo { height: 60px; }
    nav a {
        margin: 5px 8px;
        font-size: 0.85em;
    }
    .logo { font-size: 1.6em; }
    .developer-logo-img { height: 22px; }
    
    .tech-icon { width: 20px; height: 20px; }
    
    .service-card, .tech-group, .discord-card { padding: 25px; }
    
    #contact form { padding: 30px 20px; }
}

/* AJAX Form */
#form-message {
    margin-top: 25px;
    padding: 15px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    display: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

#form-message.message-loading {
    background-color: var(--background-light);
    color: var(--text-dark);
}

#form-message.message-success {
    background-color: #10B981;
    color: white;
}

#form-message.message-error {
    background-color: #EF4444;
    color: white;
}