/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00d4ff;
    --secondary-color: #ff6b35;
    --accent-color: #ffd700;
    --dark-bg: #0a0a0a;
    --darker-bg: #050505;
    --card-bg: rgba(255, 255, 255, 0.05);
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #ff6b35 100%);
    --gradient-nova: linear-gradient(45deg, #ffd700, #ff6b35, #00d4ff, #ffd700);
    --shadow-glow: 0 0 30px rgba(0, 212, 255, 0.3);
    --shadow-nova: 0 0 50px rgba(255, 215, 0, 0.5);
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

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

/* ===== LOADING SCREEN ===== */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--darker-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.nova-loader {
    text-align: center;
}

.nova-star {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    background: var(--gradient-nova);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: novaPulse 2s ease-in-out infinite;
}

@keyframes novaPulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(180deg); }
}

.loading-text {
    font-family: 'Orbitron', monospace;
    font-size: 18px;
    color: var(--primary-color);
    letter-spacing: 3px;
    animation: textGlow 1.5s ease-in-out infinite alternate;
}

@keyframes textGlow {
    from { text-shadow: 0 0 10px var(--primary-color); }
    to { text-shadow: 0 0 20px var(--primary-color), 0 0 30px var(--primary-color); }
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-nova {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Orbitron', monospace;
    font-size: 24px;
    font-weight: 900;
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: none;
}

.logo-nova:hover {
    text-decoration: none;
    color: var(--primary-color);
}

a.logo-nova {
    text-decoration: none;
}

a.logo-nova:hover {
    text-decoration: none;
    color: var(--primary-color);
}

.logo-nova i {
    color: var(--accent-color);
    animation: starTwinkle 2s ease-in-out infinite;
}

@keyframes starTwinkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(180deg); }
}

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

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

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

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

.nav-link:hover {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* ===== HERO SECTION ===== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.cosmic-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><circle cx="100" cy="100" r="1" fill="white"/><circle cx="300" cy="200" r="0.5" fill="white"/><circle cx="500" cy="150" r="1.5" fill="white"/><circle cx="700" cy="300" r="0.8" fill="white"/><circle cx="900" cy="250" r="1" fill="white"/><circle cx="200" cy="400" r="0.6" fill="white"/><circle cx="400" cy="500" r="1.2" fill="white"/><circle cx="600" cy="450" r="0.9" fill="white"/><circle cx="800" cy="550" r="1.3" fill="white"/><circle cx="150" cy="700" r="0.7" fill="white"/><circle cx="350" cy="650" r="1.1" fill="white"/><circle cx="550" cy="750" r="0.8" fill="white"/><circle cx="750" cy="700" r="1.4" fill="white"/><circle cx="950" cy="800" r="0.9" fill="white"/></svg>') repeat;
    animation: starMove 20s linear infinite;
}

@keyframes starMove {
    from { transform: translateY(0); }
    to { transform: translateY(-1000px); }
}

