/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-bg: #000000;
    --secondary-bg: #0a0a0a;
    --tertiary-bg: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --accent-cyan: #00ffff;
    --accent-purple: #8b00ff;
    --accent-pink: #ff00ff;
    --accent-green: #00ff00;
    --card-bg: rgba(10, 10, 10, 0.7);
    --card-border: rgba(0, 255, 255, 0.2);
    --shadow-glow: 0 0 25px rgba(0, 255, 255, 0.2);
    --shadow-purple: 0 0 35px rgba(139, 0, 255, 0.3);
    --shadow-pink: 0 0 20px rgba(255, 0, 255, 0.25);
    --gradient-cyber: linear-gradient(135deg, #000000 0%, #1a1a1a 25%, #0a0a0a 50%, #1a1a1a 75%, #000000 100%);
    --gradient-neon: linear-gradient(45deg, var(--accent-cyan) 0%, var(--accent-purple) 50%, var(--accent-pink) 100%);
}

body.light-mode {
    --primary-bg: #f5f5f5;
    --secondary-bg: #ffffff;
    --tertiary-bg: #e0e0e0;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --accent-cyan: #0080ff;
    --accent-purple: #6b46c1;
    --accent-pink: #d946ef;
    --accent-green: #10b981;
    --card-bg: rgba(255, 255, 255, 0.9);
    --card-border: rgba(0, 128, 255, 0.2);
    --shadow-glow: 0 0 25px rgba(0, 128, 255, 0.2);
    --shadow-purple: 0 0 35px rgba(107, 70, 193, 0.3);
    --shadow-pink: 0 0 20px rgba(217, 70, 239, 0.25);
    --gradient-cyber: linear-gradient(135deg, #f5f5f5 0%, #ffffff 25%, #e0e0e0 50%, #ffffff 75%, #f5f5f5 100%);
    --gradient-neon: linear-gradient(45deg, var(--accent-cyan) 0%, var(--accent-purple) 50%, var(--accent-pink) 100%);
    --background: #f5f5f5;
    --text: #222;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Rajdhani', 'Courier New', monospace;
    background: var(--background, #0a192f);
    color: var(--text, #e6f1ff);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    perspective: 1000px;
    transition: background 0.4s, color 0.4s;
}

/* Background Animation */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--gradient-cyber);
    overflow: hidden;
}

.cyber-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: gridMove 20s linear infinite;
}

body.light-mode .cyber-grid {
    background-image: 
        linear-gradient(rgba(0, 128, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 128, 255, 0.1) 1px, transparent 1px);
}

.digital-rain {
    position: absolute;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 98px,
        rgba(0, 255, 255, 0.03) 100px
    );
    animation: rainMove 8s linear infinite;
}

body.light-mode .digital-rain {
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 98px,
        rgba(0, 128, 255, 0.05) 100px
    );
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--card-border);
    padding: 1rem 0;
    box-shadow: var(--shadow-glow);
    transition: all 0.3s ease;
}

body.light-mode .header {
    background: rgba(255, 255, 255, 0.95);
}

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

.logo {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-neon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.logo-text:hover {
    text-shadow: 0 0 30px rgba(255, 0, 255, 0.7);
}

.logo-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: -5px;
    opacity: 0.8;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-neon);
    transition: all 0.3s ease;
    z-index: -1;
    opacity: 0.1;
}

.nav-menu a:hover::before {
    left: 0;
    opacity: 0.2;
}

.nav-menu a:hover {
    color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    transform: translateY(-2px);
}

.nav-menu a.active {
    color: var(--accent-cyan);
    background: rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.nav-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.theme-toggle,
.lang-toggle {
    background: none;
    border: 2px solid var(--accent-cyan);
    color: var(--accent-cyan);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.theme-toggle::before,
.lang-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-cyan);
    transition: all 0.3s ease;
    z-index: -1;
}

.theme-toggle:hover::before,
.lang-toggle:hover::before {
    left: 0;
}

.theme-toggle:hover,
.lang-toggle:hover {
    color: var(--primary-bg);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
    position: relative;
    overflow: hidden;
}

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

.hero-content {
    max-width: 800px;
    z-index: 2;
    margin: 0 auto;
}

