:root {
    --black: #000000;
    --dark: #0a0a0a;
    --darker: #111111;
    --red: #ff3366;
    --red-dark: #cc0044;
    --red-light: #ff6699;
    --yellow: #ffcc00;
    --green: #00cc66;
    --red-transparent: rgba(255, 51, 102, 0.1);
    --gray: #888888;
    --gray-light: #aaaaaa;
    --white: #ffffff;
    --font-mono: 'JetBrains Mono', monospace;
    --font-sans: 'Inter', sans-serif;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-red: 0 10px 30px rgba(255, 51, 102, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-red: linear-gradient(135deg, var(--red), var(--red-dark));
    --gradient-glow: linear-gradient(135deg, var(--red), var(--red-light), var(--red));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    font-weight: 300;
    opacity: 0;
    animation: fadeInBody 0.8s ease forwards;
}

@keyframes fadeInBody {
    to { opacity: 1; }
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-mono);
    color: var(--white);
    font-weight: 700;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-size: clamp(28px, 4vw, 42px);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title span {
    color: var(--red);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-red);
    border-radius: 2px;
    animation: expandWidth 1s ease 0.5s forwards;
    transform-origin: left;
    transform: scaleX(0);
}

@keyframes expandWidth {
    to { transform: scaleX(1); }
}

.section-subtitle {
    color: var(--gray);
    font-size: 18px;
    max-width: 600px;
    margin-bottom: 60px;
    font-weight: 300;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.8s ease 0.7s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    background: transparent;
    color: var(--red);
    border: 2px solid var(--red);
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-weight: 500;
    white-space: nowrap;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 51, 102, 0.2), transparent);
    transition: left 0.6s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-red);
    border-color: var(--red-light);
    color: var(--white);
}

.btn-primary {
    background: var(--gradient-red);
    color: var(--white);
    border: 2px solid transparent;
    font-weight: 600;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 51, 102, 0.4);
    background: var(--gradient-glow);
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px 0;
    border-bottom: 2px solid rgba(255, 51, 102, 0.2);
    transition: var(--transition);
    transform: translateY(-100%);
    animation: slideDown 0.5s ease 0.3s forwards;
}

@keyframes slideDown {
    to { transform: translateY(0); }
}

.header-scrolled {
    padding: 15px 0;
    box-shadow: var(--shadow);
    background-color: rgba(0, 0, 0, 0.98);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-mono);
    font-size: 24px;
    font-weight: 700;
    color: var(--red);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-red);
    transition: width 0.3s ease;
}

.logo:hover::after {
    width: 100%;
}

.logo:hover {
    color: var(--red-light);
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: 2px solid var(--red);
    border-radius: 6px;
    color: var(--red);
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    z-index: 1001;
}

.mobile-menu-btn:hover {
    background-color: rgba(255, 51, 102, 0.1);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 40px;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 15px;
    transition: var(--transition);
    position: relative;
    padding: 8px 0;
    opacity: 0;
    transform: translateY(-10px);
    animation: fadeInNav 0.5s ease forwards;
}

@keyframes fadeInNav {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-links li:nth-child(1) a { animation-delay: 0.5s; }
.nav-links li:nth-child(2) a { animation-delay: 0.6s; }
.nav-links li:nth-child(3) a { animation-delay: 0.7s; }
.nav-links li:nth-child(4) a { animation-delay: 0.8s; }
.nav-links li:nth-child(5) a { animation-delay: 0.9s; }
.nav-links li:nth-child(6) a { animation-delay: 1s; }

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--gradient-red);
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--red);
}

/* Hero */
.hero {
    padding: 180px 0 120px;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(ellipse at 20% 30%, rgba(255, 51, 102, 0.15) 0%, transparent 50%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 51, 102, 0.1) 0%, transparent 70%);
    top: 20%;
    right: 10%;
    animation: float 6s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 51, 102, 0.05) 0%, transparent 70%);
    bottom: 10%;
    left: 5%;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: center;
}

