/* Modern Dark Theme with 3D Orbital Effects */
:root {
    --primary-bg: #120720;
    --secondary-bg: #1a0a2e;
    --text-primary: #FFFFFF;
    --text-secondary: #F7F7F7;
    --accent-color: #4A90E2;
    --accent-glow: rgba(74, 144, 226, 0.6);
    --orbit-color: rgba(74, 144, 226, 0.3);
    --orbit-glow: rgba(74, 144, 226, 0.1);
    --purple-gradient: linear-gradient(135deg, #6a11cb, #2575fc);
}

/* Light Theme Variables */
.light-theme {
    --primary-bg: #f5f5f7;
    --secondary-bg: #e8e8ed;
    --text-primary: #1a0a2e;
    --text-secondary: #333333;
    --accent-color: #4A90E2;
    --accent-glow: rgba(74, 144, 226, 0.4);
    --orbit-color: rgba(74, 144, 226, 0.2);
    --orbit-glow: rgba(74, 144, 226, 0.05);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--primary-bg), var(--secondary-bg));
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    perspective: 1000px;
}

header {
    padding: 1.5rem 2rem;
    position: fixed;
    width: 100%;
    z-index: 100;
    background: rgba(18, 7, 32, 0.85);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.light-theme header {
    background: rgba(245, 245, 247, 0.9);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.light-theme .slider {
    background-color: rgba(26, 10, 46, 0.2);
    border: 1px solid rgba(26, 10, 46, 0.3);
}

.light-theme .theme-toggle span {
    font-weight: 600;
}

.light-theme .logo h2,
.light-theme .main-nav a {
    color: #1a0a2e;
    text-shadow: none;
}

.light-theme .main-nav a:hover,
.light-theme .main-nav a.active {
    text-shadow: none;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h2 {
    font-size: 1.8rem;
    font-weight: 600;
    background: linear-gradient(to right, var(--text-primary), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 10px rgba(74, 144, 226, 0.3);
}

.main-nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    gap: 1.5rem; /* Adjusted gap for better spacing */
}

/* Navigation Contact Me button styling moved to contact-button.css */

.main-nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

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

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

/* Theme Toggle Switch */
.theme-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.theme-toggle span {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: .4s;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: var(--accent-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Contact Button styling moved to contact-button.css */
.contact-btn {
    padding: 0.5rem 1.5rem; /* Adjust padding to match other nav items */
    white-space: nowrap; /* Prevent text wrapping */
    line-height: normal; /* Ensure consistent line height */
    display: flex; /* Added for vertical alignment if needed */
    align-items: center; /* Added for vertical alignment if needed */
    height: auto; /* Ensure height is determined by content and padding */
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-glow);
}

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    text-align: left;
    z-index: 1;
    flex: 1;
    padding-right: 2rem;
    transform: translateZ(0);
    animation: fadeIn 1s ease-out;
}

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

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--text-primary), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.intro-text {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
}

.cv-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--purple-gradient);
    color: white;
    text-decoration: none;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(106, 17, 203, 0.4);
    transition: all 0.3s ease;
}

.cv-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(106, 17, 203, 0.6);
}

/* Profile Thumbnail Styling */
.profile-thumbnail {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--purple-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(106, 17, 203, 0.4);
    overflow: hidden;
    transition: all 0.3s ease;
    margin-left: 10px;
    align-self: center;
}

.profile-thumbnail:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(106, 17, 203, 0.6);
}

.profile-image {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
}

/* 3D Globe Animation */
.globe-container {
    position: relative;
    width: 400px;
    height: 400px;
    margin-right: 2rem;
    transform-style: preserve-3d;
    animation: floatGlobe 6s ease-in-out infinite;
}

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

.globe {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.globe-sphere {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle at 30% 30%, #4A90E2, #1a1a1a);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 
        0 0 60px rgba(74, 144, 226, 0.8),
        inset 0 0 30px rgba(255, 255, 255, 0.3);
    overflow: hidden;
    animation: pulsate 4s ease-in-out infinite;
}

@keyframes pulsate {
    0%, 100% { box-shadow: 0 0 60px rgba(74, 144, 226, 0.8); }
    50% { box-shadow: 0 0 80px rgba(74, 144, 226, 1); }
}

.globe-sphere::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.3) 45%, rgba(255, 255, 255, 0.3) 55%, transparent 60%);
    animation: globeShine 8s linear infinite;
}

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

