/* Layout Styles - Container, Header, Sections */
/* Core page layout and structural elements */

/* ========================================
   CONTAINER & MAIN LAYOUT
   ======================================== */

.container {
    max-width: 900px;
    margin: 40px auto;
    background: var(--bg-surface);
    box-shadow: 0 10px 40px var(--shadow-light);
    border-radius: 20px;
    overflow: hidden;
}

/* ========================================
   HEADER SECTION
   ======================================== */

.header {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: var(--text-inverse);
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
}

/* Animated background pattern */
.header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: movePattern 20s linear infinite;
}

.header-layout {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 100%;
    position: relative;
    z-index: 1;
}

.picture-section {
    flex-shrink: 0;
}

.text-section {
    flex: 1;
    text-align: center;
}

.profile-picture {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 5px solid white;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    object-fit: cover;
    background: rgba(255,255,255,0.1);
    transition: transform 0.3s ease;
}

.profile-picture:hover {
    transform: scale(1.05) rotate(2deg);
}

.header h1 {
    font-size: 3.2em;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.header .tagline {
    font-size: 1.3em;
    margin-bottom: 25px;
    opacity: 0.95;
    font-weight: 300;
}

/* ========================================
   CONTACT INFO IN HEADER
   ======================================== */

.contact-info {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.contact-item {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 10px 18px;
    border-radius: 25px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95em;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contact-item i {
    font-size: 1.1em;
}

/* Phone field responsive behavior */
.phone-mobile {
    display: none;
    color: inherit;
    text-decoration: none;
}

.phone-desktop {
    display: inline;
}

/* ========================================
   SOCIAL LINKS IN HEADER
   ======================================== */

.social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: rgba(255, 255, 255, 0.95);
    color: #667eea;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.social-btn:hover {
    background: var(--bg-surface);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--shadow-light);
}

.social-btn.linkedin { color: #0077b5; }
.social-btn.github { color: #333; }
.social-btn.facebook { color: #1877f2; }
.social-btn.website { color: #667eea; }

/* Dark mode adjustments for social buttons */
[data-theme="dark"] .social-btn.github { color: #f0f6fc; }

.social-btn i {
    font-size: 1.2em;
}

/* ========================================
   SECTION STYLING
   ======================================== */

.section {
    padding: 50px 40px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.section:last-child { border-bottom: none; }

.section::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 5px;
    height: 0;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    transition: height 0.5s ease;
}

.section:hover::before {
    height: 100%;
}

.section h2 {
    color: #667eea;
    margin-bottom: 35px;
    font-size: 2.2em;
    border-bottom: 3px solid #667eea;
    padding-bottom: 15px;
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    width: 100%;
}

/* Center all section headers */
.section > h2 {
    text-align: center;
    display: block;
    border-bottom: 3px solid transparent;
    background-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-bottom: 10px;
    margin-bottom: 30px;
}

/* Reset text alignment for section content (not headers) */
.section > *:not(h2) {
    text-align: left;
}

/* ========================================
   CONNECT SECTION
   ======================================== */

.connect-section {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    border-radius: 15px;
    margin-top: 20px;
}

.connect-intro {
    text-align: center;
    font-size: 1.1em;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

.connect-container {
    max-width: 700px;
    margin: 0 auto;
}

.connect-item {
    background: var(--bg-surface);
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow-light);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.connect-item:hover {
    box-shadow: 0 8px 25px var(--shadow-medium);
    border-color: var(--accent-primary);
}

.connect-item h4 {
    color: var(--accent-primary);
    margin-bottom: 25px;
    font-size: 1.3em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Download CTA at top */
.download-cta-top {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 2px solid var(--border-color);
}

.download-hint {
    color: var(--text-muted);
    font-size: 0.9em;
    margin-top: 10px;
    margin-bottom: 0;
}

/* Email and Phone row */
.contact-row {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 10px;
}

.social-links-footer {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.download-description {
    color: var(--text-secondary);
    font-size: 0.95em;
    margin-bottom: 15px;
    line-height: 1.5;
}

/* Contact details layout */
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* ========================================
   SUMMARY/ABOUT SECTION
   ======================================== */

.summary {
    text-align: left;
    line-height: 1.8;
    font-size: 1.05em;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

.summary p {
    margin-bottom: 15px;
}

.summary p:last-child {
    margin-bottom: 0;
}
