/* Modern Resume Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #F9D294;
    padding: 20px;
    min-height: 100vh;
    word-spacing: normal;
    letter-spacing: normal;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

/* Modern Container */
.container {
    width: 280mm; /* Wider than A4 */
    min-height: 297mm; /* A4 height */
    max-width: 95vw; /* Responsive max width */
    background-color: #E9EAEC;
    margin: 0 auto;
    display: flex;
    box-shadow: 0 25px 50px -12px rgba(26, 62, 113, 0.25), 
                0 0 0 1px rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(10px);
}

/* Left Column (35%) */
.left-column {
    width: 35%;
    background-color: #1A3E71;
    color: white;
    padding: 40px 35px;
    position: relative;
    overflow: hidden;
}

.left-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.03)"/><circle cx="20" cy="80" r="0.5" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

/* Right Column (65%) */
.right-column {
    width: 65%;
    padding: 40px 60px;
    background-color: #E9EAEC;
    position: relative;
    border-left: 4px solid #DFB880;
}

/* Profile Section */
.profile-section {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.profile-image {
    width: 140px;
    height: 140px;
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #DFB880;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3),
                0 0 0 8px rgba(223, 184, 128, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.profile-image::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(45deg, #DFB880, #F9D294, #DFB880);
    border-radius: 50%;
    z-index: -1;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.profile-image:hover img {
    transform: scale(1.05);
}

.profile-section h1 {
    font-size: 26px;
    margin-bottom: 12px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: white;
}

.profile-section h3 {
    font-size: 16px;
    font-weight: 400;
    color: #F9D294;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Left Column Sections */
.left-column h3 {
    color: #DFB880;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 8px;
}

.left-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #DFB880, rgba(223, 184, 128, 0.3));
    border-radius: 1px;
}

.left-column ul {
    list-style: none;
    margin-bottom: 30px;
}

.left-column li {
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
    padding-left: 20px;
    transition: all 0.3s ease;
}

.left-column li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #DFB880;
    font-size: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.left-column li:hover {
    transform: translateX(5px);
    color: #DFB880;
}

.left-column strong {
    color: #DFB880;
    font-weight: 600;
}

/* Right Column Sections */
.right-column h2 {
    color: #1A3E71;
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    padding-left: 20px;
}

.right-column h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 30px;
    background: linear-gradient(135deg, #1A3E71, #DFB880);
    border-radius: 2px;
}

.right-column h3 {
    color: #1A3E71;
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 600;
    position: relative;
}

.right-column p {
    font-size: 15px;
    margin-bottom: 15px;
    text-align: left;
    line-height: 1.8;
    color: #333;
    word-spacing: normal;
    letter-spacing: normal;
    white-space: normal;
    font-weight: 400;
    text-rendering: optimizeLegibility;
}

.right-column ul {
    margin-bottom: 20px;
    margin-left: 25px;
}

.right-column li {
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.6;
    color: #333;
    position: relative;
    transition: all 0.3s ease;
}

.right-column li::marker {
    color: #1A3E71;
    font-weight: bold;
}

.right-column li:hover {
    color: #1A3E71;
    transform: translateX(5px);
}

/* About Section */
.about-section {
    margin-bottom: 35px;
    padding: 25px;
    background: linear-gradient(145deg, #f8fafc, #ffffff);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #1A3E71;
}

.about-section p {
    text-align: left;
    line-height: 1.8;
    word-spacing: normal;
    letter-spacing: normal;
    white-space: normal;
    font-weight: 400;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    word-break: keep-all;
    overflow-wrap: break-word;
    hyphens: none;
    -webkit-hyphens: none;
    -moz-hyphens: none;
}

/* Experience Section */
.experience-section {
    margin-bottom: 35px;
}

.job {
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.job:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-left-color: #1A3E71;
}

.date {
    color: #1A3E71;
    font-style: italic;
    font-size: 13px !important;
    margin-bottom: 10px !important;
    font-weight: 500;
}

/* Education Section */
.education-section {
    margin-bottom: 35px;
}

.education {
    margin-bottom: 20px;
    padding: 20px;
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-left: 3px solid #DFB880;
}

.education p {
    color: #1A3E71;
    font-weight: 500;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.education p:first-child {
    color: #1A3E71;
    font-size: 16px;
    font-weight: 700;
}

.education p:nth-child(2) {
    color: #4a5568;
    font-style: italic;
}

.education p:nth-child(3) {
    color: #2d3748;
    font-weight: 600;
}

.education p:nth-child(4) {
    color: #1A3E71;
    font-weight: 600;
}

.education p:last-child {
    color: #DFB880;
    font-size: 16px;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(223, 184, 128, 0.1), rgba(249, 210, 148, 0.1));
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(223, 184, 128, 0.3);
    text-align: center;
    margin-top: 15px;
}

.education p:last-child i {
    color: #DFB880;
    margin-right: 8px;
    font-size: 18px;
}

.education p:hover {
    transform: translateX(5px);
    color: #DFB880;
}

/* Projects Section */
.projects-section {
    margin-bottom: 35px;
}

.project {
    margin-bottom: 25px;
    padding: 25px;
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(26, 62, 113, 0.1);
    position: relative;
    overflow: hidden;
}

.project::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1A3E71, #DFB880);
}

.project:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.project h3 {
    margin-bottom: 15px;
    color: #1A3E71;
    font-size: 18px;
}

/* Contact Section Styling */
.contact-section,
.skills-section,
.languages-section {
    margin-bottom: 35px;
    position: relative;
    z-index: 1;
}

/* Skill Categories */
.skill-category {
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.skill-category:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.skill-category h4 {
    color: #DFB880;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Soft Skills Section */
.soft-skills-section {
    margin-bottom: 35px;
}

.activity {
    margin-bottom: 25px;
    padding: 25px;
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid #1A3E71;
}

.activity:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.activity h3 {
    margin-bottom: 15px;
    color: #1A3E71;
    font-size: 18px;
}

/* Objective Section */
.objective-section {
    margin-bottom: 35px;
}

.objective-section .job {
    border-left-color: #28a745;
}

.objective-section .job:hover {
    border-left-color: #28a745;
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Apply animations */
.profile-section {
    animation: fadeInUp 0.8s ease-out;
}

.left-column > div {
    animation: fadeInLeft 0.6s ease-out;
    animation-fill-mode: both;
}

.left-column > div:nth-child(2) { animation-delay: 0.1s; }
.left-column > div:nth-child(3) { animation-delay: 0.2s; }
.left-column > div:nth-child(4) { animation-delay: 0.3s; }
.left-column > div:nth-child(5) { animation-delay: 0.4s; }

.right-column > div {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.right-column > div:nth-child(1) { animation-delay: 0.2s; }
.right-column > div:nth-child(2) { animation-delay: 0.3s; }
.right-column > div:nth-child(3) { animation-delay: 0.4s; }
.right-column > div:nth-child(4) { animation-delay: 0.5s; }
.right-column > div:nth-child(5) { animation-delay: 0.6s; }

/* Hover effects for icons */
.left-column i {
    transition: all 0.3s ease;
}

.left-column li:hover i {
    transform: scale(1.2);
    color: #DFB880;
}

/* Responsive for smaller screens */
@media screen and (max-width: 1200px) {
    body {
        padding: 15px;
    }
    
    .container {
        width: 95%;
        min-height: auto;
    }
    
    .left-column {
        padding: 35px 30px;
    }
    
    .right-column {
        padding: 35px 45px;
    }
}

@media screen and (max-width: 900px) {
    body {
        padding: 10px;
    }
    
    .container {
        width: 100%;
        min-height: auto;
        flex-direction: column;
        border-radius: 12px;
    }
    
    .left-column,
    .right-column {
        width: 100%;
        padding: 30px 25px;
    }
    
    .left-column {
        order: 2;
        border-radius: 0 0 12px 12px;
    }
    
    .right-column {
        order: 1;
        border-radius: 12px 12px 0 0;
    }
    
    .profile-image {
        width: 120px;
        height: 120px;
    }
    
    .profile-section h1 {
        font-size: 22px;
    }
    
    .right-column h2 {
        font-size: 20px;
    }
}

/* Additional responsive improvements */
@media screen and (max-width: 1200px) {
    .container {
        width: 95%;
        max-width: 900px;
    }
}

@media screen and (max-width: 768px) {
    .left-column i,
    .right-column i {
        margin-right: 8px;
        color: #1A3E71;
    }
    
    .skill-category,
    .project,
    .job,
    .activity {
        padding: 20px;
    }
    
    .right-column h2 {
        font-size: 18px;
    }
    
    .right-column h3 {
        font-size: 16px;
    }
    
    .right-column p,
    .right-column li {
        font-size: 13px;
    }
}

@media screen and (max-width: 480px) {
    body {
        padding: 5px;
    }
    
    .container {
        border-radius: 8px;
    }
    
    .left-column,
    .right-column {
        padding: 20px 15px;
    }
    
    .profile-section h1 {
        font-size: 18px;
    }
    
    .profile-section h3 {
        font-size: 14px;
    }
    
    .left-column h3 {
        font-size: 16px;
    }
    
    .right-column h2 {
        font-size: 16px;
    }
}

/* Print Styles */
@media print {
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    body {
        background: white !important;
        padding: 0;
    }
    
    .container {
        width: 210mm;
        min-height: 297mm;
        box-shadow: none;
        margin: 0;
        border-radius: 0;
    }
    
    .left-column {
        background: #1a3e71 !important;
        color: white !important;
    }
    
    .right-column {
        background: white !important;
    }
    
    /* Ensure content doesn't break across pages */
    .job, .education, .project, .activity, .skill-category {
        page-break-inside: avoid;
    }
    
    .left-column h3, .right-column h2 {
        page-break-after: avoid;
    }
    
    /* Remove animations for print */
    * {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}

/* Smooth scrolling for the whole document */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
a:focus,
button:focus {
    outline: 2px solid #1A3E71;
    outline-offset: 2px;
}

/* Selection colors */
::selection {
    background: #1A3E71;
    color: white;
}

::-moz-selection {
    background: #1A3E71;
    color: white;
}