/* ===============================================
    ENHANCED PORTFOLIO STYLESHEET
    Black, Navy Blue, White & Gold Theme
    =============================================== */

:root {
    --primary-color: #1a3a52;
    --primary-dark: #0f1f2e;
    --secondary-color: #2d5a7b;
    --accent-gold: #d4af37;
    --accent-light-gold: #e8d4a8;
    --text-dark: #0a0a0a;
    --text-light: #f0f0f0;
    --bg-dark: #0f1f2e;
    --bg-light: #ffffff;
    --bg-navy: #1a3a52;
    --bg-grey: #f5f5f5;
    --gradient-gold: linear-gradient(135deg, #d4af37 0%, #e8d4a8 100%);
    --gradient-navy-gold: linear-gradient(135deg, #1a3a52 0%, #d4af37 100%);
    --gradient-dark: linear-gradient(135deg, #0f1f2e 0%, #1a3a52 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', 'Roboto', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
    overflow-x: hidden;
}

/* ===============================================
    NAVIGATION BAR
    =============================================== */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: linear-gradient(135deg, rgba(15, 31, 46, 0.98) 0%, rgba(26, 58, 82, 0.95) 100%);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid #d4af37;
    animation: navbarSlideDown 0.6s ease-out;
}

@keyframes navbarSlideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    font-size: 1.8em;
    font-weight: 1000;
    background: linear-gradient(135deg, #d4af37 0%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    letter-spacing: -1px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.5));
}

.navbar nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.navbar a {
    text-decoration: none;
    color: #f0f0f0;
    font-weight: 600;
    font-size: 0.95em;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

.navbar a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: #d4af37;
    transition: width 0.3s ease;
}

.navbar a:hover::after {
    width: 100%;
}

.navbar a:hover {
    color: #d4af37;
}

.cv-link {
    background: var(--gradient-gold);
    color: #0f1f2e !important;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    transition: all 0.3s ease;
}

.cv-link:hover {
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.6);
    transform: translateY(-2px);
    letter-spacing: 0.5px;
}

.cv-link::after {
    display: none;
}

/* ===============================================
    MAIN LAYOUT (Sidebar + Content)
    =============================================== */

.container {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 0;
    min-height: calc(100vh - 80px);
}

.sidebar {
    background: linear-gradient(135deg, #0f1f2e 0%, #1a3a52 100%);
    padding: 40px 25px;
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
    box-shadow: 4px 0 20px rgba(212, 175, 55, 0.1);
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.main-content {
    padding: 0;
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===============================================
    SIDEBAR SECTIONS
    =============================================== */

.profile-section {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 5px solid #d4af37;
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.3);
    animation: profileBounce 2s ease-in-out infinite;
}

@keyframes profileBounce {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 0 8px 30px rgba(212, 175, 55, 0.3);
    }
    50% {
        transform: translateY(-10px);
        box-shadow: 0 15px 40px rgba(212, 175, 55, 0.5);
    }
}

.sidebar-name {
    font-size: 1.6em;
    color: #d4af37;
    margin-bottom: 5px;
    font-weight: 800;
}

.sidebar-title {
    font-size: 1.1em;
    color: #e8d4a8;
    margin-bottom: 5px;
    font-weight: 600;
}

.sidebar-subtitle {
    font-size: 0.9em;
    color: #a8a8a8;
}

.sidebar-heading {
    font-size: 1.1em;
    color: #d4af37;
    margin-bottom: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 10px;
}

.sidebar-heading::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background: #d4af37;
    bottom: 0;
    left: 0;
}

/* Contact Section */
.contact-section {
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    color: #e8d4a8;
}

.contact-item .icon {
    font-size: 1.3em;
    margin-top: 2px;
}

.contact-item a {
    color: #e8d4a8;
    text-decoration: none;
    transition: all 0.3s ease;
    word-break: break-all;
}

.contact-item a:hover {
    color: #d4af37;
    text-decoration: underline;
}

.contact-item p {
    margin: 0;
    color: #e8d4a8;
}

.contact-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 15px;
}

/* --- Social Links (LinkedIn & Instagram Styles) --- */

.social-links {
    display: flex;
    justify-content: center; /* Center the icons under the contact section */
    gap: 20px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.social-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: #e8d4a8; /* Default icon color */
    background: #2d5a7b; /* Navy secondary background */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1.5em; /* Icon size */
}

/* LinkedIn specific hover effect */
.social-icon-link.linkedin-icon:hover {
    background: #0077B5; /* Classic LinkedIn Blue */
    color: #ffffff;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 15px rgba(0, 119, 181, 0.5);
}

/* Instagram specific hover effect */
.social-icon-link.instagram-icon:hover {
    /* Instagram Gradient */
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    color: #ffffff;
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 8px 15px rgba(253, 89, 73, 0.5);
}

