/* --- Global Styles & Colors --- */
:root {
    --primary-color: #000080; /* Navy Blue */
    --secondary-color: #FFD700; /* Gold/Yellow */
    --text-color: #333;
    --background-color: #f9f9f9;
    --card-bg: #ffffff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    /* Smooth scrolling behavior for navigation links */
    scroll-behavior: smooth;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

section {
    padding: 60px 0;
    border-bottom: 1px solid #ddd;
}

h1, h2, h3 {
    color: var(--primary-color);
}

/* --- Header & Navigation --- */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 40px 0;
    text-align: center;
}

nav {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav a {
    display: inline-block;
    padding: 15px 20px;
    color: var(--primary-color);
    font-weight: bold;
    transition: background-color 0.3s ease;
}

nav a:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* --- Specific Section Styling --- */
.profile-pic {
    border-radius: 50%;
    float: left;
    margin-right: 20px;
    border: 4px solid var(--secondary-color);
}

.about-content::after { /* Clear float hack */
    content: "";
    display: table;
    clear: both;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.gallery img, .video-placeholder iframe {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* --- Cards Styling (Apps/Blog) --- */
.card-container {
    display: flex;
    gap: 20px;
}

.card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    flex: 1;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.contact-button {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 15px 25px;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    margin-top: 10px;
}

.contact-button:hover {
    background-color: #ffcc00; /* Slightly darker yellow on hover */
}

/* --- Footer --- */
footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

/* --- Responsive Design (Intuitive Flow) --- */
@media (max-width: 768px) {
    .card-container {
        flex-direction: column;
    }
    nav a {
        padding: 10px 15px;
    }
    .profile-pic {
        float: none;
        display: block;
        margin: 0 auto 20px auto;
    }
}
