:root {
    --primary-color: #4a90e2;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --background: rgba(0, 0, 0, 0.7);
    --text-color: #ffffff; 
    --card-bg: rgba(255, 255, 255, 0.1);
}

/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: var(--background);
    color: var(--text-color);
    background-image: url('background.jpg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background);
    z-index: -1;
}

/* Navbar styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: #00000093;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 90%;
    left: 60px;
    top: 10px;
    z-index: 1000;
    animation: slideDown 0.5s ease;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover, .nav-links .active {
    color: var(--primary-color);
}

/* Hero section */
.hero {
    min-height: 80vh;
    margin-top: 80px;
    padding: 2rem 5%;
    display: flex;
    align-items: center;
}

.hero-content {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.hero-content img {
    width: 300px;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    animation: floatIn 1s ease;
}

.hero-content img:hover {
    transform: translateY(-10px);
}

.content-right {
    max-width: 600px;
    animation: slideInRight 0.8s ease;
}

.highlight {
    color: var(--primary-color);
}

/* Buttons */
.cta-btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
}

.cta-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.2);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.cta-btn:hover::after {
    transform: translateX(0);
}

/* Sections */
.section {
    padding: 4rem 5%;
}

.section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: white;
}

.section h3 {
    color: white;
}

.section p {
    color: white;
}

/* Skills grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-category {
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeIn 0.8s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.skills-list {
    display: grid;
    gap: 1rem;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 15px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
}

.skill-item:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.02);
}

/* Contact form */
.contact-form form {
    max-width: 600px;
    margin: 0 auto;
    display: grid;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid transparent;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.1);
    outline: none;
}

.contact-form button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
}

/* Social links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px) rotate(8deg);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
}

/* Fixed Social Sidebar */
.social-sidebar {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.social-sidebar a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.social-sidebar a:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* Specific colors for each social icon */
.social-sidebar a:nth-child(1) { background: hsl(0, 4%, 5%); } /* GitHub */
.social-sidebar a:nth-child(2) { background: hsl(0, 0%, 3%); } /* Gmail */
.social-sidebar a:nth-child(3) { background: #0f0f0f; } /* WhatsApp */

/* Contact Info Section */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.contact-info i {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

footer {
    background-color: var(--dark);
    color: white;
    text-align: center;
    text-decoration: none;
    padding: 40px 0;
    margin: 10px;
    border-radius: 10px;
}

/* Animations */
@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

@keyframes slideInRight {
    from { transform: translateX(50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes floatIn {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive design */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-links {
        display: none;
    }

    .social-sidebar {
        left: 0;
        bottom: 0;
        top: auto;
        transform: none;
        flex-direction: row;
        width: 100%;
        padding: 15px;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    }
    
    .social-sidebar a {
        width: 40px;
        height: 40px;
    }
}