.social-icon-link:hover {
    /* Fallback/General hover for others */
    box-shadow: 0 8px 15px rgba(212, 175, 55, 0.5);
}

/* Skills Section */
.skills-section {
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    background: rgba(212, 175, 55, 0.15);
    color: #d4af37;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    border: 1px solid #d4af37;
    transition: all 0.3s ease;
    display: inline-block;
}

.skill-tag:hover {
    background: #d4af37;
    color: #0f1f2e;
    transform: translateY(-2px);
}

/* Languages Section */
.languages-section {
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.language-item {
    margin-bottom: 15px;
}

.language-item span {
    display: block;
    color: #e8d4a8;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 0.9em;
}

.progress-bar {
    background: rgba(212, 175, 55, 0.2);
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
}

.progress {
    background: linear-gradient(90deg, #d4af37 0%, #e8d4a8 100%);
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Tech Skills Section */
.tech-skills-section {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.tech-category {
    margin-bottom: 15px;
    padding: 12px;
    background: rgba(212, 175, 55, 0.08);
    border-left: 3px solid #d4af37;
    border-radius: 4px;
}

.tech-category h4 {
    color: #d4af37;
    font-size: 0.9em;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tech-category p {
    color: #e8d4a8;
    font-size: 0.85em;
    line-height: 1.5;
}

/* ===============================================
    BUTTONS
    =============================================== */

.btn {
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 700;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    font-size: 0.9em;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.primary {
    background: linear-gradient(135deg, #1a3a52 0%, #2d5a7b 100%);
    color: #d4af37;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    border: 2px solid #d4af37;
}

.primary:hover {
    background: linear-gradient(135deg, #d4af37 0%, #e8d4a8 100%);
    color: #0f1f2e;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
    transform: translateY(-3px);
}

.secondary {
    background: linear-gradient(135deg, #0f1f2e 0%, #1a3a52 100%);
    color: #d4af37;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    border: 2px solid #d4af37;
}

.secondary:hover {
    background: var(--gradient-gold);
    color: #0f1f2e;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
    transform: translateY(-3px);
}

/* ===============================================
    MAIN CONTENT SECTIONS
    =============================================== */

.hero-section {
    padding: 80px 60px;
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
    border-bottom: 3px solid #d4af37;
    animation: fadeInUp 0.8s ease-out;
}

.hero-text h2 {
    font-size: 2.8em;
    color: #1a3a52;
    margin-bottom: 10px;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.3em;
    color: #d4af37;
    margin-bottom: 20px;
    font-weight: 600;
}

.hero-description {
    font-size: 1.05em;
    color: #333333;
    line-height: 1.8;
    margin-bottom: 10px;
}

.highlight {
    color: #d4af37;
    font-weight: 700;
}

.content-section {
    padding: 60px 60px;
    border-bottom: 1px solid #e8d4a8;
    animation: fadeInUp 0.8s ease-out;
}

.section-title {
    font-size: 2.2em;
    color: #1a3a52;
    margin-bottom: 40px;
    font-weight: 800;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 4px;
    background: var(--gradient-gold);
    bottom: 0;
    left: 0;
    border-radius: 2px;
}

/* ===============================================
    EXPERIENCE CARDS
    =============================================== */

.experience-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.exp-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    border-left: 5px solid #d4af37;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    animation: cardFadeIn 0.6s ease-out forwards;
    opacity: 0;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.exp-card:nth-child(1) { animation-delay: 0.1s; }
.exp-card:nth-child(2) { animation-delay: 0.2s; }
.exp-card:nth-child(3) { animation-delay: 0.3s; }
.exp-card:nth-child(4) { animation-delay: 0.4s; }

.exp-card:hover {
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.2);
    transform: translateX(5px);
}

.exp-header {
    margin-bottom: 10px;
}

.exp-header h3 {
    font-size: 1.3em;
    color: #1a3a52;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.exp-card:hover .exp-header h3 {
    color: #d4af37;
}

.company {
    color: #d4af37;
    font-weight: 600;
    font-size: 0.95em;
}

.period {
    color: #2d5a7b;
    font-size: 0.9em;
    font-style: italic;
    margin-bottom: 15px;
}

.exp-points {
    list-style: none;
    margin-left: 0;
}

.exp-points li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    color: #333333;
    line-height: 1.7;
}

.exp-points li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #d4af37;
    font-weight: bold;
}

.document-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.9em;
    color: #2d5a7b;
    text-decoration: none;
    border-bottom: 1px dashed #2d5a7b;
    transition: color 0.3s ease;
}

.document-link:hover {
    color: #d4af37;
    border-bottom: 1px dashed #d4af37;
}

/* ===============================================
    DOCUMENTS & CERTIFICATES STYLES (NEW)
    =============================================== */

.subsection-title {
    font-size: 1.4em;
    color: #2d5a7b;
    margin-top: 30px;
    margin-bottom: 20px;
    font-weight: 700;
    border-left: 4px solid #d4af37;
    padding-left: 10px;
}

.document-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.doc-card {
    background: #fcfcfc;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e8d4a8;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
}

.doc-card:hover {
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.1);
    transform: translateY(-5px);
}

.doc-card h4 {
    font-size: 1.1em;
    color: #1a3a52;
    margin-bottom: 10px;
    font-weight: 700;
}

.doc-card p {
    color: #555;
    font-size: 0.9em;
    margin-bottom: 15px;
    min-height: 40px; /* Ensures card height consistency */
}

.doc-btn {
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9em;
    display: inline-block;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.full-cv-card {
    grid-column: 1 / -1; /* Make the full CV card span the entire width */
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
    border: 2px solid #1a3a52;
}

.full-cv-card h4 {
    color: #1a3a52;
    font-size: 1.3em;
}

/* ===============================================
    SKILLS GRID
    =============================================== */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.skill-box {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, rgba(26, 58, 82, 0.05) 100%);
    padding: 25px;
    border-radius: 10px;
    border-top: 4px solid #d4af37;
    transition: all 0.3s ease;
    animation: skillBoxFade 0.6s ease-out forwards;
    opacity: 0;
}

@keyframes skillBoxFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.skill-box:nth-child(1) { animation-delay: 0.1s; }
.skill-box:nth-child(2) { animation-delay: 0.2s; }
.skill-box:nth-child(3) { animation-delay: 0.3s; }
.skill-box:nth-child(4) { animation-delay: 0.4s; }

.skill-box:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(26, 58, 82, 0.1) 100%);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.15);
}

.skill-box h4 {
    font-size: 1.1em;
    color: #1a3a52;
    margin-bottom: 10px;
    font-weight: 700;
}

.skill-box p {
    color: #333333;
    font-size: 0.95em;
    line-height: 1.6;
}

/* ===============================================
    EDUCATION CARDS
    =============================================== */

.education-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.edu-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-top: 5px solid #d4af37;
    transition: all 0.3s ease;
    text-align: center;
    animation: eduCardFade 0.6s ease-out forwards;
    opacity: 0;
}

