/* General Styles (Ensure these are consistent with your homepage style.css) */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f0f4f8; /* Default background for sections */
    margin: 0;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    color: #0f2136; /* Dark blue for headings */
}

h1 {
    font-size: 2.5rem; /* Slightly smaller than homepage H1 if needed */
    margin-bottom: 15px;
}

h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2rem;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    margin-right: 15px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-decoration: none;
}

.btn-primary {
    background-color: #3D90D7; /* Orange */
    color: #fff;
    border: 1px solid #3D90D7;
}
.btn-primary:hover {
    background-color: #0118D8;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #fff;
    color: #0f2136;
    border: 1px solid #0f2136;
}
.btn-secondary:hover {
    background-color: #f0f4f8;
    transform: translateY(-2px);
}

/* Content Section Styling (for Journey, Philosophy, etc.) */
.content-section {
    padding: 60px 0;
    background-color: #f0f4f8; /* Light grey-blue background for these sections */
}
/* Removed empty ruleset as it was not being used */


/* About Me Hero Section Specifics */
#about-hero {
    background-color: #ffffff; /* White background for this hero section */
    padding: 80px 0;
    display: flex;
    align-items: center;
}

.about-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Adjust ratio as needed, e.g., 1.2fr 0.8fr */
    gap: 50px;
    align-items: center;
}

.about-hero-text p {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 30px;
    line-height: 1.7;
}

.about-hero-buttons {
    margin-top: 20px;
}

.about-hero-image img {
    width: 100%;
    max-width: 400px; /* Or adjust to fit design */
    height: auto;
    border-radius: 12px; /* Rounded corners, not circular */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    display: block;
    margin-left: auto; /* Push image to the right if container is wider */
    margin-right: 0;
}

/* Card Grid Layouts (for Journey, Philosophy, Beyond Security) */
.card-grid {
    display: grid;
    gap: 30px;
}

.card-grid.two-columns {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
@media (min-width: 768px) { /* Ensure two columns on medium screens */
    .card-grid.two-columns {
        grid-template-columns: 1fr 1fr;
    }
}


.card-grid.three-columns {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
@media (min-width: 992px) { /* Ensure three columns on larger screens */
    .card-grid.three-columns {
        grid-template-columns: 1fr 1fr 1fr;
    }
}


.info-card {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.07);
    text-align: left; /* Text aligns left in cards based on image */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.info-card i {
    color: #3D90D7; /* Orange icon color */
    margin-bottom: 15px;
    display: block; /* Or inline-block if you prefer */
}

.info-card p {
    font-size: 0.95rem;
    color: #555;
}

/* What I Do Section Specifics */
#what-i-do {
    background-color: #f0f4f8; /* Consistent background */
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px 30px; /* Row gap, Column gap */
}

@media (min-width: 768px) {
    .activities-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.activity-item {
    display: flex;
    align-items: flex-start; /* Align icon and text to the top */
    gap: 20px; /* Space between icon and text block */
}

.activity-item i {
    color: #3D90D7; /* Orange icon color */
    margin-top: 5px; /* Align icon a bit better with text */
    flex-shrink: 0; /* Prevent icon from shrinking */
}

.activity-item h3 {
    margin-bottom: 5px;
}

.activity-item p {
    font-size: 0.95rem;
    color: #555;
    margin: 0;
}


/* Responsive Adjustments for About Hero */
@media (max-width: 992px) {
    .about-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .about-hero-image {
        order: -1; /* Image on top on smaller screens */
        margin: 0 auto 30px auto; /* Center image */
    }
    .about-hero-text h1 {
        font-size: 2.2rem;
    }
    .about-hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 767px) { /* Further adjustments for smaller screens */
    .card-grid.two-columns,
    .card-grid.three-columns {
        grid-template-columns: 1fr; /* Stack cards */
    }
    .activities-grid {
        grid-template-columns: 1fr; /* Stack activity items */
    }
     .activity-item {
        text-align: left; /* Keep text left aligned even if icon is above */
    }
}

/* Ensure Header and Footer styles from your main style.css are applied */
/* You might need to copy them here if this CSS is completely separate */
/* For example: */


/* Footer */
footer {
    background-color: #0f2136; /* Dark blue */
    color: #adb5bd; /* Lighter text color for footer */
    padding-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #2c3e50; /* Slightly lighter border */
}

.footer-about h3 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 1.3rem;
}
.footer-about p {
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-links h4, .footer-connect h4 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links ul li a {
    color: #adb5bd;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #fff;
}

.social-icons a {
    color: #adb5bd;
    font-size: 1.3rem;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #3D90D7; /* Orange on hover for social icons */
}
.social-icons a:last-child {
    margin-right: 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    font-size: 0.85rem;
}
.footer-bottom p {
    margin: 0;
}


/* Responsive adjustments */
@media (max-width: 992px) {
    .hero-content-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-image {
        order: -1; /* Image on top on smaller screens */
        margin-bottom: 30px;
    }
    .hero-image img {
        max-width: 300px;
    }
    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        align-items: flex-start;
    }
    header nav ul {
        flex-direction: column;
        width: 100%;
        margin-top: 10px;
    }
    header nav ul li {
        margin-left: 0;
        margin-bottom: 5px;
        width: 100%;
    }
    header nav ul li a {
        display: block;
        padding: 8px 0;
    }
    .theme-toggle {
        position: absolute;
        top: 20px;
        right: 20px;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }
    .hero-text .subtitle {
        font-size: 1.1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-about, .footer-links, .footer-connect {
        margin-bottom: 20px;
    }
    .social-icons {
        justify-content: center;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .footer-bottom p {
        margin-bottom: 5px;
    }
}

@media (max-width: 480px) {
    .hero-buttons .btn {
        display: block;
        margin-bottom: 10px;
        margin-right: 0;
    }
}

/* Header Navigation */
header {
    background-color: #0f2136; /* Dark blue */
    color: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
}

header nav ul {
    display: flex;
}

header nav ul li {
    margin-left: 20px;
}

header nav ul li a {
    color: #e0e0e0;
    padding: 5px 10px;
    transition: color 0.3s ease;
}

header nav ul li a:hover,
header nav ul li a.active {
    color: #fff;
    font-weight: 500;
}

.theme-toggle i {
    font-size: 1.2rem;
    cursor: pointer;
    color: #e0e0e0;
}
.theme-toggle i:hover {
    color: #fff;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: #007bff; /* Default link color */
}




/* Personal Gallery Section Styles */

#personal-gallery {
    padding: 60px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

#personal-gallery h2 {
    margin-bottom: 15px;
    font-size: 2.5rem;
    color: #0f2136;
    font-weight: 700;
}

.gallery-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 50px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    font-style: italic;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

@media (min-width: 576px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 35px;
    }
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }
}

@media (min-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 45px;
    }
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    aspect-ratio: 4 / 3;
    background: #fff;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(61, 144, 215, 0.1) 0%, rgba(1, 24, 216, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.gallery-item a::after {
    content: '🔍 View Gallery';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(15, 33, 54, 0.95) 0%, rgba(15, 33, 54, 0.7) 50%, transparent 100%);
    color: #fff;
    padding: 40px 15px 15px;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    z-index: 2;
}

.gallery-item:hover a::after {
    transform: translateY(0);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: all 0.4s ease;
}

.gallery-item a:hover img {
    transform: scale(1.08);
    filter: brightness(0.85);
}








