:root {
    --primary: #00adb5;
    --secondary: #393e46;
    --dark: #222831;
    --light: #eeeeee;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--dark);
    color: var(--light);
    transition: var(--transition);
    line-height: 1.6;
}


/* Smooth transitions for theme changes */
body,
.navbar,
.card,
.contact-form,
footer {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Light mode specific styles */
.light-mode {
    --primary: #00adb5;
    --secondary: #e1e0e0;
    --dark: #f5f5f5;
    --light: #222831;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Ensure text is readable in both modes */

.light-mode .about-text h3,
.light-mode .about-text p,
.light-mode .timeline-content h3,
.light-mode .timeline-content p,
.light-mode .timeline-content li,
.light-mode .card h3,
.light-mode .card p,
.light-mode .section-title h2,
.light-mode .contact-form h2,
.light-mode footer p {
    color: var(--light);
}


/* Fix for DataTables in light mode */
.light-mode .dataTables_wrapper .dataTables_filter input,
.light-mode .dataTables_wrapper .dataTables_length select,
.light-mode .dataTables_wrapper .dataTables_info,
.light-mode .dataTables_wrapper .paginate_button {
    color: var(--light) !important;
}

.light-mode .dataTables_wrapper .dataTables_filter input,
.light-mode .dataTables_wrapper .dataTables_length select {
    background-color: var(--secondary) !important;
    border-color: var(--primary) !important;
}

.light-mode .dataTables_wrapper .paginate_button.current {
    background: var(--primary) !important;
    color: white !important;
}
.light-mode .hero {
    background: linear-gradient(135deg, rgba(209, 222, 241, 0.9) 0%, rgba(150, 155, 164, 0.9) 100%),
                url('https://images.unsplash.com/photo-1498050108023-c5249f4df085?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1470&q=80') no-repeat center center/cover;
}
.light-mode .hero-text h2,
.light-mode .hero-text p {
    color: var(--light); /* Ensure text is dark in light mode */
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background-color: var(--secondary);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--primary);
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary);
    bottom: -5px;
    left: 0;
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--light);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.light-mode .theme-toggle {
    color: var(--light);
}

.theme-toggle:hover {
    color: var(--primary);
    transform: rotate(30deg);
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 24px;
}

/* Hero Section */
/* Logo container */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 24px;
}

/* ZN logo container */
.zn-logo {
  width: 75px;
  height: 60px;
  display: flex;
  font-weight:bolder;
  align-items: center;
  justify-content: center;
}

/* SVG styling */
.zn-svg {
  width: 200%;
  height: 150%;
}

/* Letter paths */
.letter-z, .letter-n {
  fill: none;
  stroke: var(--primary);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}



/* Animations */
@keyframes draw-z {
  0% { stroke-dashoffset: 200; }
  100% { stroke-dashoffset: 0; }
}

@keyframes draw-n {
  0% { stroke-dashoffset: 200; }
  100% { stroke-dashoffset: 0; }
}

/* @keyframes float-points {
  0% { transform: translateY(0); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateY(-15px); opacity: 0; }
} */

/* Apply animations on load */
.letter-z {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: draw-z 1.5s ease-out forwards;
}

.letter-n {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: draw-n 1.5s ease-out 0.5s forwards;
}


#typed-name {
  display: inline-block;
  position: relative;
  color: var(--primary);
  font-size: 48px;
  margin-bottom: 15px;
  padding-top: 70px;
}



.blinking-cursor {
    display: inline-block;
    animation: blink 1s infinite;
    margin-left: 2px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.hero {
    background: linear-gradient(135deg, rgba(50, 55, 63, 0.9) 0%, rgba(33, 36, 41, 0.9) 100%),
                url('https://images.unsplash.com/photo-1498050108023-c5249f4df085?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1470&q=80') no-repeat center center/cover;
}
.hero-content {
    padding-top: 50px;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1;
    min-width: 300px;
    padding-right: 40px;
}

.hero-text h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--primary);
}

.hero-text h2 {
    color: var(--light);

    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 400;
}

.hero-text p {
    color: var(--light);
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
    position: relative;
}

.profile-img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--primary);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.profile-img:hover {
    transform: scale(1.05);
}

.social-icons {
    display: flex;
    margin-top: 30px;
    padding-bottom: 50px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--secondary);
    color: var(--light);
    border-radius: 50%;
    margin-right: 15px;
    transition: var(--transition);
    text-decoration: none;
}

.social-icons a:hover {
    background-color: var(--primary);
    transform: translateY(-5px);
}

