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

body {
    font-family: 'Arial', sans-serif;
    color: #ffffff;
    background: linear-gradient(to bottom, 
        #0a0a1a 0%, 
        #000033 25%, 
        #000066 50%,
        #000033 75%,
        #0a0a1a 100%);
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
    scroll-behavior: smooth;
    min-height: 100vh;
}

/* Twinkling Stars */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: -1;
}

.stars::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="10" cy="20" r="1" fill="white"/><circle cx="30" cy="50" r="1" fill="white"/><circle cx="50" cy="10" r="1" fill="white"/><circle cx="70" cy="70" r="1" fill="white"/><circle cx="90" cy="30" r="1" fill="white"/><circle cx="20" cy="80" r="1" fill="white"/><circle cx="40" cy="40" r="1" fill="white"/><circle cx="60" cy="60" r="1" fill="white"/><circle cx="80" cy="20" r="1" fill="white"/><circle cx="15" cy="55" r="1" fill="white"/></svg>') repeat;
    opacity: 0.5;
    animation: twinkle 2s infinite alternate;
}

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

/* Navigation */
nav {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid rgba(0, 204, 255, 0.3);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 0.5em 0;
}

nav li {
    margin: 0.5em 1.5em;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5em 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00ccff, #0066ff);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: #00ccff;
    text-shadow: 0 0 10px rgba(0, 204, 255, 0.8);
}

/* Sections */
section {
    padding: 6em 2em 4em;
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Hero Section */
.hero {
    position: relative;
    background: radial-gradient(ellipse at center, rgba(0, 102, 255, 0.15), transparent);
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1.5s ease;
}

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

/* Orbital Rings */
.orbital-rings {
    position: absolute;
    width: 400px;
    height: 400px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.ring {
    position: absolute;
    border: 2px solid rgba(0, 204, 255, 0.2);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ring-1 {
    width: 200px;
    height: 200px;
    animation: rotate 20s linear infinite;
}

.ring-2 {
    width: 300px;
    height: 300px;
    animation: rotate 30s linear infinite reverse;
}

.ring-3 {
    width: 400px;
    height: 400px;
    animation: rotate 40s linear infinite;
}

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

/* Rocket Icon */
.rocket-icon {
    color: #00ccff;
    margin-bottom: 1em;
    animation: rocketFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(0, 204, 255, 0.6));
}

@keyframes rocketFloat {
    0%, 100% { transform: translateY(0) rotate(-45deg); }
    50% { transform: translateY(-20px) rotate(-45deg); }
}

/* Glitch Effect for Title */
.glitch {
    font-size: 4em;
    font-weight: bold;
    text-transform: uppercase;
    position: relative;
    color: #00ccff;
    letter-spacing: 0.1em;
    margin: 0.5em 0;
    text-shadow: 
        0 0 10px rgba(0, 204, 255, 0.8),
        0 0 20px rgba(0, 204, 255, 0.6),
        0 0 30px rgba(0, 204, 255, 0.4);
}

.subtitle {
    font-size: 1.5em;
    color: #ffffff;
    margin: 0.5em 0;
    letter-spacing: 0.05em;
}

.tagline {
    font-size: 1.2em;
    color: #aaaaaa;
    font-style: italic;
    margin-top: 1em;
}

/* Scroll Indicator */
.scroll-indicator {
    margin-top: 3em;
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 2em;
    color: #00ccff;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* Typography */
h1, h2, h3 {
    margin-bottom: 1em;
}

h2 {
    font-size: 2.5em;
    color: #00ccff;
    text-shadow: 0 0 10px rgba(0, 204, 255, 0.5);
    margin-bottom: 1.5em;
    letter-spacing: 0.05em;
}

h3 {
    font-size: 1.5em;
    color: #ffffff;
}

/* Experience Grid (2 Columns) */
.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2.5em;
    max-width: 1400px;
    width: 100%;
    margin: 2em auto;
}

/* Experience Block */
.experience-block {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1), rgba(0, 204, 255, 0.05));
    padding: 2em;
    border-radius: 15px;
    border: 2px solid rgba(0, 204, 255, 0.3);
    box-shadow: 
        0 0 20px rgba(0, 204, 255, 0.3),
        inset 0 0 20px rgba(0, 102, 255, 0.1);
    transition: all 0.3s ease;
    text-align: left;
}

.experience-block:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 5px 30px rgba(0, 204, 255, 0.5),
        inset 0 0 30px rgba(0, 102, 255, 0.2);
    border-color: rgba(0, 204, 255, 0.6);
}

.experience-header {
    margin-bottom: 1.5em;
}

.experience-header h3 {
    color: #00ccff;
    margin-bottom: 0.5em;
}

.company {
    color: #ffffff;
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 0.3em;
}

.date {
    color: #aaaaaa;
    font-style: italic;
    font-size: 0.9em;
}

