/* Root Variables */
:root {
    --primary-color: #FF3B3B;
    --dark-bg: #050505;
    --dark-card: #111;
    --text-main: #ffffff;
    --text-secondary: #cccccc;
    --text-tertiary: #aaaaaa;
    --border-light: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(20, 20, 20, 0.6);
    --glass-border: rgba(255, 59, 59, 0.15);
    --neon-glow: rgba(255, 59, 59, 0.8);
}

body.light-mode {
    --primary-color: #FF3B3B;
    --dark-bg: #f5f5f5;
    --dark-card: #ffffff;
    --text-main: #1a1a1a;
    --text-secondary: #555555;
    --text-tertiary: #888888;
    --border-light: rgba(0, 0, 0, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 59, 59, 0.25);
    --neon-glow: rgba(255, 59, 59, 0.5);
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    opacity: 0;
    transition: opacity 0.45s ease-in, background-color 0.3s ease;
}

body.loaded {
    opacity: 1;
}

main {
    padding-top: 90px;
}

/* ============ PRELOADER ============ */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #050505 0%, #111 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

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

.logo-3d {
    font-size: 120px;
    font-weight: 900;
    margin-bottom: 30px;
    perspective: 1000px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-letter {
    background: linear-gradient(135deg, #FF3B3B, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    animation: rotate-3d 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
    filter: drop-shadow(0 0 20px rgba(255, 59, 59, 0.6));
    transform-style: preserve-3d;
}

@keyframes rotate-3d {
    0% {
        transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
    }
    25% {
        transform: rotateX(180deg) rotateY(10deg) rotateZ(5deg);
    }
    50% {
        transform: rotateX(360deg) rotateY(20deg) rotateZ(10deg);
    }
    75% {
        transform: rotateX(540deg) rotateY(10deg) rotateZ(5deg);
    }
    100% {
        transform: rotateX(720deg) rotateY(0deg) rotateZ(0deg);
    }
}

.preloader-text {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.loading-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #FF3B3B;
    animation: bounce-dot 1.4s infinite ease-in-out;
}

.loading-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce-dot {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.6;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* ============ HEADER ============ */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 40px;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow-text 2s ease-in-out infinite;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

@keyframes glow-text {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(255, 59, 59, 0.3)); }
    50% { filter: drop-shadow(0 0 12px rgba(255, 59, 59, 0.6)); }
}

nav.nav-menu {
    display: flex;
    gap: 28px;
    align-items: center;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 0.4px;
    transition: color 0.25s ease, text-shadow 0.25s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

nav a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(255, 59, 59, 0.5);
}

nav a:hover::after {
    width: 100%;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 101;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-main);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.theme-toggle-wrapper {
    display: flex;
    gap: 16px;
}

.theme-toggle {
    background: none;
    border: 2px solid var(--border-light);
    color: var(--text-main);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(255, 59, 59, 0.3);
    transform: rotate(20deg);
}

/* ============ HERO SECTION ============ */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: calc(100vh - 90px);
    padding: 40px 40px 60px;
    gap: 40px;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at top left, rgba(255, 59, 59, 0.05), transparent 30%),
                linear-gradient(180deg, #080809 0%, #09090d 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 59, 59, 0.08) 0%, transparent 70%);
    animation: gradient-rotate 20s infinite linear;
    z-index: -1;
}

@keyframes gradient-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-copy {
    flex: 1;
    max-width: 540px;
    animation: fadeInUp 0.8s ease-out;
}

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

.hero-tag {
    display: inline-block;
    margin-bottom: 18px;
    font-size: 0.85rem;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--text-tertiary);
    animation: fadeInUp 0.8s ease-out 0.1s backwards;
}

h1 {
    font-size: 4rem;
    line-height: 1.05;
    margin-bottom: 24px;
    color: var(--text-main);
    max-width: 520px;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-copy p {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 620px;
    margin-bottom: 36px;
    animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

/* ============ BUTTONS ============ */
.btn,
a.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.4s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.primary {
    background: linear-gradient(135deg, var(--primary-color), #ff6b6b);
    color: #fff;
    border: none;
    box-shadow: 0 8px 20px rgba(255, 59, 59, 0.3);
}

.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 59, 59, 0.5);
}

/* Neon Button - Primary */
.neon-btn {
    position: relative;
}

.neon-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-color), #ff6b6b);
    filter: blur(8px);
    opacity: 0.6;
    z-index: -1;
    transition: all 0.3s ease;
}

