/* 
 * Kalyanshetty & Co. - Styles
 * Elegant Black & Gold Theme
 */

:root {
    --color-black: #0B0B0B;
    --color-gold: #B59952;
    --color-gold-hover: #8C7339;
    --color-gold-light: #D9C58E;
    --gold-gradient: linear-gradient(135deg, #B59952 0%, #D9C58E 50%, #8C7339 100%);
    --color-text: #E6E6E6;
    --color-border: rgba(255, 255, 255, 0.08);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--color-black);
    /* Subtle noise + dark gradient */
    background-image:
        radial-gradient(circle at 50% 50%, rgba(20, 20, 20, 1) 0%, rgba(11, 11, 11, 1) 100%),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3%3Ffilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    background-blend-mode: overlay;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-gold);
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 3.5rem);
    line-height: 1.1;
}

h2 {
    font-size: clamp(2rem, 5vw, 2.5rem);
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1.5rem;
}

.about-content p,
.our-story p,
.profile-bio p {
    text-align: justify;
}

a {
    color: var(--color-gold);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-gold-hover);
}

/* Layout Components */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 80px 0;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(11, 11, 11, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition);
}

header.scrolled {
    padding: 0.5rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    mix-blend-mode: lighten;
    /* Makes dark backgrounds in the image transparent on the black header */
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1.2;
}

.logo-caption {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: var(--color-gold);
    opacity: 0.8;
    text-transform: uppercase;
    font-family: var(--font-body);
    font-weight: 500;
    margin-top: 2px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-gold);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--color-gold);
}

/* Mobile Nav Toggle */
.mobile-toggle {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--color-gold);
}

/* Hero Section */
.hero {
    height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero.full-height {
    height: 100vh;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(11, 11, 11, 0.9) 0%, rgba(11, 11, 11, 0.4) 60%, rgba(11, 11, 11, 0.9) 100%);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.1), transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.page-header {
    height: 50vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    padding: 120px 0 60px;
    border-bottom: 1px solid var(--color-border);
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 11, 11, 0.7);
    z-index: 1;
}

.page-header>.container,
.hero>.container {
    position: relative;
    z-index: 2;
}

.hero-tagline {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-gold);
    margin-bottom: 1.5rem;
    display: block;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1px solid var(--color-gold);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--gold-gradient);
    color: var(--color-black);
    border: none;
    box-shadow: 0 4px 15px rgba(189, 151, 62, 0.2);
}

.btn-primary:hover {
    background: var(--color-gold-hover);
    color: var(--color-black);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(189, 151, 62, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--color-gold);
}

.btn-outline:hover {
    background: var(--color-gold);
    color: var(--color-black) !important;
}

.btn-group {
    display: flex;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

/* Cards */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.expertise-card {
    border: 1px solid var(--color-border);
    padding: 2.5rem;
    transition: var(--transition);
    height: 100%;
}

.expertise-card:hover {
    border-color: var(--color-gold-light);
    box-shadow: 0 10px 40px rgba(189, 151, 62, 0.1);
    transform: translateY(-8px);
}

.expertise-card h3 {
    margin-bottom: 1rem;
}

/* Footer */
footer {
    padding: 100px 0 40px;
    border-top: 1px solid var(--color-border);
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 60px;
}

.footer-logo {
    margin-bottom: 2rem;
}

.footer-links h4 {
    font-size: 1rem;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--color-text);
    font-size: 0.9rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
    font-size: 0.8rem;
    opacity: 0.6;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--color-black);
    border: 1px solid var(--color-gold);
    padding: 4rem;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    text-align: center;
}

.modal-content h2 {
    margin-bottom: 2rem;
}

.modal-body {
    text-align: left;
    margin-bottom: 3rem;
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Forms */
.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    color: var(--color-gold);
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    padding: 1rem;
    color: white;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-gold);
    background: rgba(255, 255, 255, 0.05);
}

.checkbox-group {
    grid-column: 1 / -1;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin: 1rem 0;
}

.checkbox-group input {
    margin-top: 5px;
}

.checkbox-group label {
    font-size: 0.9rem;
    text-transform: none;
    color: var(--color-text);
}

/* Responsive */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Mobile menu logic to be added */
    }

    .mobile-toggle {
        display: block;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

/* Animations */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile adjustments for large hero text */
@media (max-width: 768px) {
    .hero-tagline {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
}