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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.site-header .wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.site-title {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
}

.site-nav a {
    color: white;
    text-decoration: none;
    margin-left: 2rem;
    transition: color 0.3s ease;
}

.site-nav a:hover {
    color: #3498db;
}

/* Hero Section */
.hero {
    /* Unified gradient: Header to Footer color */
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 2.5rem 0;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-text {
    flex: 1;
    text-align: left;
}

.hero-image {
    flex: 0 0 350px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-container {
    width: 350px;
    height: 350px;
    /* Unified gradient: Header to Footer color */
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.3), rgba(52, 73, 94, 0.3));
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* You can adjust this margin to move it left/right */
    margin-left: -50px; /* Adjust this value to move left/right */
    position: relative;
    overflow: hidden;
}

.profile-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../img/profile.jpg');
    background-size: cover;
    background-position: center;
    filter: blur(8px) brightness(0.4);
    mix-blend-mode: overlay;
    opacity: 0.7;
    z-index: 1;
    border-radius: 15px;
}

.profile-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Unified overlay: Header to Footer color */
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.4), rgba(52, 73, 94, 0.4));
    mix-blend-mode: multiply;
    z-index: 1;
    border-radius: 15px;
}

.profile-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
}

.profile-photo {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 2;
}

.profile-photo:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 300;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    max-width: 600px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: #667eea;
}

/* Main Content */
.page-content {
    padding: 2rem 0;
    min-height: 60vh;
}

/* Skills Section */
.skills-overview {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.skills-overview h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #2c3e50;
}

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

.skill-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
}

.skill-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tech-tag {
    background-color: #3498db;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

/* CTA Section */
.cta {
    background-color: #2c3e50;
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.cta h2 {
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Page Specific */
.page {
    max-width: 800px;
    margin: 0 auto;
}

.page-header {
    margin-bottom: 2rem;
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.page-description {
    font-size: 1.2rem;
    color: #666;
}

.page-content {
    line-height: 1.8;
}

.page-content h2 {
    color: #2c3e50;
    margin: 1.2rem 0 0.7rem 0;
    font-size: 2rem;
}

.page-content h3 {
    color: #34495e;
    margin: 1.5rem 0 0.5rem 0;
    font-size: 1.5rem;
}

/* Footer */
.site-footer {
    background-color: #34495e;
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-top: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-image {
        flex: 0 0 auto;
    }
    
    .profile-container {
        width: 250px;
        height: 250px;
        margin-left: 0; /* Reset margin on mobile */
    }
    
    .profile-photo {
        width: 200px;
        height: 200px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-description {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .site-header .wrapper {
        flex-direction: column;
        gap: 1rem;
    }
    
    .site-nav a {
        margin: 0 1rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
}