.neon-btn:hover::after {
    opacity: 1;
    filter: blur(15px);
}

.neon-btn:hover {
    box-shadow: 
        0 0 10px rgba(255, 59, 59, 0.8),
        0 0 20px rgba(255, 59, 59, 0.6),
        0 0 30px rgba(255, 59, 59, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    filter: brightness(1.2) saturate(1.3);
}

.secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: inset 0 0 20px rgba(255, 59, 59, 0.1);
}

.secondary:hover {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 8px 25px rgba(255, 59, 59, 0.4);
    transform: translateY(-3px);
}

/* Neon Button - Secondary */
.neon-btn-secondary {
    position: relative;
}

.neon-btn-secondary::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-color), #ff6b6b);
    filter: blur(6px);
    opacity: 0.4;
    z-index: -1;
    transition: all 0.3s ease;
}

.neon-btn-secondary:hover::after {
    opacity: 0.8;
    filter: blur(12px);
}

.neon-btn-secondary:hover {
    box-shadow: 
        0 0 10px rgba(255, 59, 59, 0.6),
        inset 0 0 20px rgba(255, 59, 59, 0.2);
}

/* ============ HERO VISUAL ============ */
.hero-visual {
    flex: 1;
    min-width: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    animation: float 3s ease-in-out infinite;
    padding: 18px;
    background: rgba(0, 0, 0, 0.26);
    border-radius: 48px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-photo-stage {
    position: relative;
    width: 100%;
    max-width: 520px;
    padding: 22px;
    border-radius: 44px;
    background: rgba(10, 10, 10, 0.92);
    border: 1px solid rgba(255, 59, 59, 0.16);
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.45), inset 0 0 30px rgba(255, 59, 59, 0.08);
    overflow: hidden;
}

.hero-photo-stage::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 35%);
    pointer-events: none;
}

.photo-ui-label {
    position: absolute;
    left: 24px;
    bottom: 20px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 8px 14px;
    background: rgba(255, 59, 59, 0.08);
    border-radius: 999px;
    border: 1px solid rgba(255, 59, 59, 0.12);
    backdrop-filter: blur(10px);
    z-index: 2;
}

.hero-photo-wrapper {
    width: 100%;
    height: 520px;
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid rgba(255, 59, 59, 0.22);
    background: radial-gradient(circle at top left, rgba(255, 59, 59, 0.18), transparent 30%),
                linear-gradient(180deg, rgba(8, 8, 8, 0.96), rgba(20, 20, 20, 0.98));
    backdrop-filter: blur(22px);
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.45),
                inset 0 0 60px rgba(255, 59, 59, 0.1),
                0 0 80px rgba(255, 59, 59, 0.18);
    position: relative;
    z-index: 2;
    transition: all 0.35s ease;
    perspective: 1000px;
}

.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease, filter 0.35s ease;
    filter: brightness(0.98) contrast(1.08) drop-shadow(0 0 25px rgba(255, 59, 59, 0.24));
}

.hero-photo-wrapper:hover .hero-photo {
    transform: scale(1.06);
    filter: brightness(1.02) contrast(1.12) drop-shadow(0 0 32px rgba(255, 59, 59, 0.35));
}

.photo-glow {
    position: absolute;
    inset: -10px;
    border-radius: 32px;
    background: radial-gradient(circle, rgba(255, 59, 59, 0.25), transparent 55%);
    filter: blur(28px);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.hero-photo-wrapper:hover .photo-glow {
    opacity: 1;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotateZ(0deg); }
    50% { transform: translateY(-20px) rotateZ(1deg); }
}

