:root {
    --primary: #8b7158;
    --secondary: #a0896b;
    --accent: #c9a876;
    --bg-light: #f5f1eb;
    --bg-medium: #e8ddd4;
    --text-dark: #2d2d2d;
    --text-light: rgba(45, 45, 45, 0.8);
    --glass: rgba(255, 255, 255, 0.4);
    --glass-border: rgba(139, 113, 88, 0.2);
    --container-width: 1200px;
    --border-radius: 20px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--bg-light), var(--bg-medium));
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--text-dark);
}

/* Animated background particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: var(--glass-border);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Navigation */
nav {
    background: var(--glass-border);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    animation: slideDown 0.8s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

nav .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 5px rgba(139, 113, 88, 0.5); }
    to { text-shadow: 0 0 20px rgba(139, 113, 88, 0.8); }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    transform: translateY(-2px);
}

.time-display {
    color: var(--text-dark);
    font-size: 0.9rem;
    background: var(--glass-border);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    border: 1px solid var(--glass-border);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Main Content */
.main-content {
    margin-top: 0;
    padding: 120px 2rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.container {
    max-width: var(--container-width);
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.content-left {
    animation: fadeInLeft 1s ease-out;
}

.content-right {
    animation: fadeInRight 1s ease-out;
}

@keyframes fadeInLeft {
    from { transform: translateX(-50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeInRight {
    from { transform: translateX(50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.greeting {
    font-size: 3.5rem;
    font-weight: 300;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.name {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    animation: colorShift 3s ease-in-out infinite;
}

@keyframes colorShift {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(60deg); }
}

.title {
    font-size: 1.8rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-weight: 400;
}

.description {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Profile Card */
.profile-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 1px solid var(--glass-border);
    text-align: center;
    transition: var(--transition);
    animation: float 6s ease-in-out infinite;
}

.profile-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4b896, var(--accent), var(--secondary));
    background-size: 400% 400%;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: gradientShift 4s ease-in-out infinite;
    border: 3px solid var(--glass-border);
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.profile-image i {
    font-size: 4rem;
    color: var(--text-dark);
    animation: pulse 2s ease-in-out infinite;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.profile-subtitle {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-size: 1.2rem;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--glass-border);
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.social-link.twitter:hover { background: #1DA1F2; }
.social-link.github:hover { background: #333; }
.social-link.linkedin:hover { background: #0077B5; }

/* Loading Animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-light), var(--bg-medium));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeOut 1s ease-out 2s forwards;
}

@keyframes fadeOut {
    to { opacity: 0; visibility: hidden; }
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid var(--glass-border);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* About Section */
.about-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f5f1eb 0%, #e8ddd4 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    min-height: 500px;
}

.about-text {
    opacity: 0;
    transform: translateX(-50px);
    padding-right: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #8b7158;
    margin-bottom: 20px;
    position: relative;
}

.about-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100px;
    height: 4px;
    background: linear-gradient(135deg, #8b7158, #a0896b);
    border-radius: 2px;
}

.about-description {
    color: #666;
    line-height: 1.8;
    font-size: 1.2rem;
    margin-bottom: 40px;
    font-weight: 400;
}

.about-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    opacity: 0;
    transform: translateY(30px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #8b7158;
    background: linear-gradient(135deg, #8b7158, #a0896b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: #666;
    font-size: 1rem;
    margin-top: 5px;
    font-weight: 400;
}

.about-visual {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-left: 2rem;
}

.about-photo-holder {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 0;
    box-shadow: 0 20px 60px rgba(139, 113, 88, 0.15);
    border: 1px solid rgba(139, 113, 88, 0.2);
    text-align: center;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(50px) scale(0.9);
    width: 100%;
    max-width: 350px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-photo-holder:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 30px 80px rgba(139, 113, 88, 0.25);
}

.photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 40px;
}

.photo-placeholder i {
    font-size: 4rem;
    color: #8b7158;
    margin-bottom: 20px;
    opacity: 0.7;
}

.photo-placeholder p {
    color: #666;
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.upload-btn {
    background: linear-gradient(135deg, #8b7158, #a0896b);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 113, 88, 0.3);
}

#uploadedPhoto {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 25px;
}

/* Skills Section */
.skills-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f5f1eb 0%, #e8ddd4 100%);
}

.skills-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.skills-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    width: 100%;
    max-width: 1200px;
    justify-items: center;
    margin-top: 2rem;
}

.skill-category {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    animation: fadeInUp 1s ease-out;
    width: 100%;
    max-width: 380px;
}

.skill-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(139, 113, 88, 0.15);
    border-color: rgba(139, 113, 88, 0.3);
}

.category-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 15px;
    transition: var(--transition);
    border: 1px solid rgba(139, 113, 88, 0.1);
}

.skill-item:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: translateX(10px);
    border-color: rgba(139, 113, 88, 0.2);
}

.skill-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, #d4b896, var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-dark);
    transition: var(--transition);
}

.skill-item:hover .skill-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, var(--accent), #b8956a);
}

.skill-info {
    flex: 1;
}

.skill-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    display: block;
    margin-bottom: 0.5rem;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: var(--glass-border);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    border-radius: 10px;
    width: 0%;
    transition: width 2s ease-out;
    position: relative;
    overflow: hidden;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    color: rgba(45, 45, 45, 0.7);
    font-weight: 400;
}

/* Projects Section */
.projects-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f5f1eb 0%, #e8ddd4 100%);
}

.projects-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.projects-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #8b7158;
    margin-bottom: 10px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #8b7158, #a0896b);
    border-radius: 2px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    margin-top: 2rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(139, 113, 88, 0.1);
    border: 1px solid rgba(139, 113, 88, 0.2);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(139, 113, 88, 0.2);
}

.project-image {
    text-align: center;
    margin-bottom: 20px;
}

.project-image i {
    font-size: 3rem;
    color: #8b7158;
    background: linear-gradient(135deg, #8b7158, #a0896b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #8b7158;
    margin-bottom: 15px;
}

.project-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tag {
    background: rgba(139, 113, 88, 0.1);
    color: #8b7158;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #8b7158;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-link:hover {
    color: #a0896b;
    transform: translateX(5px);
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #e8ddd4 0%, #f5f1eb 100%);
}

.contact-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.contact-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    width: 100%;
    max-width: 1200px;
}

.contact-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #8b7158;
    margin-bottom: 20px;
}

.contact-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-item i {
    font-size: 1.2rem;
    color: #8b7158;
    width: 20px;
}

.contact-item div {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.9rem;
    color: #999;
    font-weight: 500;
}

.contact-value {
    color: #8b7158;
    font-weight: 600;
}

.contact-link {
    color: #8b7158;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: #a0896b;
    text-decoration: underline;
}

.contact-social {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(139, 113, 88, 0.1);
    color: #8b7158;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #8b7158;
    color: white;
    transform: translateY(-3px);
}

.contact-form-container {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(139, 113, 88, 0.1);
    border: 1px solid rgba(139, 113, 88, 0.2);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(139, 113, 88, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    transition: all 0.3s ease;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8b7158;
    background: white;
}

.form-group label {
    position: absolute;
    left: 15px;
    top: 15px;
    color: #999;
    font-size: 1rem;
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -10px;
    left: 10px;
    font-size: 0.8rem;
    color: #8b7158;
    background: white;
    padding: 0 8px;
}

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #8b7158, #a0896b);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 113, 88, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .greeting {
        font-size: 2.5rem;
    }

    .title {
        font-size: 1.4rem;
    }

    .main-content {
        padding: 100px 1rem 1rem;
    }

    .about-section {
        padding: 4rem 0;
        min-height: auto;
    }

    .about-container {
        padding: 0 1rem;
    }

    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
        min-height: auto;
    }

    .about-text {
        padding-right: 0;
        text-align: center;
    }

    .about-visual {
        justify-content: center;
        padding-left: 0;
    }

    .about-title {
        font-size: 3rem;
    }

    .about-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .about-description {
        font-size: 1.1rem;
    }

    .about-stats {
        justify-content: center;
        gap: 2rem;
    }

    .stat-item {
        align-items: center;
    }

    .about-photo-holder {
        padding: 2rem;
        max-width: 300px;
        height: 350px;
        margin: 0 auto;
    }

    .photo-placeholder i {
        font-size: 3rem;
    }

    .photo-placeholder p {
        font-size: 1rem;
    }

    .upload-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .skills-section {
        padding: 4rem 0;
    }

    .skills-container {
        padding: 0 1rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .skill-category {
        padding: 2rem;
        max-width: 100%;
    }

    .projects-section {
        padding: 4rem 0;
    }

    .projects-container {
        padding: 0 1rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-card {
        padding: 20px;
    }

    .section-title {
        font-size: 2rem;
    }

    .contact-section {
        padding: 4rem 0;
    }

    .contact-container {
        padding: 0 1rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-title {
        font-size: 2rem;
        text-align: center;
    }

    .contact-form-container {
        padding: 25px;
    }

    .contact-social {
        justify-content: center;
    }
} 