.btn {
    display: inline-block;
    background-color: var(--primary);
    color: var(--light);
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    margin-right: 15px;
    margin-bottom: 15px;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 173, 181, 0.3);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--light);
}

/* About Section */
.section {
    
    padding: 50px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--primary);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 70px;
    height: 3px;
    background-color: var(--primary);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.about-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.skills {
    flex: 1;
    min-width: 300px;
}

.skill-item {
    margin-bottom: 25px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.skill-bar {
    height: 10px;
    background-color: var(--secondary);
    border-radius: 5px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background-color: var(--primary);
    border-radius: 5px;
    transition: width 1.5s ease;
}

/* Education Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--primary);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-content {
    padding: 20px;
    background-color: var(--secondary);
    border-radius: 10px;
    box-shadow: var(--shadow);
    position: relative;
}
.timeline-content:hover{
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.timeline-content::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--secondary);
    top: 30px;
    transform: rotate(45deg);
    z-index: -1;
}

.timeline-item:nth-child(odd) .timeline-content::after {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-content::after {
    left: -10px;
}

.timeline-date {
    color: var(--primary);
    font-weight: 600;
}

.timeline-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: var(--primary);
    border-radius: 50%;
    top: 30px;
    z-index: 1;
}


.timeline-item:nth-child(odd) .timeline-dot {
    right: -8px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -8px;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.card {
    background-color: var(--secondary);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.card-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
}

.card h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

.card p {
    margin-bottom: 20px;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tag {
    background-color: var(--primary);
    color: var(--light);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
}

/* Contact Section */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--secondary);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: var(--light);
    transition: var(--transition);
}

.light-mode .form-control {
    background-color: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--light);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background-color: rgba(0, 173, 181, 0.1);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.form-submit {
    text-align: center;
}
/* Add these to your existing CSS */
.error-message {
    color: #ff4444;
    font-size: 0.8rem;
    margin-top: 5px;
    display: none;
}

.form-status {
    margin-top: 20px;
    padding: 12px;
    border-radius: 5px;
    text-align: center;
    display: none;
}

.form-status.success {
    display: block;
    background-color: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 1px solid #28a745;
}

.form-status.error {
    display: block;
    background-color: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 1px solid #dc3545;
}

/* Loading state for button */
.btn.loading {
    position: relative;
    pointer-events: none;
}

.btn.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    border: 3px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: button-loading-spinner 1s ease infinite;
}

@keyframes button-loading-spinner {
    from {
        transform: rotate(0turn);
    }
    to {
        transform: rotate(1turn);
    }
}
/* Footer */
footer {
    background-color: var(--secondary);
    padding: 30px 0;
    text-align: center;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-links {
    display: flex;
    list-style: none;
    margin-bottom: 20px;
}

.footer-links li {
    margin: 0 15px;
}

.footer-links a {
    color: var(--light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--light);
    color: var(--primary);
    transform: translateY(-5px);
}

/* DataTables customization */
.dataTables_wrapper {
    margin-top: 30px;
}

.dataTables_filter input {
    background-color: var(--secondary) !important;
    color: var(--light) !important;
    border: 1px solid var(--primary) !important;
    padding: 5px 10px !important;
    border-radius: 5px !important;
}

.dataTables_length select {
    background-color: var(--secondary) !important;
    color: var(--light) !important;
    border: 1px solid var(--primary) !important;
    padding: 5px !important;
    border-radius: 5px !important;
}

.dataTables_info {
    color: var(--light) !important;
}

.dataTables_paginate .paginate_button {
    color: var(--light) !important;
    border: 1px solid var(--primary) !important;
    margin: 0 5px;
    border-radius: 5px !important;
}

.dataTables_paginate .paginate_button.current {
    background: var(--primary) !important;
    color: var(--light) !important;
    border: 1px solid var(--primary) !important;
}

.light-mode .dataTables_filter input,
.light-mode .dataTables_length select,
.light-mode .dataTables_info {
    color: var(--dark) !important;
}

.light-mode .dataTables_paginate .paginate_button {
    color: var(--dark) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-container {
        padding: 0 20px;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--secondary);
        flex-direction: column;
        align-items: center;
        padding-top: 40px;
        transition: var(--transition);
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .hamburger {
        display: block;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .social-icons {
        justify-content: center;
    }

    .btn {
        margin-bottom: 15px;
    }

    .timeline::before {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-dot {
        left: 23px;
    }

    .timeline-item:nth-child(odd) .timeline-content::after,
    .timeline-item:nth-child(even) .timeline-content::after {
        left: -10px;
        right: auto;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 1s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.delay-4 {
    animation-delay: 0.8s;
}