/* Modern Portfolio CSS inspired by gaming industry design */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;400;500;600;700&display=swap');

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

body {
    font-family: 'Rajdhani', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Custom Colors */
:root {
    --primary-color: #1900ff;
    --secondary-color: #ff0000;
    --dark-bg: #0a0a0a;
    --light-bg: #f8f9fa;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* Animated Background */
.animated-bg {
    position: relative;
    overflow: hidden;
}

.animated-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(-45deg, #667eea, #764ba2, #f093fb, #f5576c);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: -1;
}

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

/* Navigation */
.navbar-dark {
    background: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.nav-link {
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

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

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

/* Hero Section */
.hero-section {
    background: var(--dark-bg);
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.profile-photo {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
    animation: float 6s ease-in-out infinite;
    transition: all 0.3s ease;
}

.profile-photo:hover {
    transform: scale(1.1);
    box-shadow: 0 0 50px rgba(0, 212, 255, 0.8);
}

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

.hero-title {
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    font-size: 3.5rem;
    background: linear-gradient(45deg, var(--primary-color), #fff, var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 2rem 0;
    animation: slideInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #ccc;
    margin-bottom: 1rem;
    animation: slideInUp 1s ease-out 0.2s both;
}

.hero-description {
    font-size: 1.2rem;
    color: #aaa;
    max-width: 600px;
    margin: 0 auto 2rem;
    animation: slideInUp 1s ease-out 0.4s both;
}

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

/* Buttons */
.btn-modern {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.3);
}

.btn-modern::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;
}

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

/* Section Styles */
.section-modern {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 100px;
    height: 4px;
    background: var(--gradient-3);
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Cards */
.card-modern {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    height: 100%;
}

.card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

/* Skills Section */
.skill-item {
    background: var(--gradient-1);
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: inline-block;
    margin: 10px;
}

.skill-item:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Projects Section */
.project-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.project-header {
    background: var(--gradient-2);
    padding: 2rem;
    color: white;
}

.project-body {
    padding: 2rem;
}

/* Contact Section */
.contact-section {
    background: var(--dark-bg);
    color: white;
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
}

.form-control-modern {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    padding: 15px;
}

.form-control-modern:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 212, 255, 0.25);
    color: white;
}

.form-control-modern::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Footer */
.footer-modern {
    background: #000;
    padding: 2rem 0;
    text-align: center;
    color: #888;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
        padding: 0 20px;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .card-modern {
        padding: 1.5rem;
    }
    
    .project-header,
    .project-body {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        margin: 1.5rem 0;
    }
    
    .hero-description {
        font-size: 1rem;
        max-width: 100%;
        padding: 0 15px;
        margin-bottom: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .section-modern {
        padding: 60px 0;
    }
    
    .profile-photo {
        width: 150px;
        height: 150px;
    }
    
    .btn-modern {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .card-modern {
        padding: 1.2rem;
        margin-bottom: 1.5rem;
    }
    
    .skill-item {
        padding: 12px 20px;
        font-size: 0.9rem;
        margin: 5px;
        display: inline-block;
    }
    
    .project-card {
        margin-bottom: 1.5rem;
    }
    
    .project-header,
    .project-body {
        padding: 1.2rem;
    }
    
    .contact-form {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
        margin: 1rem 0;
    }
    
    .hero-description {
        font-size: 0.95rem;
        padding: 0 10px;
        margin-bottom: 1.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .section-modern {
        padding: 50px 0;
    }
    
    .profile-photo {
        width: 120px;
        height: 120px;
    }
    
    .btn-modern {
        padding: 10px 20px;
        font-size: 0.95rem;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .d-flex.justify-content-center.gap-3 {
        flex-direction: column;
        align-items: center;
        gap: 1rem !important;
    }
    
    .card-modern {
        padding: 1rem;
    }
    
    .skill-item {
        padding: 10px 15px;
        font-size: 0.85rem;
        margin: 3px;
        display: inline-block;
    }
    
    .project-header h4 {
        font-size: 1.2rem;
    }
    
    .project-body p {
        font-size: 0.9rem;
    }
    
    .contact-form {
        padding: 1.2rem;
    }
    
    .form-control-modern {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .nav-link {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
    
    /* Stack contact info vertically on very small screens */
    .d-flex.align-items-center.mb-3 {
        flex-direction: column;
        text-align: center;
        margin-bottom: 1.5rem !important;
    }
    
    .d-flex.align-items-center.mb-3 i {
        margin-bottom: 0.5rem;
        margin-right: 0 !important;
    }
    
    /* Adjust footer for mobile */
    .footer-modern .row {
        text-align: center;
    }
    
    .footer-modern .col-md-6.text-end {
        text-align: center !important;
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .profile-photo {
        width: 100px;
        height: 100px;
    }
    
    .skill-item {
        padding: 8px 12px;
        font-size: 0.8rem;
        margin: 2px;
    }
    
    .card-modern h3 {
        font-size: 1.2rem;
    }
    
    .card-modern h4 {
        font-size: 1.1rem;
    }
    
    .project-header h4 {
        font-size: 1.1rem;
    }
    
    .contact-form h4 {
        font-size: 1.2rem;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .btn-modern:hover {
        transform: none;
    }
    
    .card-modern:hover {
        transform: none;
    }
    
    .project-card:hover {
        transform: none;
    }
    
    .skill-item:hover {
        transform: none;
    }
    
    .profile-photo:hover {
        transform: none;
    }
    
    .nav-link:hover {
        transform: none;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .profile-photo {
        border-width: 2px;
    }
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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