/* teal color palate */
/* :root {
    --primary-bg: #072227;
    --secondary-bg: #35858B;
    --accent-color: #4FBDBA;
    --text-color: #fff;
    --text-secondary-color: rgba(255, 255, 255, 0.9);
    --highlight-color: #AEFEFF;
    --btn-hover: #2C7A7B;
    --nav-bg: rgba(7, 34, 39, 0.9);
    --box-shadow: rgba(0, 0, 0, 0.3);
    --btn-shadow: rgba(79, 189, 186, 0.3);
    --border: rgba(79, 189, 186, 0.2);
    --form-bg: rgba(79, 189, 186, 0.1);
    --gradient-primary: linear-gradient(90deg, var(--accent-color), var(--highlight-color));
    --gradient-secondary: linear-gradient(45deg, var(--accent-color), var(--highlight-color));
} */

/* yellow and black */
/* :root {
    --primary-bg: #1E1E1E;
    --secondary-bg: #2C2C2C;
    --accent-color: #FFD700;
    --text-color: #F5F5F5;
    --text-secondary-color: rgba(245, 245, 245, 0.9);
    --highlight-color: #DAA520;
    --btn-hover: #B8860B;
    --nav-bg: rgba(30, 30, 30, 0.9);
    --box-shadow: rgba(0, 0, 0, 0.2);
    --btn-shadow: rgba(218, 165, 32, 0.3);
    --border: rgba(218, 165, 32, 0.2);
    --form-bg: rgba(218, 165, 32, 0.1);
    --gradient-primary: linear-gradient(90deg, var(--accent-color), var(--highlight-color));
    --gradient-secondary: linear-gradient(45deg, var(--accent-color), var(--highlight-color));
} */

/* blue and black */
/* :root {
    --primary-bg: #1A1A2E;
    --secondary-bg: #16213E;
    --accent-color: #0F3460;
    --text-color: #EAEAEA;
    --text-secondary-color: rgba(234, 234, 234, 0.9);
    --highlight-color: #00ADB5;
    --btn-hover: #008891;
    --nav-bg: rgba(26, 26, 46, 0.9);
    --box-shadow: rgba(0, 0, 0, 0.2);
    --btn-shadow: rgba(0, 173, 181, 0.3);
    --border: rgba(0, 173, 181, 0.2);
    --form-bg: rgba(0, 173, 181, 0.1);
    --gradient-primary: linear-gradient(90deg, var(--accent-color), var(--highlight-color));
    --gradient-secondary: linear-gradient(45deg, var(--accent-color), var(--highlight-color));
} */

/* almost light blue and black */
/* :root {
    --primary-bg: #222E50;
    --secondary-bg: #1B3B6F;
    --accent-color: #255F85;
    --text-color: #F0F0F0;
    --text-secondary-color: rgba(240, 240, 240, 0.9);
    --highlight-color: #00A8CC;
    --btn-hover: #0096B1;
    --nav-bg: rgba(34, 46, 80, 0.9);
    --box-shadow: rgba(0, 0, 0, 0.2);
    --btn-shadow: rgba(0, 168, 204, 0.3);
    --border: rgba(0, 168, 204, 0.2);
    --form-bg: rgba(0, 168, 204, 0.1);
    --gradient-primary: linear-gradient(90deg, var(--accent-color), var(--highlight-color));
    --gradient-secondary: linear-gradient(45deg, var(--accent-color), var(--highlight-color));
} */

/* white and black */
/* :root {
    --primary-bg: #1C1C1C;
    --secondary-bg: #2E2E2E;
    --accent-color: #4F4F4F;
    --text-color: #FFFFFF;
    --text-secondary-color: rgba(255, 255, 255, 0.8);
    --highlight-color: #D3D3D3;
    --btn-hover: #A9A9A9;
    --nav-bg: rgba(28, 28, 28, 0.9);
    --box-shadow: rgba(0, 0, 0, 0.3);
    --btn-shadow: rgba(211, 211, 211, 0.3);
    --border: rgba(211, 211, 211, 0.2);
    --form-bg: rgba(211, 211, 211, 0.1);
    --gradient-primary: linear-gradient(90deg, var(--accent-color), var(--highlight-color));
    --gradient-secondary: linear-gradient(45deg, var(--accent-color), var(--highlight-color));
} */