/* Slideshow Container */
.slideshow-container {
    position: relative;
    width: 100%;
    height: 300px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    margin: 1.5em 0;
    overflow: hidden;
    border: 1px solid rgba(0, 204, 255, 0.2);
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.slide.active {
    display: flex;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.placeholder-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #00ccff;
    gap: 1em;
}

.placeholder-image i {
    opacity: 0.6;
}

.placeholder-image p {
    font-size: 1.2em;
    color: #aaaaaa;
}

/* Replace placeholders with actual images using: */
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Slide Buttons */
.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 204, 255, 0.3);
    border: 2px solid rgba(0, 204, 255, 0.5);
    color: #ffffff;
    padding: 1em;
    cursor: pointer;
    font-size: 1.2em;
    transition: all 0.3s ease;
    z-index: 10;
    border-radius: 5px;
}

.slide-btn:hover {
    background: rgba(0, 204, 255, 0.6);
    box-shadow: 0 0 15px rgba(0, 204, 255, 0.8);
}

.slide-btn.prev {
    left: 10px;
}

.slide-btn.next {
    right: 10px;
}

/* Experience Details */
.experience-details {
    list-style: none;
    text-align: left;
    margin-top: 1em;
}

.experience-details li {
    padding: 0.5em 0;
    padding-left: 1.5em;
    position: relative;
    color: #dddddd;
    line-height: 1.6;
}

.experience-details li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: #00ccff;
    font-size: 1.2em;
}

.project-description {
    color: #dddddd;
    line-height: 1.6;
    text-align: left;
    margin-top: 1em;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2em;
    max-width: 900px;
    width: 100%;
    margin: 2em auto;
}

.contact-block {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1), rgba(0, 204, 255, 0.05));
    padding: 2em;
    border-radius: 15px;
    border: 2px solid rgba(0, 204, 255, 0.3);
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1em;
}

.contact-block:hover {
    transform: translateY(-10px);
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.2), rgba(0, 204, 255, 0.1));
    box-shadow: 
        0 10px 30px rgba(0, 204, 255, 0.5),
        inset 0 0 20px rgba(0, 102, 255, 0.2);
    border-color: rgba(0, 204, 255, 0.6);
}

.contact-block i {
    color: #00ccff;
    transition: all 0.3s ease;
}

.contact-block:hover i {
    transform: scale(1.2);
    filter: drop-shadow(0 0 15px rgba(0, 204, 255, 0.8));
}

.contact-block h3 {
    font-size: 1.3em;
    margin: 0;
}

.contact-block p {
    color: #aaaaaa;
    margin: 0;
    font-size: 0.9em;
}

/* About and Resume Sections */
.centered-section {
    max-width: 900px;
    margin: 0 auto;
}

#about p, #resume p {
    font-size: 1.2em;
    line-height: 1.8;
    color: #dddddd;
}

#resume ul {
    list-style: none;
    text-align: left;
    max-width: 800px;
    margin: 2em auto;
}

#resume li {
    padding: 0.8em 0;
    padding-left: 2em;
    position: relative;
    color: #dddddd;
    line-height: 1.6;
}

#resume li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: #00ccff;
    font-size: 1.5em;
}

/* Links */
a {
    color: #00ccff;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #0099ff;
    text-shadow: 0 0 10px rgba(0, 204, 255, 0.8);
}

/* Footer */
footer {
    text-align: center;
    padding: 2em;
    background: rgba(0, 0, 0, 0.9);
    border-top: 2px solid rgba(0, 204, 255, 0.3);
    color: #aaaaaa;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .experience-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
    }

    .glitch {
        font-size: 3em;
    }

    .orbital-rings {
        width: 300px;
        height: 300px;
    }

    .ring-1 {
        width: 150px;
        height: 150px;
    }

    .ring-2 {
        width: 225px;
        height: 225px;
    }

    .ring-3 {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 768px) {
    nav ul {
        flex-wrap: wrap;
        padding: 0.5em;
    }

    nav li {
        margin: 0.5em;
    }

    nav a {
        font-size: 0.9em;
    }

    section {
        padding: 5em 1em 3em;
    }

    .glitch {
        font-size: 2.5em;
    }

    .subtitle {
        font-size: 1.2em;
    }

    h2 {
        font-size: 2em;
    }

    .experience-grid {
        grid-template-columns: 1fr;
        gap: 2em;
    }

    .experience-block {
        padding: 1.5em;
    }

    .slideshow-container {
        height: 250px;
    }

    .slide-btn {
        padding: 0.7em;
        font-size: 1em;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .orbital-rings {
        width: 250px;
        height: 250px;
    }

    .ring-1 {
        width: 120px;
        height: 120px;
    }

    .ring-2 {
        width: 185px;
        height: 185px;
    }

    .ring-3 {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 480px) {
    .glitch {
        font-size: 2em;
        letter-spacing: 0.05em;
    }

    .subtitle {
        font-size: 1em;
    }

    .tagline {
        font-size: 0.9em;
    }

    h2 {
        font-size: 1.8em;
    }

    .slideshow-container {
        height: 200px;
    }

    .experience-grid {
        grid-template-columns: 1fr;
        gap: 1.5em;
    }

    .orbital-rings {
        width: 200px;
        height: 200px;
    }

    .ring-1 {
        width: 100px;
        height: 100px;
    }

    .ring-2 {
        width: 150px;
        height: 150px;
    }

    .ring-3 {
        width: 200px;
        height: 200px;
    }
}
