/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #151515;
    --bg-tertiary: #1f1f1f;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --accent-grey: #3d3d3d;
    --accent-light: #5a5a5a;
    --hover-grey: #2a2a2a;
    --gradient-start: rgba(74, 74, 74, 0.1);
    --gradient-end: rgba(106, 106, 106, 0.05);
    --mouse-x: 0px;
    --mouse-y: 0px;
}

body {
    font-family: 'Vazirmatn', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.8;
    overflow-x: hidden;
    position: relative;
    font-weight: 300;
    opacity: 1;
    visibility: visible;
}

/* 3D Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    opacity: 1;
    background: radial-gradient(ellipse at top, rgba(90, 90, 90, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at bottom, rgba(90, 90, 90, 0.05) 0%, transparent 50%);
}

/* 3D Grid Background */
.bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(90, 90, 90, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(90, 90, 90, 0.2) 1px, transparent 1px);
    background-size: 100px 100px;
    transform: perspective(1000px) rotateX(60deg) translateY(-50%);
    animation: gridMove 15s linear infinite;
    transform-origin: center center;
    opacity: 0.6;
    will-change: transform;
}

/* Animated Lines */
.bg-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(90, 90, 90, 0.5), transparent);
    height: 2px;
    width: 100%;
    animation: lineMove 15s linear infinite;
    opacity: 0.8;
    will-change: transform, opacity;
}

.line-1 {
    top: 20%;
    animation-delay: 0s;
    --line-angle: 45deg;
}

.line-2 {
    top: 40%;
    animation-delay: -5s;
    --line-angle: -45deg;
    width: 80%;
}

.line-3 {
    top: 60%;
    animation-delay: -10s;
    --line-angle: 30deg;
    width: 60%;
}

.line-4 {
    top: 80%;
    animation-delay: -7s;
    --line-angle: -30deg;
    width: 70%;
}

/* 3D Shapes */
.bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border: 2px solid rgba(120, 120, 120, 0.6);
    background: rgba(90, 90, 90, 0.15);
    opacity: 0.9;
    box-shadow: 0 0 20px rgba(90, 90, 90, 0.3);
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    transform: perspective(1000px) rotateX(45deg) rotateY(45deg);
    animation: shapeRotate1 20s linear infinite;
    border-radius: 5px;
    will-change: transform;
}

.shape-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 15%;
    transform: perspective(1000px) rotateX(-45deg) rotateY(-45deg);
    animation: shapeRotate2 25s linear infinite;
    border-radius: 50%;
    will-change: transform;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 30%;
    right: 30%;
    transform: perspective(1000px) rotateX(60deg) rotateY(30deg);
    animation: shapeRotate3 18s linear infinite;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    will-change: transform;
}

.shape-4 {
    width: 250px;
    height: 250px;
    bottom: 15%;
    left: 20%;
    transform: perspective(1000px) rotateX(-30deg) rotateY(60deg);
    animation: shapeRotate4 28s linear infinite;
    clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
    will-change: transform;
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 1000;
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(61, 61, 61, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    background-color: rgba(10, 10, 10, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    border-bottom-color: rgba(90, 90, 90, 0.2);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 300;
    color: var(--text-primary);
    letter-spacing: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--accent-light), transparent);
    transition: width 0.5s ease;
}

.logo:hover::after {
    width: 100%;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    font-weight: 300;
    position: relative;
    padding: 0.3rem 0;
    letter-spacing: 0.5px;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 1px;
    background: var(--text-primary);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    color: var(--text-primary);
    transform: translateY(-2px);
}

.nav-link:hover::before {
    width: 100%;
}

.nav-link.active {
    color: var(--text-primary);
}

.nav-link.active::before {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: 
        linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
    padding-top: 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Hero Particles */
.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(90, 90, 90, 0.4) 0%, transparent 70%);
    box-shadow: 0 0 30px rgba(90, 90, 90, 0.3);
}

.particle-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 10%;
    animation: particleFloat1 20s ease-in-out infinite;
}

.particle-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation: particleFloat2 25s ease-in-out infinite;
}

