/* Base Styles & Typography */
:root {
    --primary-color: #2b2d42;
    --accent-color: #8d99ae;
    --light-accent: #edf2f4;
    --background: #fdfdfd;
    --text-main: #1d1e2c;
    --text-muted: #5c677d;
    --white: #ffffff;
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background-color: rgba(253, 253, 253, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links li a {
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
}

.nav-links li a:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding-top: 80px; /* Offset for fixed header */
    background: linear-gradient(135deg, var(--white) 0%, var(--light-accent) 100%);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--primary-color);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.hero-image-container {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.hero-frame {
    position: absolute;
    top: 30px;
    left: 30px;
    width: 100%;
    height: 100%;
    border: 4px solid var(--accent-color);
    border-radius: var(--radius-lg);
    z-index: 1;
}

.hero-photo {
    position: relative;
    z-index: 2;
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transform: translate(-15px, -15px);
    transition: transform 0.3s ease;
}

.hero-photo:hover {
    transform: translate(-20px, -20px);
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #1a1b28;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Sections Common */
section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-color);
}

/* Web Projects Grid */
.web-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.web-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.web-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.web-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: var(--light-accent);
}

.web-card-content {
    padding: 25px;
}

.web-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.web-card-tech {
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.web-card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Photography Masonry/Grid */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    grid-auto-rows: 250px; /* Base height for a simplified masonry feel using object-fit */
}

.photo-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    group;
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.photo-card:hover img {
    transform: scale(1.05);
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 30px 20px 20px;
    color: var(--white);
    opacity: 0;
    transition: var(--transition);
}

.photo-card:hover .photo-overlay {
    opacity: 1;
}

.photo-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.photo-category {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 5px;
}

.photo-gear {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* Contact/Footer Section */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0 30px;
    text-align: center;
}

.footer-content {
    margin-bottom: 40px;
}

.footer-content h2 {
    margin-bottom: 20px;
}

.contact-info {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.footer-bottom {
    font-size: 0.9rem;
    opacity: 0.7;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}

/* Admin Styles */
.admin-container {
    max-width: 1000px;
    margin: 50px auto;
    padding: 20px;
}
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--light-accent);
}
.admin-nav {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}
.admin-nav a {
    padding: 10px 15px;
    background: var(--light-accent);
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: var(--transition);
}
.admin-nav a:hover, .admin-nav a.active {
    background: var(--primary-color);
    color: var(--white);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}
.admin-table th, .admin-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--light-accent);
}
.admin-table th {
    background-color: var(--light-accent);
    font-weight: 600;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}
.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--radius-md);
    font-family: inherit;
}
.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(141, 153, 174, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: rgba(253, 253, 253, 0.98);
        padding: 20px;
        text-align: center;
        box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }
    
    .hero-image-container {
        margin-bottom: 40px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        grid-auto-rows: 150px;
    }
}