/* Multiple Orbital Paths */
.orbit-path {
    position: absolute;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateX(70deg);
    border: 1px solid var(--orbit-color);
    box-shadow: 0 0 15px var(--orbit-glow);
}

.orbit-path:nth-child(1) {
    width: 280px;
    height: 280px;
    animation: rotatePath 30s linear infinite;
}

.orbit-path:nth-child(2) {
    width: 350px;
    height: 350px;
    border-color: rgba(255, 255, 255, 0.1);
    animation: rotatePath 40s linear infinite reverse;
}

@keyframes rotatePath {
    from { transform: translate(-50%, -50%) rotateX(70deg) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotateX(70deg) rotate(360deg); }
}

/* Multiple Satellites */
.satellite {
    position: absolute;
    background: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-glow);
}

.satellite:nth-child(1) {
    width: 20px;
    height: 20px;
    top: 0;
    left: 50%;
    transform-origin: 0 140px;
    animation: orbit 12s linear infinite;
}

.satellite:nth-child(2) {
    width: 15px;
    height: 15px;
    top: 0;
    left: 50%;
    transform-origin: 0 175px;
    animation: orbit 20s linear infinite reverse;
}

.satellite:nth-child(3) {
    width: 10px;
    height: 10px;
    top: 0;
    left: 50%;
    transform-origin: 0 100px;
    animation: orbit 8s linear infinite;
}

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

/* Floating Particles */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 15s linear infinite;
}

@keyframes float {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 0.3; }
    90% { opacity: 0.3; }
    100% { transform: translateY(-100vh) translateX(100px); opacity: 0; }
}

/* Social Links */
.social-links {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 10;
}

.social-link {
    color: var(--text-primary);
    font-size: 1.8rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px var(--accent-glow);
}

/* Fixed Social Media Icons */
.social-icons-fixed {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000; /* Ensure it's above other content */
}

.social-icons-fixed a {
    color: var(--text-primary);
    font-size: 1.5rem; /* Adjust size as needed */
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons-fixed a:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

/* Adjust for light theme if necessary */
.light-theme .social-icons-fixed a {
    color: var(--text-primary); /* Or a specific color for light theme icons */
}

.light-theme .social-icons-fixed a:hover {
    color: var(--accent-color);
}

/* Mobile view for social icons */
@media (max-width: 768px) {
    .social-icons-fixed {
        top: auto;
        bottom: 20px;
        right: 0;
        left: 0;
        transform: none;
        flex-direction: row;
        justify-content: center;
        gap: 25px;
        background: rgba(18, 7, 32, 0.7);
        padding: 10px 0;
        backdrop-filter: blur(5px);
    }
    
    .light-theme .social-icons-fixed {
        background: rgba(245, 245, 247, 0.7);
    }
}

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 200;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hamburger Menu Animation */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

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

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Prevent scrolling when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-section {
        padding: 1rem;
    }
    
    .globe-container {
        width: 350px;
        height: 350px;
    }
    
    .globe-sphere {
        width: 180px;
        height: 180px;
    }
}

@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .globe-container {
        width: 300px;
        height: 300px;
    }
    
    .globe-sphere {
        width: 150px;
        height: 150px;
    }
    
    .social-links {
        right: 1rem;
    }
}

@media (max-width: 768px) {
    .header-content {
        position: relative;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: rgba(18, 7, 32, 0.95);
        backdrop-filter: blur(10px);
        z-index: 100;
        transition: right 0.3s ease;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
        padding: 5rem 2rem 2rem;
    }
    
    .light-theme .main-nav {
        background: rgba(245, 245, 247, 0.95);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    /* Mobile Contact Me button styling moved to contact-button.css */
    
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: 6rem;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 3rem;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .intro-text {
        margin: 0 auto 2rem;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .globe-container {
        width: 250px;
        height: 250px;
        margin-right: 0;
    }
    
    .social-links {
        position: static;
        flex-direction: row;
        justify-content: center;
        margin-top: 2rem;
        transform: none;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .intro-text {
        font-size: 1.1rem;
    }
    
    .globe-container {
        width: 200px;
        height: 200px;
    }
    
    .globe-sphere {
        width: 120px;
        height: 120px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .header-content {
        padding: 0.5rem;
    }
    
    .logo h2 {
        font-size: 1.5rem;
    }
}