/* GENERAL STYLES AND INDEX PAGE */

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f4f4f4 0%, #e8e8e8 100%);
    min-height: 100vh;
}

h1, h2 {
    font-family: 'Montserrat', sans-serif;
    color: #500000;
    text-align: center;
    margin-top: 30px;
}

h1 {
    font-size: 2.8em;
    margin-top: 20px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #500000, #800000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2em;
    margin-top: 20px;
}

p {
    margin: 0 0 20px;
    padding: 0 20px;
    text-align: justify;
}

.intro {
    font-size: 1.3em;
    text-align: center;
    margin: 30px auto 50px;
    max-width: 600px;
    color: #666;
    font-weight: 300;
}

.about {
    background: linear-gradient(135deg, #ffffff, #fafafa);
    padding: 40px;
    margin: 30px auto;
    max-width: 800px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(80,0,0,0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #500000, #800000);
}

.about:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.about a {
    color: #500000;
    text-decoration: none;
    border-bottom: 1px solid #500000;
    transition: all 0.3s ease;
}

.about a:hover {
    color: #800000;
    border-bottom: 1px solid #800000;
}

.hero-section {
    text-align: center;
    padding: 60px 20px 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin-bottom: 40px;
}

.hero-section h1 {
    margin-bottom: 20px;
}

.hero-section .intro {
    font-size: 1.4em;
    color: #666;
    max-width: 700px;
    margin: 0 auto 40px;
    font-weight: 300;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-primary, .cta-secondary {
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.cta-primary {
    background: linear-gradient(135deg, #500000, #700000);
    color: white;
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(80, 0, 0, 0.3);
}

.cta-secondary {
    background: transparent;
    color: #500000;
    border: 2px solid #500000;
}

.cta-secondary:hover {
    background: #500000;
    color: white;
    transform: translateY(-3px);
}

.highlights {
    max-width: 1400px;
    margin: 60px auto;
    padding: 0 20px;
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.highlight-card {
    background: linear-gradient(135deg, #ffffff, #fafafa);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(80,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.highlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #500000, #800000);
}

.highlight-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.highlight-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.highlight-card h3 {
    color: #500000;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.highlight-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    padding: 0;
    text-align: justify;
}

.highlight-link {
    color: #500000;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.highlight-link:hover {
    border-bottom: 1px solid #500000;
}

.personal-philosophy {
    background: linear-gradient(135deg, #500000, #700000);
    color: white;
    padding: 60px 20px;
    margin: 60px 0;
    text-align: center;
}

.personal-philosophy h2 {
    color: white;
    margin-bottom: 40px;
}

.philosophy-content {
    max-width: 1000px;
    margin: 0 auto;
}

blockquote {
    font-size: 1.3em;
    font-style: italic;
    line-height: 1.7;
    margin: 0 0 50px;
    padding: 0 20px;
    position: relative;
}

.philosophy-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5em;
    font-weight: bold;
    color: white;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9em;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .highlight-grid {
        grid-template-columns: 1fr;
    }

    .philosophy-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .hero-section .intro {
        font-size: 1.2em;
    }
}

/* Logo Styles */
.logo {
    width: 100px;
}

.navbar .logo img {
    height: 100px;
}

/* Enhanced Navbar Styles */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #500000, #700000);
    padding: 2px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.navbar ul li {
    margin: 0 10px;
}

.navbar ul li a {
    color: white;
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.navbar ul li a:hover {
    background-color: white;
    color: #500000;
    transform: translateY(-2px);
}

.navbar .active-page a {
    background-color: rgba(255,255,255,0.2);
    border: 2px solid white;
}

.navbar ul li button {
    background-color: #121212;
    color: #00ffcc;
    border-color: #00ffcc;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.navbar ul li button:hover {
    background-color: #00ffcc;
    color: #121212;
    transform: translateY(-2px);
}

/* Mobile Navbar Improvements */
@media (max-width: 768px) {
    .navbar {
        flex-direction: row;
        align-items: center;
        padding: 4px 8px;
    }
    .navbar .logo {
        display: none;
    }
    .navbar ul {
        flex-direction: row;
        width: auto;
        align-items: center;
        flex-wrap: wrap;
        gap: 0;
    }
    .navbar ul li {
        margin: 0 2px;
        width: auto;
    }
    .navbar ul li a,
    .navbar ul li button {
        display: inline-block;
        width: auto;
        text-align: center;
        padding: 8px 10px;
        border-radius: 4px;
        border-bottom: none;
        font-size: 0.98em;
    }
}

/* Enhanced Paragraph Styles */
.paragraph1, .paragraph2, .paragraph3 {
    text-align: center;
    font-size: 20px;
    margin-top: 50px;
    color: #666;
    font-weight: 300;
}

/* Enhanced Footer Styles */
footer {
    background: linear-gradient(135deg, #500000, #700000);
    color: white;
    text-align: center;
    padding: 30px;
    position: relative;
    bottom: 0;
    margin-top: 60px;
}

/* Social Links Styles */
.social-links {
    text-align: center;
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.social-links img {
    width: 45px;
    height: 40px;
    /* border-radius: 14px; */
    /* object-fit: cover; */
    /* background: #500000; */
    transition: transform 0.3s, box-shadow 0.3s, filter 0.3s;
    box-shadow: 0 2px 8px rgba(80,0,0,0.08);
    display: inline-block;
}

.social-links img:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 6px 18px rgba(80,0,0,0.18);
    border-color: #ffd700;
}

/* ENHANCED PORTFOLIO PAGE */

.portfolio {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f4f4f4 0%, #e8e8e8 100%);
    max-width: 1400px;
    margin: 0 auto;
}

.project {
    background: linear-gradient(135deg, #ffffff, #fafafa);
    padding: 40px;
    margin: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(80,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.project::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #500000, #800000);
}

.project:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.project h3 {
    color: #500000;
    margin-bottom: 20px;
    font-size: 1.5em;
    font-weight: 600;
}

.project p {
    color: #666;
    text-align: justify;
    line-height: 1.7;
    padding: 0 10px;
}

.project-link {
    display: inline-block;
    margin-top: 25px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #500000, #700000);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.project-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(80, 0, 0, 0.3);
}

.project-image {
    display: block;
    width: 100%;
    max-width: 280px;
    max-height: 280px;
    border-radius: 15px;
    margin: 0 auto 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.project-image:hover {
    transform: scale(1.05);
}

/* ENHANCED QUALIFICATIONS PAGE */

.qualification-box, .skill-interests {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.skills-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
    padding: 0 20px;
}

.skill-card, .Qbox {
    background: linear-gradient(135deg, #ffffff, #fafafa);
    padding: 40px;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(80,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.skill-card::before, .Qbox::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #500000, #800000);
}

.skill-card:hover, .Qbox:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.skill-card h3, .Qbox h3 {
    color: #500000;
    font-size: 1.5em;
    margin-bottom: 25px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.skill-card h3::before {
    content: '▶';
    color: #500000;
    font-size: 0.8em;
}

.Qbox p {
    color: #666;
    text-align: center;
    line-height: 1.7;
}

.skill-category {
    margin-bottom: 25px;
    text-align: left;
}

.skill-category strong {
    color: #500000;
    font-size: 1.1em;
    display: block;
    margin-bottom: 8px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.skill-tag {
    background: linear-gradient(135deg, #500000, #700000);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(80,0,0,0.3);
}

.soft-skills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.soft-skill-item {
    background: rgba(80,0,0,0.05);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.soft-skill-item:hover {
    background: rgba(80,0,0,0.1);
    border-color: #500000;
    transform: scale(1.02);
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /* margin-left: 10px;
    margin-right: 10px; */
    padding: 0 20px;
    gap: 30px;
    margin-bottom: 50px;
}

.interest-card {
    background: linear-gradient(135deg, #ffffff, #fafafa);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    border-left: 5px solid #500000;
}

.interest-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.interest-card h4 {
    color: #500000;
    font-size: 1.3em;
    margin-bottom: 15px;
    font-weight: 600;
}

.interest-card p {
    color: #666;
    line-height: 1.7;
    margin: 0;
    padding: 0;
    text-align: left;
}

iframe {
    display: block;
    margin: 0 auto;
    border-radius: 10px;
    border: 3px solid #500000;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* ENHANCED SERVICES PAGE */

.service {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f4f4f4 0%, #e8e8e8 100%);
    max-width: 1400px;
    margin: 0 auto;
}

.event {
    background: linear-gradient(135deg, #ffffff, #fafafa);
    padding: 40px;
    margin: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(80,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.event::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #500000, #800000);
}

.event:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.event h3 {
    color: #500000;
    margin-bottom: 20px;
    font-size: 1.5em;
    font-weight: 600;
}

.event p {
    color: #666;
    text-align: justify;
    line-height: 1.7;
    padding: 0 10px;
}

.service-hero {
    text-align: center;
    padding: 60px 20px 40px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    margin-bottom: 40px;
}

.service-hero h1 {
    margin-bottom: 20px;
}

.service-hero .intro {
    font-size: 1.3em;
    color: #666;
    max-width: 800px;
    margin: 0 auto 50px;
    font-weight: 300;
}

.service-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.service-stat {
    text-align: center;
}

.service-stat .stat-number {
    display: block;
    font-size: 2.5em;
    font-weight: bold;
    color: #500000;
    margin-bottom: 5px;
}

.service-stat .stat-label {
    font-size: 0.9em;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.event-header h3 {
    margin: 0;
    flex: 1;
}

.event-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.event-type, .event-impact, .event-duration, .event-location, .event-frequency {
    background: #500000;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 500;
}

.event-impact {
    background: #28a745;
}

.event-duration {
    background: #007bff;
}

.event-location {
    background: #6f42c1;
}

.event-frequency {
    background: #fd7e14;
}

.event-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: start;
}

.event-text {
    padding-right: 20px;
}

.event-highlights {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.highlight-item {
    background: rgba(80,0,0,0.05);
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9em;
    border-left: 3px solid #500000;
}

.event-image-container {
    position: relative;
}

.event-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.event-image:hover {
    transform: scale(1.05);
}

.service-philosophy {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 60px 20px;
    margin: 60px 0;
}

.service-philosophy h2 {
    text-align: center;
    margin-bottom: 50px;
    color: #500000;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.philosophy-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-top: 4px solid #500000;
}

.philosophy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.philosophy-icon {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.philosophy-card h3 {
    color: #500000;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.philosophy-card p {
    color: #666;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

@media (max-width: 768px) {
    .service-stats {
        gap: 30px;
    }

    .event-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .event-text {
        padding-right: 0;
    }

    .event-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .philosophy-grid {
        grid-template-columns: 1fr;
    }

    .service-stat .stat-number {
        font-size: 2em;
    }
}

/* ENHANCED BLOG PAGE */

.blog {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f4f4f4 0%, #e8e8e8 100%);
    max-width: 1200px;
    margin: 0 auto;
}

.blog-post {
    background: linear-gradient(135deg, #ffffff, #fafafa);
    padding: 40px;
    margin: 0;
    width: 100%;
    max-width: 1000px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(80,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.blog-post::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #500000, #800000);
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.blog-image {
    display: block;
    width: auto;
    max-height: 350px;
    border-radius: 15px;
    border: 3px solid #500000;
    margin: 30px auto 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.blog-image:hover {
    transform: scale(1.02);
}

.blog-post h3 {
    color: #500000;
    margin-bottom: 20px;
    font-size: 1.6em;
    font-weight: 600;
}

.blog-post p {
    color: #666;
    text-align: justify;
    margin-top: 20px;
    line-height: 1.7;
    padding: 0 10px;
}

.blog-post r {
    color: #666;
    text-align: center;
    margin-top: 20px;
    font-size: 1.2em;
    display: block;
}

/* SOME ENHANCED EFFECTS */
.project, .Qbox, .event, .blog-post, .about {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Additional styling for better consistency */
.about, .project, .Qbox, .event, .blog-post {
    padding: 40px;
    margin: 30px auto;
}

/* Resume section styling */
.resume-section {
    background: linear-gradient(135deg, #ffffff, #fafafa);
    margin: 50px auto;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 800px;
    text-align: center;
    border: 1px solid rgba(80,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.resume-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #500000, #800000);
}

.resume-section h2 {
    margin-bottom: 30px;
    color: #500000;
}

/* Responsive design improvements */
@media (max-width: 768px) {
    .portfolio, .service {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .skills-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .interests-grid {
        grid-template-columns: 1fr;
    }
    
    iframe {
        width: 100%;
        height: 600px;
    }
    
    h1 {
        font-size: 2.2em;
    }
    
    .about, .project, .Qbox, .event {
        padding: 25px;
        margin: 20px auto;
    }
    
    .navbar ul {
        flex-wrap: wrap;
    }
    
    .navbar ul li {
        margin: 5px;
    }
}

@media (max-width: 768px) {
    .blog {
        padding: 10px 15px;
        max-width: 100vw;
        overflow-x: hidden;
    }
    .blog-post {
        padding: 18px 5px;
        max-width: 100vw;
        box-sizing: border-box;
    }
    .blog-image {
        max-width: 100%;
        height: auto;
    }
}