.hero-photo-wrapper {
    width: 460px;
    height: 520px;
    border-radius: 36px;
    overflow: hidden;
    border: 1px solid rgba(255, 59, 59, 0.22);
    background: radial-gradient(circle at top left, rgba(255, 59, 59, 0.16), transparent 35%),
                linear-gradient(180deg, rgba(8, 8, 8, 0.96), rgba(20, 20, 20, 0.98));
    backdrop-filter: blur(22px);
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.45),
                inset 0 0 60px rgba(255, 59, 59, 0.1),
                0 0 80px rgba(255, 59, 59, 0.18);
    position: relative;
    z-index: 2;
    transition: all 0.35s ease;
    perspective: 1000px;
}

.hero-photo-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 40% 30%, rgba(255, 59, 59, 0.12), transparent 40%),
                linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 60%);
    pointer-events: none;
}

.hero-photo-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.1), transparent 45%);
    pointer-events: none;
}

.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease, filter 0.35s ease;
    filter: drop-shadow(0 0 25px rgba(255, 59, 59, 0.24));
}

.hero-photo-wrapper:hover .hero-photo {
    transform: scale(1.06);
    filter: drop-shadow(0 0 32px rgba(255, 59, 59, 0.35));
}

.photo-glow {
    position: absolute;
    inset: -10px;
    border-radius: 36px;
    background: radial-gradient(circle, rgba(255, 59, 59, 0.25), transparent 55%);
    filter: blur(28px);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.hero-photo-wrapper:hover .photo-glow {
    opacity: 1;
}

.hero-shadow {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 300px;
    height: 300px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 59, 59, 0.18) 0%, rgba(30, 30, 30, 0.4) 45%, transparent 70%);
    filter: blur(28px);
    z-index: 0;
    animation: pulse 3s ease-in-out infinite;
}

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

/* ============ SECTIONS ============ */
.section {
    padding: 80px 40px;
    background-color: var(--dark-bg);
    border-top: 1px solid var(--border-light);
    position: relative;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
    opacity: 0;
    animation: slideIn 1s ease-out forwards;
}

@keyframes slideIn {
    to { opacity: 1; }
}

.section-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 32px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

.section-copy h2,
.section-header h2 {
    font-size: 2.4rem;
    margin-bottom: 20px;
    color: var(--text-main);
    background: linear-gradient(135deg, var(--text-main), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-copy p,
.section-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.75;
}

.section-stats {
    display: grid;
    gap: 20px;
}

/* ============ 3D CARDS ============ */
.card-3d {
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.card-3d:hover {
    transform: translateZ(20px) rotateX(5deg) rotateY(-5deg);
}

.stat-card {
    background: var(--dark-card);
    border: 1px solid var(--border-light);
    padding: 28px 24px;
    border-radius: 18px;
    transition: all 0.3s ease;
}

.stat-card.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
}

.stat-card:hover {
    transform: translateY(-8px);
    border-color: var(--glass-border);
    box-shadow: 0 12px 40px rgba(255, 59, 59, 0.15);
}

.stat-card span {
    display: block;
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-color);
}

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

.section-header {
    max-width: 900px;
    margin-bottom: 28px;
}

/* ============ PROJECTS ============ */
.project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: var(--dark-card);
    border: 1px solid var(--border-light);
    padding: 26px;
    border-radius: 22px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.project-card.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
}

.project-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 59, 59, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-12px) scale(1.02) translateZ(25px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 50px rgba(255, 59, 59, 0.2);
}

/* SVG Icon Styling */
.project-icon-svg,
.contact-icon-svg {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 10px rgba(255, 59, 59, 0.2));
}

.project-icon-svg svg,
.contact-icon-svg svg {
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
}

.project-card:hover .project-icon-svg {
    transform: scale(1.15) rotate(-5deg);
    filter: drop-shadow(0 0 20px rgba(255, 59, 59, 0.6));
}

.contact-icon-svg {
    margin-bottom: 12px;
}

.info-card:hover .contact-icon-svg {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px rgba(255, 59, 59, 0.5));
}

/* SVG Animations */
.phone-wave {
    animation: wave-pulse 2s ease-in-out infinite;
    transform-origin: 50px 50px;
}

