/* ===================================
   Variables & Reset
   =================================== */
:root {
    --primary-color: #62b7cc;
    --primary-dark: #4a9fb3;
    --text-dark: #323232;
    --text-body: #656565;
    --bg-light: #fafafa;
    --bg-white: #ffffff;
    --border-color: #e5e5e5;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Raleway', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-body);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ===================================
   Typography
   =================================== */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 42px;
    font-weight: 700;
}

h2 {
    font-size: 32px;
    font-weight: 600;
}

h3 {
    font-size: 24px;
}

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

section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-block;
    padding: 14px 35px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===================================
   Header
   =================================== */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-white);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

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

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.main-nav ul {
    display: flex;
    gap: 35px;
}

.main-nav a {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dark);
    position: relative;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.lang-switch {
    display: flex;
    gap: 5px;
}

.lang-btn {
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-body);
    transition: var(--transition);
}

.lang-btn.active {
    color: var(--primary-color);
    font-weight: 600;
}

.lang-btn:hover {
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: var(--text-body);
    transition: var(--transition);
}

.social-icons a:hover {
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--text-dark);
    transition: var(--transition);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: -80px;
    left: 0;
    width: 100%;
    height: 120%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    will-change: transform;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.hero-circle {
    position: relative;
    width: 320px;
    height: 320px;
    background-color: rgba(98, 183, 204, 0.65);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 2;
    margin: 0 auto;
    animation: slideUp 1.2s ease-out;
}

.hero-circle-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-align: center;
    color: var(--bg-white);
    padding: 40px;
    width: 100%;
    height: 100%;
}

.hero-prefix {
    font-size: 24px;
    font-weight: 300;
    margin: 0;
    text-transform: lowercase;
    letter-spacing: 2px;
    color: var(--bg-white);
}

.hero-typing {
    font-size: 40px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 1px;
    min-height: 50px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    color: var(--bg-white);
}


.hero-year {
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 3px;
    margin: 0;
    color: var(--bg-white);
    opacity: 0.95;
}

/* Typing Animation */
.typing-dynamic {
    display: inline;
    min-width: 1ch;
}

.typing-dynamic:empty::before {
    content: '\200B';
}

.typing-cursor {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--bg-white);
    border-radius: 50%;
    margin-left: 6px;
    animation: blink 0.8s step-end infinite;
    vertical-align: baseline;
    position: relative;
    top: 0px;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

@keyframes slideUp {
    0% {
        transform: translateY(100px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

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

.about-content {
    max-width: 100%;
    margin: 0 auto;
    text-align: justify;
    font-size: 15px;
    line-height: 2;
    font-weight: 300;
    color: #757575;
}

/* ===================================
   Team Section
   =================================== */
.team {
    background-color: var(--bg-light);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    max-width: 1000px;
    margin: 60px auto 0;
}

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

.member-photo {
    width: 100%;
    max-width: 450px;
    aspect-ratio: 1 / 1;
    margin: 0 auto 25px;
    border-radius: 0;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.member-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.member-photo:hover .member-overlay {
    opacity: 1;
    pointer-events: auto;
}

.member-social {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: center;
}

.member-social a {
    color: var(--text-dark);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(98, 183, 204, 0.1);
}

.member-social a:hover {
    color: var(--primary-color);
    background-color: rgba(98, 183, 204, 0.2);
    transform: scale(1.1);
}

.team-member h3 {
    margin-bottom: 10px;
}

.member-role {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 15px;
}

.member-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.member-contact a {
    color: var(--text-body);
    font-size: 14px;
}

.member-contact a:hover {
    color: var(--primary-color);
}

/* ===================================
   Quote Section
   =================================== */
.quote-section {
    background-color: #f5f5f5;
    color: var(--primary-color);
    padding: 60px 0;
}

.quote {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.quote p {
    font-size: 24px;
    font-weight: 400;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.quote cite {
    font-size: 16px;
    font-style: normal;
    color: var(--primary-color);
}

/* ===================================
   Portfolio Section
   =================================== */
.portfolio {
    background-color: var(--bg-white);
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 60px;
}

.filter-btn {
    padding: 10px 25px;
    font-size: 13px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999999;
    background-color: transparent;
    border: 2px solid transparent;
    border-radius: 4px;
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--border-color);
}

.filter-btn.active {
    color: var(--text-dark);
    background-color: transparent;
    border: 2px solid var(--text-dark);
    font-weight: 600;
}

.portfolio-content {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.portfolio-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 400px;
    opacity: 1;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.portfolio-item.reverse {
    direction: rtl;
}

.portfolio-item.reverse > * {
    direction: ltr;
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 400px;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.08);
}

.portfolio-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 60px 80px;
    background-color: var(--bg-light);
}

.portfolio-text h3 {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 15px;
}

.portfolio-text h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 2px;
    background-color: var(--primary-color);
}

.portfolio-text p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-body);
}

.portfolio-item.hidden {
    display: none;
}

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

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 35px;
    text-align: center;
}

