:root {
    --primary-color: #2c5364;
    --secondary-color: #0f4c75;
    --accent-color: #3282b8;
    --text-color: #ffffff;
    --dark-bg: #1b1b1b;
    --button-color: #3282b8;
    --button-hover: #0f4c75;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 1s ease-in-out;
}

/* Floating binary styles - improved visibility */
#binary-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    overflow: hidden;
    z-index: 5;
    pointer-events: none;
}

.binary {
    position: absolute;
    bottom: -50px;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.2);
    animation: floatUp 12s infinite ease-in-out;
    opacity: 0;
}

@keyframes floatUp {
    0% {
        transform: translateY(0);
        opacity: 0.2;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(-200px);
        opacity: 0;
    }
}

/* Improved Header & Navigation */
header {
    background: rgba(15, 76, 117, 0.95);
    color: var(--text-color);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    0% { transform: translateY(-20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

nav {
    transition: all 0.3s ease;
}

nav ul {
    list-style-type: none;
    display: flex;
    gap: 2rem;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all var(--transition-speed) ease;
    position: relative;
    padding: 0.5rem 0;
}

nav ul li a:hover {
    color: #a5d8ff;
}

nav ul li a::after {
    content: '';
    width: 0%;
    height: 2px;
    background-color: #a5d8ff;
    position: absolute;
    bottom: 0;
    left: 0;
    transition: width var(--transition-speed) ease-in-out;
}

nav ul li a:hover::after {
    width: 100%;
}

section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.about {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about img {
    border-radius: 50%;
    width: 220px;
    height: 220px;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transition: transform var(--transition-speed) ease;
}

.about img:hover {
    transform: scale(1.05);
}

.about p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.about, .projects, .skills-section, .contact {
    background-color: rgba(27, 27, 27, 0.8);
    margin-bottom: 3rem;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.about:hover, .projects:hover, .skills-section:hover, .contact:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

h2 {
    text-align: center;
    font-size: 2.2rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 50%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-item {
    background: rgba(51, 51, 51, 0.7);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    display: flex;
    flex-direction: column;
}

.project-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.project-item video,
.project-item img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.project-item h3 {
    font-size: 1.4rem;
    margin: 0.5rem 0;
    color: var(--text-color);
}

.project-item p {
    color: #cccccc;
    flex-grow: 1;
    margin-bottom: 1rem;
}

.project-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--button-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all var(--transition-speed) ease;
    text-align: center;
    margin-top: auto;
}

.project-button:hover {
    background-color: var(--button-hover);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* New Skills Section */
.skills-section {
    text-align: center;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.skill-category {
    flex: 1;
    min-width: 250px;
    max-width: 400px;
    margin-bottom: 2rem;
}

.skill-category h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.skill-category h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

.skill-bars {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    font-weight: 500;
}

.skill-progress {
    height: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.skill-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 1s ease-in-out;
}

/* Different colors for each category */
.programming .skill-fill { background-color: rgba(231, 76, 60, 0.85); }
.web .skill-fill { background-color: rgba(52, 152, 219, 0.85); }
.database .skill-fill { background-color: rgba(39, 174, 96, 0.85); }
.tools .skill-fill { background-color: rgba(243, 156, 18, 0.85); }

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    margin-top: 0.5rem;
}

.skill-tag {
    background: rgba(51, 51, 51, 0.8);
    border-radius: 20px;
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    transform: translateY(-3px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

/* Programming */
.programming .skill-tag {
    background-color: rgba(231, 76, 60, 0.3);
    border: 1px solid rgba(231, 76, 60, 0.5);
}
.programming .skill-tag:hover {
    background-color: rgba(231, 76, 60, 0.5);
}

/* Web */
.web .skill-tag {
    background-color: rgba(52, 152, 219, 0.3);
    border: 1px solid rgba(52, 152, 219, 0.5);
}
.web .skill-tag:hover {
    background-color: rgba(52, 152, 219, 0.5);
}

/* Database */
.database .skill-tag {
    background-color: rgba(39, 174, 96, 0.3);
    border: 1px solid rgba(39, 174, 96, 0.5);
}
.database .skill-tag:hover {
    background-color: rgba(39, 174, 96, 0.5);
}

/* Tools */
.tools .skill-tag {
    background-color: rgba(243, 156, 18, 0.3);
    border: 1px solid rgba(243, 156, 18, 0.5);
}
.tools .skill-tag:hover {
    background-color: rgba(243, 156, 18, 0.5);
}

.contact form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

input, textarea {
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 1rem;
    background: rgba(34, 34, 34, 0.8);
    color: var(--text-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-speed) ease;
    font-family: 'Poppins', sans-serif;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(50, 130, 184, 0.3);
}

button {
    padding: 1rem;
    border: none;
    background: var(--button-color);
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
}

button:hover {
    background: var(--button-hover);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

button:active {
    transform: translateY(-1px);
}

footer {
    text-align: center;
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.7);
    color: #aaaaaa;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
}

/* Scroll Progress Indicator */
#progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--accent-color), #a5d8ff);
    transform-origin: 0 0;
    transform: scaleX(0);
    z-index: 2000;
}

/* Animation for sections */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced Responsive Styles */
@media (max-width: 992px) {
    .skills-container {
        flex-direction: column;
        align-items: center;
    }
    
    .skill-category {
        width: 100%;
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 1rem;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    .menu-toggle {
        display: block;
    }
    
    nav {
        position:fixed;
        top: 0;
        left:0;
        width: 250px;
        height: 100vh;
        background-color: rgba(15, 76, 117, 0.95);
        padding: 80px 20px 20px;
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        transition: left 0.3s ease;
    }
    
    nav.active {
        right: 0;
        display: none;
        /* transform : translateX(0); */
        /* transform: transla; */
        /* transform: translate(0%); */
        /* transform: translate(%); */


    }
    
    nav ul {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    nav ul li a {
        display: block;
        padding: 0.5rem;
    }
    
    .about-content {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    section {
        padding: 3rem 1rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
    }
    
    .about, .projects, .skills-section, .contact {
        padding: 2rem 1rem;
    }
    
    .about img {
        width: 180px;
        height: 180px;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .skill-category h3 {
        font-size: 1.3rem;
    }
}

.center{
    text-align: center;
}