.twinkling {
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><circle cx="50" cy="50" r="2" fill="%2300d4ff"/><circle cx="250" cy="100" r="1.5" fill="%23ffd700"/><circle cx="450" cy="75" r="2.5" fill="%23ff6b35"/><circle cx="650" cy="150" r="1.8" fill="%2300d4ff"/><circle cx="850" cy="125" r="2" fill="%23ffd700"/><circle cx="100" cy="200" r="1.6" fill="%23ff6b35"/><circle cx="300" cy="250" r="2.2" fill="%2300d4ff"/><circle cx="500" cy="225" r="1.9" fill="%23ffd700"/><circle cx="700" cy="275" r="2.4" fill="%23ff6b35"/><circle cx="75" cy="350" r="1.7" fill="%2300d4ff"/><circle cx="275" cy="325" r="2.1" fill="%23ffd700"/><circle cx="475" cy="375" r="1.8" fill="%23ff6b35"/><circle cx="675" cy="350" r="2.3" fill="%2300d4ff"/><circle cx="875" cy="400" r="1.9" fill="%23ffd700"/></svg>') repeat;
    animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.clouds {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
    animation: cloudFloat 15s ease-in-out infinite;
}

@keyframes cloudFloat {
    0%, 100% { transform: translateX(0) translateY(0); }
    33% { transform: translateX(-20px) translateY(-10px); }
    66% { transform: translateX(20px) translateY(10px); }
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
}

.nova-explosion {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.nova-core {
    width: 200px;
    height: 200px;
    background: var(--gradient-nova);
    border-radius: 50%;
    animation: novaExplosion 4s ease-in-out infinite;
    box-shadow: var(--shadow-nova);
}

@keyframes novaExplosion {
    0%, 100% { 
        transform: scale(0.8) rotate(0deg);
        opacity: 0.7;
    }
    50% { 
        transform: scale(1.2) rotate(180deg);
        opacity: 1;
    }
}

.nova-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: ringExpand 3s ease-in-out infinite;
}

.nova-rings::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    width: 320px;
    height: 320px;
    border: 1px solid var(--secondary-color);
    border-radius: 50%;
    animation: ringExpand 3s ease-in-out infinite 0.5s;
}

.nova-rings::after {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 340px;
    height: 340px;
    border: 1px solid var(--accent-color);
    border-radius: 50%;
    animation: ringExpand 3s ease-in-out infinite 1s;
}

@keyframes ringExpand {
    0% { 
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
    }
    50% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% { 
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

.hero-title {
    font-family: 'Orbitron', monospace;
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 30px;
    line-height: 1.2;
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(50px);
    animation: titleReveal 1s ease-out forwards;
}

.title-line:nth-child(1) { animation-delay: 0.5s; }
.title-line:nth-child(2) { animation-delay: 1s; }
.title-line:nth-child(3) { animation-delay: 1.5s; }

.highlight {
    background: var(--gradient-nova);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px var(--accent-color);
}

@keyframes titleReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeInUp 1s ease-out 2s forwards;
}

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

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    opacity: 0;
    animation: fadeInUp 1s ease-out 2.5s forwards;
}

.btn-primary, .btn-secondary {
    padding: 12px 25px;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
}

.btn-primary {
    background: var(--gradient-primary);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
    transform: translateY(-3px);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border-right: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ===== SECTION STYLES ===== */
section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nova-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.nova-line {
    width: 100px;
    height: 2px;
    background: var(--gradient-primary);
}

.nova-star-icon {
    color: var(--accent-color);
    font-size: 20px;
    animation: starRotate 3s linear infinite;
}

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

/* ===== ABOUT SECTION ===== */
.about {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(255, 107, 53, 0.05) 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.about-text p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

.nova-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(255, 107, 53, 0.1) 100%);
    border-radius: 20px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-item::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.6s ease;
}

.feature-item:hover::before {
    left: 100%;
}

.feature-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.3);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--gradient-nova);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--dark-bg);
    transition: all 0.3s ease;
    position: relative;
}

.feature-icon::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: var(--gradient-nova);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-item:hover .feature-icon::after {
    opacity: 0.3;
}

.feature-item h4 {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.feature-item p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.nova-galaxy {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
}

.galaxy-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: var(--gradient-nova);
    border-radius: 50%;
    animation: galaxyPulse 4s ease-in-out infinite;
    box-shadow: var(--shadow-nova);
}

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

.orbiting-planets {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.planet {
    position: absolute;
    border-radius: 50%;
    animation: orbit 8s linear infinite;
}

.planet-1 {
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    top: 20%;
    left: 20%;
    animation-duration: 6s;
}

.planet-2 {
    width: 25px;
    height: 25px;
    background: var(--secondary-color);
    top: 70%;
    left: 70%;
    animation-duration: 8s;
    animation-direction: reverse;
}

.planet-3 {
    width: 35px;
    height: 35px;
    background: var(--accent-color);
    top: 10%;
    left: 80%;
    animation-duration: 10s;
}

@keyframes orbit {
    from { transform: rotate(0deg) translateX(150px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(150px) rotate(-360deg); }
}

/* ===== SERVICES SECTION ===== */
.services {
    background: var(--darker-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary-color);
}

.service-card.featured {
    border-color: var(--accent-color);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.2);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(360deg);
}

.service-card h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    margin-bottom: 30px;
    text-align: left;
}