.info-item h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.info-item p {
    line-height: 1.8;
}

.info-item a {
    color: var(--text-body);
}

.info-item a:hover {
    color: var(--primary-color);
}

.contact-form-wrapper {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    font-family: inherit;
    font-size: 15px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    transition: var(--transition);
    background-color: var(--bg-white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group label {
    position: absolute;
    left: 15px;
    top: 15px;
    color: var(--text-body);
    pointer-events: none;
    transition: var(--transition);
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -10px;
    left: 10px;
    font-size: 12px;
    background-color: var(--bg-white);
    padding: 0 5px;
    color: var(--primary-color);
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
    display: none;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    display: block;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    display: block;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background-color: var(--text-dark);
    color: var(--bg-white);
    padding: 40px 0;
}

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

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo .logo-img {
    height: 50px;
    width: auto;
    margin: 0 auto;
}

.footer-logo .logo-text {
    color: var(--bg-white);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-social a {
    color: var(--bg-white);
    opacity: 0.8;
    transition: var(--transition);
}

.footer-social a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.footer-copyright {
    font-size: 14px;
    opacity: 0.7;
}

/* ===================================
   Lightbox
   =================================== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    color: var(--bg-white);
    font-size: 40px;
    background: rgba(255, 255, 255, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: var(--transition);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-close {
    top: 20px;
    right: 20px;
}

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* ===================================
   Back to Top Button
   =================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    cursor: pointer;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 992px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .portfolio-item {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .portfolio-item.reverse {
        direction: ltr;
    }

    .portfolio-image {
        min-height: 350px;
    }

    .portfolio-text {
        padding: 50px 40px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 28px;
    }

    section {
        padding: 60px 0;
    }

    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--bg-white);
        box-shadow: var(--shadow);
        max-height: 0;
        overflow: hidden;
        transition: var(--transition);
    }

    .main-nav.active {
        max-height: 300px;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero-circle {
        width: 280px;
        height: 280px;
    }

    .hero-prefix {
        font-size: 18px;
    }

    .hero-typing {
        font-size: 28px;
        min-height: 40px;
    }

    .hero-year {
        font-size: 13px;
    }

    .portfolio-image {
        min-height: 300px;
    }

    .portfolio-text {
        padding: 40px 30px;
    }

    .portfolio-text h3 {
        font-size: 24px;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .member-photo {
        max-width: 350px;
    }

    .quote p {
        font-size: 20px;
    }

    .contact-form-wrapper {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .header-content {
        padding: 15px 0;
    }

    .logo-img {
        height: 32px;
    }

    .lang-switch {
        display: none;
    }

    .hero-circle {
        width: 240px;
        height: 240px;
    }

    .hero-circle-content {
        padding: 25px;
    }

    .hero-prefix {
        font-size: 14px;
    }

    .hero-typing {
        font-size: 22px;
        min-height: 32px;
    }

    .hero-year {
        font-size: 11px;
        letter-spacing: 2px;
    }

    .member-photo {
        max-width: 280px;
    }

    .filter-btn {
        padding: 8px 15px;
        font-size: 11px;
    }

    .portfolio-filters {
        gap: 10px;
    }

    .portfolio-text {
        padding: 30px 20px;
    }

    .portfolio-text h3 {
        font-size: 20px;
    }

    .portfolio-text p {
        font-size: 15px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .back-to-top svg {
        width: 20px;
        height: 20px;
    }
}