@keyframes eduCardFade {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.edu-card:nth-child(1) { animation-delay: 0.1s; }
.edu-card:nth-child(2) { animation-delay: 0.2s; }
.edu-card:nth-child(3) { animation-delay: 0.3s; }

.edu-card:hover {
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.2);
    transform: translateY(-8px);
}

.edu-card h3 {
    font-size: 1.1em;
    color: #1a3a52;
    margin-bottom: 10px;
    font-weight: 700;
}

.edu-institute {
    color: #d4af37;
    font-weight: 600;
    font-size: 0.95em;
    margin-bottom: 8px;
}

.edu-period {
    color: #2d5a7b;
    font-size: 0.9em;
    font-style: italic;
}

/* ===============================================
    ACHIEVEMENTS
    =============================================== */

.achievements-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.achievement {
    background: linear-gradient(135deg, #1a3a52 0%, #2d5a7b 100%);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
    animation: achieveFade 0.6s ease-out forwards;
    opacity: 0;
}

@keyframes achieveFade {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.achievement:nth-child(1) { animation-delay: 0.1s; }
.achievement:nth-child(2) { animation-delay: 0.2s; }
.achievement:nth-child(3) { animation-delay: 0.3s; }
.achievement:nth-child(4) { animation-delay: 0.4s; }

.achievement:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.achievement-number {
    display: block;
    font-size: 2.5em;
    color: #d4af37;
    font-weight: 800;
    margin-bottom: 10px;
}

.achievement p {
    color: #e8d4a8;
    font-weight: 600;
}

/* ===============================================
    FOOTER
    =============================================== */

footer {
    background: linear-gradient(135deg, #0f1f2e 0%, #1a3a52 100%);
    color: #e8d4a8;
    text-align: center;
    padding: 30px 20px;
    font-size: 0.9em;
    border-top: 3px solid #d4af37;
}

footer p {
    margin: 0;
}

/* ===============================================
    MEDIA QUERIES
    =============================================== */

@media (max-width: 1024px) {
    .container {
        grid-template-columns: 280px 1fr;
    }

    .hero-section,
    .content-section {
        padding: 50px 40px;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 20px;
    }

    .navbar nav {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        text-align: center;
    }

    .container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        height: auto;
        padding: 30px 20px;
        border-right: none;
        border-bottom: 3px solid #d4af37;
    }

    .hero-section,
    .content-section {
        padding: 40px 20px;
    }

    .hero-text h2 {
        font-size: 1.8em;
    }

    .section-title {
        font-size: 1.6em;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .education-container {
        grid-template-columns: 1fr;
    }

    .achievements-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .social-links {
        justify-content: space-around; /* Distribute social links nicely on small screens */
    }
}