/* ===========================
   ROOT & VARIABLES
   Color palette extracted from guitarMAN.jpg
   =========================== */
:root {
    --primary-color: #22281e;
    --secondary-color: #282f1f;
    --accent-color: #141e16;
    --highlight-color: #3d5a37;
    --light-text: #e8ebe5;
    --text-color: #9fa69a;
    --white: #ffffff;
    --dark-bg: #141e16;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Complementary warm tones for contrast and animations */
    --accent-warm: #8b6f47;
    --accent-gold: #c9b896;
    --accent-light: #d4cfc0;
    --accent-vibrant: #a8956d;
}

/* ===========================
   GENERAL STYLES
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: var(--dark-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

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

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

/* ===========================
   NAVIGATION
   =========================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(20, 30, 22, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(61, 90, 55, 0.2);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5em;
    font-weight: 800;
    background: linear-gradient(135deg, #3d5a37, #5a8552);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3d5a37, #5a8552);
    transition: var(--transition);
}

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

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

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--highlight-color);
    border-radius: 2px;
    transition: var(--transition);
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .nav-container {
        padding: 0 20px;
    }
}

/* ===========================
   HERO SECTION
   =========================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px 40px 50px;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--primary-color) 50%, var(--secondary-color) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(168, 149, 109, 0.08) 0%, transparent 70%);
    animation: float 20s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(30px, -30px, 0); }
}

@keyframes floatCard {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(15px, -15px, 0); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 4.5em;
    line-height: 1.1;
    color: var(--light-text);
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: -2px;
}

.hero-title {
    background: linear-gradient(135deg, #e8ebe5 0%, #3d5a37 50%, #22281e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5em;
    color: var(--text-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.hero-description {
    font-size: 1.1em;
    color: var(--text-color);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1em;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #3d5a37, #5a8552);
    color: white;
    box-shadow: 0 10px 30px rgba(61, 90, 55, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(61, 90, 55, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--highlight-color);
    border: 2px solid var(--highlight-color);
}

.btn-secondary:hover {
    background: var(--highlight-color);
    color: white;
    transform: translateY(-3px);
}

.hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-card {
    position: absolute;
    padding: 20px 30px;
    border-radius: 15px;
    font-weight: 600;
    font-size: 1.2em;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: floatCard 3s infinite ease-in-out;
    will-change: transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    pointer-events: none;
}

.floating-card * {
    pointer-events: auto;
}

.card-1 {
    background: linear-gradient(135deg, #8b6f47 0%, #c9b896 50%, #a8956d 100%);
    color: white;
    top: 0;
    left: 0;
    animation-delay: 0s;
}

.card-2 {
    background: linear-gradient(135deg, #3d5a37 0%, #5a8552 50%, #7aaa6e 100%);
    color: white;
    top: 100px;
    right: 50px;
    animation-delay: 1s;
}

.card-3 {
    background: linear-gradient(135deg, #141e16 0%, #282f1f 50%, #3d5a37 100%);
    color: white;
    bottom: 50px;
    left: 20px;
    animation-delay: 2s;
}

.card-4 {
    background: linear-gradient(135deg, #c9b896 0%, #d4cfc0 50%, #e8ebe5 100%);
    color: #22281e;
    bottom: 20px;
    right: 0;
    animation-delay: 1.5s;
}

.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    color: var(--text-color);
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--highlight-color);
    border-radius: 15px;
    display: flex;
    justify-content: center;
}

.wheel {
    width: 3px;
    height: 8px;
    background: var(--highlight-color);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% { transform: translateY(-10px); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(10px); opacity: 0; }
}

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

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-text h1 {
        font-size: 3em;
    }

    .hero-visual {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 120px 20px 50px;
    }

    .hero-text h1 {
        font-size: 2.5em;
    }

    .hero-subtitle {
        font-size: 1.2em;
    }

    .hero-buttons {
        flex-direction: column;
    }

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

/* ===========================
   SECTION HEADER
   =========================== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 3em;
    color: var(--light-text);
    margin-bottom: 20px;
    font-weight: 800;
}

.header-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3d5a37, #5a8552);
    margin: 0 auto;
    border-radius: 2px;
}

/* ===========================
   ABOUT SECTION
   =========================== */
