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

:root {
    --cream: #faf7f2;
    --warm-white: #fefcf9;
    --orange: #e67e22;
    --light-orange: #f39c12;
    --dark-brown: #3e2723;
    --brown: #5d4037;
    --light-brown: #8d6e63;
    --warm-gray: #6d4c41;
    --text-dark: #2c1810;
    
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px rgba(46, 24, 16, 0.1);
    --shadow-hover: 0 8px 25px rgba(230, 126, 34, 0.15);
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--cream) 0%, var(--warm-white) 100%);
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(62, 39, 35, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--orange);
}

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

.nav-links a {
    color: var(--warm-white);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--orange);
    transition: var(--transition);
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(230, 126, 34, 0.05) 70%);
    pointer-events: none;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.hero-left {
    z-index: 2;
}

.hero-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.profile-image {
    flex-shrink: 0;
}


.profile-image img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--orange);
    box-shadow: var(--shadow-hover);
    transition: var(--transition);
}

.profile-image img:hover {
    transform: scale(1.05);
    border-color: var(--light-orange);
}

.hero-title .name {
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--dark-brown);
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    margin-bottom: 2rem;
}

.hero-subtitle .title {
    display: block;
    font-size: 1.8rem;
    color: var(--orange);
    font-weight: 300;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--warm-gray);
    margin-bottom: 3rem;
    max-width: 600px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

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

.btn.primary {
    background: var(--orange);
    color: var(--warm-white);
}

.btn.primary:hover {
    background: var(--light-orange);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

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

.btn.secondary:hover {
    background: var(--orange);
    color: var(--warm-white);
    transform: translateY(-2px);
}

/* Hero Visual */
.hero-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.construction-icon {
    font-size: 4rem;
    animation: float 3s ease-in-out infinite;
}

.tech-elements {
    position: absolute;
    width: 100%;
    height: 100%;
}

.element {
    position: absolute;
    background: var(--orange);
    color: var(--warm-white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.element:nth-child(1) {
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    animation: pulse 2s infinite;
}

.element:nth-child(2) {
    top: 40%;
    left: 0%;
    animation: pulse 2s infinite 0.5s;
}

.element:nth-child(3) {
    top: 50%;
    right: -5%;
    animation: pulse 2s infinite 1s;
}

/* Sections */
section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    color: var(--dark-brown);
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--orange);
}

/* About Section */
.about {
    background: rgba(93, 64, 55, 0.08);
}

.about-text {
    font-size: 1.2rem;
    color: var(--warm-gray);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: rgba(93, 64, 55, 0.05);
    border-radius: 10px;
    padding: 2rem;
    transition: var(--transition);
    border: 1px solid rgba(230, 126, 34, 0.2);
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.project-card:nth-child(2) {
    animation-delay: 0.2s;
}

.project-card:nth-child(3) {
    animation-delay: 0.4s;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(230, 126, 34, 0.4);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.project-card h3 {
    color: var(--dark-brown);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.project-tag {
    background: var(--orange);
    color: var(--warm-white);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.project-description {
    color: var(--warm-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: rgba(230, 126, 34, 0.1);
    color: var(--orange);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid rgba(230, 126, 34, 0.3);
}

/* Skills Section */
.skills {
    background: rgba(93, 64, 55, 0.08);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.skill-category {
    background: rgba(93, 64, 55, 0.05);
    border-radius: 10px;
    padding: 2rem;
    border: 1px solid rgba(230, 126, 34, 0.2);
    transition: var(--transition);
}

.skill-category:hover {
    border-color: rgba(230, 126, 34, 0.4);
    transform: translateY(-3px);
}

.skill-category h3 {
    color: var(--orange);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.skill-list {
    list-style: none;
}

.skill-list li {
    color: var(--warm-gray);
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.skill-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--orange);
    font-weight: bold;
}

/* Contact Section */
.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-text {
    font-size: 1.2rem;
    color: var(--warm-gray);
    margin-bottom: 2rem;
    line-height: 1.6;
}

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

.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--dark-brown);
    text-decoration: none;
    font-size: 1.1rem;
    transition: var(--transition);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(230, 126, 34, 0.3);
}

.contact-link:hover {
    color: var(--orange);
    border-color: var(--orange);
    transform: translateY(-2px);
}

.contact-icon {
    font-size: 1.5rem;
}

/* Footer */
footer {
    background: var(--dark-brown);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(230, 126, 34, 0.2);
}

footer p {
    color: var(--warm-white);
}

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

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

@keyframes orbit {
    0% {
        transform: rotate(0deg) translateX(120px) rotate(0deg);
    }
    100% {
        transform: rotate(360deg) translateX(120px) rotate(-360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero {
        padding-top: 6rem; /* Add space below fixed navbar */
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-header {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    
    .profile-image img {
        width: 120px;
        height: 120px;
    }
    
    .hero-title .name {
        font-size: 2.5rem;
        text-align: center;
    }
    
    .hero-subtitle .title {
        font-size: 1.4rem;
        text-align: center;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        min-width: 140px;
    }
    
    .hero-visual {
        width: 200px;
        height: 200px;
        margin: 0 auto;
    }
    
    .construction-icon {
        font-size: 2.5rem;
    }
    
    .element {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-links {
        gap: 1.5rem;
    }
    
    .contact-link {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .navbar {
        padding: 1rem;
    }
    
    .hero {
        padding: 6rem 1rem 2rem 1rem;
    }
    
    .profile-image img {
        width: 100px;
        height: 100px;
    }
    
    .hero-title .name {
        font-size: 2rem;
    }
    
    .hero-subtitle .title {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .hero-visual {
        width: 150px;
        height: 150px;
    }
    
    .construction-icon {
        font-size: 2rem;
    }
    
    .element {
        font-size: 0.6rem;
        padding: 0.2rem 0.5rem;
    }
    
    .hero-buttons .btn {
        min-width: 120px;
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .project-card,
    .skill-category {
        padding: 1.5rem;
    }
}