.particle-3 {
    width: 100px;
    height: 100px;
    top: 30%;
    right: 30%;
    animation: particleFloat3 18s ease-in-out infinite;
}

.particle-4 {
    width: 180px;
    height: 180px;
    bottom: 20%;
    left: 20%;
    animation: particleFloat4 22s ease-in-out infinite;
}

.particle-5 {
    width: 120px;
    height: 120px;
    top: 50%;
    left: 50%;
    animation: particleFloat5 30s ease-in-out infinite;
}

.particle-6 {
    width: 160px;
    height: 160px;
    bottom: 10%;
    right: 25%;
    animation: particleFloat6 24s ease-in-out infinite;
}

/* Hero Waves */
.hero-waves {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.wave {
    position: absolute;
    width: 200%;
    height: 200%;
    border-radius: 50%;
    border: 2px solid rgba(90, 90, 90, 0.2);
    opacity: 0.3;
}

.wave-1 {
    top: -50%;
    left: -50%;
    animation: waveExpand1 15s ease-in-out infinite;
}

.wave-2 {
    top: -40%;
    left: -40%;
    animation: waveExpand2 20s ease-in-out infinite;
    animation-delay: -5s;
}

.wave-3 {
    top: -30%;
    left: -30%;
    animation: waveExpand3 25s ease-in-out infinite;
    animation-delay: -10s;
}

/* Hero Grid Lines */
.hero-grid-lines {
    position: absolute;
    width: 100%;
    height: 100%;
}

.grid-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(90, 90, 90, 0.3), transparent);
    opacity: 0.4;
}

.grid-line-1 {
    width: 100%;
    height: 1px;
    top: 25%;
    left: 0;
    animation: gridLineMove1 12s linear infinite;
}

.grid-line-2 {
    width: 100%;
    height: 1px;
    top: 50%;
    left: 0;
    animation: gridLineMove2 15s linear infinite;
    animation-delay: -3s;
}

.grid-line-3 {
    width: 1px;
    height: 100%;
    top: 0;
    left: 33%;
    background: linear-gradient(180deg, transparent, rgba(90, 90, 90, 0.3), transparent);
    animation: gridLineMove3 18s linear infinite;
    animation-delay: -6s;
}

.grid-line-4 {
    width: 1px;
    height: 100%;
    top: 0;
    left: 66%;
    background: linear-gradient(180deg, transparent, rgba(90, 90, 90, 0.3), transparent);
    animation: gridLineMove4 20s linear infinite;
    animation-delay: -9s;
}

.hero-content {
    max-width: 850px;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    font-weight: 200;
    letter-spacing: 8px;
    background: linear-gradient(135deg, #ffffff 0%, #b0b0b0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 3s ease-in-out infinite;
    position: relative;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-light), transparent);
    animation: lineExpand 1.5s ease-out 0.5s both;
}

.hero-subtitle {
    font-size: 1.6rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    animation: fadeInUp 1.2s ease 0.3s both;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 2;
    font-weight: 300;
    animation: fadeInUp 1.2s ease 0.6s both;
}

.btn-primary {
    display: inline-block;
    padding: 14px 40px;
    background: linear-gradient(135deg, var(--accent-grey) 0%, var(--hover-grey) 100%);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(90, 90, 90, 0.3);
    font-weight: 300;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1.2s ease 0.9s both;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent-grey) 100%);
    border-color: var(--accent-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(90, 90, 90, 0.2);
}

/* Section Styles */
section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 1.2rem;
    font-weight: 200;
    letter-spacing: 3px;
    position: relative;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-light), transparent);
    opacity: 0;
    transition: opacity 0.8s ease 0.3s;
}

.section-title.visible::after {
    opacity: 1;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    font-size: 1.15rem;
    font-weight: 300;
    letter-spacing: 1px;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.section-subtitle.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Portfolio Section */
.portfolio {
    background-color: var(--bg-secondary);
    position: relative;
}

.portfolio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(90, 90, 90, 0.02) 50%, transparent 100%);
    pointer-events: none;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    background-color: var(--bg-tertiary);
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(61, 61, 61, 0.3);
    opacity: 1;
    transform: translateY(0) scale(1);
}