.profile-photo {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-frame {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-glow);
    position: relative;
    overflow: hidden;
}

.profile-placeholder {
    font-size: 4rem;
    color: var(--accent-cyan);
    position: relative;
    z-index: 2;
}

.orbit-ring {
    position: absolute;
    border: 1px solid var(--accent-cyan);
    border-radius: 50%;
    opacity: 0.3;
    animation: rotate 20s linear infinite;
}

.ring-1 {
    width: 160px;
    height: 160px;
    animation-duration: 15s;
}

.ring-2 {
    width: 180px;
    height: 180px;
    animation-duration: 25s;
    animation-direction: reverse;
}

.ring-3 {
    width: 200px;
    height: 200px;
    animation-duration: 35s;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 900;
    font-family: 'Orbitron', monospace;
    background: var(--gradient-neon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-shadow: 0 0 40px rgba(0, 255, 255, 0.5);
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 300;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--gradient-neon);
    color: var(--primary-bg);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.3);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 35px rgba(0, 255, 255, 0.5);
}

/* Main Content */
.section {
    padding: 4rem 2rem;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.title-glow {
    background: var(--gradient-neon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-underline {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-neon);
    border-radius: 2px;
}

/* About Section */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 255, 0.05), transparent);
    transition: all 0.6s ease;
}

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

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-color: var(--accent-cyan);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.card-icon {
    font-size: 2rem;
    color: var(--accent-cyan);
}

.card-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.card-content {
    color: var(--text-secondary);
}

.education-item,
.experience-item,
.passion-item {
    margin-bottom: 1.5rem;
}

.education-item h4,
.experience-item h4,
.passion-item h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.education-detail,
.experience-company,
.experience-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--tertiary-bg);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-neon);
    border-radius: 3px;
    transition: width 1s ease;
}

.experience-tags {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag {
    background: rgba(0, 255, 255, 0.1);
    color: var(--accent-cyan);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    border: 1px solid var(--accent-cyan);
}

/* Skills Section */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.tech-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tech-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-purple);
    border-color: var(--accent-purple);
}

.tech-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.tech-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}


/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.contact-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.contact-link:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-glow);
    border-color: var(--accent-cyan);
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--accent-cyan);
}

.contact-details {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.contact-value {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-label {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    resize: vertical;
}

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

.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--gradient-neon);
    color: var(--primary-bg);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.5);
}

/* Footer */
.footer {
    background: var(--secondary-bg);
    border-top: 1px solid var(--card-border);
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-info h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: var(--gradient-neon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.footer-subtext {
    color: var(--text-secondary);
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.footer-links a:hover {
    color: var(--accent-cyan);
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid var(--card-border);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-secondary);
    opacity: 0.8;
}

/* Animations */
@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(40px, 40px); }
}

@keyframes rainMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(100px); }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        right: 2rem;
        background: var(--secondary-bg);
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem 2rem;
        border-radius: 12px;
        box-shadow: 0 8px 32px rgba(0,0,0,0.25);
        z-index: 1050;
    }
    .nav-menu.open {
        display: flex;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: row;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 1.2rem 0 1.5rem 0;
        min-height: 70px;
        margin-bottom: 1.5rem;
    }
    .nav-container {
        padding: 0 1rem;
    }
    .section {
        padding: 2rem 1rem;
    }
    .cards-grid {
        grid-template-columns: 1fr;
    }
    .tech-grid {
        grid-template-columns: 1fr;
    }
    .hero-title {
        margin-top: 1.2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .hero-content {
        margin-top: 0;
        padding-top: 5rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
    }
    .profile-photo {
        margin-top: 6rem;
        margin-bottom: 2.5rem;
        width: 140px;
        height: 90px;
        max-width: 90vw;
        max-height: 60vw;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: visible;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--secondary-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-cyan);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-purple);
}

/* Focus States */
a:focus,
button:focus {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 2px;
}

/* Smooth Transitions */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

button:focus-visible, a:focus-visible {
    outline: 2px solid #00ffff;
    outline-offset: 2px;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
}
.hamburger .bar {
    width: 28px;
    height: 4px;
    background: var(--accent-cyan);
    margin: 3px 0;
    border-radius: 2px;
    transition: all 0.3s;
}