/* Add these browser compatibility rules at the top */
* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/* Modern color scheme and base styles */
:root {
    --primary-color: #282c34;  /* One Dark background */
    --accent-color: #61afef;   /* One Dark blue */
    --text-color: #abb2bf;     /* One Dark foreground */
    --text-secondary: #828997; /* One Dark gray */
    --nav-bg: #21252b;         /* One Dark darker background */
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--primary-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Modern navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flex;
    display: flex;
    -webkit-justify-content: flex-end;
    -moz-justify-content: flex-end;
    -ms-justify-content: flex-end;
    justify-content: flex-end;
    padding: 0.8rem 2rem;
    background: var(--nav-bg);
    -webkit-backdrop-filter: blur(10px);
    -moz-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid #3b4048;
}

.navbar a {
    color: var(--text-color);  /* One Dark text color */
    text-decoration: none;
    font-size: 0.95rem;        /* Slightly smaller font */
    padding: 0.4rem 1rem;      /* Reduced padding */
    margin: 0 0.5rem;
    border-radius: 4px;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.navbar a:hover {
    background: var(--accent-color);
    color: var(--nav-bg);      /* Dark text on hover for contrast */
    transform: translateY(-1px);
}

/* Hero section */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flex;
    display: flex;
    -webkit-align-items: center;
    -moz-align-items: center;
    -ms-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    -moz-justify-content: center;
    -ms-justify-content: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(5px);
    -moz-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* Content section */
.content {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.content h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

/* Responsive design */
@media (max-width: 768px) {
    .navbar {
        justify-content: center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .content {
        padding: 3rem 1rem;
    }
}

/* About page specific styles */
.about-hero {
    height: 40vh !important;
    background-position: top center !important;
}

.about-content {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6rem 2rem;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 2rem auto;
    border: 3px solid var(--accent-color);
    box-shadow: 0 0 20px rgba(97, 175, 239, 0.3);  /* Subtle glow effect using One Dark blue */
}

.about-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Add these to the existing styles */
.ai-section {
    margin-top: 4rem;
    padding: 2rem 0;
    border-top: 1px solid #3b4048;  /* One Dark border color */
}

.ai-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 3px solid var(--accent-color);
    box-shadow: 0 0 25px rgba(97, 175, 239, 0.2);
    margin: 2rem 0;
}

.section-title {
    color: var(--accent-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

/* Gallery styles */
.photos-content {
    padding-top: 3rem;
}

.gallery-grid {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border: 2px solid var(--nav-bg);
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

.gallery-item:hover img {
    border-color: var(--accent-color);
}

/* Add fallback for object-fit */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    .gallery-item img {
        height: auto;
    }
    
    .profile-image {
        height: auto;
    }
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding: 40px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(23, 25, 30, 0.95);
    backdrop-filter: blur(5px);
}

.modal-content {
    display: block;
    max-width: 90%;
    max-height: 90vh;
    margin: auto;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(97, 175, 239, 0.3);
}

.close-modal {
    position: absolute;
    right: 35px;
    top: 25px;
    color: var(--text-color);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--accent-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .modal {
        padding: 20px;
    }
} 