/* red and black */
:root {
    --primary-bg: #161A1D;
    --secondary-bg: #0B090A;
    --accent-color: #A4161A;
    --text-color: #F5F3F4;
    --text-secondary-color: rgba(245, 243, 244, 0.9);
    --highlight-color: #E5383B;
    --btn-hover: #BA181B;
    --nav-bg: rgba(22, 26, 29, 0.9);
    --box-shadow: rgba(0, 0, 0, 0.3);
    --btn-shadow: rgba(229, 56, 59, 0.3);
    --border: rgba(229, 56, 59, 0.2);
    --form-bg: rgba(229, 56, 59, 0.1);
    --gradient-primary: linear-gradient(90deg, var(--btn-shadow), var(--highlight-color));
    --gradient-secondary: linear-gradient(0deg, var(--secondary-bg), var(--primary-bg));
    --gradient-custom: linear-gradient(135deg, var(--secondary-bg), var(--accent-color));
    --gradient-btn: linear-gradient(45deg, var(--accent-color), var(--highlight-color));
}


/* Elegant & Futuristic (Dark Mode) */
/* :root {
    --primary-bg: #0D1B2A;
    --secondary-bg: #1B263B;
    --accent-color: #415A77;
    --text-color: #E0E1DD;
    --text-secondary-color: rgba(224, 225, 221, 0.9);
    --highlight-color: #778DA9;
    --btn-hover: #A2AEBB;`
    --nav-bg: rgba(13, 27, 42, 0.9);
    --box-shadow: rgba(0, 0, 0, 0.3);
    --btn-shadow: rgba(119, 141, 169, 0.3);
    --border: rgba(119, 141, 169, 0.2);
    --form-bg: rgba(119, 141, 169, 0.1);
    --gradient-primary: linear-gradient(90deg, var(--accent-color), var(--highlight-color));
    --gradient-secondary: linear-gradient(45deg, var(--accent-color), var(--highlight-color));
} */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-color);
    line-height: 1.6;
}

section {
    padding: 80px 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

h1,
h2,
h3,
h4 {
    margin-bottom: 20px;
    font-weight: 600;
}

h1 {
    font-size: 3rem;
    text-transform: uppercase;
    background: var(--gradient-btn);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60%;
    height: 4px;
    background-color: var(--accent-color);
}

p {
    margin-bottom: 20px;
    color: var(--text-secondary-color);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--gradient-btn);
    color: var(--primary-bg);
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.4s ease;
    text-decoration: none;
    font-weight: 500;
    box-shadow: 0 4px 15px var(--btn-shadow);
}

.btn:hover {
    background: var(--btn-hover);
    color: var(--text-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px var(--box-shadow);
}

.text-highlight {
    color: var(--highlight-color);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--nav-bg);
    z-index: 1000;
    backdrop-filter: blur(5px);
    border-bottom: 1px solid var(--border);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--highlight-color);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 40px;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: var(--highlight-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--highlight-color);
    transition: all 0.3s ease;
}

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

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--primary-bg), var(--secondary-bg));
    overflow: hidden;
    padding: 100px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

.hero-content {
    position: relative;
    text-align: center;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3rem;
    animation: fadeIn 1.5s ease-in-out;
}

.hero-content p {
    font-size: 1.2rem;
    animation: fadeIn 2s ease-in-out;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    animation: fadeIn 2.5s ease-in-out;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-btns .btn:nth-child(2) {
    background-color: transparent;
    border: 2px solid var(--accent-color);
}

.hero-btns .btn:nth-child(2):hover {
    background-color: var(--accent-color);
}

/* About Section */
#about {
    background-color: var(--secondary-bg);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-img {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 30px var(--box-shadow);
}

.about-img::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 4px solid var(--accent-color);
    border-radius: 10px;
    z-index: -1;
}

