/* Root Variables - Dark Cyberpunk Neon Theme */
:root {
    --primary-color: #09637E;
    --secondary-color: #5DADE2;
    --background-color: #04293A;
    --text-color: #B8D4DC;
    --accent-color: #0D4D63;
    --success-color: #2ECC71;
    --error-color: #E74C3C;
    --border-color: #0D4D63;
    --hover-color: #0B5B73;
    --dark-secondary: #3A8FA8;
    --neon-orange: #F39C12;
    --neon-pink: #E67E22;
    --neon-cyan: #5DADE2;
    --dark-bg: #04293A;
    --card-bg: #0A3D52;
}

/* Light Mode Variables */
body.light-mode {
    --primary-color: #87B6BC;
    --secondary-color: #2D6F7F;
    --background-color: #F5F9FA;
    --text-color: #0B3D52;
    --accent-color: #E0F1F4;
    --success-color: #27AE60;
    --error-color: #C0392B;
    --border-color: #B8D4DC;
    --hover-color: #6FA5B0;
    --dark-secondary: #1E4D5F;
    --neon-orange: #D68A3A;
    --neon-pink: #C66B2C;
    --neon-cyan: #2D6F7F;
    --dark-bg: #F0F4F6;
    --card-bg: #FFFFFF;
}

/* Light Mode Specific Styles */
body.light-mode .header {
    background: linear-gradient(180deg, #FFFFFF 0%, #F5F9FA 100%);
    color: #0B3D52;
    box-shadow: 0 0 20px rgba(135, 182, 188, 0.2), 0 0 40px rgba(45, 111, 127, 0.1);
    border-bottom: 2px solid #87B6BC;
}

body.light-mode .nav-link {
    color: #0B3D52;
}

body.light-mode .hamburger span {
    background: #0B3D52;
}

body.light-mode .hero {
    background: linear-gradient(135deg, #F5F9FA 0%, #E0F1F4 50%, #F5F9FA 100%);
    color: #0B3D52;
    border-bottom: 2px solid #87B6BC;
    box-shadow: 0 0 30px rgba(135, 182, 188, 0.1) inset;
}

body.light-mode .hero-subtitle {
    color: #1B5870;
}

body.light-mode section {
    color: #0B3D52;
}

body.light-mode .section-title {
    color: #2D6F7F;
}

body.light-mode .service-card,
body.light-mode .project-card,
body.light-mode .skill-category {
    background-color: #FFFFFF;
    border: 1px solid #B8D4DC;
    color: #0B3D52;
}

body.light-mode .form-group input,
body.light-mode .form-group textarea {
    background-color: #FFFFFF;
    color: #0B3D52;
    border: 1px solid #B8D4DC;
}

body.light-mode .form-group input:focus,
body.light-mode .form-group textarea:focus {
    border-color: #2D6F7F;
    box-shadow: 0 0 10px rgba(45, 111, 127, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--dark-secondary);
}

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

/* Header and Navigation */
.header {
    background: linear-gradient(180deg, #0A3D52 0%, #04293A 100%);
    color: white;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 0 20px rgba(9, 99, 126, 0.3), 0 0 40px rgba(93, 173, 226, 0.1);
    border-bottom: 2px solid #09637E;
    overflow: visible;
}

.navbar {
    padding: 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: #87B6BC;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logo h1:hover {
    letter-spacing: 3px;
}

.logo .subtitle {
    font-size: 0.85rem;
    color: #5DADE2;
    font-style: italic;
    text-shadow: 0 0 10px #5DADE2;
}

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

.nav-link {
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #5DADE2;
    text-shadow: 0 0 10px #5DADE2;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #09637E, #5DADE2);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px #09637E;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hamburger Active State */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Theme Toggle Button */
.theme-toggle {
    background: transparent;
    border: 2px solid #5DADE2;
    color: white;
    padding: 4px 8px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    position: fixed;
    top: 1rem;
    right: 2rem;
    z-index: 1001;
}

.theme-toggle:hover {
    background-color: #5DADE2;
    color: #04293A;
    box-shadow: 0 0 15px #5DADE2;
    transform: scale(1.1);
}

.theme-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

.theme-toggle:hover .theme-icon {
    transform: rotate(20deg) scale(1.1);
}

body.light-mode .theme-toggle {
    border-color: #2D6F7F;
}

body.light-mode .theme-toggle:hover {
    background-color: #2D6F7F;
    color: white;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #04293A 0%, #0D4D63 50%, #04293A 100%);
    color: white;
    padding: 120px 20px;
    text-align: center;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 2px solid #09637E;
    box-shadow: 0 0 30px rgba(9, 99, 126, 0.2) inset;
}

.hero-content {
    max-width: 700px;
    animation: fadeInUp 0.8s ease;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: #E8E8E8;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    display: inline-block;
}

.cta-button.primary {
    background: #09637E;
    color: white;
    border: 2px solid #09637E;
    box-shadow: 0 0 15px rgba(9, 99, 126, 0.5);
}

.cta-button.primary:hover {
    background: transparent;
    color: #09637E;
    box-shadow: 0 0 25px rgba(9, 99, 126, 0.8), inset 0 0 15px rgba(9, 99, 126, 0.2);
    transform: translateY(-2px);
}

.cta-button.secondary {
    background: transparent;
    color: #5DADE2;
    border: 2px solid #5DADE2;
    box-shadow: 0 0 15px rgba(93, 173, 226, 0.3);
}

.cta-button.secondary:hover {
    background: #5DADE2;
    color: white;
    box-shadow: 0 0 25px rgba(93, 173, 226, 0.8);
    transform: translateY(-2px);
}

/* Sections */
section {
    padding: 80px 20px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #09637E;
    position: relative;
    padding-bottom: 1rem;
    text-shadow: 0 0 20px rgba(9, 99, 126, 0.5);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #09637E, #5DADE2);
    border-radius: 2px;
    box-shadow: 0 0 15px #09637E, 0 0 25px #5DADE2;
}

/* About Section */
.about {
    background: var(--dark-bg);
    border-top: 2px solid #09637E;
}

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

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.about-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(9, 99, 126, 0.15), 0 0 40px rgba(93, 173, 226, 0.05);
    border-left: 4px solid #09637E;
    border: 1px solid rgba(93, 173, 226, 0.2);
    border-left: 4px solid #09637E;
}

.info-item h4 {
    color: #5DADE2;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.info-item p {
    margin: 0;
    color: var(--text-color);
}

.info-item a {
    font-weight: 500;
}

/* Services Section */
.services {
    background: var(--dark-bg);
    border-top: 2px solid #5DADE2;
}

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

.service-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 87, 34, 0.1), 0 0 40px rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-top: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 30px rgba(255, 87, 34, 0.3), 0 0 60px rgba(0, 212, 255, 0.15);
    border-top-color: var(--neon-orange);
    border: 1px solid rgba(0, 212, 255, 0.4);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.service-card h4 {
    color: var(--neon-orange);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(255, 87, 34, 0.5);
}

.service-card p {
    color: var(--text-color);
    line-height: 1.7;
}

/* Projects Section */
.projects {
    background: var(--dark-bg);
    border-top: 2px solid #F39C12;
}

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

.project-card {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(9, 99, 126, 0.1), 0 0 40px rgba(93, 173, 226, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(93, 173, 226, 0.15);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 30px rgba(9, 99, 126, 0.3), 0 0 60px rgba(93, 173, 226, 0.2);
    border: 1px solid rgba(93, 173, 226, 0.4);
}

.project-image {
    height: 200px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .overlay {
    opacity: 1;
}

.overlay h5 {
    color: white;
    font-size: 1.2rem;
}

.project-info {
    padding: 1.5rem;
    background: var(--card-bg);
}

.project-info h4 {
    color: #5DADE2;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
    text-shadow: 0 0 10px rgba(93, 173, 226, 0.3);
}

.project-info p {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: rgba(93, 173, 226, 0.1);
    color: #5DADE2;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(93, 173, 226, 0.3);
}

/* Skills Section */
.skills {
    background: var(--dark-bg);
    border-top: 2px solid #09637E;
}

.skills-content {
    max-width: 900px;
    margin: 0 auto;
}

.skills-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    padding: 2rem 0;
}

.skill-category {
    background: rgba(10, 61, 82, 0.3);
    padding: 2rem;
    border-radius: 8px;
    position: relative;
    border: 2px solid #5DADE2;
    overflow: hidden;
}
    color: #09637E;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    margin-top: 0;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #5DADE2;
    text-shadow: 0 0 10px rgba(9, 99, 126, 0.3);
    position: relative;
    z-index: 1;
}

.skill-bars {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.skill-name {
    font-weight: 600;
    color: #5DADE2;
    font-size: 0.95rem;
    text-shadow: 0 0 5px rgba(93, 173, 226, 0.3);
}

.skill-bar {
    height: 8px;
    background: rgba(93, 173, 226, 0.1);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(93, 173, 226, 0.2);
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #09637E, #5DADE2);
    border-radius: 10px;
    animation: slideIn 1s ease;
    box-shadow: 0 0 10px #09637E, 0 0 20px #5DADE2;
}

@keyframes slideIn {
    from {
        width: 0 !important;
    }
}

/* Contact Section */
.contact {
    background: var(--dark-bg);
    border-top: 2px solid #5DADE2;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h4 {
    color: #09637E;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(9, 99, 126, 0.3);
}

.contact-info p {
    color: var(--text-color);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.detail-item .icon {
    font-size: 1.5rem;
    min-width: 40px;
    text-align: center;
}

.detail-item h5 {
    color: #5DADE2;
    margin-bottom: 0.3rem;
    text-shadow: 0 0 5px rgba(93, 173, 226, 0.3);
}

.detail-item p,
.detail-item a {
    color: var(--text-color);
    margin: 0;
}

/* Contact Form */
.contact-form {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(9, 99, 126, 0.1), 0 0 40px rgba(93, 173, 226, 0.05);
    border: 1px solid rgba(93, 173, 226, 0.15);
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

label {
    color: #5DADE2;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    text-shadow: 0 0 5px rgba(93, 173, 226, 0.2);
}

input,
textarea {
    padding: 10px 12px;
    border: 1px solid rgba(93, 173, 226, 0.2);
    border-radius: 5px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: rgba(4, 41, 58, 0.8);
    color: var(--text-color);
}

input::placeholder,
textarea::placeholder {
    color: rgba(184, 212, 220, 0.5);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #5DADE2;
    box-shadow: 0 0 15px rgba(93, 173, 226, 0.3), inset 0 0 10px rgba(93, 173, 226, 0.1);
}

.error-message {
    color: var(--error-color);
    font-size: 0.85rem;
    margin-top: 0.3rem;
    display: none;
}

.error-message.show {
    display: block;
}

.submit-button {
    background: #09637E;
    color: white;
    padding: 12px 30px;
    border: 2px solid #09637E;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 0 15px rgba(9, 99, 126, 0.5);
}

.submit-button:hover {
    background: transparent;
    color: #09637E;
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(9, 99, 126, 0.8), inset 0 0 15px rgba(9, 99, 126, 0.2);
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-message {
    display: block;
    margin-top: 1rem;
    text-align: center;
    font-weight: 500;
}

.form-message.success {
    color: var(--success-color);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.form-message.error {
    color: var(--error-color);
    text-shadow: 0 0 10px rgba(255, 23, 68, 0.5);
}

/* Footer */
.footer {
    background: linear-gradient(180deg, #09637E 0%, #063D52 100%);
    color: white;
    padding: 2rem;
    text-align: center;
    border-top: 2px solid #5DADE2;
    box-shadow: 0 -0 15px rgba(9, 99, 126, 0.3);
}

.footer p {
    margin: 0.5rem 0;
}

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

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

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes glow {
    0%, 100% {
        filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.2)) drop-shadow(0 0 10px rgba(212, 175, 55, 0.1));
        text-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.5)) drop-shadow(0 0 20px rgba(212, 175, 55, 0.3));
        text-shadow: 0 0 30px rgba(212, 175, 55, 0.5), 0 0 40px rgba(255, 215, 0, 0.3);
    }
}

@keyframes neonGlow {
    0%, 100% {
        text-shadow:
            0 0 10px var(--neon-orange),
            0 0 20px var(--neon-orange),
            0 0 30px var(--neon-pink),
            0 0 40px var(--neon-pink),
            0 0 50px var(--neon-cyan);
    }
    50% {
        text-shadow:
            0 0 20px var(--neon-orange),
            0 0 40px var(--neon-orange),
            0 0 60px var(--neon-pink),
            0 0 80px var(--neon-pink),
            0 0 100px var(--neon-cyan);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--primary-color);
        flex-direction: column;
        gap: 0;
        padding: 2rem 1rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-menu.active {
        max-height: 500px;
    }

    .nav-menu li {
        width: 100%;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .hamburger {
        display: flex;
    }

    .theme-toggle {
        height: 32px;
        width: 32px;
        font-size: 0.85rem;
        top: 0.8rem;
        right: 1.5rem;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

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

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

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

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .cta-button {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    section {
        padding: 40px 15px;
    }

    .container {
        padding: 0 15px;
    }

    .logo h1 {
        font-size: 1.4rem;
    }

    .nav-menu {
        top: 55px;
    }

    .hero {
        min-height: 400px;
    }

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

    .hero-subtitle {
        font-size: 0.9rem;
    }

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

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

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

    .contact-form {
        padding: 1.5rem;
    }
}
