/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #222222;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    flex-shrink: 0;
}

.logo-img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #222222;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #666666;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #222222;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('images/seshat_hero.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    color: #ffffff;
    text-align: left;
}

.hero-title {
    font-size: 4rem;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-title .trademark {
    font-size: 0.5em;
    vertical-align: super;
}

.section-title .trademark {
    font-size: 0.5em;
    vertical-align: super;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 3rem;
    color: #222222;
}

/* About Section */
.about {
    background: #f8f9fa;
}

.about-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-align: justify;
    line-height: 1.8;
}

/* Projects Section */
.projects {
    background: #ffffff;
}

.project {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
    padding: 2rem 0;
}

.project:last-child {
    margin-bottom: 0;
}

.project-right {
    grid-template-columns: 1fr 1fr;
}

.project-right .project-content {
    order: 1;
}

.project-right .project-image {
    order: 2;
}

.project-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.project-image img:hover {
    transform: scale(1.02);
}

.project-title {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: #222222;
}

.project-description {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    text-align: justify;
}

/* Contact Section */
.contact {
    background: #f8f9fa;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: flex-start;
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #222222;
}

.contact-info p {
    font-size: 1rem;
    line-height: 1.6;
}

.contact-form {
    background: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #222222;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 4px;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #222222;
}

.submit-btn {
    background: #222222;
    color: #ffffff;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background: #000000;
}

/* Footer */
.footer {
    background: #ffffff;
    border-top: 1px solid #e9ecef;
    padding: 2rem 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-logo img {
    height: 60px;
    width: auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
    gap: 0.5rem;
}

.footer-copyright {
    text-align: center;
}

.footer-copyright p {
    font-size: 0.9rem;
    color: #666666;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-link {
    font-size: 0.85rem;
    color: #666666;
    text-decoration: none;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.footer-link:hover {
    color: #222222;
    text-decoration: underline;
}

.footer-spacer {
    width: 60px;
}

.footer-icon-link {
    text-decoration: none;
    margin-left: 0.25rem;
}

.footer-send-icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-left: 0.25rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.footer-icon-link:hover .footer-send-icon {
    opacity: 1;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-container {
        height: 60px;
        padding: 0 15px;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 14px;
    }
    
    .hero-content {
        text-align: center;
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .project {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .project-right .project-content {
        order: 2;
    }
    
    .project-right .project-image {
        order: 1;
    }
    
    .project-image img {
        height: 300px;
    }
    
    .project-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-links {
        gap: 1rem;
    }
    
    .footer-spacer {
        display: none;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        gap: 0.5rem;
    }
    
    .nav-link {
        font-size: 12px;
    }
    
    .hero-title {
        font-size: 2rem;
        letter-spacing: 1px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .project-image img {
        height: 250px;
    }
    
    .contact-form {
        padding: 1rem;
    }
}

/* Smooth scroll offset for fixed navigation */
section {
    scroll-margin-top: 70px;
}

/* Form validation styles */
.form-group input:invalid,
.form-group select:invalid,
.form-group textarea:invalid {
    border-color: #dc3545;
}

.form-group input:valid,
.form-group select:valid,
.form-group textarea:valid {
    border-color: #28a745;
}

/* Loading and interaction states */
.submit-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.submit-btn.loading {
    background: #6c757d;
    position: relative;
}

.submit-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