.portfolio-item.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(90, 90, 90, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.portfolio-item:hover::before {
    opacity: 1;
}

.portfolio-item:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(90, 90, 90, 0.6);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.portfolio-image {
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--hover-grey) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.portfolio-image::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(90, 90, 90, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.portfolio-item:hover .portfolio-image::after {
    opacity: 1;
}

.portfolio-placeholder {
    color: var(--text-secondary);
    font-size: 1.3rem;
    font-weight: 300;
    position: relative;
    z-index: 2;
    transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-placeholder {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 50%, transparent 100%);
    padding: 2.5rem;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-overlay h3 {
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
    font-weight: 300;
    letter-spacing: 1px;
    animation: fadeInUp 0.5s ease 0.2s both;
}

.portfolio-overlay p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    animation: fadeInUp 0.5s ease 0.3s both;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.team-member {
    text-align: center;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(61, 61, 61, 0.3);
    position: relative;
    overflow: hidden;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.team-member.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.team-member::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(90, 90, 90, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.team-member:hover::before {
    opacity: 1;
}

.team-member:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border-color: rgba(90, 90, 90, 0.6);
}

.member-image {
    width: 160px;
    height: 160px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--hover-grey) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(61, 61, 61, 0.5);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.member-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(90, 90, 90, 0.2), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
}

.team-member:hover .member-image::before {
    animation: shine 1.5s ease;
}

.team-member:hover .member-image {
    border-color: rgba(90, 90, 90, 0.8);
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(90, 90, 90, 0.3);
}

.member-placeholder {
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
}

.member-name {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    font-weight: 300;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.team-member:hover .member-name {
    color: var(--text-primary);
}

.member-role {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* Contact Section */
.contact {
    background-color: var(--bg-secondary);
    position: relative;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    opacity: 1;
    transform: translateX(0);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-info.visible {
    opacity: 1;
    transform: translateX(0);
}

.info-item {
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, transparent 100%);
    border-radius: 15px;
    border: 1px solid rgba(61, 61, 61, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-item:hover {
    transform: translateX(-5px);
    border-color: rgba(90, 90, 90, 0.5);
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--hover-grey) 100%);
}

.info-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
    font-weight: 300;
    letter-spacing: 1px;
}

.info-item p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.8;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    opacity: 1;
    transform: translateX(0);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.contact-form.visible {
    opacity: 1;
    transform: translateX(0);
}

.form-group {
    display: flex;
    flex-direction: column;
    position: relative;
}

.form-group input,
.form-group textarea {
    padding: 16px 20px;
    background-color: var(--bg-tertiary);
    border: 1px solid rgba(61, 61, 61, 0.4);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    font-weight: 300;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-light);
    background-color: var(--hover-grey);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(90, 90, 90, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}

/* Footer */
.footer {
    background-color: var(--bg-primary);
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid rgba(61, 61, 61, 0.3);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-light), transparent);
}

.footer p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 300;
    letter-spacing: 1px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gridMove {
    0% {
        transform: perspective(1000px) rotateX(60deg) translateY(-50%) translateZ(0);
    }
    100% {
        transform: perspective(1000px) rotateX(60deg) translateY(-50%) translateZ(200px);
    }
}

@keyframes lineMove {
    0% {
        transform: rotate(var(--line-angle, 45deg)) translateX(-100%);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: rotate(var(--line-angle, 45deg)) translateX(200%);
        opacity: 0;
    }
}

@keyframes shapeRotate1 {
    0% {
        transform: perspective(1000px) rotateX(45deg) rotateY(45deg) rotateZ(0deg);
    }
    100% {
        transform: perspective(1000px) rotateX(45deg) rotateY(45deg) rotateZ(360deg);
    }
}

@keyframes shapeRotate2 {
    0% {
        transform: perspective(1000px) rotateX(-45deg) rotateY(-45deg) rotateZ(0deg);
    }
    100% {
        transform: perspective(1000px) rotateX(-45deg) rotateY(-45deg) rotateZ(-360deg);
    }
}

@keyframes shapeRotate3 {
    0% {
        transform: perspective(1000px) rotateX(60deg) rotateY(30deg) rotateZ(0deg) translateZ(0);
    }
    50% {
        transform: perspective(1000px) rotateX(60deg) rotateY(30deg) rotateZ(180deg) translateZ(50px);
    }
    100% {
        transform: perspective(1000px) rotateX(60deg) rotateY(30deg) rotateZ(360deg) translateZ(0);
    }
}

@keyframes shapeRotate4 {
    0% {
        transform: perspective(1000px) rotateX(-30deg) rotateY(60deg) rotateZ(0deg) scale(1);
    }
    50% {
        transform: perspective(1000px) rotateX(-30deg) rotateY(60deg) rotateZ(180deg) scale(1.2);
    }
    100% {
        transform: perspective(1000px) rotateX(-30deg) rotateY(60deg) rotateZ(360deg) scale(1);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Hero Animation Keyframes */
@keyframes particleFloat1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.4;
    }
    25% {
        transform: translate(50px, -30px) scale(1.1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-30px, 50px) scale(0.9);
        opacity: 0.5;
    }
    75% {
        transform: translate(30px, 40px) scale(1.05);
        opacity: 0.55;
    }
}

@keyframes particleFloat2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    33% {
        transform: translate(-40px, 60px) scale(1.15);
        opacity: 0.5;
    }
    66% {
        transform: translate(60px, -40px) scale(0.85);
        opacity: 0.4;
    }
}

@keyframes particleFloat3 {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 0.5;
    }
    50% {
        transform: translate(80px, 80px) scale(1.2) rotate(180deg);
        opacity: 0.7;
    }
}