@media (min-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-text {
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
}

.hero-subtitle {
    font-family: var(--font-mono);
    color: var(--red);
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 400;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInLeft 0.8s ease 0.5s forwards;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-title {
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.1;
    margin-bottom: 25px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.7s forwards;
}

.hero-title .highlight {
    color: var(--red);
    position: relative;
    display: inline-block;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(255, 51, 102, 0.2);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left;
    animation: expandWidth 1s ease 1.2s forwards;
}

.hero-description {
    font-size: 18px;
    color: var(--gray-light);
    margin-bottom: 40px;
    max-width: 500px;
    font-weight: 300;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease 0.9s forwards;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
    animation-delay: 0.3s;
}

.code-window {
    background-color: rgba(17, 17, 17, 0.9);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(255, 51, 102, 0.2);
    border: 2px solid rgba(255, 51, 102, 0.3);
    transform: perspective(1000px) rotateY(0deg);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.code-window:hover {
    transform: perspective(1000px) rotateY(5deg);
    box-shadow: 0 30px 60px rgba(255, 51, 102, 0.4);
}

.code-header {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    border-bottom: 2px solid rgba(255, 51, 102, 0.2);
}

.code-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    opacity: 0;
    animation: bounceIn 0.5s ease forwards;
}

.dot-red { 
    background-color: var(--red);
    animation-delay: 0.5s;
}

.dot-yellow { 
    background-color: var(--yellow);
    animation-delay: 0.6s;
}

.dot-green { 
    background-color: var(--green);
    animation-delay: 0.7s;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.code-title {
    margin-left: 15px;
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--gray);
    opacity: 0;
    animation: fadeIn 0.5s ease 0.8s forwards;
}

.code-body {
    padding: 25px;
    font-family: var(--font-mono);
    font-size: 16px;
    line-height: 1.8;
    overflow-x: auto;
    background: linear-gradient(135deg, rgba(255, 51, 102, 0.05), transparent);
}

.code-line {
    display: flex;
    margin-bottom: 5px;
    opacity: 0;
    animation: typeLine 0.5s ease forwards;
}

.line-number {
    color: var(--gray);
    margin-right: 20px;
    min-width: 30px;
    text-align: right;
    opacity: 0.5;
}

.code-keyword {
    color: var(--red);
}

.code-string {
    color: var(--red-light);
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 20px;
    background-color: var(--red);
    margin-left: 5px;
    animation: blink 1s infinite;
    vertical-align: middle;
}

/* About */
.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: start;
}

@media (min-width: 768px) {
    .about-content {
        grid-template-columns: 2fr 1fr;
    }
}

.about-text p {
    margin-bottom: 20px;
    color: var(--gray-light);
    font-size: 18px;
    font-weight: 300;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInLeft 0.6s ease forwards;
}

.about-text p:nth-child(1) { animation-delay: 0.3s; }
.about-text p:nth-child(2) { animation-delay: 0.5s; }
.about-text p:nth-child(3) { animation-delay: 0.7s; }

.highlight-text {
    color: var(--red);
    font-weight: 500;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.tech-tag {
    background-color: rgba(255, 51, 102, 0.1);
    color: var(--red);
    padding: 8px 16px;
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 14px;
    border: 1px solid transparent;
    transition: var(--transition);
    cursor: default;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

.tech-tag:nth-child(1) { animation-delay: 0.9s; }
.tech-tag:nth-child(2) { animation-delay: 1s; }
.tech-tag:nth-child(3) { animation-delay: 1.1s; }
.tech-tag:nth-child(4) { animation-delay: 1.2s; }
.tech-tag:nth-child(5) { animation-delay: 1.3s; }
.tech-tag:nth-child(6) { animation-delay: 1.4s; }
.tech-tag:nth-child(7) { animation-delay: 1.5s; }
.tech-tag:nth-child(8) { animation-delay: 1.6s; }
.tech-tag:nth-child(9) { animation-delay: 1.7s; }
.tech-tag:nth-child(10) { animation-delay: 1.8s; }
.tech-tag:nth-child(11) { animation-delay: 1.9s; }
.tech-tag:nth-child(12) { animation-delay: 2s; }

.tech-tag:hover {
    border-color: var(--red);
    transform: translateY(-3px);
    background-color: rgba(255, 51, 102, 0.15);
}

.about-stats {
    background-color: rgba(17, 17, 17, 0.8);
    border-radius: 12px;
    padding: 30px;
    border: 2px solid rgba(255, 51, 102, 0.1);
    opacity: 0;
    transform: translateX(20px);
    animation: slideInRight 0.8s ease 0.8s forwards;
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.stat-item {
    margin-bottom: 25px;
    text-align: center;
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--red);
    margin-bottom: 5px;
    font-family: var(--font-mono);
    opacity: 0;
    transform: scale(0.5);
    animation: popIn 0.6s ease forwards;
}

.stat-item:nth-child(1) .stat-value { animation-delay: 1s; }
.stat-item:nth-child(2) .stat-value { animation-delay: 1.2s; }
.stat-item:nth-child(3) .stat-value { animation-delay: 1.4s; }

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    70% {
        opacity: 1;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.stat-label {
    color: var(--gray);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

.stat-item:nth-child(1) .stat-label { animation-delay: 1.1s; }
.stat-item:nth-child(2) .stat-label { animation-delay: 1.3s; }
.stat-item:nth-child(3) .stat-label { animation-delay: 1.5s; }

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
}

.service-card {
    background-color: rgba(17, 17, 17, 0.8);
    border-radius: 12px;
    padding: 40px 30px;
    transition: var(--transition);
    border: 2px solid transparent;
    height: 100%;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.service-card:nth-child(1) { animation-delay: 0.3s; }
.service-card:nth-child(2) { animation-delay: 0.5s; }
.service-card:nth-child(3) { animation-delay: 0.7s; }

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: var(--gradient-red);
    transition: left 0.6s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--red);
    box-shadow: 0 20px 40px rgba(255, 51, 102, 0.2);
}

.service-icon {
    font-size: 40px;
    color: var(--red);
    margin-bottom: 25px;
    display: inline-flex;
    width: 70px;
    height: 70px;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 51, 102, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(10deg);
}

.service-title {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--red);
}

.service-description {
    color: var(--gray-light);
    margin-bottom: 20px;
    font-weight: 300;
}

.service-list {
    list-style: none;
    margin-top: 20px;
}

.service-list li {
    color: var(--gray-light);
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
    font-weight: 300;
    opacity: 0;
    transform: translateX(-10px);
    animation: slideInLeft 0.4s ease forwards;
}

.service-card:nth-child(1) .service-list li:nth-child(1) { animation-delay: 0.4s; }
.service-card:nth-child(1) .service-list li:nth-child(2) { animation-delay: 0.5s; }
.service-card:nth-child(1) .service-list li:nth-child(3) { animation-delay: 0.6s; }
.service-card:nth-child(1) .service-list li:nth-child(4) { animation-delay: 0.7s; }

.service-card:nth-child(2) .service-list li:nth-child(1) { animation-delay: 0.6s; }
.service-card:nth-child(2) .service-list li:nth-child(2) { animation-delay: 0.7s; }
.service-card:nth-child(2) .service-list li:nth-child(3) { animation-delay: 0.8s; }
.service-card:nth-child(2) .service-list li:nth-child(4) { animation-delay: 0.9s; }

.service-card:nth-child(3) .service-list li:nth-child(1) { animation-delay: 0.8s; }
.service-card:nth-child(3) .service-list li:nth-child(2) { animation-delay: 0.9s; }
.service-card:nth-child(3) .service-list li:nth-child(3) { animation-delay: 1s; }
.service-card:nth-child(3) .service-list li:nth-child(4) { animation-delay: 1.1s; }
.service-card:nth-child(3) .service-list li:nth-child(5) { animation-delay: 1.2s; }

.service-list li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--red);
    font-weight: bold;
}

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.portfolio-item {
    background-color: rgba(17, 17, 17, 0.8);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    border: 2px solid rgba(255, 51, 102, 0.2);
    display: block;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.portfolio-item:nth-child(1) { animation-delay: 0.3s; }
.portfolio-item:nth-child(2) { animation-delay: 0.5s; }
.portfolio-item:nth-child(3) { animation-delay: 0.7s; }

.portfolio-item:hover {
    transform: translateY(-10px);
    border-color: var(--red);
    box-shadow: 0 20px 40px rgba(255, 51, 102, 0.3);
}

.portfolio-img {
    height: 200px;
    background: linear-gradient(135deg, rgba(255, 51, 102, 0.15), rgba(255, 51, 102, 0.05));
    position: relative;
    overflow: hidden;
    border-bottom: 2px solid rgba(255, 51, 102, 0.2);
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-img img.loaded {
    opacity: 1;
}

.portfolio-item:hover .portfolio-img img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: var(--white);
    font-family: var(--font-mono);
    font-size: 14px;
}

.portfolio-overlay i {
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--red);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-img .site-preview {
    font-family: var(--font-mono);
    color: var(--red);
    font-size: 18px;
    font-weight: 500;
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.portfolio-img img.loading {
    background: linear-gradient(90deg, rgba(255, 51, 102, 0.1) 25%, rgba(255, 51, 102, 0.2) 50%, rgba(255, 51, 102, 0.1) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.portfolio-content {
    padding: 25px;
    position: relative;
    display: flex;
    flex-direction: column;
    height: calc(100% - 200px);
}

.portfolio-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 25px;
    right: 25px;
    height: 2px;
    background: var(--gradient-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-content::before {
    transform: scaleX(1);
}

.portfolio-title {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--red);
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-title {
    color: var(--red-light);
}

.portfolio-description {
    color: var(--gray-light);
    margin-bottom: 20px;
    font-weight: 300;
    line-height: 1.6;
    flex-grow: 1;
}

.portfolio-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tech-tag-small {
    background-color: rgba(255, 51, 102, 0.1);
    color: var(--red);
    padding: 4px 12px;
    border-radius: 15px;
    font-family: var(--font-mono);
    font-size: 12px;
    border: 1px solid transparent;
    transition: var(--transition);
}

.tech-tag-small:hover {
    border-color: var(--red);
    transform: translateY(-2px);
}

.portfolio-actions {
    margin-top: auto;
    display: flex;
    justify-content: center;
}

@media (max-width: 768px) {
    .portfolio-actions {
        justify-content: stretch;
    }
}

.portfolio-load-more {
    text-align: center;
    margin-top: 40px;
}

/* Blog */
.blog-section {
    background: linear-gradient(135deg, rgba(255, 51, 102, 0.03), transparent);
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
}

.blog-card {
    background-color: rgba(17, 17, 17, 0.8);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    border: 2px solid rgba(255, 51, 102, 0.2);
    height: 100%;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.blog-card:nth-child(1) { animation-delay: 0.3s; }
.blog-card:nth-child(2) { animation-delay: 0.5s; }
.blog-card:nth-child(3) { animation-delay: 0.7s; }

.blog-card:hover {
    transform: translateY(-10px);
    border-color: var(--red);
    box-shadow: 0 20px 40px rgba(255, 51, 102, 0.3);
}

.blog-header {
    padding: 25px 25px 15px;
    border-bottom: 1px solid rgba(255, 51, 102, 0.1);
}

.blog-category {
    display: inline-block;
    background: var(--gradient-red);
    color: var(--white);
    padding: 6px 15px;
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.blog-title {
    font-size: 22px;
    color: var(--red);
    margin-bottom: 10px;
    line-height: 1.3;
    transition: var(--transition);
}

.blog-card:hover .blog-title {
    color: var(--red-light);
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--gray);
    font-size: 13px;
    font-family: var(--font-mono);
}

.blog-content {
    padding: 20px 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-excerpt {
    color: var(--gray-light);
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 15px;
    flex-grow: 1;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.blog-tag {
    background-color: rgba(255, 51, 102, 0.1);
    color: var(--red);
    padding: 4px 10px;
    border-radius: 15px;
    font-family: var(--font-mono);
    font-size: 11px;
    border: 1px solid transparent;
    transition: var(--transition);
}

.blog-load-more {
    text-align: center;
    margin-top: 40px;
}

/* Contact */
.contact-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-methods {
    margin-top: 40px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .contact-methods {
        grid-template-columns: repeat(2, 1fr);
    }
}

.contact-method {
    display: flex;
    align-items: center;
    padding: 25px;
    background-color: rgba(17, 17, 17, 0.8);
    border-radius: 12px;
    transition: var(--transition);
    border: 2px solid transparent;
    text-align: left;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.contact-method:nth-child(1) { animation-delay: 0.3s; }
.contact-method:nth-child(2) { animation-delay: 0.5s; }

.contact-method:hover {
    border-color: var(--red);
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 24px;
    color: var(--red);
    margin-right: 20px;
    min-width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 51, 102, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.contact-method:hover .contact-icon {
    transform: scale(1.1) rotate(10deg);
}

.contact-details h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--red);
}

.contact-details p {
    color: var(--gray-light);
    font-weight: 300;
    font-size: 16px;
}

/* Feedback Widget */
.feedback-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    opacity: 0;
    transform: scale(0.5);
    animation: popIn 0.6s ease 1s forwards;
}

.feedback-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-red);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(255, 51, 102, 0.5);
    transition: var(--transition);
    border: none;
    animation: pulse 2s ease infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.feedback-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(255, 51, 102, 0.7);
    animation: none;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background-color: rgba(17, 17, 17, 0.95);
    border-radius: 16px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    border: 2px solid var(--red);
    transform: translateY(50px) scale(0.9);
    transition: all 0.4s ease;
    opacity: 0;
    box-shadow: 0 30px 60px rgba(255, 51, 102, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal-header {
    padding: 25px 30px;
    border-bottom: 2px solid rgba(255, 51, 102, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(17, 17, 17, 0.95);
    flex-shrink: 0;
}

.modal-title {
    font-size: 24px;
    color: var(--red);
}

.modal-close {
    background: transparent;
    border: 2px solid var(--gray);
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
}

.modal-close:hover {
    background-color: rgba(255, 51, 102, 0.1);
    border-color: var(--red);
    color: var(--red);
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    flex-grow: 1;
    overscroll-behavior: contain;
}

/* Article Modal Content */
.article-content h3 {
    color: var(--red);
    margin: 25px 0 15px;
    font-size: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 51, 102, 0.2);
    animation: slideInLeft 0.5s ease;
}

.article-content p {
    color: var(--gray-light);
    margin-bottom: 15px;
    line-height: 1.8;
    font-size: 16px;
    animation: fadeIn 0.5s ease;
}

.article-content ul {
    margin-left: 0;
    margin-bottom: 20px;
    list-style: none;
}

.article-content li {
    color: var(--gray-light);
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
    animation: fadeIn 0.5s ease;
}

.article-content li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--red);
    font-size: 12px;
    margin-right: 8px;
}

/* Form */
.form-group {
    margin-bottom: 25px;
    animation: fadeIn 0.5s ease;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-family: var(--font-mono);
    color: var(--white);
    font-size: 15px;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 51, 102, 0.2);
    border-radius: 8px;
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 16px;
    transition: var(--transition);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(255, 51, 102, 0.2);
    transform: translateY(-2px);
}

.form-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='none' stroke='%23ff3366' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 45px;
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* Footer */
footer {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 60px 0 30px;
    border-top: 2px solid rgba(255, 51, 102, 0.2);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

.copyright {
    text-align: center;
    color: var(--gray);
    font-size: 14px;
    padding-top: 30px;
    border-top: 2px solid rgba(255, 51, 102, 0.1);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes typeLine {
    from { 
        opacity: 0;
        transform: translateX(-10px);
    }
    to { 
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Progress bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-red);
    z-index: 1001;
    transition: width 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.98);
        flex-direction: column;
        padding: 120px 20px 20px;
        justify-content: flex-start;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .nav-links.active {
        transform: translateX(0);
    }
    
    .nav-links li {
        margin: 15px 0;
        margin-left: 0;
    }
    
    .nav-links a {
        font-size: 20px;
        padding: 12px 0;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    section {
        padding: 80px 0;
    }
    
    .portfolio-grid,
    .blog-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .feedback-widget {
        bottom: 20px;
        right: 20px;
    }
    
    .feedback-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .portfolio-description {
        min-height: auto;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-close {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .modal-title {
        font-size: 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .portfolio-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 140px 0 80px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 14px;
        width: 100%;
        justify-content: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .contact-method {
        padding: 20px;
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-red);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-glow);
}

/* Performance optimizations */
.hero-visual,
.portfolio-img,
.service-card,
.blog-card,
.contact-method,
.btn,
.logo {
    will-change: transform;
}

/* Print styles */
@media print {
    .feedback-widget,
    .mobile-menu-btn,
    .modal-overlay {
        display: none !important;
    }
}