.about-img img {
    width: 100%;
    display: block;
    transform: scale(1);
    transition: transform 0.5s ease;
}

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

.about-text h2 {
    color: var(--text-color);
}

.about-text p {
    margin-bottom: 30px;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

.tech-item {
    padding: 8px 16px;
    background-color: var(--primary-bg);
    border-radius: 5px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tech-item:hover {
    background-color: var(--accent-color);
    transform: translateY(-5px);
}

/* Skills Section */
#skills {
    background-color: var(--secondary-bg);
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.skill-card {
    background-color: var(--primary-bg);
    padding: 30px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--box-shadow);
}

.skill-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--highlight-color);
}

.skill-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.skill-info {
    color: var(--text-secondary-color);
}

.skill-progress {
    margin-top: 20px;
}

.progress-title {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.progress-bar {
    height: 10px;
    background-color: var(--secondary-bg);
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--highlight-color);
    border-radius: 5px;
    transition: width 1.5s ease;
}

/* Experience & Projects Section */
#experience {
    background: var(--primary-bg);
    padding: 80px 0;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    background: var(--secondary-bg);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 10px 20px var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.project-card h3 {
    margin-bottom: 10px;
    color: var(--highlight-color);
}

.project-card p {
    margin-bottom: 15px;
    color: var(--text-secondary-color);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.project-tech span {
    background: var(--gradient-btn);
    color: var(--primary-bg);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Technologies section */
#technologies {
    background: var(--gradient-secondary);
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.tech-grid-item {
    background: var(--gradient-primary);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-bg);
}

.tech-grid-item i {
    font-size: 1.5rem;
    color: var(--text-color);
    font-weight: bold;
}

.tech-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Contact Section */
.contact-section {
    position: relative;
    background: var(--gradient-custom);
    overflow: hidden;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--highlight-color);
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    background-color: var(--accent-color);
    color: var(--primary-bg);
    transform: scale(1.1);
}

.contact-details h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--accent-color);
    transform: translateY(-5px);
}

.contact-form {
    background-color: var(--primary-bg);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 20px 30px var(--box-shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 15px;
    background-color: var(--form-bg);
    border: 1px solid var(--btn-shadow);
    border-radius: 5px;
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: var(--border);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.captcha-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

#captchaCanvas {
    border: 1px solid var(--btn-shadow);
    border-radius: 5px;
}

.error-message {
    color: red;
    display: none;
    font-size: 0.9rem;
}

.loader {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #09f;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 10px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.icon-overlay {
    position: absolute;
    opacity: 0.1;
    animation: float 2s infinite alternate ease-in-out;
    font-size: 7rem;
    font-weight: bold;
    user-select: none;
    z-index: 0;
}

.icon-1 {
    top: 30%;
    left: 30%;
}

.icon-2 {
    top: 70%;
    left: 70%;
}

@keyframes float {
    from {
        transform: translateY(-10px);
    }
    to {
        transform: translateY(10px);
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-btn);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-bg);
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
    animation: bounce 1.5s infinite;
}

.back-to-top:hover {
    background-color: var(--secondary-bg);
    transform: translateY(-5px);
}

/* Footer */
footer {
    background-color: var(--primary-bg);
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid var(--border);
}

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

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

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

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

/* Responsive Design */
@media screen and (max-width: 991px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .about-container,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-img {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media screen and (max-width: 768px) {
    .hamburger {
        display: block;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--primary-bg);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: all 0.5s ease;
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 20px 0;
    }

    .hamburger.active div:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

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

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

    .hero-btns {
        flex-direction: column;
        gap: 15px;
    }

    .hero-btns .btn {
        width: 100%;
        text-align: center;
    }
}

@media screen and (max-width: 576px) {
    section {
        padding: 60px 0;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.7rem;
    }

    .contact-form {
        padding: 25px;
    }
}