@keyframes particleFloat4 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.35;
    }
    25% {
        transform: translate(-50px, -50px) scale(1.1);
        opacity: 0.5;
    }
    50% {
        transform: translate(40px, -30px) scale(0.95);
        opacity: 0.45;
    }
    75% {
        transform: translate(-30px, 50px) scale(1.05);
        opacity: 0.5;
    }
}

@keyframes particleFloat5 {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 0.4;
    }
    33% {
        transform: translate(100px, -50px) scale(1.3) rotate(120deg);
        opacity: 0.6;
    }
    66% {
        transform: translate(-80px, 100px) scale(0.8) rotate(240deg);
        opacity: 0.5;
    }
}

@keyframes particleFloat6 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.4;
    }
    50% {
        transform: translate(-60px, 60px) scale(1.15);
        opacity: 0.6;
    }
}

@keyframes waveExpand1 {
    0% {
        transform: scale(0.5);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.1;
    }
    100% {
        transform: scale(0.5);
        opacity: 0.3;
    }
}

@keyframes waveExpand2 {
    0% {
        transform: scale(0.6);
        opacity: 0.25;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.08;
    }
    100% {
        transform: scale(0.6);
        opacity: 0.25;
    }
}

@keyframes waveExpand3 {
    0% {
        transform: scale(0.7);
        opacity: 0.2;
    }
    50% {
        transform: scale(1.4);
        opacity: 0.05;
    }
    100% {
        transform: scale(0.7);
        opacity: 0.2;
    }
}

@keyframes gridLineMove1 {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    10% {
        opacity: 0.4;
    }
    90% {
        opacity: 0.4;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes gridLineMove2 {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateX(-100%);
        opacity: 0;
    }
}

@keyframes gridLineMove3 {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    10% {
        opacity: 0.4;
    }
    90% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(100%);
        opacity: 0;
    }
}

@keyframes gridLineMove4 {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100%);
        opacity: 0;
    }
}

@keyframes titleGlow {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.2));
    }
}

@keyframes lineExpand {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 100px;
        opacity: 1;
    }
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
        padding: 2.5rem 0;
        border-top: 1px solid rgba(61, 61, 61, 0.3);
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-title {
        font-size: 2.8rem;
        letter-spacing: 4px;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-info {
        transform: translateY(30px);
    }

    .contact-form {
        transform: translateY(30px);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
        letter-spacing: 3px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .container {
        padding: 0 15px;
    }

    section {
        padding: 70px 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .portfolio-grid {
        gap: 1.5rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }
}

