* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --text-gradient: linear-gradient(135deg, #ffffff 0%, #a8a8a8 100%);
    --bg-dark: #000000;
    --bg-card: rgba(25, 25, 35, 0.8);
    --border-light: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-muted: rgba(255, 255, 255, 0.6);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

.particles-container {
    display: none;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem 2rem;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    backdrop-filter: blur(10px);
}

.navbar.top {
    background: rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid var(--border-light);
}

.navbar.scrolled {
    background: rgba(25, 25, 25, 0.95);
    padding: 1.2rem 2rem;
    backdrop-filter: blur(20px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.nav-link {
    font-size: 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    padding: 0.75rem 1.5rem;
    border: 1px solid transparent;
    border-radius: 2px;
}

.nav-link:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.3);
}

.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #1a1a2e, #16213e, #0f3460, #533483);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: -1;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.animated-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(83, 52, 131, 0.3) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(15, 52, 96, 0.3) 0%, transparent 50%), radial-gradient(circle at 40% 40%, rgba(22, 33, 62, 0.2) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
    z-index: 1;
}

.animated-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.3);
    z-index: 1;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 0.6;
    }
    50% {
        opacity: 0.9;
    }
}

.main-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.main-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    background: var(--text-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: titleAppear 1.2s ease-out;
}

.subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 300;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: subtitleAppear 1.5s ease-out 0.3s both;
}

@keyframes titleAppear {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes subtitleAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-indicator .arrow {
    width: 2px;
    height: 20px;
    background: var(--text-muted);
    margin: 5px auto 0;
    position: relative;
}

.scroll-indicator .arrow::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: -3px;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
}

@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.content-section {
    background: var(--bg-dark);
    padding: 0;
    position: relative;
    z-index: 1;
}

.content-block {
    padding: 120px 0;
    border-bottom: 1px solid var(--border-light);
}

.content-block:last-child {
    border-bottom: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 4rem;
}

.container.reverse {
    flex-direction: row-reverse;
}

.text-content {
    flex: 1;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-align: left;
}

.text-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
    background: var(--text-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
    text-align: left;
}

.section-title:hover {
    transform: translateX(10px);
}

.section-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    text-align: left;
}

.section-text:hover {
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.skills-container {
    margin: 2rem 0;
}

.skill-item {
    margin-bottom: 1.5rem;
}

.skill-name {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.skill-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 3px;
    width: 0;
    transition: width 1.5s ease-in-out;
}

.image-content {
    flex: 1;
    opacity: 0;
    transform: scale(0.8) rotate(-5deg);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) 0.2s;
    width: 100%;
}

.image-content.visible {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.5s ease;
    width: 100%;
}

.image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(83, 52, 131, 0.3) 0%, rgba(15, 52, 96, 0.3) 100%);
    z-index: 1;
    transition: all 0.5s ease;
}

.image-wrapper:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(83, 52, 131, 0.4);
}

.image-wrapper:hover::before {
    background: linear-gradient(135deg, rgba(83, 52, 131, 0.5) 0%, rgba(15, 52, 96, 0.5) 100%);
}

.image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    position: relative;
    z-index: 0;
}

.image-placeholder::after {
    content: attr(data-image);
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.section-cta {
    margin-top: 2rem;
}

.cta-button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
    padding: 0.75rem 2rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.cta-button.primary {
    background: var(--primary-gradient);
    border: none;
}

.cta-button.large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.cta-button.glow {
    position: relative;
}

.button-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.cta-button.glow:hover .button-glow {
    left: 100%;
}

.services-list {
    margin-top: 2rem;
}

.service-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s ease;
    text-align: left;
}

.service-item:hover {
    transform: translateX(10px);
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.service-item:last-child {
    border-bottom: none;
}

.service-icon {
    font-size: 1.5rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.service-item:hover .service-icon {
    transform: scale(1.2);
}

.service-content h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.service-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
    flex: 1;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--text-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.stat:hover .stat-number {
    transform: scale(1.1);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

@keyframes countUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.stat-number.animated {
    animation: countUp 0.6s ease-out;
}

.portfolio-section {
    position: relative;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    overflow: hidden;
}

.portfolio-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.15) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.1) 0%, transparent 50%), radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.08) 0%, transparent 50%);
    animation: backgroundPulse 8s ease-in-out infinite;
}

