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

body {
    font-family: 'Courier New', monospace;
    color: white;
    background-color: black;
    overflow-x: hidden;
}

.space-background {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
}

#globeCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: black;
    pointer-events: none; /* Allow clicks to pass through */
}

/* Earth/Globe Animation */
.earth {
    position: fixed;
    width: 300px;
    height: 300px;
    background: 
        radial-gradient(circle at center, transparent 60%, rgba(0,0,0,0.8)),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="white"/><circle cx="40" cy="30" r="1" fill="white"/><circle cx="60" cy="20" r="1" fill="white"/><circle cx="80" cy="40" r="1" fill="white"/><circle cx="30" cy="50" r="1" fill="white"/><circle cx="50" cy="60" r="1" fill="white"/><circle cx="70" cy="70" r="1" fill="white"/><circle cx="20" cy="80" r="1" fill="white"/><circle cx="40" cy="70" r="1" fill="white"/><circle cx="60" cy="80" r="1" fill="white"/><path d="M50,0 A50,50 0 0 1 50,100 A50,50 0 0 1 50,0 Z" fill="none" stroke="white" stroke-width="0.5"/><path d="M0,50 A50,50 0 0 1 100,50" fill="none" stroke="white" stroke-width="0.5"/></svg>');
    background-size: cover;
    border-radius: 50%;
    box-shadow: 
        0 0 80px rgba(255, 255, 255, 0.3),
        inset 0 0 50px rgba(0, 0, 0, 0.7);
    bottom: 50%;
    right: 50%;
    transform: translate(50%, 50%);
    z-index: -1;
    animation: 
        rotate-earth 60s linear infinite,
        float-earth 15s ease-in-out infinite alternate;
}

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

@keyframes float-earth {
    0% { transform: translate(50%, 50%) scale(0.9); }
    100% { transform: translate(50%, 50%) scale(1.1); }
}

