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

:root {
    --primary-color: #60a5fa;
    --primary-dark: #3b82f6;
    --secondary-color: #22d3ee;
    --accent-color: #10b981;
    --text-primary: #e5e7eb;
    --text-secondary: #9ca3af;
    --text-light: #6b7280;
    --bg-primary: #0b1020;
    --bg-secondary: #0e1630;
    --bg-dark: #060914;
    --border-color: rgba(255, 255, 255, 0.12);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.25);
    --shadow-md: 0 6px 12px -2px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 18px 35px -8px rgba(0, 0, 0, 0.5);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background:
        radial-gradient(1200px 600px at 10% 10%, #0f1a38 0%, transparent 60%),
        radial-gradient(1000px 500px at 90% 20%, rgba(96, 165, 250, 0.08) 0%, transparent 55%),
        radial-gradient(900px 500px at 20% 80%, rgba(34, 211, 238, 0.08) 0%, transparent 55%),
        linear-gradient(180deg, #0b1020 0%, #0e1630 60%, #0b1020 100%);
    min-height: 100vh;
}

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

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

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
  cursor: pointer;
    border: none;
    font-size: 1rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.875rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #0b1020;
    backdrop-filter: blur(0);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-color);
}

.navbar.scrolled {
    background: #0b1020;
    box-shadow: var(--shadow-md);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-logo i {
    font-size: 2rem;
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
  position: absolute;
    bottom: -5px;
  left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: transparent;
    min-height: 100vh;
    display: flex;
    align-items: center;
    border-bottom: 2px solid rgba(96, 165, 250, 0.3);
}

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

.hero-content {
  display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
  font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-title .greeting {
    display: block;
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.hero-title .name {
    display: block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title .title {
    display: block;
    font-size: 2rem;
    color: var(--text-primary);
    margin-top: 0.5rem;
}

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

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-main-image {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    filter: brightness(1) contrast(1.1) saturate(1.1);
}

.hero-img:hover {
    transform: scale(1.05);
    filter: brightness(1.1) contrast(1.2) saturate(1.2);
}

/* Floating animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.hero-main-image {
    animation: float 6s ease-in-out infinite;
}

.hero-main-image:hover {
    animation-play-state: paused;
}

/* About Section */
.about {
    padding: 80px 0;
    background: transparent;
    border-bottom: 1px solid rgba(34, 211, 238, 0.2);
}

.about-content {
  display: grid;
    grid-template-columns: 1fr 1fr;
  gap: 4rem;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-align: left;
}

.about-text p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    text-align: justify;
    text-justify: inter-word;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(13, 19, 40, 0.5);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.feature i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.feature span {
    font-weight: 500;
    color: var(--text-primary);
}

.image-container {
    position: relative;
    overflow: hidden;
    height: 400px;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
    filter: brightness(0.95) contrast(1.05);
}

.image-container:hover img {
    transform: scale(1.03);
    filter: brightness(1.05) contrast(1.1) saturate(1.1);
}

/* Education Section */
.education {
    padding: 80px 0;
    background: transparent;
    border-bottom: 1px solid rgba(96, 165, 250, 0.2);
}

.education-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
  position: relative;
    margin-bottom: 3rem;
    padding-left: 2rem;
}

.timeline-item::before {
    content: '';
  position: absolute;
    left: 0;
  top: 0;
    width: 2px;
    height: 100%;
    background: var(--primary-color);
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: -6px;
    top: 0;
    width: 14px;
    height: 14px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid var(--bg-primary);
}

.timeline-content {
    background: rgba(13, 19, 40, 0.55);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(8px);
}

.timeline-date {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
  margin-bottom: 1rem;
}

.timeline-content h3 {
  font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.timeline-subtitle {
    color: var(--primary-color);
  font-weight: 500;
    margin-bottom: 1rem;
}

.timeline-details {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.timeline-details h4 {
    font-size: 1.125rem;
    font-weight: 600;
  margin-bottom: 1rem;
    color: var(--text-primary);
}

.timeline-details ul {
    list-style: none;
    padding-left: 0;
}

.timeline-details li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.timeline-details li::before {
    content: '▸';
    position: absolute;
    left: 0;
  color: var(--primary-color);
    font-weight: bold;
}

/* Skills Section */
.skills {
    padding: 80px 0;
    background: transparent;
    border-bottom: 1px solid rgba(34, 211, 238, 0.2);
}

.skills-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.skills-category h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-primary);
    text-align: center;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-item {
    background: rgba(13, 19, 40, 0.5);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.skill-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.skill-name {
  font-weight: 500;
    color: var(--text-primary);
}

.skill-level {
    font-size: 0.875rem;
    color: var(--text-secondary);
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.skill-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-top: 0.5rem;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    transition: width 1.5s ease;
}

/* Projects Section */
.projects {
    padding: 80px 0;
    background: transparent;
    border-bottom: 1px solid rgba(96, 165, 250, 0.2);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: rgba(13, 19, 40, 0.55);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(8px);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.project-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-image img:hover {
    transform: scale(1.05);
}

.project-image i {
    font-size: 4rem;
    color: white;
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
  margin-bottom: 1rem;
    color: var(--text-primary);
}

.project-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: var(--bg-secondary);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

.project-features {
    margin-bottom: 1.5rem;
}

.project-features h4 {
    font-size: 1rem;
  font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.project-features ul {
    list-style: none;
    padding-left: 0;
}

.project-features li {
    padding: 0.25rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.25rem;
    font-size: 0.875rem;
}

.project-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.project-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Activities Section */
.activities {
    padding: 80px 0;
    background: transparent;
    border-bottom: 1px solid rgba(34, 211, 238, 0.2);
}

.activities-content {
  display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    align-items: stretch;
}

.activity-category h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-primary);
    text-align: center;
}

.activity-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    height: 100%;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(13, 19, 40, 0.5);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    height: 100%;
    flex: 1;
}

.activity-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.activity-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0.25rem;
    min-width: 24px;
}

.activity-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.activity-content p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    font-size: 0.875rem;
}

.activity-time {
    font-size: 0.75rem;
    color: var(--primary-color);
    font-weight: 500;
    background: rgba(96, 165, 250, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    display: inline-block;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: transparent;
    border-bottom: 1px solid rgba(96, 165, 250, 0.2);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3,
.contact-form h3 {
    font-size: 1.5rem;
    font-weight: 600;
  margin-bottom: 2rem;
    color: var(--text-primary);
}

.contact-item {
    display: flex;
    align-items: flex-start;
  gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(13, 19, 40, 0.5);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(8px);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0.25rem;
}

.contact-item h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.contact-note {
    font-size: 0.875rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.form-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
  display: flex;
    flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  font-size: 1.25rem;
    font-weight: 600;
  color: var(--primary-color);
}

.footer-logo i {
    font-size: 1.5rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    margin: 1rem 0;
}

.footer-links a {
  color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(13, 19, 40, 0.95);
        backdrop-filter: blur(12px);
        width: 100%;
  text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-md);
        padding: 2rem 0;
        border-top: 1px solid var(--border-color);
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-title .title {
        font-size: 1.5rem;
    }

    .hero-main-image {
        height: 350px;
    }

    .hero-img:hover {
        transform: scale(1.02);
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-text h3 {
        font-size: 1.8rem;
    }

    .skills-content {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .activities-content {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        justify-content: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .project-features li {
        font-size: 0.8rem;
    }
}

/* Force full-color visibility for nav links on dark navbar */
.navbar .nav-link {
    color: #e5e7eb;
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #60a5fa;
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-main-image {
        height: 300px;
    }

    .hero-img:hover {
        transform: scale(1.01);
    }

    .image-container {
        height: 250px;
    }

    .about-text h3 {
        font-size: 1.5rem;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    .project-content {
        padding: 1rem;
    }

    .activity-item {
        padding: 1rem;
    }

    .contact-item {
        padding: 1rem;
    }

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

/* Enhanced Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

.slide-in-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(60px);
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Text Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-text {
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

/* Floating Animation */
@keyframes floating {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

.floating-element {
    animation: floating 6s ease-in-out infinite;
}

/* Pulse Button Animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(96, 165, 250, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(96, 165, 250, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(96, 165, 250, 0);
    }
}

.pulse-btn {
    animation: pulse 2s infinite;
}

/* Glowing Effect */
@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 5px rgba(96, 165, 250, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(96, 165, 250, 0.8), 0 0 30px rgba(96, 165, 250, 0.6);
    }
}

/* Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.shimmer {
    background: linear-gradient(90deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.2) 50%, 
        rgba(255,255,255,0) 100%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Bounce Animation */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.bounce-in {
    animation: bounceIn 0.8s ease-out;
}

/* Stagger Animation */
.stagger-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.stagger-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-item:nth-child(1) { transition-delay: 0.1s; }
.stagger-item:nth-child(2) { transition-delay: 0.2s; }
.stagger-item:nth-child(3) { transition-delay: 0.3s; }
.stagger-item:nth-child(4) { transition-delay: 0.4s; }

/* Parallax Effect */
.parallax {
    transition: transform 0.1s ease-out;
}

/* Scale Animation */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.scale-in {
    animation: scaleIn 0.6s ease-out;
}

/* Badges */
.badge {
    background: rgba(96, 165, 250, 0.12);
    color: var(--primary-dark);
    border: 1px solid rgba(96, 165, 250, 0.3);
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Tweak section headings for security tone */
.skills-category h3,
.activity-category h3 {
    letter-spacing: 0.3px;
}

/* Project icons emphasis */
.project-image i {
    text-shadow: 0 6px 20px rgba(0,0,0,.15);
}

/* Subtle neon line for security vibe on hero title name */
.hero-title .name {
    text-shadow: 0 1px 0 rgba(255,255,255,0.2);
}

/* Force dark backgrounds for all sections */
.hero,
.about,
.education,
.skills,
.projects,
.activities,
.contact {
    background: transparent !important;
}

/* Ensure body background covers entire page */
html, body {
    background:
        radial-gradient(1200px 600px at 10% 10%, #0f1a38 0%, transparent 60%),
        radial-gradient(1000px 500px at 90% 20%, rgba(96, 165, 250, 0.08) 0%, transparent 55%),
        radial-gradient(900px 500px at 20% 80%, rgba(34, 211, 238, 0.08) 0%, transparent 55%),
        linear-gradient(180deg, #0b1020 0%, #0e1630 60%, #0b1020 100%) !important;
    min-height: 100vh !important;
}

/* Force dark navbar */
.navbar,
.navbar.scrolled {
    background: #0b1020 !important;
}

/* Lab Page Styles */
.lab-content {
    padding: 120px 0 60px;
    min-height: 100vh;
}

.lab-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.back-btn {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: var(--transition);
}

.back-btn:hover {
    color: var(--secondary-color);
}

.lab-header h1 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.lab-meta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.lab-tag {
    background: rgba(96, 165, 250, 0.1);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    border: 1px solid rgba(96, 165, 250, 0.3);
}

.lab-duration {
    background: rgba(34, 211, 238, 0.1);
    color: var(--secondary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    border: 1px solid rgba(34, 211, 238, 0.3);
}

.lab-sections {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.lab-section h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.lab-section h2 i {
    color: var(--primary-color);
}

.lab-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.lab-card ul {
    list-style: none;
    padding: 0;
}

.lab-card li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.lab-card li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.equipment-item {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.equipment-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.equipment-item h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.equipment-item p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.step-item {
    margin-bottom: 2rem;
}

.step-item h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.code-block {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-top: 0.5rem;
    overflow-x: auto;
}

.code-block pre {
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.4;
    margin: 0;
}

.test-item, .result-item, .troubleshoot-item {
    margin-bottom: 1.5rem;
}

.test-item h4, .result-item h4, .troubleshoot-item h4 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.network-diagram {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
}

.diagram-text h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.diagram-text pre {
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.4;
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: var(--border-radius);
    overflow-x: auto;
}

.ip-table {
    overflow-x: auto;
}

.ip-table table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.ip-table th, .ip-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.ip-table th {
    background: rgba(96, 165, 250, 0.1);
    color: var(--primary-color);
    font-weight: 600;
}

.ip-table td {
    color: var(--text-secondary);
}

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

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--bg-primary);
}

/* Responsive Design for Lab Pages */
@media (max-width: 768px) {
    .lab-header h1 {
        font-size: 2rem;
    }
    
    .back-btn {
        position: static;
        transform: none;
        margin-bottom: 1rem;
        justify-content: center;
    }
    
    .lab-meta {
        flex-direction: column;
        align-items: center;
    }
    
    .equipment-grid {
        grid-template-columns: 1fr;
    }
    
    .lab-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .code-block {
        font-size: 0.75rem;
    }
    
    .ip-table {
        font-size: 0.875rem;
    }
}
