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

:root {
    --primary-color: #72BAA9;
    --secondary-color: #2c3e50;
    --text-color: #333;
    --bg-color: #fff;
}

html {
    scroll-behavior: smooth;
}

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

/* Navbar Styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-color);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    opacity: 0.85;
}

.logo {
    display: flex;
    align-items: center;
}

.dev-logo {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.dev-logo:hover {
    transform: scale(1.1);
}

.dev-logo .bracket-left,
.dev-logo .bracket-right,
.dev-logo .slash {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: draw 1s ease forwards;
}

.dev-logo .slash {
    animation-delay: 0.3s;
}

.dev-logo .bracket-right {
    animation-delay: 0.6s;
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    margin-left: 2rem;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

.nav-links .resume-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.nav-links .resume-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.nav-links .resume-btn i {
    font-size: 0.9em;
}

.nav-profile-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-profile-img:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(100, 255, 218, 0.3);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 2px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1rem;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
                url('https://images.unsplash.com/photo-1461749280684-dccba630e2f6?w=1200&h=800&crop=entropy&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.highlight {
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.typing-text {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.social-links a {
    color: white;
    font-size: 1.8rem;
    margin: 0 1rem;
    transition: color 0.3s, transform 0.3s;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Sections Common Styles */
section {
    padding: 5rem 10%;
}

h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--secondary-color);
}

/* Skills Section */
.skills {
    padding: 80px 20px;
    background-color: var(--bg-color-secondary, #1a1a1a);
}

.skills h2 {
    color: wheat;
    text-align: center;
    margin-bottom: 50px;
}

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

.skills-category {
    margin-bottom: 50px;
}

.skills-category h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--primary-color, #64ffda);
    text-align: center;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    padding: 0 20px;
}

.skill-card {
    background: var(--bg-color, #0a192f);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.skill-card i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary-color, #64ffda);
}

.skill-card h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-color, #fff);
}

.skill-level {
    background: rgba(255, 255, 255, 0.1);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 15px;
}

.skill-level .progress {
    height: 100%;
    background: var(--primary-color, #64ffda);
    border-radius: 4px;
    transition: width 1s ease-in-out;
}

/* Responsive Design for Skills */
@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
        padding: 0 10px;
    }

    .skill-card {
        padding: 20px;
    }

    .skill-card i {
        font-size: 2rem;
    }

    .skill-card h4 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

/* Projects Section */
.projects {
    padding: 80px 20px;
    background-color: var(--bg-color);
}

.projects h2 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-color);
}

.projects-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.project-card {
    background: var(--bg-color-secondary);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-image {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.project-links {
    display: flex;
    gap: 20px;
}

.project-btn {
    padding: 10px 20px;
    background: var(--primary-color);
    color: var(--bg-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.project-btn:hover {
    transform: translateY(-2px);
    background: var(--primary-color-light, #7effda);
}

.project-btn i {
    font-size: 1.1em;
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.project-info p {
    color: var(--text-color-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

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

.project-tech span {
    padding: 5px 12px;
    background: rgba(100, 255, 218, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.project-tech span:hover {
    background: rgba(100, 255, 218, 0.2);
}

/* Responsive Design for Projects */
@media (max-width: 768px) {
    .project-image {
        height: 250px;
    }

    .project-info {
        padding: 20px;
    }

    .project-info h3 {
        font-size: 1.3rem;
    }

    .project-links {
        flex-direction: column;
        gap: 10px;
    }

    .project-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .project-image {
        height: 200px;
    }

    .project-tech {
        justify-content: center;
    }
}

/* About Section */
.about {
    padding: 5rem 10%;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.profile-picture {
    flex: 0 0 300px;
}

.profile-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border: 3px solid var(--primary-color);
    transition: transform 0.3s ease;
}

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

.about-text {
    flex: 1;
    text-align: justify;
}

@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-picture {
        flex: 0 0 250px;
        margin: 0 auto;
    }
}

/* Contact Section */
.contact {
    padding: 80px 20px;
    text-align: center;
}

.contact h2 {
    margin-bottom: 40px;
}

.contact-options {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-option {
    background: var(--bg-color-secondary, #2a2a2a);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    width: 300px;
    text-decoration: none;
    color: var(--text-color, #fff);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.contact-option i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary-color, #64ffda);
}

.contact-option h3 {
    color: wheat;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.contact-option p {
    font-size: 0.9rem;
    margin-bottom: 20px;
    color: var(--text-color-secondary, #a8a8a8);
}

.contact-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color, #64ffda);
    color: var(--bg-color, #0a192f);
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.contact-btn:hover {
    background-color: var(--primary-color-light, #7effda);
}

.contact form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact input,
.contact textarea {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.contact textarea {
    height: 150px;
    resize: vertical;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-option {
        width: 100%;
        max-width: 350px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-color);
        padding: 1rem;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .nav-links .resume-btn {
        margin-top: 0.5rem;
        width: 100%;
        justify-content: center;
    }

    .nav-links a {
        margin: 0.5rem 0;
    }

    .hamburger {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .typing-text {
        font-size: 1.2rem;
    }

    section {
        padding: 3rem 5%;
    }
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #27ae60;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--secondary-color);
    color: white;
}