.globe-shadow {
    position: fixed;
    width: 350px;
    height: 100px;
    background: radial-gradient(ellipse at center, rgba(26, 102, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    bottom: calc(50% - 200px);
    right: 50%;
    transform: translateX(50%);
    z-index: -2;
    filter: blur(10px);
    animation: pulse-shadow 5s ease-in-out infinite alternate;
}

@keyframes pulse-shadow {
    0% { opacity: 0.5; transform: translateX(50%) scale(0.9); }
    100% { opacity: 0.8; transform: translateX(50%) scale(1.1); }
}

/* Navigation and Logo Container */
.nav-logo-container {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
}

.logo-image {
    height: 40px;
    width: auto;
    margin-right: 20px;
}

.floating-nav {
    display: flex;
    gap: 20px;
}

.floating-nav a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    padding: 5px 10px;
    border: 1px solid white;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.floating-nav a:hover {
    background: white;
    color: black;
}

/* Home Section */
.full-height {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
}

.intro-text {
    text-align: center;
    margin-bottom: 50px;
}

.typewriter {
    font-size: 3rem;
    margin-bottom: 20px;
    overflow: hidden;
    border-right: 3px solid white;
    white-space: nowrap;
    animation: typing 3.5s steps(30, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: white }
}

.glitch {
    font-size: 1.5rem;
    position: relative;
    animation: glitch-anim 2s infinite;
}

@keyframes glitch-anim {
    0% { transform: translate(0); }
    20% { transform: translate(-3px, 3px); }
    40% { transform: translate(-3px, -3px); }
    60% { transform: translate(3px, 3px); }
    80% { transform: translate(3px, -3px); }
    100% { transform: translate(0); }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    animation: bounce 2s infinite;
}

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

/* Book Sections */
.book-section {
    padding: 100px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.book-section .section-title {
    margin-bottom: 50px;
    position: relative;
}

.book-section .section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: white;
    margin: 20px auto;
}

.book {
    display: flex;
    width: 90%;
    max-width: 1000px;
    perspective: 1500px;
}

.page {
    flex: 1;
    padding: 30px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid white;
    margin: 0 10px;
    transform-style: preserve-3d;
    transform-origin: left;
    transition: transform 1s;
    position: relative;
}

.page:hover {
    transform:none;
}

.page h2 {
    margin-bottom: 20px;
    font-size: 2rem;
}

.page p, .page li {
    margin-bottom: 15px;
    line-height: 1.6;
}

/* New styles for language icons */
.language-list {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.language-list li {
    display: flex;
    align-items: center;
    justify-content: center;
}

.language-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 0 2px white);
    transition: transform 0.3s ease;
}

.language-icon:hover {
    transform: scale(1.2);
}

/* Resume Section */
.resume-content {
    text-align: center;
}

.resume-button {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 15px 30px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.resume-button:hover {
    background: white;
    color: black;
    animation: none;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* Star Background */
.star {
    position: absolute;
    background-color: white;
    border-radius: 50%;
    animation: twinkle 5s infinite;
}

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

/* Spacecraft Animation */
.spacecraft {
    position: absolute;
    width: 60px;
    height: 60px;
    background-image: url('images/space.png');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 1;
    animation: orbit 15s linear infinite;
    transform-origin: center;
}

@keyframes orbit {
    0% {
        transform: rotate(0deg) translateX(200px) rotate(0deg);
    }
    100% {
        transform: rotate(360deg) translateX(200px) rotate(-360deg);
    }
}

/* Section Titles */
.section-title {
    font-size: 3rem;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: white;
    margin: 20px auto;
}

/* Mobile-First Responsive Design */
/* Base mobile styles (applies to all screens) */
body {
    font-size: 16px;
    overflow-x: hidden;
    word-wrap: break-word;
    -webkit-text-size-adjust: 100%;
}

/* Small mobile devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    body {
        font-size: 14px;
        padding-top: 10vh;
        padding-bottom: 15vh;
    }
    
    .earth {
        width: 100px;
        height: 100px;
    }
    
    .globe-shadow {
        width: 150px;
        height: 40px;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin: 20px 10px;
        line-height: 1.3;
    }
    
    .intro-text {
        padding: 0 10px;
        margin-bottom: 30px;
    }
    
    .typewriter {
        font-size: 1.2rem;
        white-space: normal;
        text-align: center;
        border-right: none;
        animation: none;
        line-height: 1.4;
        word-break: break-word;
        padding: 0 10px;
    }
    
    .glitch {
        font-size: 1rem;
        animation: none;
        padding: 0 10px;
    }
    
    .floating-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        flex-direction: row;
        justify-content: space-around;
        background: rgba(0,0,0,0.8);
        padding: 10px 5px;
        gap: 5px;
        z-index: 1000;
    }
    
    .floating-nav a {
        padding: 8px 0;
        font-size: 12px;
        text-align: center;
        flex: 1;
        white-space: nowrap;
    }
    
    .book {
        flex-direction: column;
        width: 95%;
    }
    
    .page {
        width: 100%;
        margin: 10px 0;
        padding: 15px;
        box-sizing: border-box;
    }
    
    .resume-button {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .full-height {
        padding-top: 20px;
    }
    
    .book-section {
        padding: 20px 10px;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .earth {
        width: 120px;
        height: 120px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .floating-nav {
        flex-direction: row;
        justify-content: space-around;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .earth {
        width: 150px;
        height: 150px;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .earth {
        width: 200px;
        height: 200px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .earth {
        width: 250px;
        height: 250px;
    }
}

.footer {
    background-color:#333; /* Changed from #111 to transparent */
    color: #fff;
    padding: 4px 20px;
    font-size: 15px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.footer-section {
    flex: 1 1 200px;
    margin: 10px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.footer-section p,
.footer-section ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-section ul li {
    margin: 5px 0;
}

.footer-section ul li a {
    color: #e6e1e1;
    text-decoration: none;
}

.footer-section ul li a:hover {
    text-decoration: underline;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px;
}

.newsletter-form button {
    background-color: #007bff;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
}

.newsletter-form button img {
    width: 20px;
    height: 20px;
}

.social-icons a {
    margin-right: 10px;
}

.social-icons img {
    width: 24px;
    height: 24px;
}

.theme-toggle {
    margin-top: 10px;
}

.theme-toggle label {
    margin-right: 10px;
}

.footer-bottom {
    margin-top: 20px;
    border-top: 1px solid #333;
    padding-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-bottom ul {
    display: flex;
    gap: 10px;
}

.footer-bottom ul li a {
    color: #ffffff;
    text-decoration: none;
}

.footer-bottom ul li a:hover {
    text-decoration: underline;
}