@keyframes backgroundPulse {
    0%,
    100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 100px;
    height: 100px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 10%;
    animation-delay: -2s;
}

.shape-3 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 20%;
    animation-delay: -4s;
}

.shape-4 {
    width: 120px;
    height: 120px;
    top: 30%;
    right: 20%;
    animation-delay: -6s;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.portfolio-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    position: relative;
    z-index: 2;
}

.portfolio-left {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.portfolio-left .text-content {
    text-align: left;
    margin-bottom: 0;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.portfolio-left .text-content.visible {
    opacity: 1;
    transform: translateX(0);
}

.portfolio-left .section-title {
    text-align: left;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
}

.portfolio-left .section-text {
    text-align: left;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.portfolio-cta-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) 0.2s;
}

.portfolio-cta-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.portfolio-cta-left .cta-content {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid var(--border-light);
    backdrop-filter: blur(10px);
    text-align: left;
}

.portfolio-cta-left .cta-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    background: var(--text-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.portfolio-cta-left .cta-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.portfolio-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) 0.4s;
}

.portfolio-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.portfolio-item {
    width: 100%;
}

.project-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(102, 126, 234, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.project-media {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.project-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.image-frame {
    width: 100%;
    height: 100%;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: all 0.5s ease;
}

.project-card:hover .project-img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.project-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(102, 126, 234, 0.3), transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.project-card:hover .project-glow {
    opacity: 1;
}

.project-content {
    padding: 2rem;
}

.project-badge {
    display: inline-block;
    background: var(--primary-gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.project-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    background: var(--text-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.project-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.project-category {
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.project-date {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-tech {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tech-item {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    border: 1px solid var(--border-light);
    backdrop-filter: blur(10px);
}

.project-actions {
    display: flex;
    gap: 1rem;
}

.formulas-section {
    position: relative;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    overflow: hidden;
}

.formulas-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(83, 52, 131, 0.3) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(15, 52, 96, 0.3) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
    z-index: 1;
}

.formulas-section .container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.formulas-section .text-content {
    text-align: center;
    margin-bottom: 4rem;
    width: 100%;
    order: 1;
}

.formulas-section .section-title {
    text-align: center;
}

.formulas-section .section-text {
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.formulas-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 0;
    width: 100%;
    max-width: 1200px;
    order: 2;
}

.formula-card {
    position: relative;
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    min-height: 500px;
    width: 100%;
    max-width: 350px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
    cursor: pointer;
    flex: 1;
}

.card-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: var(--text-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

.price {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-align: center;
}

.features {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
    position: relative;
    padding-left: 1.5rem;
}

.features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4facfe;
    font-weight: bold;
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(79, 172, 254, 0.15), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.formula-card:hover {
    box-shadow: 0 15px 40px rgba(79, 172, 254, 0.2);
}

.formula-card:hover .card-glow {
    opacity: 1;
}

.formula-card {
    transform: perspective(1000px) rotateX(0) rotateY(0) scale3d(1, 1, 1);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.wave-separator {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    overflow: hidden;
    background: transparent;
    z-index: 2;
    pointer-events: none;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(102, 126, 234, 0.1) 25%, rgba(118, 75, 162, 0.15) 50%, rgba(79, 172, 254, 0.1) 75%, transparent 100%);
    clip-path: path('M0,96 C48,128 96,112 144,96 C192,80 240,64 288,80 C336,96 384,128 432,128 C480,128 528,96 576,96 C624,96 672,128 720,128 C768,128 816,96 864,80 C912,64 960,48 1008,48 C1056,48 1104,64 1152,80 C1200,96 1248,112 1296,112 C1344,112 1392,96 1440,80 C1488,64 1536,48 1584,48 C1632,48 1680,64 1728,80 C1776,96 1824,112 1872,112 C1920,112 1968,96 2016,80 C2064,64 2112,48 2160,48 C2208,48 2256,64 2304,80 C2352,96 2400,112 2448,112 C2496,112 2544,96 2592,80 C2640,64 2688,48 2736,48 C2784,48 2832,64 2880,80 C2928,96 2976,112 3024,112 C3072,112 3120,96 3168,80 C3216,64 3264,48 3312,48 C3360,48 3408,64 3456,80 C3504,96 3552,112 3600,112 C3648,112 3696,96 3744,80 C3792,64 3840,48 3888,48 C3936,48 3984,64 4032,80 L4032,200 L0,200 Z');
    animation: waveMove 8s ease-in-out infinite;
}

.wave-1 {
    opacity: 1;
    animation-delay: 0s;
}

.wave-2 {
    opacity: 1;
    animation-delay: -4s;
    clip-path: path('M0,112 C48,96 96,80 144,80 C192,80 240,96 288,112 C336,128 384,144 432,144 C480,144 528,128 576,112 C624,96 672,80 720,80 C768,80 816,96 864,112 C912,128 960,144 1008,144 C1056,144 1104,128 1152,112 C1200,96 1248,80 1296,80 C1344,80 1392,96 1440,112 C1488,128 1536,144 1584,144 C1632,144 1680,128 1728,112 C1776,96 1824,80 1872,80 C1920,80 1968,96 2016,112 C2064,128 2112,144 2160,144 C2208,144 2256,128 2304,112 C2352,96 2400,80 2448,80 C2496,80 2544,96 2592,112 C2640,128 2688,144 2736,144 C2784,144 2832,128 2880,112 C2928,96 2976,80 3024,80 C3072,80 3120,96 3168,112 C3216,128 3264,144 3312,144 C3360,144 3408,128 3456,112 C3504,96 3552,80 3600,80 C3648,80 3696,96 3744,112 C3792,128 3840,144 3888,144 C3936,144 3984,128 4032,112 L4032,200 L0,200 Z');
}

@keyframes waveMove {
    0%,
    100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-2%);
    }
    50% {
        transform: translateX(0);
    }
    75% {
        transform: translateX(2%);
    }
}

.formulas-section {
    position: relative;
    padding-bottom: 180px;
}

.formulas-container {
    margin-bottom: 60px;
}

.contact-section {
    position: relative;
    z-index: 3;
    padding-top: 120px;
    margin-top: 0;
}

.wave-separator {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.wave-separator.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .wave-separator {
        height: 80px;
    }
    .formulas-section {
        padding-bottom: 140px;
    }
    .formulas-container {
        margin-bottom: 40px;
    }
    .contact-section {
        padding-top: 80px;
    }
    .wave {
        animation-duration: 6s;
    }
}

.decorative-line {
    height: 3px;
    width: 100%;
    background: linear-gradient( 135deg, #a8e6cf 0%, #6ecbf5 25%, #4a90e2 50%, #ffffff 75%, #a8e6cf 100%);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
    margin: 0px;
    border: none;
    outline: none;
    border-radius: 2px;
}

@keyframes shimmer {
    0%,
    100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.contact-section {
    position: relative;
    background: linear-gradient(135deg, #2a2a4e 0%, #1e2a52 50%, #15376b 100%);
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(120, 90, 180, 0.5) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(60, 120, 200, 0.5) 0%, transparent 50%), radial-gradient(circle at 40% 40%, rgba(80, 100, 220, 0.3) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
    z-index: 1;
}

.contact-section .container {
    position: relative;
    z-index: 2;
}

.contact-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info .section-title {
    background: var(--text-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.contact-info .section-text {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contact-icon {
    font-size: 1.5rem;
    margin-top: 0.2rem;
    filter: brightness(1.2);
}

.contact-item h3 {
    color: var(--text-primary);
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-item p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 1rem;
}

.contact-form-wrapper {
    background: rgba(40, 40, 60, 0.7);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.contact-form-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.contact-form-main input,
.contact-form-main select,
.contact-form-main textarea {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    padding: 0.85rem 1rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
}

.contact-form-main select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px;
    padding-right: 2.5rem;
}

.contact-form-main select option {
    background: #2a2a4e;
    color: var(--text-primary);
}

.contact-form-main textarea {
    resize: none;
    height: 308px;
    min-height: 120px;
}

.contact-form-main input:focus,
.contact-form-main select:focus,
.contact-form-main textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.contact-form-main input::placeholder,
.contact-form-main textarea::placeholder {
    color: var(--text-muted);
}

.submit-btn {
    background: var(--primary-gradient);
    border: none;
    color: var(--text-primary);
    padding: 1.1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    font-size: 1rem;
    margin-top: 0.5rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.contact-info,
.contact-form-wrapper {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.contact-info.visible {
    opacity: 1;
    transform: translateY(0);
}

.contact-form-wrapper.visible {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.site-footer {
    position: relative;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    overflow: hidden;
    color: var(--text-primary);
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(83, 52, 131, 0.3) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(15, 52, 96, 0.3) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
    z-index: 1;
}

.footer-content {
    position: relative;
    z-index: 2;
    padding: 4rem 0 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 600;
    background: var(--text-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    background: var(--text-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--text-primary);
    transform: translateX(8px);
}

.contact-info-footer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item-footer {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.contact-icon-footer {
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: inline-block;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    margin-top: 3rem;
}

.footer-divider {
    height: 1px;
    background: linear-gradient( 90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
    margin-bottom: 2rem;
}

.copyright {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding-bottom: 2rem;
}

.menu-overlay,
.contact-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(15px);
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.menu-overlay.active,
.contact-overlay.active {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.menu-content,
.contact-content {
    background: rgba(25, 25, 25, 0.8);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: overlayAppear 0.5s ease-out;
}

@keyframes overlayAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-menu,
.close-contact {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-menu:hover,
.close-contact:hover {
    color: var(--text-primary);
}

.menu-nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.menu-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.5rem;
    text-align: center;
    padding: 0.5rem;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.menu-nav a:hover {
    color: var(--text-primary);
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.contact-content h2 {
    margin-bottom: 2rem;
    text-align: center;
    background: var(--text-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 0.75rem;
    color: var(--text-primary);
    font-family: inherit;
    transition: all 0.3s ease;
}

.contact-form select option {
    background: #2a2a4e;
    color: var(--text-primary);
}

.contact-form textarea {
    resize: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-muted);
}

.contact-form button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
    padding: 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.contact-form button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.contact-info {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

@media (max-width: 968px) {
    .portfolio-container,
    .contact-content-wrapper,
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .formulas-container {
        flex-direction: column;
        align-items: center;
    }
    .stats {
        flex-direction: column;
    }
    .container {
        flex-direction: column;
        gap: 3rem;
    }
    .container.reverse {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1.5rem;
    }
    .navbar.scrolled {
        padding: 1rem 1.5rem;
    }
    .nav-logo {
        font-size: 1.1rem;
    }
    .nav-link {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
    .container {
        padding: 0 1.5rem;
        gap: 2rem;
    }
    .content-block {
        padding: 80px 0;
    }
    .project-media {
        height: 250px;
    }
    .image-frame {
        padding: 1rem;
    }
    .portfolio-cta-left .cta-content,
    .contact-form-wrapper {
        padding: 2rem 1.5rem;
    }
    .formula-card {
        padding: 1.5rem;
        min-height: 450px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    .content-block {
        padding: 60px 0;
    }
    .image-placeholder {
        height: 250px;
    }
    .menu-content,
    .contact-content {
        padding: 2rem 1rem;
    }
    .menu-nav a {
        font-size: 1.3rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.content-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.image-placeholder {
    width: 100%;
    height: 400px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 0;
}

.image-placeholder::after {
    display: none;
}

@media (max-width: 768px) {
    .image-placeholder {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .image-placeholder {
        height: 250px;
    }
}