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

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --accent-color: #ff0000;
    --accent: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3);
    --accent-hover: linear-gradient(90deg, #ff3333, #ff9933, #ffff33, #33ff33, #3333ff, #6b33b3, #aa33ff);
}

body {
    font-family: 'Open Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.5);
    backdrop-filter: blur(10px);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
}

.logo {
    width: 40px;
    height: 40px;
    transition: transform 0.5s ease;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 0.1px;
    font-family: 'Montserrat', sans-serif;
    display: inline-flex;
}

.logo-letter {
    display: inline-block;
    transition: transform 0.3s ease;
}

.logo-container:hover .logo-letter:nth-child(1) {
    animation: wave 0.5s ease 0s;
}

.logo-container:hover .logo-letter:nth-child(2) {
    animation: wave 0.5s ease 0.05s;
}

.logo-container:hover .logo-letter:nth-child(3) {
    animation: wave 0.5s ease 0.1s;
}

.logo-container:hover .logo-letter:nth-child(4) {
    animation: wave 0.5s ease 0.15s;
}

.logo-container:hover .logo-letter:nth-child(5) {
    animation: wave 0.5s ease 0.2s;
}

.logo-container:hover .logo-letter:nth-child(6) {
    animation: wave 0.5s ease 0.25s;
}

@keyframes wave {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    display: none;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 0, 0, 0.1) 0%, rgba(255, 127, 0, 0.08) 20%, rgba(255, 255, 0, 0.06) 40%, rgba(0, 255, 0, 0.04) 60%, transparent 80%);
}

.hero-content {
    text-align: center;
    z-index: 1;
}

.hero-title {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 20px;
    letter-spacing: 3px;
    display: inline-flex;
    transition: font-family 0.5s ease;
}

.hero-letter {
    display: inline-block;
    opacity: 0;
    animation: heroLetterWave 1.5s ease-out forwards;
}

.hero-letter:nth-child(1) { animation-delay: 0s; }
.hero-letter:nth-child(2) { animation-delay: 0.08s; }
.hero-letter:nth-child(3) { animation-delay: 0.16s; }
.hero-letter:nth-child(4) { animation-delay: 0.24s; }
.hero-letter:nth-child(5) { animation-delay: 0.32s; }
.hero-letter:nth-child(6) { animation-delay: 0.4s; }
.hero-letter:nth-child(7) { animation-delay: 0.48s; }
.hero-letter:nth-child(8) { animation-delay: 0.56s; }
.hero-letter:nth-child(9) { animation-delay: 0.64s; }
.hero-letter:nth-child(10) { animation-delay: 0.72s; }
.hero-letter:nth-child(11) { animation-delay: 0.8s; }
.hero-letter:nth-child(12) { animation-delay: 0.88s; }
.hero-letter:nth-child(13) { animation-delay: 0.96s; }
.hero-letter:nth-child(14) { animation-delay: 1.04s; }
.hero-letter:nth-child(15) { animation-delay: 1.12s; }
.hero-letter:nth-child(16) { animation-delay: 1.2s; }

@keyframes heroLetterWave {
    0% {
        opacity: 0;
        transform: translateX(-60px) translateY(30px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateX(0) translateY(0) scale(1);
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.cta-button {
    padding: 15px 40px;
    font-size: 1.1rem;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 1px;
    transition: transform 0.3s ease;
}

.cta-button:hover {
    transform: scale(1.1);
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbow 4s linear infinite;
}

.section-title-white {
    background: none !important;
    color: white !important;
    -webkit-text-fill-color: white !important;
    animation: none !important;
}

/* Services & Contact Section */
.services-contact {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
}

.services-contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 0, 0, 0.1) 0%, rgba(255, 127, 0, 0.08) 20%, rgba(255, 255, 0, 0.06) 40%, rgba(0, 255, 0, 0.04) 60%, transparent 80%);
}

.services-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.services-section,
.contact-section {
    position: relative;
    z-index: 1;
}

.services-section h3,
.contact-section h3 {
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.service-item {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: var(--bg-primary);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    will-change: transform;
}

.service-item:hover {
}

.service-item .service-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.service-text h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.service-text p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.contact-intro {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-details p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

/* Portfolio Section */
.portfolio {
    padding: 100px 0;
    background: var(--bg-primary);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.portfolio-item {
    background: var(--bg-secondary);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    will-change: transform;
}

.portfolio-item:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.portfolio-item.portfolio-clicked {
    transform: scale(0.95) !important;
}

.portfolio-placeholder {
    height: 250px;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-icon {
    font-size: 4rem;
}

.portfolio-item h3 {
    padding: 20px 20px 10px;
    font-size: 1.3rem;
}

.portfolio-item p {
    padding: 0 20px 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-input {
    padding: 15px 20px;
    background: var(--bg-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border: 2px solid transparent;
    background: linear-gradient(var(--bg-primary), var(--bg-primary)) padding-box,
                var(--accent) border-box;
}

.form-input::placeholder {
    color: var(--text-secondary);
}

.submit-button {
    padding: 15px 30px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
}

/* Footer */
.footer {
    padding: 30px 0;
    background: var(--bg-primary);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer p {
    color: var(--text-secondary);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInLeftToRight {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes scale {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.05);
    }
}

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

@keyframes aurora {
    0% { background-position: 0% 50%; }
    25% { background-position: 50% 0%; }
    50% { background-position: 100% 50%; }
    75% { background-position: 50% 100%; }
    100% { background-position: 0% 50%; }
}

.fade-in {
    animation: fadeIn 1s ease forwards;
}

.fade-in-left-right {
    animation: fadeInLeftToRight 1.5s ease forwards;
}

.fade-in-up {
    animation: fadeInUp 1s ease forwards;
}

.spin-on-load {
    animation: spin 1s ease forwards;
}

.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.blink-on-hover:hover {
    animation: blink 0.5s ease infinite;
}

.rainbow-on-hover:hover {
    background: linear-gradient(45deg, #00ff87, #60efff, #7b61ff, #ff6eff, #00ff87);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: aurora 3s ease infinite;
}

.spin-on-hover:hover {
    animation: spin 0.5s ease;
}

.pulse-on-hover:hover {
    animation: pulse 0.5s ease infinite;
}

.scale-on-hover:hover {
    animation: scale 0.3s ease forwards;
}

.fade-in-on-focus {
    transition: all 0.3s ease;
}

.fade-in-on-focus:focus {
    animation: fadeIn 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }

    .nav-links {
        gap: 20px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-contact-grid {
        grid-template-columns: 1fr;
    }

    .service-item {
        flex-direction: column;
        text-align: center;
    }
}