.service-features li {
    padding: 8px 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-features i {
    color: var(--primary-color);
    font-size: 12px;
}

.btn-service {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-service:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, rgba(255, 215, 0, 0.05) 100%);
}

.portfolio-mini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.mini-item { text-decoration: none; }

.mini-thumb {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 212, 255, 0.1);
    background: var(--card-bg);
}

.mini-thumb img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    filter: saturate(0.9);
    transition: transform 0.35s ease, filter 0.35s ease;
}

.mini-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0));
    padding: 14px;
}

.mini-overlay span {
    font-family: 'Orbitron', monospace;
    font-size: 14px;
    color: var(--primary-color);
}

.mini-thumb:hover img {
    transform: scale(1.06);
    filter: saturate(1.1);
}

.preview-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
}

.preview-stats .stat {
    text-align: center;
}

.preview-stats .stat-number {
    display: block;
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.preview-stats .stat-label {
    color: var(--text-secondary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.portfolio-cta-center {
    text-align: center;
}

.btn-visit-portfolio {
    padding: 12px 28px;
}

/* ===== CONTACT SECTION ===== */
.contact {
    background: var(--darker-bg);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h3 {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid rgba(0, 212, 255, 0.1);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(10px);
    border-color: var(--primary-color);
}

.contact-item i {
    font-size: 24px;
    color: var(--primary-color);
    width: 50px;
    text-align: center;
}

.contact-item h4 {
    color: var(--text-primary);
    margin-bottom: 5px;
}

.contact-item p {
    color: var(--text-secondary);
    margin: 0;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-glow);
}

.contact-form {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(0, 212, 255, 0.1);
}

.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: transparent;
    border: 2px solid rgba(0, 212, 255, 0.2);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.form-group label {
    position: absolute;
    top: 15px;
    left: 15px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-group input:focus + label,
.form-group input:valid + label,
.form-group textarea:focus + label,
.form-group textarea:valid + label {
    top: -10px;
    left: 10px;
    font-size: 12px;
    color: var(--primary-color);
    background: var(--dark-bg);
    padding: 0 5px;
}

.btn-submit {
    width: 100%;
    background: var(--gradient-primary);
    border: none;
    color: var(--text-primary);
    padding: 15px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--darker-bg);
    border-top: 1px solid rgba(0, 212, 255, 0.1);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo p {
    color: var(--text-secondary);
    margin-top: 10px;
}

.footer-logo .logo-nova {
    border-bottom: none;
    text-decoration: none;
}

.footer-links h4,
.footer-services h4,
.footer-tech h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-family: 'Orbitron', monospace;
}

.footer-links ul,
.footer-services ul {
    list-style: none;
}

.footer-links li,
.footer-services li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

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

.footer-tech p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.tech-stack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
}

.tech-item:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.2);
}

.tech-item i {
    font-size: 20px;
    color: var(--primary-color);
}

.tech-item span {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 212, 255, 0.1);
    flex-wrap: wrap;
    gap: 20px;
}

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

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    color: var(--text-secondary);
    font-size: 18px;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: var(--primary-color);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