.about {
    padding: 100px 0;
    background: var(--primary-color);
    position: relative;
}

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

.about-text p {
    font-size: 1.1em;
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-image {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--highlight-color);
    box-shadow: 0 10px 40px rgba(139, 111, 71, 0.2);
    transition: var(--transition);
}

.profile-image:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(139, 111, 71, 0.25);
}

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

.social-link {
    color: var(--highlight-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

.social-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #8b6f47, #c9b896);
    transition: var(--transition);
}

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

.social-icons {
    display: flex;
    gap: 25px;
    margin-top: 30px;
    justify-content: flex-start;
}

.social-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    color: var(--highlight-color);
    font-size: 24px;
    transition: var(--transition);
    border: 2px solid var(--highlight-color);
}

.social-icon-link:hover {
    background: linear-gradient(135deg, #a8956d, #d4cfc0);
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(168, 149, 109, 0.3);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5em;
    font-weight: 800;
    background: linear-gradient(135deg, #8b6f47, #c9b896);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-color);
    font-weight: 600;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .section-header h2 {
        font-size: 2em;
    }
}

/* ===========================
   WORK/PROJECTS SECTION
   =========================== */
.work {
    padding: 100px 0;
    background: var(--dark-bg);
}

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

.project-card {
    background: var(--secondary-color);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(139, 111, 71, 0.15);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: rgba(139, 111, 71, 0.3);
    box-shadow: 0 20px 40px rgba(139, 111, 71, 0.2);
}

.project-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    transition: var(--transition);
}

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

.project-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    font-size: 1.3em;
    color: var(--light-text);
    margin-bottom: 10px;
}

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

.project-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.tag {
    background: rgba(139, 111, 71, 0.2);
    color: var(--highlight-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

.project-link {
    color: var(--highlight-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

.project-link:hover {
    transform: translateX(5px);
}

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

/* ===========================
   SKILLS SECTION
   =========================== */
.skills {
    padding: 100px 0;
    background: var(--primary-color);
}

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

.skill-group-title {
    font-size: 1.3em;
    color: var(--light-text);
    margin-bottom: 30px;
    font-weight: 700;
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skill-name {
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95em;
}

.skill-bar {
    width: 100%;
    height: 6px;
    background: rgba(139, 111, 71, 0.15);
    border-radius: 3px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #8b6f47, #c9b896);
    border-radius: 3px;
    width: 0;
    transition: width 1.5s ease-out;
}

.skill-progress.animate {
    width: var(--progress-width);
}

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

@keyframes slideInImage {
    from {
        opacity: 0;
        transform: translateX(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.profile-image.animate {
    animation: slideInImage 0.8s ease-out forwards;
}

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

/* ===========================
   CONTACT SECTION
   =========================== */
.contact {
    padding: 100px 0;
    background: var(--dark-bg);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-text p {
    font-size: 1.1em;
    color: var(--text-color);
    margin-bottom: 30px;
    line-height: 1.8;
}

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

.info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-label {
    color: var(--highlight-color);
    font-weight: 600;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-item a,
.info-item p {
    color: var(--light-text);
    font-size: 1.1em;
    text-decoration: none;
    transition: var(--transition);
}

.info-item a:hover {
    color: var(--highlight-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    background: var(--secondary-color);
    border: 1px solid rgba(139, 111, 71, 0.2);
    border-radius: 8px;
    color: var(--light-text);
    font-family: inherit;
    font-size: 1em;
    transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-color);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--highlight-color);
    background: rgba(139, 111, 71, 0.05);
}

.form-group textarea {
    resize: vertical;
}

@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
    }
}

/* ===========================
   FOOTER
   =========================== */
.footer {
    background: var(--secondary-color);
    border-top: 1px solid rgba(139, 111, 71, 0.1);
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content p {
    color: var(--text-color);
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

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

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}