@keyframes wave-pulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

.email-pulse {
    animation: pulse-email 2.5s ease-in-out infinite;
}

@keyframes pulse-email {
    0%, 100% {
        opacity: 0.5;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-3px);
    }
}

.icon-design {
    animation: rotate-icon 4s linear infinite;
}

.icon-mobile {
    animation: float-icon 3s ease-in-out infinite;
}

@keyframes rotate-icon {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

.project-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-main);
}

.project-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.project-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.project-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.project-link:hover {
    transform: translateX(4px);
    text-shadow: 0 0 10px rgba(255, 59, 59, 0.5);
}

.project-link:hover::after {
    width: 100%;
}

/* ============ CONTACT SECTION ============ */
.contact-container {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    margin-top: 40px;
}

.contact-form {
    background: var(--dark-card);
    border: 1px solid var(--border-light);
    padding: 40px;
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    transform-style: preserve-3d;
}

.contact-form.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
}

.contact-form:hover {
    transform: translateZ(15px);
    box-shadow: 0 20px 50px rgba(255, 59, 59, 0.15);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-main);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-tertiary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(255, 59, 59, 0.2);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.contact-form .btn {
    width: 100%;
}

.form-status {
    margin-top: 16px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-status.success {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    opacity: 1;
}

.form-status.error {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    opacity: 1;
}

.contact-info {
    display: grid;
    gap: 20px;
}

.info-card {
    background: var(--dark-card);
    border: 1px solid var(--border-light);
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    transform-style: preserve-3d;
}

.info-card.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
}

.info-card:hover {
    transform: translateY(-6px) translateZ(20px);
    box-shadow: 0 12px 30px rgba(255, 59, 59, 0.15);
}

.info-card h3 {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: block;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.contact-link:hover {
    text-shadow: 0 0 15px rgba(255, 59, 59, 0.5);
    transform: scale(1.05) translateY(-2px);
}

.social-links {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
}

.social-icon {
    width: 50px;
    height: 50px;
    border: 2px solid var(--border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.7rem;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
    transform-style: preserve-3d;
    background: rgba(255, 255, 255, 0.02);
}

.social-icon svg {
    width: 28px;
    height: 28px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 
        0 0 15px rgba(255, 59, 59, 0.4),
        inset 0 0 15px rgba(255, 59, 59, 0.1);
    transform: scale(1.15) rotateX(10deg) rotateZ(5deg) translateZ(20px);
}

.social-icon:hover svg {
    filter: drop-shadow(0 0 8px rgba(255, 59, 59, 0.6));
    transform: rotate(15deg) scale(1.1);
}

.social-icon span {
    display: none;
}

/* ============ FOOTER ============ */
footer {
    padding: 24px 40px;
    text-align: center;
    color: var(--text-tertiary);
    border-top: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding: 60px 28px 40px;
    }

    .hero-visual {
        margin-bottom: 24px;
    }

    .hero-photo-wrapper {
        width: 360px;
        height: 440px;
    }

    .section-grid {
        grid-template-columns: 1fr;
    }

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

    .project-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    header {
        padding: 16px 20px;
    }

    .hamburger {
        display: flex;
    }

    .menu-toggle {
        display: none;
    }

    .menu-toggle:checked ~ .hamburger span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .menu-toggle:checked ~ .hamburger span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle:checked ~ .hamburger span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }

    .menu-toggle:checked ~ nav.nav-menu {
        left: 0;
    }

    nav.nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--dark-bg);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 40px 20px;
        gap: 20px;
        transition: left 0.3s ease;
        z-index: 99;
        border-top: 1px solid var(--border-light);
    }

    nav a {
        font-size: 1.1rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    .section {
        padding: 60px 20px;
    }

    .section-copy h2,
    .section-header h2 {
        font-size: 1.8rem;
    }

    .contact-form {
        padding: 24px;
    }

    .hero-photo-wrapper {
        width: 280px;
        height: 340px;
    }

    .social-icon {
        width: 44px;
        height: 44px;
    }

    .social-icon svg {
        width: 22px;
        height: 22px;
    }
}