/* ===== SERVICE MODAL ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 120px 20px 40px;
    z-index: 2000;
}

.modal-overlay.show { display: flex; }

.modal-dialog {
    width: 100%;
    max-width: 1200px; /* container genişliğiyle hizalı */
    background: var(--darker-bg);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 40px rgba(0, 212, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.modal-content {
    padding: 40px;
}

.modal-title {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.modal-body {
    color: var(--text-secondary);
    line-height: 1.8;
}

.modal-body ul {
    margin: 15px 0 0 18px;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: transparent;
    border: 2px solid rgba(0, 212, 255, 0.4);
    color: var(--primary-color);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.modal-close:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
    transform: rotate(90deg);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

/* ===== PORTFOLIO PAGE STYLES ===== */
.portfolio-hero {
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(255, 107, 53, 0.1) 100%);
}

.portfolio-categories {
    padding: 60px 0;
    background: var(--darker-bg);
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.category-tab {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 20px 40px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 250px;
    justify-content: center;
}

.category-tab:hover,
.category-tab.active {
    background: var(--primary-color);
    color: var(--dark-bg);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.category-tab i {
    font-size: 20px;
}

.portfolio-section {
    display: none;
    padding: 100px 0;
    background: var(--dark-bg);
}

.portfolio-section.active {
    display: block;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-top: 20px;
    text-align: center;
}

.portfolio-item-large {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 40px;
}

.portfolio-item-large:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
}

.portfolio-item-large .portfolio-image {
    position: relative;
    overflow: hidden;
    height: 400px;
}

.portfolio-item-large .portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-item-large:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-item-large .portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 40px;
}

.portfolio-item-large:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item-large .portfolio-content {
    text-align: center;
    color: var(--text-primary);
    max-width: 500px;
}

.portfolio-item-large .portfolio-content h3 {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.portfolio-item-large .portfolio-content p {
    margin-bottom: 30px;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
}

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

.tech-used {
    margin-bottom: 20px;
}

.tech-tag {
    display: inline-block;
    background: var(--gradient-primary);
    color: var(--text-primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.project-features span {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 14px;
}

.project-features i {
    color: var(--primary-color);
    font-size: 12px;
}

/* ===== PORTFOLIO BUTTONS ===== */
.btn-portfolio {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--gradient-primary);
    color: var(--text-primary);
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Rajdhani', sans-serif;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.btn-portfolio::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-portfolio:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.5);
    border-color: rgba(0, 212, 255, 0.5);
}

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

.btn-portfolio:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.portfolio-cta {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(255, 215, 0, 0.1) 100%);
    padding: 100px 0;
    text-align: center;
}

.cta-content h2 {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-content p {
    color: var(--text-secondary);
    font-size: 1.3rem;
    margin-bottom: 40px;
}

/* ===== RESPONSIVE PORTFOLIO ===== */
@media (max-width: 768px) {
    .category-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .category-tab {
        min-width: 280px;
        padding: 15px 30px;
    }
    
    .portfolio-item-large .portfolio-image {
        height: 300px;
    }
    
    .portfolio-item-large .portfolio-overlay {
        padding: 20px;
    }
    
    .portfolio-item-large .portfolio-content h3 {
        font-size: 1.5rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-content p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .portfolio-hero {
        height: 50vh;
    }
    
    .category-tab {
        min-width: 250px;
        padding: 12px 25px;
        font-size: 14px;
    }
    
    .portfolio-item-large .portfolio-image {
        height: 250px;
    }
    
    .portfolio-item-large .portfolio-content h3 {
        font-size: 1.3rem;
    }
    
    .tech-tag {
        font-size: 10px;
        padding: 3px 10px;
    }
    
    .btn-portfolio {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: rgba(10, 10, 10, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        backdrop-filter: blur(10px);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .nova-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

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

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .nova-galaxy {
        width: 300px;
        height: 300px;
    }

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

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

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

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

    .nova-galaxy {
        width: 250px;
        height: 250px;
    }

    .service-card,
    .contact-form {
        padding: 30px 20px;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }

.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }

.hidden { display: none; }
.visible { display: block; }

/* ===== ANIMATION UTILITIES ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

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

.fade-in { animation: fadeIn 1s ease-out; }
.slide-up { animation: slideInUp 1s ease-out; }
.slide-left { animation: slideInLeft 1s ease-out; }
.slide-right { animation: slideInRight 1s ease-out; }
